Raspberry Pi 3B + installation of Raspbian system

Outline

Some time ago because of the study of things, so this thing Raspberry Pi has long been heard. In my mind, the Raspberry Pi is almost omnipotent, it can be used to learn programming, do things, do the server, and even use it for penetration testing. Finally, do not ban the temptation to start with a piece of raspberry pie 3B +.

After arrived in the hands, the first thing is to install the operating system. The choice of the system, I hesitated for a long time, the current support Raspberry Pi system has CentOS, Ubuntu, Kali Linux, Windows and Rasbian and so on. After extensive research, taking into account the stability, compatibility and relevant information aspects of the system, I chose the official system - Rasbian . It is based on Debian GNU / Linux is designed for Raspberry Pi customized operating system, which built a lot of tools to configure raspberry pie, allowing novice faster entry.

A good selection of the operating system, the next step is to install the operating system. Raspberry Pi to install computer systems to install the system and usually not much difference, almost the same steps. First, download a good operating system image file, image file and then write MicroSD card on it, is that simple.

After burning a good system, the MicroSD card into the raspberries come in, connect the monitor, give raspberry pie energized, you're done! Ok? Not ah, I believe there will be some users will encounter the same situation as me, only two lamps raspberries come in bright screen, but no response, this is how it happened? The original Raspberry Pi default picture is from the HDMI output, but some raspberry pie HDMI device does not recognize, especially some HDMI to VGA devices, which leads to the Raspberry Pi picture signal output to the PAL, but the Raspberry Pi from three generations has not built the PAL interface, which we need to manually configure the mandatory HDMI output, in order to make the picture signal output from the HDMI to the display.

That display can not be used, how should configure HDMI output it? This is another problem. Access to information to know there is a MicroSD card in the boot directory, all files related to the boot camp to start this raspberry inside the store, you can configure them to make the Raspberry Pi connected to a wireless network, open ssh and other functions, and then you can by ssh configuration of the HDMI output. Just configure the monitor via ssh, I discovered a remote connection tool VNC raspberry pie. With this tool, you can not monitor, remote control directly from the PC Raspberry Pi, and this how convenient ah.

Hardware preparation

  • Raspberry Pi 3B + - a
  • 16G + MicroSD card - a
  • MicroSD card reader - a

Software ready

Format MicroSD card

After opening the software, SD Card Formatter, first select the drive letter you want to format, and then select the formatting method, methods Quick format (quick format) and Overwrite format (cover format). Quick format is equivalent to rebuild the partition table for a moment, it did not really erase the data, and format covering all sectors are erased, although coverage is formatted formatted in the true sense, but it takes a particularly long time, as well as the impact on the life of the disk, so if there is no confidential information on a disk, then here it is recommended to use quick format. Select the way finished, click Format, click the pop-up warning to agree to wait a little while to complete the formatting.

If you are using Windows built-in formatting tools or other tools, simply MicroSD card can be formatted as FAT32 format, the cluster size can refer to the SD Card Formatter is set to 32kb.

The image file is written MicroSD card

After formatting MicroSD card, open the software Win32DiskImager, click the small icon image file, select the file system image after Raspbian .img suffix click OK, and then select the drive letter where the MicroSD card from the device, this time some attention Do not choose the wrong disk , otherwise it is possible to remove all other disks in the file! After selecting equipment Click written consent to pop up warning, wait for the progress bar to finish, the system will burn a success.


Note: If you happen to have a screen, then the following steps can use the graphical interface operation, if there is no screen to continue reading.


Configure a WLAN connection information

After the system burning is complete, turn on "this computer", you will find more than a boot disk named. In the Linux system, boot directory used to store boot files and kernel files in Raspbian is no exception, under the boot directory also kept the Raspbian startup files and kernel files, by configuring these files can be configured to start raspberry pie status.

Raspberry Pi network cable is connected, you can skip this section configure the WLAN directly to the open portion to ssh.

WLAN configuration information needs a new name in the boot directory wpa_supplicant.conf file (note extension), opened enter the following information in the file:

#设置所在国家,不同国家WLAN频段不同
country=CN
#网络接口数据结构文件
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#可以在特定的时候更新
update_config=1

network={
    #设置WLAN名称
    ssid="---ssid---"
    #设置WLAN密码
    psk="---password---"
    #设置WLAN加密方式
    key_mgmt=WPA-PSK
    #设置优先级
    priority=1
}


After editing can be saved, if a plurality of WLAN connection, then build several more network = {} in which the line wpa_supplicant.conf file, change the priority note size, a small value priority connection.

Open ssh

Open ssh only function in the boot directory create a file called blank file for ssh can.

Raspberry Pi Gets IP address

There ssh need to know the IP address in order to connect, to obtain an IP address when connecting Raspberry Pi lot of ways, if it is connected to the computer and raspberry pie at the same router, you can log in to view the Raspberry Pi IP address of the router management interface. If using a mobile phone or computer to open a hot raspberry pie, you can also view the IP address in cell phones and computers hotspot management interface, if not work, then you can try to enter commands at the computer command prompt, arp -a view.

arp是一个Windows自带的地址解析协议工具
常用命令:
arp -a : 显示所有接口的当前 ARP 缓存表
arp -d : 删除指定的 IP 地址项
arp /? : 查看arp帮助

Raspberry Pi open ssh connection VNC

We know that after the IP can be connected to a Raspberry Pi via ssh. There are a lot of connected, related software Putty, Xshell, etc., you do not want to download the software, then you can also connect through Windows tools (like Windows10 need more support).

If you use Windows own tool to connect raspberry pie, then you need to enter the command prompt, you can press the shortcut keys Win + R -> type cmd, you can also enter in the Start menu search cmd. After entering the command prompt, enter the command ssh [email protected] to connect, for the first time connected to a key determination, enter yes and press Enter, then enter the default password to log raspberry raspberry pie.

ssh是一个Windows自带的安全外壳协议工具
常用命令:
ssh 用户名@IP地址
ssh 用户名@IP地址 -p 端口
ssh 查看帮助


Open VNC required by Raspberry Pi configuration program raspi-config to configure, first enter commands sudo raspi-configinto the management interface.

sudo - 以管理员权限运行
raspi-config - 树莓派官方设置工具

First select the option after entering the management tools 5 Interfacing Optionsinto the interface options, and then select P3 VNCto enter the VNC settings, the final choice open to successfully open the VNC.

VNC connection Raspberry Pi

Open VNC Viewer software, found in the File tab -> New connection .., in the pop up box VNC Server:IP address, enter the server name can easily play one, easy to distinguish, the information input finished, click OK return to main menu. We just double-click the new devices are connected in the main interface, the first connection will be key OK, click Continue on the line. The next step to enter a user name and password to successfully connect to the raspberry pie.

The system is installed, enjoy it now!

Guess you like

Origin www.cnblogs.com/c4y345/p/12626033.html