How can I start a GUI application through SSH

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default How can I start a GUI application through SSH

    Hello,
    I would like to be able to start an X application through ssh. I want the
    app to actually run on my local box (meaning I want the window to pop up
    on the box that I am ssh-ing to), but I just want to be able to start it
    remotely. Can someone help me figure out how to do this?

    Thanks

    /Brian
    Brian John Guest

  2. Similar Questions and Discussions

    1. Cant start CF application server [mx7]
      I was updating jdbc connection information, had the mx services shut down, an when I tried to restart application server would not restart, the...
    2. Can't start asp.net web application
      When I try, the name is greyed out. If I click OK, I get the following error message: Visual Studio Net has detected that the specified web...
    3. Trying to start an application
      Hi, I've upgraded to .NET 2003 and I opened an .NET 2002 app and let the new IDE convert it to .NET 2003 project. Then I tried to start the...
    4. problem when i try to start a ASP.NET application
      hai !! i have recently installed vs.net on my computer (xp pro operating system). when i tried to create web pages using asp.net it worked fine....
    5. start application during flash
      Hi there, is it possible to start an external application during a swf-file? Background: I want to create an desktop with flash, where it's posible...
  3. #2

    Default Re: How can I start a GUI application through SSH

    On February 21, 2005 03:25 pm, Brian John wrote:
    > Hello,
    > I would like to be able to start an X application through ssh. I want the
    > app to actually run on my local box (meaning I want the window to pop up
    > on the box that I am ssh-ing to), but I just want to be able to start it
    > remotely. Can someone help me figure out how to do this?
    For the purpose of this discussion, the 'server' is the remote system the one
    you are ssh-ing to. The 'client' is the one you are ssh-ing from.

    1) Before you leave, go to the server and logon at the console so that you
    have X running. Make a note of the 'DISPLAY' variable setting. Probably
    ":0.0".
    $ echo $DISPLAY
    :0.0
    Do NOT log out.

    2) Use SSH to connect to the server as the same user that logged on.

    3) Set the DISPLAY variable to the one indicated in step 1.
    $ export DISPLAY=:0.0

    4) Run the command you want (with nohup and in the background.
    $ nohup xterm -sb &

    That will run the command so that output is displayed on the server console
    and let you log out of your ssh session.

    If you want to learn more, you should read up on the xauth command. Also, try
    to understand X toolkit basics.

    Why do you want to do this anyway?

    --
    Ean Kingston

    E-Mail: ean AT hedron DOT org
    URL: [url]http://www.hedron.org/[/url]
    Ean Kingston Guest

  4. #3

    Default Re: How can I start a GUI application through SSH





    ----- Original Message -----
    > On February 21, 2005 03:25 pm, Brian John wrote:
    >> Hello,
    >> I would like to be able to start an X application through ssh. I want
    >> the
    >> app to actually run on my local box (meaning I want the window to pop up
    >> on the box that I am ssh-ing to), but I just want to be able to start it
    >> remotely. Can someone help me figure out how to do this?
    >
    > For the purpose of this discussion, the 'server' is the remote system the
    > one
    > you are ssh-ing to. The 'client' is the one you are ssh-ing from.
    >
    > 1) Before you leave, go to the server and logon at the console so that you
    > have X running. Make a note of the 'DISPLAY' variable setting. Probably
    > ":0.0".
    > $ echo $DISPLAY
    > :0.0
    > Do NOT log out.
    >
    > 2) Use SSH to connect to the server as the same user that logged on.
    >
    > 3) Set the DISPLAY variable to the one indicated in step 1.
    > $ export DISPLAY=:0.0
    >
    > 4) Run the command you want (with nohup and in the background.
    > $ nohup xterm -sb &
    >
    > That will run the command so that output is displayed on the server
    > console
    > and let you log out of your ssh session.
    >
    > If you want to learn more, you should read up on the xauth command. Also,
    > try
    > to understand X toolkit basics.
    >
    > Why do you want to do this anyway?
    >
    The reason that I want to do this is because I have a GUI app that
    basically just sits and runs and doesn't need any interaction that I want
    to be able to start and stop remotely. I'm trying to test some different
    command line options with it to see if it will run. Basically as long as
    it keeps running I am ok.

    Thanks for the help

    /Brian
    > --
    > Ean Kingston
    >
    > E-Mail: ean AT hedron DOT org
    > URL: [url]http://www.hedron.org/[/url]
    >
    >
    Brian John Guest

  5. #4

    Default Re: How can I start a GUI application through SSH

    I usually do this by leaving a terminal window in X open. call it P0.
    then I run watch

    watch -oW p0

    and run the app I want to pop up. I can;t control the app, but it
    executes on the desktop. not terribly handy, but it would have some
    applications I guess.


    -------------------------

    I would like to be able to start an X application through ssh. I want the
    app to actually run on my local box (meaning I want the window to pop up
    on the box that I am ssh-ing to), but I just want to be able to start it
    remotely. Can someone help me figure out how to do this?
    Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139