Our thanks to Cliff and Ollie for this one:
In GO-Global for UNIX version 2.1 and later, you can put this file in your
${GOGLOBAL_ROOT}/etc/startxgo.d/ directory (create the directory if it doesn't exist):
| Code: |
#!/bin/sh
SERVER=`uname -n`
DISPLAY=${SERVER}:${MyDisplay}
UNIXDISPLAY=${SERVER}/unix:${MyDisplay}
randomkey=`perl -e 'for (1..4) { \
srand(time+$$+$seed); \
printf("%4.5x", ($seed = int(rand(65536)))); } \
print "\n";'`
echo "Generating xauth key for $DISPLAY"
$GOGLOBAL_ROOT/bin/xauth add $DISPLAY . $randomkey
$GOGLOBAL_ROOT/bin/xauth add $UNIXDISPLAY . $randomkey
serveropts="${serveropts} -auth $HOME/.Xauthority"
|
Note that this assumes you have perl available. Note also that this is not supported for versions prior to 2.1, but similar modifications could be made inside the startxgo.sh script.