28.03.2024, 12:49 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

X-Server refused


I had the following error message after logging in as root with su and the start of an application:

:code:root@Pinux:/home/roen# firestarter
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firestarter:4890): Gtk-WARNING cannot open display::code:

1. Solution:

Use sux instead su.

The explanation, from the #kanotix IRC channel:
"<slh> sux is a wrapper for su, which also pays attention to the x11 magic cookies"

thanks to slh :-)

2. Solution:


As a logged in user:
:code:# xhost +:code:
Then su...
As new user:
:code:# export DISPLAY=:0.0:code:

Greetings, Andy ;-)

3. Solution:


In the file /etc/X11/Xsession type the following line:
:code:xhost +local::code:
Then I have automatically access, e.g. with my "root Midnight Commander", to X in the KDE console.

Ciao Martin
XML Revisions of $tag
Seiten-History :: Letzter Editor : OffTopic :: Eigentümer : OffTopic ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.