VNC is a graphical desktop sharing system that uses one computer or mobile device (running a VNC viewer ) to remotely control the desktop of another computer (running a VNC server ).
Step1: Raspberry Pi: Install VNC server (included with Raspberry Pi)
-
Opening method 1: Open on desktop
-
Opening method 2: command line
Step2: PC side: Install VNC Viewer
VNC download link https://www.realvnc.com/en/connect/download/viewer/
Step3: Connect via IP address
Step 1: Run VNC on Raspberry Pi
Step 2: Open VNC Viewer
Added: Configuring a static IP address for the Raspberry Pi
Step 1: Find the default gateway
Step 2: IP Address Assigned to Raspberry Pi
Step 3: Modify the Raspberry Pi’s DHCP configuration file
Write the IP address into the configuration information (just restart after writing)
sudo nano /etc/dhcpcd.conf
Add the following information at the end and press Ctrl+S to write