Re: Xlib: connection to ":0.0" refused by server?
| Newsgroups | gmane.linux.gentoo.newbies |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Aug 25, 2002 at 06:11:25PM -0400, Bob Paddock wrote: > If I'm logged in as 'bob' and I su root, then try to start some thing like > emacs I get this: > > > root@bob cups # emacs error_log& > [1] 6860 > root@bob cups # Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > emacs: Cannot connect to X server :0.0. > Check the DISPLAY environment variable or use `-d'. > Also use the `xhost' program to verify that it is set to permit > connections from your machine. [This is the same machine!?] before you su, type 'xhost +localhost' and as root: 'export DISPLAY=:0' (without the '' of course) and you should be able to run emacs greetz, stijn > > This just started and I don't know what Ichangedd to cause it. > How do I make it go away so that it works again? > > If I'm logged in as root I can start things from the command line just fine. > > _______________________________________________ > gentoo-newbies mailing list > [email protected] > http://lists.gentoo.org/mailman/listinfo/gentoo-newbies