How can one run a program installed in one machine from another machine?

13,514

Solution 1

Yes it is possible, but there are multiple steps involved:

  1. You must be able to reach your home computer running Linux from the internet. This means opening up port 22 (ssh) or your router at home, or a higher port if your provider blocks incoming access on ports below 1024. Then install openssh-server (and make it listen on any non-default port). You also need to know the routers IP address at home. Some routers have some functionality to update a dynamic name service. If that is not available your home computer can do that, or in the worst case send an email on a regular basis to your work address (you should be able to pull the IP address of the router from the headers of an email).

  2. Your work computer needs to be setpu with PuTTY and an X extension. PuTTY makes the secure connection, the X entension is necessary to view the remote programs that are not commandline based. You can use Xming for that. It might be that you can just run the LaTeX commands without X, depending on which editor/environment you normally use.

  3. PuTTY also allows you to copy files from your machine at home to your local machine.

Solution 2

If you can install software on your work computer, then you could install win-sshfs and a ssh client such as PuTTY on your Windows machine.

You can then ssh into the remote Ubuntu server to run LaTex and create your files, after which you could use win-sshfs to access those files from the Windows machine.

This way, you'd only need the one ssh port open on your remote Ubuntu server and one port-forward on your router.

Solution 3

You can run a program from your home computer over SSH. The application will still run on the computer at home but be streamed over the internet. This can be done via X forwarding.

An X forwarding tutorial can be found at the following 2 URL's;

https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding

https://www.linode.com/docs/applications/remote-desktop/running-graphic-software-on-your-linode-with-xforwarding-on-ubuntu-12-04

Solution 4

A simple workaround would be to use dropbox, or any type of software that lets you sync between linux and windows (also see Unison and BitTorrent Sync). If you have dropbox running in both computers, then your work folder will be synchronized almost instantly. This way you can have the updated pdf in a few seconds after compiling.

Solution 5

Use software like teamviewer to remotely access your Ubuntu machine. http://www.teamviewer.com/en/index.aspx

Share:
13,514

Related videos on Youtube

Andyc
Author by

Andyc

Updated on September 18, 2022

Comments

  • Andyc
    Andyc almost 2 years

    Is it possible to have, say, one machine with software installed and call that software from another machine? I thought this would be called an "application server" but by googling I find things that are not exactly what I want. My scenario is basically the following:

    I have a computer at home with Ubuntu and a bunch of programs, under which one Latex distribution. This is setup as a server, with ssh-access, apache and the like. From my work computer, running Windows, I would like to use my Latex at home instead of installing it locally. But I would like it to store the files, in particular the generated PDF, in the Work computer (this is actually not extremely important: I can always copy the files later, but it would just save some time if it worked).

    What are the possible ways to do that?

  • Mark Williams
    Mark Williams over 9 years
    This also allows you to transfer the files after edits; not, AFAIK, real-time, but it should do the job. It does save the aggro of maintaining IP addresses, as both machines log into the server.
  • Jerb
    Jerb over 9 years
    This doesn't achieve Andyc's goal of having the files stored on the work computer though.
  • Lightness Races in Orbit
    Lightness Races in Orbit over 9 years
    The reputation limit is there to encourage you to watch and learn before commenting, so that you have time to learn how the site works before jumping in. That requirement is evident here, as it is also evident that the reputation limit was not put in place so that you can just find some other non-comment way of posting a comment.
  • Gilles 'SO- stop being evil'
    Gilles 'SO- stop being evil' over 9 years
    What's the point of rexec recommending over ssh? rexec isn't readily available this century, and is insecure except on trusted networks. Anyway, it doesn't fulfill the requirement of allowing the remote program to work with local files.
  • Gilles 'SO- stop being evil'
    Gilles 'SO- stop being evil' over 9 years
    This is more complex than needed to run programs on the remote machine — just use SSH. And neither method allows the remote programs to work with local files.
  • geo909
    geo909 over 9 years
    Yes, you are right. I think I will remove the line about this meant to be a comment; I think the dropbox solution would be good and simple enough for many people, so it deserves to be more than a comment.