To use the following procedure to run a remote application, you must meet these requirements.
You must have access rights to the remote machine.
Your home directory must be NFS-mountable on the remote machine.
The application and appropriate libraries must be installed on the remote machine.
Contact your system administrator if you do not understand these requirements.
To run a networked application on a remote machine, set your environment variables with the following values.
Set the DISPLAY
environment variable in your shell on the remote machine to your local screen.
Enable the remote machine to display the application program on your local machine. To enable this display access on the local machine, use the xhost command:
$ xhost +remote_machine_name |
The following procedure describes how to run an application on a remote machine with the rlogin command.
Use the xhost command on the local machine to give the remote machine display access.
starbug$ xhost + venus |
Log in to the remote machine.
starbug$ rlogin venus -l user2 Password: Last login: Wed Nov 1 16:06:21 from starbug Sun Microsystems Inc. SunOS 5.9 Generic February 2002 |
Set the DISPLAY
variable to the local machine.
venus$ DISPLAY=starbug:0.0 |
Export the DISPLAY
variable to the local machine.
venus$ export DISPLAY |
Run the application.
venus$ bigprogram & |
Even though you interact with this application just as you would with any other application on your screen, the application runs on the remote machine.
The benefit from running an application in this way is that it uses fewer computing resources than an application that is installed on your machine. This example shows how to run any remote application to which you have access.