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

Thread: SSH + Display question

  1. #1
    Join Date
    Aug 2008
    Beans
    406

    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
    406

    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
    406

    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
    406

    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?

  8. #8
    Join Date
    Aug 2008
    Beans
    406

    Re: SSH + Display question

    Hey

    Thanks for the reply.

    It's getting closer to what I need. I tried what you suggested, but the media I try running appears on my local machine. If I launch a movie with command line, totem appears on my Windows laptop playing the movie, on the desktop PC, theres audio only and no sign of totem.

    In a perfect world, I dont want anything coming up on the Windows laptop, and for it to launch on the desktop. AKA, this will act as a remote control for media on my desktop PC

    Thanks

    Tom

  9. #9
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,771
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: SSH + Display question

    Quote Originally Posted by Colo2 View Post
    Hey

    Thanks for the reply.

    It's getting closer to what I need. I tried what you suggested, but the media I try running appears on my local machine. If I launch a movie with command line, totem appears on my Windows laptop playing the movie, on the desktop PC, theres audio only and no sign of totem.

    In a perfect world, I dont want anything coming up on the Windows laptop, and for it to launch on the desktop. AKA, this will act as a remote control for media on my desktop PC

    Thanks

    Tom
    Then you need to not be using X Forwarding over SSH. The reason this is happening is X Forwarding runs the application locally.

    Meaning if I run firefox over SSH X Forwarding then it's running on my local machine. If that makes sense.

  10. #10
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: SSH + Display question

    How about a vnc client that connects to vnc server you can close the vnc viewer when what ever you want to run then open vnc viewer
    DUAL BOOT XP & Natty, Trying LFS

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
  •