Loading...
Real Time Issues

Warning: localhost:1 is taken because of /tmp/.X11-unix/X1

Commonly we can get below type of  VNCServer errors

[root@webndschl ~]# vncserver  :1

Warning: webnoidschools.com:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server webnoidschools.com:1

[root@webndschl ~]# vncserver  :1

Warning: webnoidschools.com:1 is taken because of /tmp/.X11-unix/x1
Remove this file if there is no X server webnoidschools.com:1
A vncserver is already running as :1

Solution :

[root@webndschl ]# cd /tmp/.X11-unix/

[root@webndschl ]# ls
X0 X1 X2

[root@webndschl ]# rm -rf /tmp/.X1-lock

[root@webndschl ]# rm -rf /tmp/.X11-unix/X1

[root@webndschl ]# vncserver   :1

New ‘x’ desktop is webnoidschools:1

starting applications specified in /root/.vnc/xstartup
Log file is  /root/.vnc/Analogic:1.log

[root@webndschl ]# ps -ef | grep  vnc

you will see vnc server background process here

Leave a Reply

Your email address will not be published. Required fields are marked *