Skip to content

Linux VNC Remote Control

VNC (Virtual Network Computing) is a graphical desktop sharing system based on the Remote Framebuffer Protocol (RFB). It allows users to connect to a remote computer over a network and operate its desktop as if working on a local machine.

Configure VNC Server on the Board

  • Environment setup
console$ sudo apt update
console$ sudo apt install x11-utils x11vnc -y
  • Create/Change password
console$ x11vnc -storepasswd

Example:

Note

The password file path $(passwd_path) is /home/kickpi/.vnc/passwd

kickpi@kickpi:~$ x11vnc -storepasswd
Enter VNC password: 
Verify password:    
Write password to /home/kickpi/.vnc/passwd?  [y]/n y
Password written to: /home/kickpi/.vnc/passwd
  • Start VNC server
console$ export DISPLAY=:0
console$ x11vnc -display :0 -auth /home/kickpi/.Xauthority -rfbport 5900 -rfbauth $(passwd_path)

Example:

kickpi@kickpi:~$ export DISPLAY=:0
kickpi@kickpi:~$ x11vnc -display :0 -auth /home/kickpi/.Xauthority -rfbport 5900 -rfbauth /home/kickpi/.vnc/passwd

Connect to VNC from Windows

  • Using Mobaxterm

1. Download Mobaxterm and click Session to create a new session window.

2. Select VNC as the session type.

3. Enter the IP address.

4. Enter the port number.

5. Start the session.

image-20250421141430650

6. Enter the password and click OK.

image-20250422152029118