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 running the server, allow another user access.
Depending on which authorization protocol you use, follow the steps outlined in either "D.2.4.2 Allowing Access When Using MIT-MAGIC-COOKIE-1"or "D.2.4.3 Allowing Access When Using SUN-DES-1".
Set DISPLAY
to the name
of the host running the server.
For this example, the host is remotehost:
myhost% setenv DISPLAY remotehost:0 |
Run the client program as shown.
myhost% client_program& |