Install persistent VNC server on Ubuntu

October 2, 2008 – 17:27 by Hannes Van de Vel

Installing 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 -storepasswd

Find 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. 1 Trackback(s)

  2. Jun 24, 2011: [Geek] Question for the Linux folks - The Vette Barn Forum - A Community for Corvette Lovers

Post a Comment