Page 6 of 6 FirstFirst ... 456
Results 51 to 59 of 59

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

  1. #51
    Join Date
    Sep 2008
    Beans
    117

    Smile Re: HOWTO: Enable and control the gnome VNC vino-server from the command line

    Quote Originally Posted by laciba View Post
    Another simple workaround that did the trick for me,
    in case you unfortunately logged out or rebooted the remote
    machine and no automatic login was set previously.
    (and if you even want to use vino-server as vnc server after this annoying fact)

    The method requires only common sense

    1.ssh <remote IP> (without -X)
    2.sudo -s
    3.apt-get install x11vnc (if not yet installed)
    4.x11vnc -rfbport 5901 (or use any port not configured for vino-server)
    (you may also have to configure a new tunnel for 5901 port if you played the secure way)
    5. now you can reach logon screen with any vncviewer connecting to the 5901 port
    6. logon to the remote machine and after that close vncviewer (this also halts the x11vnc server)
    7. reconnect to the original vino-server on the original 5900 port.
    sudo x11vnc -rfbport 5901 works very well thank you

  2. #52
    Join Date
    Dec 2009
    Location
    France
    Beans
    134

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

    Quote Originally Posted by srf21c View Post
    NOTE: At long last here's the updated method...
    root@remotebox:~# xhost +
    Glad to find someone dug this problem and shares
    Although, now I've set my ssh stuff along with the recommended burden of keys authentication, when I issue the xhost + command
    I get this and can't go further
    Code:
    root@pc:~# xhost +
    No protocol specified
    No protocol specified
    xhost:  unable to open display ":0.0"
    Please what is going wrong? I am using LTS12.04.2 with gnome-panel on both computers.
    Thank you
    For ever newb: As many beans as you want (do not abuse, heavy farts generator), 2 Winstons boxes a day

  3. #53
    Join Date
    Feb 2005
    Beans
    425

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

    Quote Originally Posted by Byb View Post
    Glad to find someone dug this problem and shares
    Although, now I've set my ssh stuff along with the recommended burden of keys authentication, when I issue the xhost + command
    I get this and can't go further
    Code:
    root@pc:~# xhost +
    No protocol specified
    No protocol specified
    xhost:  unable to open display ":0.0"
    Please what is going wrong? I am using LTS12.04.2 with gnome-panel on both computers.
    Thank you
    FAIL: logged in as root
    FAIL: running xhost +
    Possible fail: did not read through the thread

    I think I posted correct instructions earlier in this thread.

    Tormod
    Please use launchpad to search for/report bugs and problems: https://help.ubuntu.com/community/ReportingBugs

  4. #54
    Join Date
    Oct 2006
    Beans
    69

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

    Your solution does not work in 12.04

    cat /proc/`pgrep nautilus`/environ

    does not return any DBUS
    Last edited by radiobuzzer; May 23rd, 2013 at 10:20 PM.

  5. #55
    Join Date
    Feb 2005
    Beans
    425

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

    Quote Originally Posted by radiobuzzer View Post
    Your solution does not work in 12.04

    cat /proc/`pgrep nautilus`/environ

    does not return any DBUS
    There is no nautilus process in a 12.04 unity session. Use some other process, say, unity.
    Please use launchpad to search for/report bugs and problems: https://help.ubuntu.com/community/ReportingBugs

  6. #56
    Join Date
    Oct 2006
    Beans
    69

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

    So, I couldn't found unity, as I haven't logged in there yet. So I tried with unity-greeter:

    Code:
    $ sudo cat /proc/`pgrep unity-greeter`/environ | tr '\0' '\n' | grep DBUS
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wyRkJe0STA,guid=823c604472e72cb51caf5b090000004b
    $ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wyRkJe0STA,guid=823c604472e72cb51caf5b090000004b vino-preferences 
    Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
    (vino-preferences:10156): Gtk-WARNING **: cannot open display: :0.0
    $ #also as sudo
    $ sudo DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wyRkJe0STA,guid=823c604472e72cb51caf5b090000004b vino-preferences 
    Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
    (vino-preferences:10158): Gtk-WARNING **: cannot open display: :0.0
    As you see I am getting an error cannot open display

  7. #57
    Join Date
    Feb 2005
    Beans
    425

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

    Quote Originally Posted by radiobuzzer View Post
    So, I couldn't found unity, as I haven't logged in there yet. So I tried with unity-greeter:

    As you see I am getting an error cannot open display
    My instructions were for connecting to an already running session. If you don't have a session running, you may as well just use ssh -X and launch any applications remotely as you can see earlier in this thread. Or use autologin which also has been discussed earlier in this thread. Or try laciba's solution.
    Please use launchpad to search for/report bugs and problems: https://help.ubuntu.com/community/ReportingBugs

  8. #58
    Join Date
    Oct 2006
    Beans
    69

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

    Quote Originally Posted by tormod View Post
    My instructions were for connecting to an already running session. If you don't have a session running, you may as well just use ssh -X and launch any applications remotely as you can see earlier in this thread. Or use autologin which also has been discussed earlier in this thread. Or try laciba's solution.
    I would appreciate a solution to start a session only when I want to. This used to happen with the other solution, which is not working any more (I could also see the unity greeter). If there is a session already running, vino/vnc server is also there, so I don't see the reason to use your solution

  9. #59
    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

Page 6 of 6 FirstFirst ... 456

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
  •