Enabling VNC Remote Access#
To install/run x11vnc:
$ sudo apt update
$ sudo apt install x11vnc
VNC command when running X server manually:
$ sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -loop –nopw
VNC command when running full desktop:
Configure the target desktop for auto login:
$ sudo vi /etc/gdm3/custom.conf
Uncomment/edit the following lines as shown below:
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = <user>
Save/exit the file and restart the gdm service:
$ sudo systemctl restart gdm3.service
Start the VNC server:
$ sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -loop -nopw -auth /run/user/1000/gdm/Xauthority