This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to enable magic cookies on W2K cygwin X11?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]