Skip to main content

VNC Remote

Prerequisites

For VNC remote access, both devices must be on the same local network, and the target device must have the VNC service enabled.

Usage Instructions

VNC remote control is suitable for systems with a graphical interface. If the system doesn't have a graphical desktop, it's recommended to use SSH for remote control instead.

Using VNC (Remote Device)

Download VNC Viewer

You need to install VNC Viewer software on your remote device to control the mainboard.

Visit the RealVNC official website to download the VNC Viewer installation package.

① : Select the operating system platform of your remote device

② : Download the VNC Viewer installation package

VNC Viewer Download Page

Install VNC Viewer

After downloading the Windows version *.exe installation package:

  • Run the Installer

Run the VNC-Viewer-xxx.exe installer as administrator.

VNC Viewer Windows Installer - Run as Administrator
  • Select Language

Choose English language and click OK to proceed.

VNC Viewer Language Selection
  • Begin Installation

Click Next to start the installation wizard.

VNC Viewer Installation Welcome Screen
  • Accept License Agreement

Check the I accept the terms in the License Agreement option and click Next to continue.

VNC Viewer License Agreement
  • Installation Location

It's recommended to use the default installation path. Click Next to continue.

VNC Viewer Installation Location
  • Start Installation

Click Install to begin the installation process.

VNC Viewer Ready to Install
  • Complete Installation

Click Finish to complete the installation.

VNC Viewer Installation Complete

Running VNC Viewer

After installation, open the VNC Viewer software. You can choose to use VNC Viewer without signing in to an account.

VNC Viewer Login Screen

VNC Viewer Interface

VNC Viewer Main Interface

Using VNC (Mainboard)

Install VNC Server

Run the following commands in the terminal of the mainboard to install the VNC server:

radxa@device$
sudo apt update
sudo apt install tigervnc-standalone-server tigervnc-common -y

Set VNC Remote Password

Run the following command in the terminal of the mainboard to set the VNC remote password:

radxa@device$
vncpasswd
tip

When entering the password and verification, the characters won't be displayed on the screen. When prompted whether to create a view-only password, select n (no).

After completing the password setup, you'll see output similar to:

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used

Configure VNC Startup File

Edit the ~/.vnc/xstartup file on the mainboard:

radxa@device$
sudo vi ~/.vnc/xstartup

Modify the content of ~/.vnc/xstartup to:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export XDG_SESSION_TYPE=x11
export DESKTOP_SESSION=plasma
exec startplasma-x11

After editing the ~/.vnc/xstartup file, you need to make it executable:

radxa@device$
sudo chmod +x ~/.vnc/xstartup

Start VNC Server

Run the following command in the terminal of the mainboard to start the VNC server. Use the -localhost no parameter to allow remote access:

radxa@device$
vncserver -localhost no

After successful startup, the terminal will display information similar to the following, indicating the VNC server's port number:

New Xtigervnc server ***:1 (radxa)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.VQ4DfI/passwd :1 to connect to the VNC server.

Check VNC Server Status

To check the status of the VNC server, run the following command in the terminal of the mainboard:

radxa@device$
vncserver -list

The terminal will display output similar to:

TigerVNC server sessions:

X DISPLAY # RFB PORT # RFB UNIX PATH PROCESS ID # SERVER
1 5901 3283 Xtigervnc

Stop VNC Server

To stop the VNC server, run the following command in the terminal of the mainboard. The :1 in the command represents the display number of the VNC server:

radxa@device$
vncserver -kill :1

After stopping the VNC server, the VNC Viewer software will automatically disconnect.

VNC Remote Login

On another device, open the VNC Viewer software and connect to the mainboard using its IP address and port number.

① : Enter the mainboard's IP address and port number

② : Click Connect to address ··· to connect to the mainboard

VNC Connection Setup

① : Enter the VNC remote access password

② : Check the Remember password option to save the password for future logins

③ : Click OK to connect

VNC Authentication
VNC Connection Successful
VNC Black Screen

If you encounter a black screen when connecting via VNC, check if the system's auto-login option is enabled. If it is, you'll need to disable the auto-login option.