Page 1 of 2 12 LastLast
Results 1 to 10 of 59

Thread: HOWTO: Control the gnome VNC vino-server from the command line

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    Southwestern US
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    HOWTO: Enable and control the gnome VNC vino-server from an SSH connection

    NOTE: At long last here's the updated method. This was tested between two Ubuntu 10.10 Maverick hosts. Thanks to all the contributors to this thread, especially the posts by frafu and InkyDinky

    user@localbox:~$ ssh -Y user@remotebox
    user@remotebox:~$ vino-preferences

    # check settings and hit close button
    user@remotebox:~$ sudo -s
    root@remotebox:~# export DISPLAY=:0.0
    root@remotebox:~# xhost +
    root@remotebox:~# /usr/lib/vino/vino-server &
    # to start the vino server
    root@remotebox:~# netstat -nl | grep 5900
    # check to make sure vino server is listening on port 5900
    exit or CTRL-D twice to close SSH session to remotebox

    user@localbox:~$ ssh -L 5900:localhost:5900 user@remotebox
    # establish a new SSH connection to remotebox w/forwarded VNC port
    # launch Remote Desktop Viewer (vinagre) under Applications => Internet and connect to localhost
    Attached Images Attached Images
    Last edited by srf21c; February 20th, 2011 at 02:54 AM. Reason: update root prompt character

  2. #2
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    692
    Distro
    Ubuntu Development Release

    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...

  3. #3
    Join Date
    Sep 2006
    Location
    Southwestern US
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    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. #4
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    692
    Distro
    Ubuntu Development Release

    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
    Just does the same thing as changing the file manually - ie doesn't help.

    Do you or someone else now in what hash-type the vino passwords are written in?

  5. #5
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    692
    Distro
    Ubuntu Development Release

    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

  6. #6
    Join Date
    Sep 2006
    Location
    Southwestern US
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    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 07:53 AM.

  7. #7
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Control the gnome VNC vino-server from the command line

    Have you tried an htpasswd hash in there?
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  8. #8
    Join Date
    Feb 2014
    Beans
    1

    Re: HOWTO: Control the gnome VNC vino-server from the command line

    Quote Originally Posted by motin View Post
    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...

    use xming with putty

  9. #9
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    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
    To open the "Remote Desktop" preferences, you have to type into the terminal:

    Code:
    sudo vino-preferences
    But, the changes made in the forwarded preferences seem not to be effective in the session created by the auto-login at startup.

  10. #10
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    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
    Because of the -Y option, the gui of the application started on your remote computer should be displayed on your local machine if there is a X server running on your local machine.

    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.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •