Remote connection to Raspberry Pi via VNC Viewer

Table of contents

One tool download

2. SD card format

3. Burn image

4. Configure the network

Five. putty remote connection

6. VNC Viewer remote interface display

7. Reference link


One tool download

1. Download Raspberry Pi image

Raspberry Pi OS – Raspberry Pi

Select all downloadable options:

Choose 32-bit:

 2. Formatting tool
This time I use SDCardFormatterv5, you can choose other tools
3. Image burning tool
This time I use Raspberry Pi, you can choose other tools
4. VNC viewer
https://www.realvnc.com/en/connect/download /viewer/
5. Remote tools
This time using putty, you can choose other tools
https://www.chiark.greenend.org.uk/~sgtatham/putty/
 

2. SD card format

①Insert the SD into the card reader, and then insert the card reader into the computer.
② Open the formatting tool SDCardFormatterv5.
③Select the SD card you need to format.
④ Select the pop-up dialog box and select "Yes".
⑤Then it will pop up, prompting that the formatting is complete, select OK, and the formatting of the SD card is completed.


3. Burn image

①Open the burning tool raspberry pi.
②Click "CHOOSE OS", select the image file you just downloaded, then click "CHOOSE SD CARD" to select the SD card you just formatted, and then click WRITE.
③ Then a dialog box will pop up, select "Continue/OK", and then the burning will start.


4. Configure the network

Use mobile phone hotspot
① On the computer, open the SD card that just burned the image.
②In the boot directory, create an empty ssh file.
③In the boot directory, first create a text file.
④Open the text file and copy the following content into the text.
 

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={     ssid="your wireless network name"     psk="your wireless network password"     key_mgmt=WPA-PSK     priority=1 }




Among them, change the content of ssid into the name of the mobile hotspot, and change the content of psk into the password of the mobile hotspot.
⑤Save the text just now, and change the name to wpa_supplicant.conf.
⑥ Take out the SD card, insert the SD card into the Raspberry Pi, and at the same time turn on the hotspot of the mobile phone and connect the power to the Raspberry Pi.
⑦The IP address of the Raspberry Pi can be checked on the mobile phone.

Five. putty remote connection

①Open putty, at the Host Name, enter the IP address you just checked, and then select "open".
②Select the pop-up dialog box and select "No".
③Enter the user and password (default user: pi default password: raspberry).
④Start the Raspberry Pi VNC service, and enter the command (sudo raspi-config) to configure the Raspberry Pi.
⑤ Select "Interfacing Options" with the up and down keys, and then select "Select" with the left and right keys.
⑥Then press the up and down keys to select "VNC", and the left and right keys to select "Select".
⑦ "Do you want to enable the vNc server?" -> Select "Yes".
⑧“The VNC server is enabled” –> press Enter to select “OK”.
⑨Use the up and down keys to select "Advanced Options", and the left and right keys to select "Select".
⑩Use the up and down keys to select "Resolution", and the left and right keys to select "Select".
⑪Next is the resolution selection, select "DMT Mode 16", and then select "OK".
⑫“The resolution is set to DMT mode 16” –> press Enter to select “OK”.
⑬Back to the start, select "Finish" to complete.


6. VNC Viewer remote interface display

①The installation process of VNC Viewer is omitted.
② Use of VNC Viewer.
Open the VNC Viewer interface after installation, first enter the IP address of the Raspberry Pi on the top, then enter the Username and Password in the pop-up interface, and click "OK". The Raspberry Pi interface appears, done.
 

7. Reference link

https://blog.csdn.net/qq_43279579/article/details/109142276 

Guess you like

Origin blog.csdn.net/qq_52445967/article/details/125407941