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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 &
[1] 17824
bash-2.05a# Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0
[1]+ 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"
well if that's a file not found error, mine is in /usr/X11R6/bin/xhost, so check you've nto got a path issue, assuming it's there somewhere - use whereis, find or locate.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Quote:
Originally posted by desbyleo Sorry about the double post...
Anyhow, I found xhost (/usr/X/bin), but when I issue the command:
xhost +myhostname
I get:
/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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.