02-Installing_VNC_on_Linux
VNC (Virtual Network Computing) is a graphical desktop sharing system based on the Remote Frame Buffer protocol (RFB). It allows users to connect to a remote computer over the network and operate the remote computer's desktop as if it were a local one.
SDK$ - Hereinafter refers to the source code path.
console$ - Hereinafter generally refers to the motherboard command-line console.
ADB$ - Android Debug Bridge command-line tool. Hereinafter generally refers to an environment where ADB can be run.
Configuring the VNC Server on the Motherboard
Installing the VNC Service
Setting the VNC Password
Execute the vncpasswd
command to set the VNC password. This is not the password for the user account but is specifically used for VNC clients to connect to the VNC server.
Remember the password for later use when connecting the client.
Configuring Desktop Startup
Create a file named $HOME/.vnc/xstartup
with the following content:
Ensure that the xstartup
file has executable permissions.
Setting up the systemd Service to Start and Stop VNC
To create a systemd service to start the VNC server, create the file /etc/systemd/system/vncserver@.service
. Use sudo
or log in as the root
user since this directory is read-only.
The following commands are for using systemd
.
To start the VNC service:
To stop the VNC service:
To restart the VNC service:
Connecting to VNC from Windows
Downloading MobaXterm
Download MobaXterm from the following link: https://mobaxterm.mobatek.net/
MobaXterm Operation Steps
Create a new session window.
Select the session window type as VNC.
Enter the IP address.
Enter the port number (5901).
Start the session window.
Enter the password you set with
vncpasswd
and click OK.
Last updated