#! /bin/ksh # xprep, kludged by Mark Woodman, August 1, 1997 # This script tells the remote host to display output on local client. # # Note that the local client must be configured to accept display # input from the remote host. Use /usr/openwin/bin/xhost for this. # Ex: xhost +sun # adds sun to /etc/X0.hosts # xhost -sun # removes sun from /etc/X0.hosts # xhost + # allows any host to display locally. # # The last example may be the most convenient, but you open yourself # up to potential hackers from any machine on the network. Be warned. # Find the client IP # myIP=`who am i | cut -f2 -d'(' | cut -f1 -d ')'`":0" echo '+ Setting display to output to your client ('$myIP') ...' # Set the remote host to send back display data to local client DISPLAY=$myIP export DISPLAY # You can rem these lines out if you don't want to run the xterm # for starters. echo '+ Running X-term on your client ...' /usr/openwin/bin/xterm & # Done.