On the local computer (feynman in our example) type the xhost command, e.g.,
feynman> xhost simpson.colorado.eduThen, after logging on (ssh) to simpson, be sure that the environmental variable DISPLAY is set correctly, e.g.,
simpson> setenv DISPLAY feynman.colorado.edu:0 simpson> xclockIn ksh or bash don't use the setenv command; instead, export DISPLAY=feynmen.colorado.edu:0
Using the example above, but using xauth instead of xhost, you must first find the magic cookie for your local display and save it to a file, using this command:
feynman> xauth extract cookie.dat feynman.colorado.edu:0(If the command fails, try the command xauth list to see which cookies are available.) Copy the resulting file, cookie.dat, to the remote computer and then add it to the remote .Xauthorization file using another xauth command:
feynman> scp ./cookie.dat simpson: feynman> rm ./cookie.dat feynman> ssh simpson ... simpson> xauth merge cookie.dat simpson> rm cookie.datFrom then on, all you have to do is to log on to the remote computer and set DISPLAY.
feynman> ssh simpson ... simpson> setenv DISPLAY feynman.colorado.edu:0 simpson> xclock