To install x11vnc, run at command line
sudo apt-get install x11vnc
x11vnc -rfbauth /path/to/passfile -rfbport 5900 -shared -forever -nowf -norc -notruecolor -scale 4/5 -scale_cursor 1 -desktop computer_name -bg
rfbauth /path/to/passfile asks authentication, if missing, then not
rfbport 5900 defines the TCP port 5900, where you run the x11vnc server
shared gives access more than one simultaneous session
forever runs x11vnc server forever. If this parameter not shown, then x11vnc closes down
nowf tries to detect window moves or resizes when a mouse button is held down and show a wireframe instead of the full opaque window
norc makes rudimentary config file support: if the file $HOME/.x11vncrc exists then each line in it is treated as a single command line option. Disable with -norc.
notruecolor Gives for 8bpp displays, force indexed color (i.e. a colormap) even if it looks like 8bpp TrueColor (rare problem).
scale 4/5 will scale the framebuffer by factor fraction. E.g. 17” screen with 1027×768 will shown as 800×600. Useful if your monitor has lower resolution than the remote computer. If remote computer screen resolution is much more bigger than yours - you may use bigger fraction, e.g. 3/4, etc..
scale_cursor 1 is useful not to scale cursor but only screen resolution.
desktop computer_name means the computer or owner or company or whatever describes for you that remote computer. Spaces and characters with umlaut are not allowed. Replase computer_name with your desired name.
bg will run x11vnc in background
xvncviewer machine:0
https://help.ubuntu.com/community/x11vnc?highlight=%28vnc%29