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

Thread: Can you open a program from a remote machine on yours?

  1. #1
    Join Date
    May 2009
    Location
    New York
    Beans
    109
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Can you open a program from a remote machine on yours?

    For example, can I ssh into my other machine and run an instance of gedit/firefox/whatever and see it on this machine?

  2. #2
    Join Date
    Aug 2006
    Beans
    282

    Re: Can you open a program from a remote machine on yours?

    The easy way is to install a VNC server on the remote machine, then install a VNC client on your local machine.

    The hard way (if both machines run X Window System) is to set the permissions on the local machine to allow X connections from the remote machine, then ssh to the remote machine and set your DISPLAY environment variable to (name of local machine):0.0, then run X programs from the command line.

  3. #3
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: Can you open a program from a remote machine on yours?

    Quote Originally Posted by The Switch Blade View Post
    For example, can I ssh into my other machine and run an instance of gedit/firefox/whatever and see it on this machine?
    Yup, you only need to do ssh -XC ip_of_server then you can launch firefox or something else (if you have X running in that server obviously)

    I run Kb3, firefox, VirtualBox and a few other stuff


    As for using a VNC server you can install vnc4server a little setting and you are on your way. As for a VNC client Gnome has one already installed check Apps > Internet > Terminal Server client

    You can use it for vnc protocol and for vrdp (for when using Virtual PCs)

    Have fun!
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

  4. #4
    Join Date
    Mar 2009
    Location
    Buenos Aires, AR
    Beans
    2,325
    Distro
    Ubuntu

    Re: Can you open a program from a remote machine on yours?

    Try this in your machine:

    ssh -X $USER@127.0.0.1 nautilus

    in example is a loopback on yourself to run nautilus...

  5. #5
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Can you open a program from a remote machine on yours?

    Quote Originally Posted by scrooge_74 View Post
    Yup, you only need to do ssh -XC ip_of_server then you can launch firefox or something else (if you have X running in that server obviously)
    As a heads-up, you don't necessarily need the -C option.
    -C Requests compression of all data (including stdin, stdout,
    stderr, and data for forwarded X11 and TCP connections). The
    compression algorithm is the same used by gzip(1), and the
    “level” can be controlled by the CompressionLevel option for pro‐
    tocol version 1. Compression is desirable on modem lines and
    other slow connections, but will only slow down things on fast
    networks. The default value can be set on a host-by-host basis
    in the configuration files; see the Compression option.
    Last edited by CatKiller; September 16th, 2009 at 04:33 AM.
    None but ourselves can free our minds

  6. #6
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: Can you open a program from a remote machine on yours?

    Quote Originally Posted by CatKiller View Post
    As a heads-up, you don't necessarily need the -C option.
    -C option good if using stuff over wifi or over long distance into a slow network compressing data never killed anyone
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

  7. #7
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Can you open a program from a remote machine on yours?

    Quote Originally Posted by scrooge_74 View Post
    -C option good if using stuff over wifi or over long distance into a slow network compressing data never killed anyone
    Of course. That was my point. Where your bandwidth is limited, it makes sense to use compression. When your bandwidth isn't limited - over a local network, say - the compression/decompression steps just slows the transfer.
    None but ourselves can free our minds

  8. #8
    Join Date
    Mar 2006
    Location
    /dev/null
    Beans
    2,684

    Re: Can you open a program from a remote machine on yours?

    Yup I tried not using the -C but if I try to run virtual machines over wifi from server is better to use it
    First they ignore you.Then they laugh at you. Then they fight you.Then you win.Gandhi
    Linux para las masas
    Resistance Is Futile. You Will Be Assimilated!

  9. #9
    Join Date
    Aug 2007
    Beans
    876
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Can you open a program from a remote machine on yours?

    Actually, I'm running X forwarding plenty. And I can say that it's very easy for me to max out our 100 Mbit network even in apps not considered to be graphics intensive without the -C flag. Some repeated scrolling up and down in an editor maxes it out for me. With graphics intensive apps, it can sit there for minutes to transfer the data as well.

  10. #10
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can you open a program from a remote machine on yours?

    Quote Originally Posted by scrooge_74 View Post
    Yup I tried not using the -C but if I try to run virtual machines over wifi from server is better to use it
    I'll keep that in mind, I never knew of the -C option.

    How does -XC differ from -Y? Apparently -Y works better than just -X.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

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
  •