![](https://seccdn.libravatar.org/avatar/8c2fa45fb02580ea2d664777f694901a.jpg?s=120&d=mm&r=g)
I have a problem. (So what else is new, right?) I'm running Gnome 2.2.2 under SuSE 9.0 Pro. When I try to access YaST2 via the Gnome menu and after entering my root password, I get the following error: Gnome SuperUser: b: connection to":0.0" refused by server Someone suggested: Try running, in a terminal, sux [ enter your root password ] YaST2 Here's what happened: dhenson@linux:~> sux Password: linux:/home/dhenson # YaST2 Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server y2controlcenter: cannot connect to X server :0.0 Everything else appears to be working okay and, in fact, I can execute YaST2 from the command line and YaST comes up in it's gui form and works as expected. If some of you smart people could suggest a way to proceed, I'd appreciate it. Don Henson
![](https://seccdn.libravatar.org/avatar/884d86c2e3652843626287e6ce05f356.jpg?s=120&d=mm&r=g)
On Saturday 22 November 2003 22:00, Donald Henson wrote:
Gnome SuperUser: b: connection to":0.0" refused by server
type "xhost localhost" in a terminal window. This will grants the local system rights to the X sessions. Edit your .profile file in your home directory and add it. Then you will not have to enter it each time you are prompted. -- Doug
![](https://seccdn.libravatar.org/avatar/8c2fa45fb02580ea2d664777f694901a.jpg?s=120&d=mm&r=g)
On Sat, 2003-11-22 at 08:37, Doug Glenn wrote:
On Saturday 22 November 2003 22:00, Donald Henson wrote:
Gnome SuperUser: b: connection to":0.0" refused by server
type "xhost localhost" in a terminal window. This will grants the local system rights to the X sessions.
Edit your .profile file in your home directory and add it. Then you will not have to enter it each time you are prompted.
-- Doug
Yaaayyy! That did it. Thanks. I would never have thought about looking there. Don Henson
![](https://seccdn.libravatar.org/avatar/6c37c3c79825c341debabdc6e7a0e2e0.jpg?s=120&d=mm&r=g)
Donald Henson
On Sat, 2003-11-22 at 08:37, Doug Glenn wrote:
On Saturday 22 November 2003 22:00, Donald Henson wrote:
Gnome SuperUser: b: connection to":0.0" refused by server
type "xhost localhost" in a terminal window. This will grants the local system rights to the X sessions.
Edit your .profile file in your home directory and add it. Then you will not have to enter it each time you are prompted.
-- Doug
Yaaayyy! That did it. Thanks. I would never have thought about looking there.
IMHO it would have been better if you had fixed the problem with sux. By running "xhost localhost" in ~/.profile you severely weaken the security of your system. -- A.M.
![](https://seccdn.libravatar.org/avatar/d8ac40ca7bdaa4bc2fd8e64ddbc0c844.jpg?s=120&d=mm&r=g)
On Sunday 23 November 2003 04:00, Donald Henson wrote:
Here's what happened:
dhenson@linux:~> sux Password: linux:/home/dhenson # YaST2 Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server
y2controlcenter: cannot connect to X server :0.0
Take a look at your /etc/hosts file, it probably contains a line that has something like: 127.0.0.2 <your long host name here> <shortname> This is a non-existant host, really. You need to modify it, and make sure it contains the true IP number of your host.
Everything else appears to be working okay and, in fact, I can execute YaST2 from the command line and YaST comes up in it's gui form and works as expected. If some of you smart people could suggest a way to proceed, I'd appreciate it.
Don Henson
![](https://seccdn.libravatar.org/avatar/715db3d1d92b081b571b19443d426fc6.jpg?s=120&d=mm&r=g)
I had the same problem before, But is a protection system of Xserver You cannot use bash or konsole as root and try to use your user Xserver. Is for security. If you can doit. Make vulnerable your system. try for example with amsn 0.83 you make a directory in /root later as user use konsole as root and try to make run cd /root/msn ./amsn and give you the same answer. On Saturday 22 November 2003 21:40, Örn Hansen wrote:
On Sunday 23 November 2003 04:00, Donald Henson wrote:
Here's what happened:
dhenson@linux:~> sux Password: linux:/home/dhenson # YaST2 Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server
y2controlcenter: cannot connect to X server :0.0
Take a look at your /etc/hosts file, it probably contains a line that has something like:
127.0.0.2 <your long host name here> <shortname>
This is a non-existant host, really. You need to modify it, and make sure it contains the true IP number of your host.
Everything else appears to be working okay and, in fact, I can execute YaST2 from the command line and YaST comes up in it's gui form and works as expected. If some of you smart people could suggest a way to proceed, I'd appreciate it.
Don Henson
![](https://seccdn.libravatar.org/avatar/8c2fa45fb02580ea2d664777f694901a.jpg?s=120&d=mm&r=g)
On Sat, 2003-11-22 at 20:40, Örn Hansen wrote:
On Sunday 23 November 2003 04:00, Donald Henson wrote:
Here's what happened:
dhenson@linux:~> sux Password: linux:/home/dhenson # YaST2 Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server
y2controlcenter: cannot connect to X server :0.0
Take a look at your /etc/hosts file, it probably contains a line that has something like:
127.0.0.2 <your long host name here> <shortname>
This is a non-existant host, really. You need to modify it, and make sure it contains the true IP number of your host.
Everything else appears to be working okay and, in fact, I can execute YaST2 from the command line and YaST comes up in it's gui form and works as expected. If some of you smart people could suggest a way to proceed, I'd appreciate it.
Don Henson
I'm not sure what you mean by the "true" IP number. I use DHCP. Doesn't that mean that my IP address changes frequently? Or is there a number somewhere that I don't know about? Don Henson
participants (5)
-
Alexandr Malusek
-
Cuitlahuac Gomez Labougle
-
Donald Henson
-
Doug Glenn
-
Örn Hansen