VNC Remote Desktop
- Video Tutorial
The Walnut Pi comes pre-installed with a VNC server. VNC is suitable for LAN-based desktop login (typically within the same router network). Before using this service, make sure the Walnut Pi is connected to the router via Ethernet or WiFi.
When using the Walnut Pi Desktop edition, you can use an HDMI display along with a keyboard and mouse for configuration and networking. Once the network and other parameters are set up, you can log into the Walnut Pi via remote desktop for computer-based control.
Currently, the Walnut Pi comes pre-installed with the X11VNC server. The advantage is that it directly remotes into the current desktop without consuming extra memory. However, during remote access, the Walnut Pi must remain connected to a display via HDMI; otherwise, you may experience lag or connection failures because the desktop hasn't fully loaded.
However, the whole point of using VNC is to save a display. A solution is to use a device called an HDMI dummy plug, which costs about 10+ yuan. Connect it to the Walnut Pi via a micro HDMI to HDMI female adapter to resolve the lag issue when no display is connected. Click to buy ->

In addition to the officially recommended one, you can also purchase a DIY HDMI dummy plug made by Walnut Pi users, which is more compact: Click to buy ->

Enabling the VNC Service
Run the following command to enable it: (default password: pi, default port: 5900)
set-vnc enable
After enabling, reboot the Walnut Pi:
sudo reboot

Connecting to Walnut Pi via VNC from a PC
First, install VNC Viewer (the client, not the server) on your computer to connect to the Walnut Pi. Download link: https://www.realvnc.com/en/connect/download/viewer/

After installation, open the software and enter the Walnut Pi's IP address in the top bar. How to obtain the IP address. You do not need to enter a port number here, as the pre-installed VNC server on the Walnut Pi uses the default port 5900.

Press Enter, then click "Continue" in the pop-up prompt:

The password is pi. You can check "Remember password" to avoid entering it again.

Click OK to log in successfully.

Disabling the VNC Service
Once enabled, the VNC service starts automatically at boot. To disable it, use the following command and reboot for the change to take effect:
set-vnc disable
Setting the Password
The default password is pi. For example, to set it to "12345678", use the following command:
set-vnc password 12345678
Setting the Port
The default port is 5900. For example, to change it to "5901", use the following command:
set-vnc port 5901
Type "set-vnc " in the terminal and press the Tab key to view all available commands.
