Discussion Locked

linuxconf not working

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

After updating s/w and bug fixes Im having problem running in Linuxconf. Get the following error when running on terminal mode.
Error message from remadmin:
Xlib: connection to "0:0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Xlib: Gtk-WARNING **: cannot open display: :0

Im running RedHat 7 and using GNOME and I can login w/o a problem.

Please can some one shine some light as to what is causing this.

Thanks

Chuckie

6 replies

by ivo.damato

Hi,

the problem is with the graphical application to be displayed in your desktop.
If you have logged in as a user, probably you did the command "su - root" in a gnome-terminal session. Sometimes such a request denies root graphical command to be displayed on your user desktop.
Probably there is some misconfiguration somewhere because I also use RH 7.0 but without your problem.
The easies solution is to type this command before:
export DISPLAY=127.0.0.1:0.0
and then type linuxconf, all should work properly!
Bye and have a nice day!
Ivo

by chandras

I am logged in as root.
I tried that cmd and ran Linuxconf and the error that cam e up is as below
Error message from remadmin:
Xlib: connection to "127.0.0.1:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Xlib: Gtk-WARNING **:cannot open display: 127.0.0.1:0.0

by hasse mcse/brainbench

Hi!

Your problem probably is the following!

You login to the X-Desktop as user: sam

Then you open an exterm and do:
su -
become root and try to run linuxconf, it will fail.

Before doing 'su -' to become root do the following:
xhost +localhost
or
xhost +root

do: man xhost, for more info.

Now all users on your local machine will be able to conect to your X-Server.

Regards
/Hasse

This discussion is closed to new replies.