[root@cnwbzp0167 ~]# service vncserver restart
Shutting down VNC server: 2:root [FAILED]
Starting VNC server: 2:root A VNC server is already running as :2
[FAILED]
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1
Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually
[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root 1328 0.1 0.6 122424 25728 pts/0 S 02:16 0:00 /usr/bin/Xvnc :2 -desktop cnwbzp0167:2 (root) -auth /root/.Xauthority -geometry 800x600 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn
root 1336 0.0 0.0 50156 1636 pts/0 S 02:16 0:00 vncconfig -iconic
root 1545 0.4 0.4 115784 18888 pts/0 S 02:25 0:00 /usr/bin/Xvnc :3 -desktop cnwbzp0167:3 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5903 -fp catalogue:/etc/X11/fontpath.d -pn
root 1551 0.0 0.0 50156 1624 pts/0 S 02:25 0:00 vncconfig -iconic
root 1743 0.0 0.0 103252 864 pts/0 S+ 02:26 0:00 grep -i vnc
[root@cnwbzp0167 ~]# kill -9 1328 1336 1545 1551 1743
-bash: kill: (1743) - No such process
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root 1780 0.0 0.0 103248 856 pts/0 S+ 02:26 0:00 grep -i vnc
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1
Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually
[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
Warning: cnwbzp0167:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server cnwbzp0167:1
Warning: cnwbzp0167:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server cnwbzp0167:2
Warning: cnwbzp0167:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server cnwbzp0167:3
New 'cnwbzp0167:4 (root)' desktop is cnwbzp0167:4
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/cnwbzp0167:4.log
[root@cnwbzp0167 ~]# ls -alt /tmp/.X3-lock
-r--r--r-- 1 root root 11 Jul 27 02:25 /tmp/.X3-lock
[root@cnwbzp0167 ~]# rm -rf /tmp/.X3-lock /tmp/.X2-lock /tmp/.X1-lock
[root@cnwbzp0167 ~]# ls -alt /tmp/.X3-lock
ls: cannot access /tmp/.X3-lock: No such file or directory
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1
Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually
[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
Warning: cnwbzp0167:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server cnwbzp0167:1
Warning: cnwbzp0167:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server cnwbzp0167:2
Warning: cnwbzp0167:3 is taken because of /tmp/.X11-unix/X3
Remove this file if there is no X server cnwbzp0167:3
New 'cnwbzp0167:5 (root)' desktop is cnwbzp0167:5
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/cnwbzp0167:5.log
[root@cnwbzp0167 ~]# rm -rf /tmp/.X11-unix/X1 /tmp/.X11-unix/X2 /tmp/.X11-unix/X3
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1
Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually
[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'cnwbzp0167:1 (root)' desktop is cnwbzp0167:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/cnwbzp0167:1.log
[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root 1804 0.1 0.4 115780 18892 pts/0 S 02:27 0:00 /usr/bin/Xvnc :4 -desktop cnwbzp0167:4 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5904 -fp catalogue:/etc/X11/fontpath.d -pn
root 1810 0.0 0.0 50156 1628 pts/0 S 02:27 0:00 vncconfig -iconic
root 1961 0.2 0.4 115780 18856 pts/0 S 02:28 0:00 /usr/bin/Xvnc :5 -desktop cnwbzp0167:5 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5905 -fp catalogue:/etc/X11/fontpath.d -pn
root 1968 0.0 0.0 50156 1632 pts/0 S 02:28 0:00 vncconfig -iconic
root 2111 0.5 0.4 115788 18848 pts/0 S 02:29 0:00 /usr/bin/Xvnc :1 -desktop cnwbzp0167:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root 2117 0.0 0.0 50156 1632 pts/0 S 02:29 0:00 vncconfig -iconic
root 2280 0.0 0.0 103252 868 pts/0 S+ 02:30 0:00 grep -i vnc
[root@cnwbzp0167 ~]#