Subject: Xauthority setup without xdm

From: Maarten Boekhold <[email-masked]>
Date: Thu, 4 Jul 1996 23:30:12 +0200 (MET DST)

Hi,

can somebody please tell me how to set up Xauthority without using xdm?
I'm not using xdm anymore, but exmh seems to require me to set this up to
work properly.

I've looked around a bit in files belonging to xdm, read Xsecurity(1) and
xauth(1), but didn't see any hints on how to set it up, only that xdm
normally does it for you.

Maarten

_______________________________________________________________________
| Maarten Boekhold, Faculty of Electrical Engineering TU Delft,   NL  |
|   [email-masked] [email-masked]   |
-----------------------------------------------------------------------

---

From: Maarten Boekhold <[email-masked]>
Date: Fri, 5 Jul 1996 17:28:54 +0200 (MET DST)

Hello again,

I did a lot of searching again last night after I send the original mail. 
I also recieved some info from ppl on the list.

I figured out that two things are necessary to start X with 
Xauthorisation turned on:

xauth add $HOST:0 . random-key
xinit -- -auth ~/.Xauthority

Now I want this to be done in a clean way, preferably without having to 
modify startx. So I took a good look at startx and xinit, and found that 
there should be a 'hook' to do this: the xserverrc-file 
(/usr/X11R6/lib/xinit/xserverrc ?). The only problem is that I haven't 
the faintest idea of how to use this file. What I see from startx (or was 
it the xinitrc-file?), is that this file is processed some way. It looks 
really complicated how it does this :)

I think there are two possibilities: 1. the file contains just the 
parameters to pass to the X-server, or 2. the file is a shell-script that 
echoes back the arguments for the X-server to startx.

The first option makes it impossible to use that file to generate a 
random key, call xauth and then start (in some way) the X-server. The 
second option makes this easy.

Can somebody please tell which way to go from here?

Maarten

_____________________________________________________________________________
|     Maarten Boekhold, Faculty of Electrical Engineering TU Delft,   NL    |
|      [email-masked]   [email-masked]     |
|		          Rave or Die!!!!!!                                 |
-----------------------------------------------------------------------------