Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Master of Reality on 31 January 2003, 21:01
-
i'm using konsole and i dled mozilla, but when i run the binary it says it cannot open display. Is there some way i can get fix this? In slackware8.1 (but it also happens in redhat8 i think).
-
Sounds like you lack the permissions to use your card unless you're running the program straight from X (mozilla works when you run it from the start menu right?). You probably just need to add yourself to the video card's group or raise it's permissions.
I'm still kind of new with linux so tell me if anything I said helps. I probably have no idea what I'm talking about (http://smile.gif)
[ January 31, 2003: Message edited by: DGolem ]
-
presumably you are actually in X when you try and run it?
-
I'm guessing you logged in as a normal user, then su to root, then installed mozilla, then tried to run.
Well, if you did, that is the problem. The normal user owns the X console and root doesn't have permission to access it.
To solve this, type
xhost +localhost
before you use su.
If this is a multiuser system, log out of X or type xhost -localhost when you are done.
-
quote:
Originally posted by M. O'Brien:
I'm guessing you logged in as a normal user, then su to root, then installed mozilla, then tried to run.
Well, if you did, that is the problem. The normal user owns the X console and root doesn't have permission to access it.
To solve this, type
xhost +localhost
before you use su.
If this is a multiuser system, log out of X or type xhost -localhost when you are done.
thanks that almost works, now i know i should run them as the same user but "xhost +localhost" doesnt seem to allow me to run things as root in X. I will RTFM now that i know where i might look
[ January 31, 2003: Message edited by: The Master of Reality / Bob ]
-
Nevermind I see you've fixed it. I didn't know you were running it as root.
[ February 01, 2003: Message edited by: DGolem ]