How do I connect to another machine to run X applications?

There are many ways to connect to a remote machine. When going to a system outside of the Sun composer cluster, we suggest the xrsh script, which is a contributed program in the X11R5 distribution. To use this program, you must do some things on both strauss and the system to which you want to go.

  1. On straussyou should set the following environment variables to tell xrsh to use the xauth authorization protocol. These variables should be set in your .cshrc file.

       setenv XRSH_AUTH_TYPE xauth
       setenv XRSH_ENVS_TO_PASS 'XRSH_ENVS_TO_PASS XRSH_AUTH_TYPE'
    
  2. On the other system, you must add strauss to the .rhosts file and you must make sure the X applications xauth and xterm are in your search path. Use these commands in your home directory as a check:

    		
       %which xterm
       /usr/X/bin/xterm
       %which xauth
       /usr/X/bin/xauth
       % grep bach .rhosts
       bach.udel.edu yourStraussUsername
    
    The exact responses from these commands will vary from machine to machine, but you should get something reasonable back.

    Once these two steps are done, you can run the program xclient on the machine clienthost with:

       xrsh clienthost xclient

    University of Delaware
    June 19, 1994