Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Run graphical application on remoter computer

  • 17-10-2007 03:33PM
    #1
    Registered Users, Registered Users 2 Posts: 590 ✭✭✭


    Hi,

    I'm trying to write a bash script at the moment which will ssh into another machine and start a graphical application on it. The remote machine has a Xvnc session running on it and I would like to start the application so that it shows up in that Xvnc window.

    This is what I have at the moment but since the machine the script is running from has no X server running the application is not started,
    ssh user@remotemachine "mozilla"
    
    Is what I'm trying to do even possible?

    Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    I don't think I am following you.

    Are you trying to connect from A to B, running the application that is stored on B? And then displaying it elsewhere? If that is the case then the syntax will be <appname> -display <computer name where it is to be displayed>:0

    I don't get the Xvnc bit. :confused:


  • Registered Users, Registered Users 2 Posts: 590 ✭✭✭bman


    Thanks. I wasn't exactly sure how to phrase the problem but the display option was what I needed. Works fine now.

    Cheers Tom.


  • Registered Users, Registered Users 2 Posts: 2,780 ✭✭✭niallb


    If X11Forwarding is set to yes on the server in /etc/ssh/sshd.conf,
    you can run ssh -X user@remotemachine "mozilla"
    On a slow link to a fast machine, you may get better response with ssh -XC

    ssh takes care of setting up a secure tunnel, and sets the DISPLAY variable for you.
    -XC uses a compressed secure tunnel.


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    To start Firefox, you may need the -no-remote option:
    http://ubuntuforums.org/archive/index.php/t-477493.html


Advertisement