Raspberry Pi Series 1: Installation system + wireless remote ssh connection without screen

The Raspberry Pi is a small computer with a credit card size, and its system is based on Linux.

1. Install the official system Raspbian Buster Lite (no desktop version)

At present, there are two ways to install the system. You can use the official Raspberry Pi Imager tool to program the system, or you can download the system image and use Etcher or win32diskimager to program. The project chooses to install the official Raspbian Buster Lite.

Raspberry Pi Imager download link: https://www.raspberrypi.org/downloads/

Raspbian system image download link: https://www.raspberrypi.org/downloads/raspbian/ 

Official installation tutorial: https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Method 1: Use Raspberry Pi Imager to write and write system

1. Format the SD card on Windows: If it is the SD card used before, you need to use the SD Formatter tool to format this SD card. If it is a new SD card, you can proceed directly to the next step.

2. Download and install the Raspberry Pi Imager corresponding to your PC system: https://www.raspberrypi.org/downloads/

3. Open Raspberry Pi Imager , select the required operating system and the written SD card from the displayed list, and click WRITE to program. Because the programming speed is too slow, it is replaced with Etcher manual writing.

Method 2: Use Etcher tool to program

1. Preparation: Download the Raspbian Buster Lite image and download the Etcher programming tool . (Whispering: when the official website download is slow, it is faster to choose the network disk)

2. Connect the SD card to the PC using a card reader, and use the Etcher programming tool to program the system image: select the image file, SD card drive letter, and click FLask to start programming. This method is fast.

2. Wireless wifi configuration without screen

1. Open ssh

Connect the SD card to the PC using a card reader, open the SD card drive letter and create a new "ssh" text file in the boot partition, and delete the suffix .txt

2. Configure wifi file

1) Create a new "wpa_supplicant.conf" document under the boot partition, and delete the suffix .txt;

2) Open wpa_supplicant.conf and enter the following configuration: You can use network {} to configure multiple wireless networks at the same time;

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
 ssid="WiFi名,不删除引号,不能有中文" 
 psk="密码,不删除引号" 
 priority=10 
}

network={
 ssid="第二个WiFi名"
 psk="第二个密码" 
 priority=替换成数字,数字越大代表优先级越高 
}

3) Hardware connection and boot: Insert the SD card into the Raspberry Pi, turn on the power switch, the green indicator on the Raspberry Pi will flash, indicating that the system is normal.

4) Obtain the dynamic IP address of the Raspberry Pi: Find the Raspberry Pi ip address directly in the background of the router , or use Advanced IP Scanner to obtain it.

5) Use the ssh tool to log in to the Raspberry Pi remotely: Putty is used here , fill in the ip address in the Host Name, and then click open to connect.

6) Username and password for logging into the Raspberry Pi;

7) Test whether it is connected to the external network: ping baidu.com The network time has been going down, which means that the Raspberry Pi network is successful.

So far, the Raspberry Pi has completed the programming system + wireless wifi remote connection without screen.

Published an original article · Like1 · Visits13

Guess you like

Origin blog.csdn.net/weixin_38661447/article/details/105470850