I have a Raspberry Pi with Raspbian OS. After install VNC I've tried to start the server and return this:
~ $ vncserver :0
Warning: raspberrypi:0 is taken because of /tmp/.X0-lock
Remove this file if there is no X server raspberrypi:0
A VNC server is already running as :0
If I remove that temp file, return this:
~ $ vncserver :0
Warning: raspberrypi:0 is taken because of /tmp/.X11-unix/X0
Remove this file if there is no X server raspberrypi:0
A VNC server is already running as :0
If I remove again, the server start, but a plain grey screen is shown trough VNC client. In short, after:
~ $ sudo rm /tmp/.X11-unix/X0
~ $ sudo rm /tmp/.X0-lock
~ $ vncserver :0
New 'X' desktop is raspberrypi:0
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:0.log
I can see this in the RealVNC client (screen capture):
I have no idea what happens.
Finally, I've dicovered that I can run VNC in port :1
vncserver :1
then, I must connect VNC viewer at
myIP:1
It works.