While starting VNC session in Solaris 10 I am getting below error:
A VNC server is already running as :0
root 19790 15407 0 05:55:22 pts/3 0:00 grep -i vnc #
however there is no sessions running at :0. I am not very sure if somewhere we have to define :0 port or not.
For me, as suggested in the comments, the solution was to delete some temporary files from a previous run:
rm -f /tmp/.X0-lock
rm -f /tmp/.X11-unix/X0
After a lot of efforts I found removing .vnc folder(inside $Home) resolves the issue. .VNC folder is created every time you run the vncserver. This folder has a file that has a process Id of vnc to kill. In case the vncserver process hangs and doesn't even shows in ps -ef command, remove the .vnc folder, after that vncserver will be able to create new .vnc folder and kill the existing process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With