Step 1: List all processes of Xvnc
[root@VTGDB.COM tmp]# ps -ef | grep Xvncroot 112273 1 1 14:22 pts/0 00:00:00 /usr/bin/Xvnc :1 -desktop VTGDB.COM:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root 112688 110375 0 14:22 pts/0 00:00:00 grep Xvnc
Step 2: Kill all processes of Xvnc
[root@VTGDB.COM tmp]# kill -9 112273Step 3: Delete all file .X*-lock
[root@VTGDB.COM tmp]# cd /tmp[root@VTGDB.COM tmp]# ls -a
sess_8dmq10bg3vnbdcrcqo9ogpsi55 sess_ngvl5qf7pgv4ill44lbfa0q084 .X11-unix
db2chgpath_db2.log.73213 db2prereqcheck.log.128450 .esd-54323 .ICE-unix .java_pid63614 orbit-oracle seahorse-KUSesH sess_98ta84ni8cvcp1eo18auf3ccd0 sess_tvabjtkkmseko3t3e3q4c69o54 .X1-lock
[root@VTGDB.COM tmp]# rm -fr .X1-lock
[root@VTGDB.COM tmp]# cd .X11-unix/
[root@VTGDB.COM .X11-unix]# ls
X1
[root@VTGDB.COM .X11-unix]# rm -fr *
[root@VTGDB.COM .X11-unix]#