https://community.linuxmint.com/tutorial/view/2334
This tutorial was adapted from here.
- Remove the default Vino server:
sudo apt-get -y remove vino
- Install x11vnc:
sudo apt-get -y install x11vnc
- Create the directory for the password file:
sudo mkdir /etc/x11vnc
- Create the encrypted password file:
sudo x11vnc --storepasswd /etc/x11vnc/vncpwd
You will be asked to enter and verify the password. Then press Y to
save the password file.
- Create the systemd service file for the x11vnc service:
sudo xed /lib/systemd/system/x11vnc.service