Xlib errors
I log into my box as nonroot.
I type gvim or firefox in the command line and it launches OK. Here is where it gets strange. I log in as root for a while, then switch back to the nonroot account. I type gvim again, and comes up with the errors: Code:
Xlib: connection to ":0.0" refused by server Then if I switch to root again and try to launch either one, they'll work. Any ideas? This has to be a common problem because this happens on my home machine, my laptop, and my work PC (unless I am configuring something wrong, and thinking I am doing it right). thx, |
that is strange
what login manager do you use kdm,gdm .... try another one check the permissions and ownership of .Xauhority hope this helps a bit |
I ran into similar issues and found that it had to do with the environment of the root user being different that the non-root user. I believe the fix was to export the DISPLAY environment variable. I was having issues when pulling up emacs as root and it not finding xlib, I had to use:
Code:
emacs -nw <myfile> |
Xlib: connection to ":2.0" refused by server
You may not have permission to the Xauthority file locatd in your home directory. Do this to check:
> ls -l ~/.Xauthoriy Make sure you have rw permissions Next: > xauth list Make sure you have an entry in there for DISPLAY :2 (or whichever DISPLAY number interests you) If not: > xauth add <hostname:2> <protocol> <HEX magicnumber> (you can also use> xauth add <hostname:2> . `mcookie` You can google to find out other ways to generate a HEX magic number for xauth - there are many solutions out there. |
All times are GMT -5. The time now is 03:07 PM. |