I have found next instruction on how to do that
- Install packages. Code: sudo apt-get install x11vnc vnc-java
- Set up a password for clients. Code: x11vnc -storepasswd
Open up ports 5800 and 5900 on your firewall Run the terminal command:
x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800and add it for auto-starting in future sessions
Additionally I have executed
x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5900
But no success from my vnc client, although I can ping ubuntu