GraphOn Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
How can I use automatic xauthority keys? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: How can I use automatic xauthority keys?
#276
troym (Admin)
Admin
Posts: 202
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male Birthdate: 1973-01-14
How can I use automatic xauthority keys? 4 Years, 8 Months ago Karma: 1  
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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/03/14 21:38 By troym.
 
Troy Morrison
troy @ graphon.com
GraphOn Corporation
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop