This is a discussion on Problems with MIT-MAGIC-COOKIE-1 / xauth / xhost within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm having problems with running XWindows applications from one of my machines. When I attempt to run a program ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm having problems with running XWindows applications from one of my machines. When I attempt to run a program from konsole, I get an error message like this: $ kwrite Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kwrite: cannot connect to X server :0.0 I've never come across "MIT-MAGIC-COOKIE-1" before but a quick Google revealed that it's an authentication scheme aimed at ensuring only authorised people can access the X server. Furthermore, it uses a file in the home directory, ~/.Xauthority , and I think this might be the problem. I have 3 boxes, "box17", "box18" and "box20". box17 is a file server. User "myuser"'s home directory, on all 3 machines, is box17:/export/users/myuser/ When I was just using box17 and box18, there were no problems, but now I am using box20 with myuser, the problem has appeared. I am logged in with KDE as myuser on both box18 and box20, and it seems likely that both are writing to ~myuser/.Xauthority, which is stored on: box17:/export/users/myuser/.Xauthority and is therefore getting overwritten. In search for a was to turn X authentication off, I tried xhost +, but got a similar error message: $ xhost + Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key xhost: unable to open display ":0.0" Is there any way to switch off X authentication, to get it to work? Or is there another, simpler, way to get it to work? (FWIW, I'm running Mandrake 9.1, and KDE 3.1) |
| ||||
| On 5 May 2004 09:24:12 -0700, Pif Paf <p1fp4f@hotmail.com> wrote: > > Is there any way to switch off X authentication, to get it to work? Or > is there another, simpler, way to get it to work? > > ssh -X [user@]boxname command you may need to edit the config files in /etc/ssh to enable X11 forwarding. -- Now KEN and BARBIE are PERMANENTLY ADDICTED to MIND-ALTERING DRUGS ... |
| Thread Tools | |
| Display Modes | |
|
|