Source: http://ubuntuforums.org/showthread.php?t=363236
Install necessary packages
apt-get install x11vnc xinetd
Edit ~/.x11vncrc
(as root)
display :0
quiet
nopw
auth guess
Edit /etc/xinetd.d/x11vnc
service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -bg
disable = no
only_from = 192.168.100.0
}
Restart xinetd
/etc/init.d/xinetd restart