I am using vnc on my Redhat 5.8 box. I used "service vncserver start" to
start vncserver at startup. But when I try to connect to "myhost:2"
using vncviewer on another machine, it failed.
When I type "ps -ef|grep vncserver", I couldn't see "vncserver" running
Error Detailed:-
[root@Sujeet ~]# service vncserver start
Starting VNC server: 2:root
Warning: sujeet.oracle.com:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server chintels.chintels.com:2
A VNC server is already running as :2
[FAILED]
Solution:-
remove below file.
/tmp/.X2-lock
[root@sujeet]# rm -rf /tmp/.X2-lock
[root@sujeet ~]# service vncserver start
Starting VNC server: 2:root
Warning: sujeet.oracle.com:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server sujeet.oracle.com:2
A VNC server is already running as :2
[FAILED]
Solution:-
remove below file.
/tmp/.X11-unix/X2
[root@sujeet ~]# rm -rf /tmp/.X11-unix/X2
[root@sujeet ~]# service vncserver start
Starting VNC server: 2:root
New 'sujeet.oracle.com:2 (root)' desktop is sujeet.oracle.com:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sujeet.oracle.com:2.log
[ OK ]
Issue Resolve try to connect with VNC tool
When I type "ps -ef|grep vncserver", I couldn't see "vncserver" running
Error Detailed:-
[root@Sujeet ~]# service vncserver start
Starting VNC server: 2:root
Warning: sujeet.oracle.com:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server chintels.chintels.com:2
A VNC server is already running as :2
[FAILED]
Solution:-
remove below file.
/tmp/.X2-lock
[root@sujeet]# rm -rf /tmp/.X2-lock
[root@sujeet ~]# service vncserver start
Starting VNC server: 2:root
Warning: sujeet.oracle.com:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server sujeet.oracle.com:2
A VNC server is already running as :2
[FAILED]
Solution:-
remove below file.
/tmp/.X11-unix/X2
[root@sujeet ~]# rm -rf /tmp/.X11-unix/X2
[root@sujeet ~]# service vncserver start
Starting VNC server: 2:root
New 'sujeet.oracle.com:2 (root)' desktop is sujeet.oracle.com:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sujeet.oracle.com:2.log
[ OK ]
Issue Resolve try to connect with VNC tool
No comments:
Post a Comment