how to start VNC server from remote command line

Asked by Gordon Tytler

After restarting the remote Ubuntu computer I can no longer remote desktop to it from vinagre.
I have an ssh connection. What command can I use to start the VNC server via ssh and how can I make it start automatically when the remote computer is rebooted.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu vinagre Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

run

vncserver

I had to look at the log file that it suggested, and noted that ~/.Xresources was missing, so I created a blank one with

touch ~/.Xresources

then you should be able to connect with

hostname:port

using vinagre.

Note that vnc sessions are not well protected (e.g. limited password length), so you may want to ensure that it is not visible to the public internets.

I'm not sure about enabling it "on startup" -- to me that is conceptually difficult because you need to create a user's x session to run the VNC server.

Others may be able to help you here, or you can add a check to your SSH login to see if vncserver is running.

Can you help with this problem?

Provide an answer of your own, or ask Gordon Tytler for more information if necessary.

To post a message you must log in.