Results 1 to 10 of 14

Thread: SSH + Display question

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Beans
    412

    SSH + Display question

    Hey

    I have a desktop PC running Ubuntu with Gnome GUI, and a windows laptop.

    I want to be able to connect to the desktop with SSH, and command GUI applications to launch.

    Example, from PuTTy, running the command: "firefox".

    Thing is, SSH wont let me run applications needing an X environment, or something?

    My question, is there a way to run SSH commands to start up GUI applications? maybe by specifiying a display or something?

    Thanks

    Tom

  2. #2
    Join Date
    Apr 2008
    Beans
    451
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: SSH + Display question

    connect to your ssh server with X forwarding

    from the man page:
    Code:
     -X      Enables X11 forwarding.  This can also be specified on a per-host basis in a configuration file.

  3. #3
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    Hey

    Thanks for the reply.

    Error: cannot open display: localhost:10.0
    I'm using plink.exe, AKA, 1 time command execution:

    "C:\plink.exe" USER@HOST -X -pw PASSWORD COMMAND
    Thanks

    Tom

  4. #4
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    No ideas?

  5. #5
    Join Date
    Dec 2009
    Beans
    319
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSH + Display question

    http://tldp.org/HOWTO/XDMCP-HOWTO/ssh.html

    don't know if this link is what you are looking for.

  6. #6
    Join Date
    Aug 2008
    Beans
    412

    Re: SSH + Display question

    Hey

    I dont have an Xconfig file, or an /etc/X11/xorg.conf file

    Confused.. :S

    Tom

  7. #7
    Join Date
    Oct 2011
    Beans
    80

    Re: SSH + Display question

    You could install something like xming and putty, enable X11 forwarding in Putty. And then to make commands start automatically upon login, like firefox, you could add the following like to your ~/.bash_profile

    /usr/bin/firefox

    --
    Know Your Linux?

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
  •