Enabling Remote Desktop (vino) on Ubuntu and Reset its Password over SSH

2010-05-12

In a previous post I described how to enable Screen Sharing on a Mac via ssh, today I will sum up the necessary steps to accomplish the same on a Linux running the vino VNC server, Ubuntu 10.04 LTS in my case.

Starting the VNC server

If you have to adjust the configuration options edit the following file: $HOME/.gconf/desktop/gnome/remote_access/%gconf.xml To start vino with the present configuration use the following command: gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

Resetting the password

If the VNC server is already running, stop it: gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false Then set your new password: gconftool-2 --type string --set /desktop/gnome/remote_access/vnc_password $(echo -n 'mypassword'|base64) Start vino again: gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

Tips

  • I experienced problems setting a password with several special chars in it, so I ended up using a simple alphanumeric string.
  • Also don't forget that it isn't a good idea to connect to VNC over the Internet. Consider tunneling the connection with ssh or take other security measures.

Post to Twitter