how to enable magic cookies on W2K cygwin X11?

Alexander Gottwald alexander.gottwald@s1999.tu-chemnitz.de
Wed Feb 19 15:12:00 GMT 2003


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.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723



More information about the Cygwin-xfree mailing list