Persistent VNC Session

VNC session :1 always reported as being present although nothing extant in ~/.vnc folder. vncserver refused to create a :1 session. Solution below.

lorentz:marki:.vnc> vncserver

Warning: lorentz.jlab.org:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server lorentz.jlab.org:1

New 'lorentz.jlab.org:2 (marki)' desktop is lorentz.jlab.org:2

Starting applications specified in /home/marki/.vnc/xstartup
Log file is /home/marki/.vnc/lorentz.jlab.org:2.log


lorentz:marki:.vnc> cd /tmp/.X11-unix/
lorentz:marki:.X11-unix> lsl
total 8
drwxrwxrwt.  2 root  root      33 Jan 22 08:27 ./
drwxrwxrwt. 26 root  root    4096 Jan 22 08:27 ../
srwxrwxrwx   1 root  root       0 Jan 22 08:20 X0=
srwxrwxrwx   1 root  root       0 Jan 18 07:16 X1=
srwxrwxrwx   1 marki halld-2    0 Jan 22 08:27 X2=
lorentz:marki:.X11-unix> sudo rm -v X1
[sudo] password for marki: 
removed 'X1'

Leave a comment