Running Clients Remotely, or Locally as Another User
X clients use the value of the
DISPLAY environment variable to get the name of the server to which they should connect.
To run clients remotely, or locally as another user, follow these steps:
On the machine that runs the server, allow another user access.
Depending on which authorization protocol you use, follow the steps outlined in either Allowing Access When Using MIT-MAGIC-COOKIE-1 or Allowing Access When Using SUN-DES-1.
DISPLAY to the name of the host that runs the server.
For this example, the host is remotehost:
myhost% setenv DISPLAY remotehost:0
Run the client program as shown.
The client is displayed on the remote machine, remotehost.