Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have been having problems with this for ages now...ane never figured out what's going on. The problem is that I can't run Gnome applications as root. Here is an example of what happens when the root user tries to run galeon:
bash-2.05a# galeon &
bash-2.05a# Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0
+ Exit 1 galeon
okay, so I don't need to run galeon as root anyway, but some apps such as ethereal do require superuser status.
Hey chris...what if when I do xhost + and I get "xhost: not found"? I'm trying to start the VNC server on my box and when I start it, the log (../hostname:1.log) says, "xhost: unable to open display hostname:1"
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Originally posted by desbyleo Sorry about the double post...
Anyhow, I found xhost (/usr/X/bin), but when I issue the command:
/usr/X/bin/xhost: unable to open display ""
Try doing it as the user who runs the X server from within an xterm. You should be able to put it in your .xinitrc too, if one exists.
Or if you're running 'su -' to become root and running your app within the root shell,
export XAUTHORITY=~<xuser here>/.Xauthority
before your run your app. Put it in root's .profile if you want it to stick.