This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: how to enable magic cookies on W2K cygwin X11?
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 19 Feb 2003 16:12:00 +0100 (MET)
- Subject: Re: how to enable magic cookies on W2K cygwin X11?
- Reply-to: cygwin-xfree at cygwin dot com
On Tue, 18 Feb 2003, David wrote:
> I needed to add one line before the rm $AUTHFILE
> cat $AUTHFILE >>.Xauthority
> or the clients could not connect, with the message:
>
> $ xeyes
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
Of course. Missed that.
> (I guess that in production
> mv $AUTHFILE .Xauthority
> or just start with
> AUTHFILE=.Xauthority
> would be better.)
I'd append it to the .Xaurthority file. Someone might already have
cookies for other servers stored.
COOKIE=`mcookie`
xauth -f $AUTHFILE add :0.0 MIT-MAGIC-COOKIE-1 $COOKIE
xauth add :0.0 MIT-MAGIC-COOKIE-1 $COOKIE
XWin -auth $AUTHFILE
rm $AUTHFILE
or
COOKIE=`mcookie`
xauth add :0.0 MIT-MAGIC-COOKIE-1 $COOKIE
XWin -cookie $COOKIE
bye
ago
--
Alexander dot Gottwald at informatik dot tu-chemnitz dot de
http://www.gotti.org ICQ: 126018723