Re: [SLE] X gurus: Xlib:connection refused, invalid magic cookie
![](https://seccdn.libravatar.org/avatar/2bc680d8cba1f4a65539f35c48545ce5.jpg?s=120&d=mm&r=g)
Hi Anders, Thanks for replying. See my comments below: Anders Johansson skrev:
On Wed, 2004-02-18 at 02:23 +0100, Terje J. Hanssen wrote:
hostC% setenv DISPLAY hostA:0
Did you verify that the display in use really is :0?
As mentioned in my first mail, hostA is set up like a X terminal to start the X server and query for a remote login screen from hostB directly, without local user login to hostA first. This is achieved by adding the following entry in hostA's /etc/inittab: X :0 -nobanner -query hostB How is it possibly to check afterwards that the display in use is :0?
hostC% XclientApp
The following typical error messages are displayed and theXclientApp doesn't start up or is not displayed on hostA:
Xlib: connection to hostA:0 refused by the server Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Something is obviously wrong, since the "xhost hostC" should have turned off cookie based authentication for hostC
As I have no local login to hostA, I created a minimal xhost access file on hostA instead containing hostB and hostC: /etc/X0.hosts Now I was able to get dtterm running on remote application hostC to be displayed on my local X display hostA. But still I get the same error when trying to start my CAD application on remote hostC: Xlib: connection to hostA:0 refused by the server Xlib: Invalid MIT-MAGIC-COOKIE-1 key What is special is that the Cad application use its own software defined workstations, where wsA is set up with a graphical remote X display on hostA and take input from its remote tablet. Maybe this can come into some conflict with be or be dual (over)defined through the user command: hostC % setenv DISPLAY hostA:0 This command was mostly thougt to get displayed the text menue for starting the Cad system and more in a terminal window. I have to look some nearer at this.
A rlogin to hostA also confirmed that: X: client is rejected from IP_of_hostA
I'm not sure I understand that sentence
Sorry, this was my mistake. It should be 'rlogin hostC', which is the remote Xapps execution host. Terje
participants (1)
-
Terje J. Hanssen