Anyone:
I have a very annoying problem on one of our servers (running Solaris 8). when ever I try to run "xhost +" with the display set at "localhost:0.0" I get the following error:
xhost +
Xlib: connection to "finappprod:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
xhost: unable to open display "finappprod:0.0"
echo $DISPLAY
finappprod:0.0
I've tried to recreate the /.Xauthority file by doing:
xauth generate $DISPLAY . trusted
but I get the same error. I also found this script on the web:
#!/usr/local/bin/perl
randomkey=`perl -e 'for (1..4) {
srand(time+$$+$seed);
printf("%4.5x", ($seed = int(rand(65536))));
}
print "\n";'`
xauth add `hostname`/unix:0.0 . $randomkey
xauth add `hostname`:0.0 . $randomkey
This scrip does create the /.Xautority file, but I still get the "Invalid MIT-MAGIC-COOKIE-1 " error message when running "xhost +"
Any ideas?
I'm now at a dead end.....
((((