Re: startx and no remote x-connections
On 27 Oct 1997, Peter Weiss wrote:
> Hello Debianers,
>
> Usually I have set up runlevel 2 for logging in using xdm. This works
> fine, I can address my Display by Host:0.0.
>
> If I start the X server on runlevel 3, which has no S99xdm at the end,
> only local connections with Display ":0" are accepted, using the Host:0.0
> as $DISPLAY results in authorization errors. The network is available --
> I can ping th display's host.
As I understand, you switch to runlevel 3, xdm gets killed and then you do
'startx' to start X again?
> Some of the x-servers messages:
[snip]
> AUDIT: Sun Oct 26 13:04:05 1997: 427 X: client 3 rejected from IP 193.96.166.51 port 1087
> Xlib: connection to "Winona:0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xrdb: Can't open display 'Winona:0'
> AUDIT: Sun Oct 26 13:04:06 1997: 427 X: client 2 rejected from IP 193.96.166.51 port 1086
> AUDIT: Sun Oct 26 13:04:06 1997: 427 X: client 3 rejected from IP 193.96.166.51 port 1089
> [...]
> waiting for X server to shut down
Try doing this before you type 'startx':
$ rm ~/.Xauthority
And after you started X, do this:
$ xauth list
I tried this, and it only contains an entry for hostname/unix:0 and not
for hostname:0.0, which is what you need.
In /usr/X11R6/bin/startx, there is this line:
xauth add $display . `mcookie`
I suggest you add this line under the above line:
xauth add `hostname`$display . `mcookie`
I think this should solve your problem. However, you haven't said why you
want to have $DIAPLAY set to hostname:0.0 instead of :0 . I was told once
that using :0 works faster, but I am no expert on this.
Remco
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: