![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
HOWTO: Enable and control the gnome VNC vino-server from the command line
CAVEAT: A user must already be logged into the desktop on the target machine for this to work
Here is a cool trick for remotely enabling the gnome vino VNC server (assuming that it's already been installed and configured) on a box that you only have SSH access to. Log into the target system using SSH, and run the following command: Code:
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true /home/<userhomedir>/.gconf/desktop/gnome/remote_access/%gconf.xml Let's say you want to disable the "Ask you for confirmation" setting, or change the password. Easiest way to do it: 1) On your own Ubuntu box; Go to System => Preferences => Remote Desktop. and configure the Remote Desktop Preferences to your liking, then click close. 2) Navigate to ~/.gconf/desktop/gnome/remote_access/ in your home directory, open up the %gconf.xml file, and copy the contents. 3) Establish an SSH connection to the remote box, change directory to /home/<userhomedir>/.gconf/desktop/gnome/remote_access/ directory, and backup the existing %gconf.xml file. Code:
mv %gconf.xml %gconf.xml.bak Code:
vi %gconf.xml 5) Stop and start the vino server from the command line Code:
gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true Code:
vncviewer -via username@somehost.com targetboxhostname:0 Last edited by srf21c; November 9th, 2006 at 12:39 PM.. Reason: add "enable" to title for better search visibility |
|
|
|
|
|
#2 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
Very interesting. Although I am in the same situation I cannot really use your guide, since I am using Putty from Windows... Can you maybe add some comments on how to achieve the same stuff in my situation? In case you know of course...
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Control the gnome VNC vino-server from the command line
You are perfectable capable of setting each value in the /home/<userhomedir>/.gconf/desktop/gnome/remote_access/%gconf.xml file manually using the gconftool-2 command.
I was unable to dig up any documentation on proper syntax of the %gconf.xml file so I did not feel qualified on delving into this method in more detail on my original post. If you examine an existing %gconf.xml file, and compare that to the gconftool-2 command syntax that I have already posted, you should be able to figure out how to set the other parameters. |
|
|
|
|
|
#4 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
I have come so far that the vino server asks me for a password. A password that I cannot remember at all.
The problem is that I cannot change it via CLI. It is not written in plain text in ~/.gconf/desktop/gnome/remote_access/%gconf.xml, so changing it to "qwerty" in the file doesn't help. Also, the command: Code:
gconftool-2 -s -t string /desktop/gnome/remote_access/vnc_password qwerty Do you or someone else now in what hash-type the vino passwords are written in?
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#5 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Mar 2006
Location: Stockholm, Sweden
Beans: 683
Ubuntu Studio Karmic Koala (testing)
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
I started a new thread on the matter (generating the password): http://ubuntuforums.org/showthread.php?p=1592817
__________________
Guides: Jamming and Music production launcher | PPA enabling system-wide JACK support | On the-fly Multiseat Interested in: MPX for Ubuntu | Ubuntu Cluster |
|
|
|
|
|
#6 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Control the gnome VNC vino-server from the command line
Don't know what the vino server hash-type is, but here's the string I get after setting the vino password to "qwerty"
<entry name="vnc_password" mtime="1160442984" type="string"> <stringvalue>cXdlcnR5</stringvalue> </entry> Last edited by srf21c; October 11th, 2006 at 02:53 AM.. |
|
|
|
|
|
#7 |
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
Have you tried an htpasswd hash in there?
|
|
|
|
|
|
#8 |
|
Quad Shot of Ubuntu
![]() Join Date: Jun 2006
Beans: 481
Edubuntu 6.10 Edgy
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
To open the "Login Window" preferences, you have to type into the terminal after opening your ssh -Y connection:
Code:
sudo gdmsetup Code:
sudo vino-preferences |
|
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() Join Date: Jun 2006
Beans: 481
Edubuntu 6.10 Edgy
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
Do you have an X server running on your local machine? If so, try to connect through sh with the following command:
Code:
ssh -Y loginname@remotecomputerip Particularly, you should be able to start the synaptic Package Manager and reinstall vino. Afterwards, you should start "vino-preferences" from the shell which should display the gui of the preferences on your local machine. There you should be able to enable vino (=vnc server of the remote machine) Have a nice day. |
|
|
|
|
|
#10 | |
|
A Carafe of Ubuntu
![]() Join Date: Jul 2005
Beans: 107
|
Re: HOWTO: Control the gnome VNC vino-server from the command line
I my windows' putty I typed the command by I get
ssh: connect to host localhost port 22: Connection refused Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|