This is an old revision of the document!
Ubuntu 18.04 Package https://github.com/LibVNC/x11vnc How to use x11vnc
On remote machine
install x11vnc: sudo apt-get install x11vnc
Gnome Display Manager makes problems for starting a x11 session when nobody logged in previously. Thus, x11vnc will not work after the restart of the pc.
Install and use lightdm instead. sudo apt-get install lightdm
on local machine
Install a vncviewer. x11vnc recommends tightvnc.
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver
Start server on remote
Monitor has to be connected login not required if lightdm is used
alias remote-server=“ssh -t -L 5900:localhost:5900 user@remote_ip 'sudo x11vnc -localhost -display :0 -auth guess'”
connect to client
alias remote-client='vncviewer -encodings “copyrect tight zrle hextile” localhost:0'