I was having an xauth error about the hexkey not found this is
myfix for it
Steve O'Connor
steveo at uschartco.com
Tue Aug 14 13:23:08 PDT 2007
How does this affect Windows VISta and OSX connections?
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of matt donovan
Sent: Tuesday, August 14, 2007 12:42 PM
To: freebsd-questions at freebsd.org
Subject: I was having an xauth error about the hexkey not found this is
myfix for it
I just had to redo this part
# set up default Xauth info for this machine
case `uname` in
Linux*)
if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
else
hostname=`hostname`
fi
;;
*)
hostname=`hostname`
;;
esac
authdisplay=${display:-:0}
mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e
\\"%08x\\"`
if x"$mcookie" = x; then
echo "Couldn't create cookie"
exit 1
fi
To this
# set up default Xauth info for this machine
authdisplay=${display:-:0}
mcookie=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e
\\"%08x\\"`
for displayname in $authdisplay `hostname`$authdisplay; do
if ! xauth list "$displayname" | grep "$displayname " >/dev/null
2>&1; then
xauth add $displayname . $mcookie
removelist="$displayname $removelist"
fi
done
xinit $client $clientargs -- $server $display $serverargs
and it seems to work for me doesn't complain about the magic cookie not
being found anymore
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list