Can't get vnc to connect

Posted by Thom on Ask Ubuntu See other posts from Ask Ubuntu or by Thom
Published on 2012-04-09T17:41:19Z Indexed on 2012/04/10 11:42 UTC
Read the original article Hit count: 287

Filed under:

I have a server and my laptop. I want to be able to start vnc server on the server and then connect from my laptop. Both are running ubuntu 11.10 64 bit desktop

On my server, i installed x11vnc. I set it up with a password, no view only password. I ssh to the box and typed

vncserver :42

Now on my laptop, I installed gtkvncviewer and ran it. It popped up a box. I entered the picard:42 (the name of the server in my /etc/hosts file) and the password. I tried with and without the user. It always disconnects immediately.

Can anyone point out what I'm doing wrong? Is it because I'm not running a GUI session currently on picard? If so, how can I start the Xwindows session remotely to connect with vncserver?

© Ask Ubuntu or respective owner

Related posts about vnc