Solaris Advanced User'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 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.

  2. Set DISPLAY to the name of the host that runs the server.

    For this example, the host is remotehost:


    myhost% setenv DISPLAY remotehost:0
    
  3. Run the client program as shown.


    myhost% client_program&
    

    The client is displayed on the remote machine, remotehost.