Install persistent VNC server on Ubuntu
October 2, 2008 – 17:27 by Hannes Van de VelInstalling a persistent VNC service can be tricky. The following worked for us on Ubuntu 8.04 (you probably need to enable root).
Install x11vnc and xinetd
sudo apt-get install x11vnc xinetd
Create VNC password file
x11vnc -storepasswdFind gdm auth file
ps wwaux | grep auth
Returns something like this, you need the file in bold;
root 5112 2.4 0.9 30048 20728 tty7 Ss+ 18:04 0:17 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth vt7
Edit xinetd service file for x11vnc. Use the auth file you found above;
sudo nano /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 -display :0 -auth /var/lib/gdm/:0.Xauth -many -bg -usepw -rfbauth /root/.vnc/passwd -forever disable = no }
Start x11vnc service
sudo /etc/xinetd.d/x11vnc start
1 Trackback(s)