Solaris X Window System Developer's Guide

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:

  1. On the machine running 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.

  2. Set DISPLAY to the name of the host running the server.

    For this example, the host is remotehost.

    myhost%setenv DISPLAYremotehost:0
  3. Run the client program.

    The client is displayed on the remote machine, remotehost.