How to Setup VNC Server on Linux Mint 20
To Setup the VNC Server on Linux Mint 20
Introduction:
Virtual Network Computing (VNC) is a graphical desktop sharing system that handles the Remote Frame Buffer protocol (RFB) that control the other computer remotely. This tutorial will cover to setup VNC Server on Linux Mint 20. Installation Procedure: First check the version of OS
root@linuxhelp:~# cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
Install the VNC service
root@linuxhe:~# apt-get -y install x11vnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Create a directory for VNC service
root@linuxhe:~# mkdir /etc/x11vnc
Now create an encrypted password for the VNC file:
root@linuxhe:~# x11vnc --storepasswd /etc/x11vnc/vncpwd
Enter VNC password:
Verify password:
Write password to /etc/x11vnc/vncpwd? [y]/n
Password written to: /etc/x11vnc/vncpwd```
create a system service file for the VNC service:
root@linuxhe:~# xed /lib/systemd/system/x11vnc.service
Enter this line to the configuration file:
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 –shared
[Install]
WantedBy=multi-user.target
Now reload the service
root@linuxhe:~# systemctl daemon-reload
now enable the VNC service
root@linuxhe:~# systemctl enable x11vnc.service
Created symlink /etc/systemd/system/multi-user.target.wants/x11vnc.service → /lib/systemd/system/x11vnc.service.
Now start the VNC service
root@linuxhe:~# systemctl start x11vnc.service
finally switch your windows and open your vnc and enter your IP The VNC server is working
With this method, to Setup the VNC Service on Linux Mint 20 is comes to an end.
Comments ( 1 )