can't run anything under su (Xlib: connection to ":0.0" refused by server)

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Michael E. Sto » Tue, 27 Nov 2001 06:47:54



I've installed SuSE Linux Professional 7.3 on my IBM Thinkpad T20 and
had to re-install it 3 times as things get majorly corrupted (mostly
from unrecoverable crashes caused by the star office installer or star
office itself).  The system crashed when I was installing Netscape6 as
su and now I cannot run anything under su:


Password:
slagathor:/home/mike # emacs /etc/fstab
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to X server :0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

slagathor:/home/mike # xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost:  unable to open display ":0"

slagathor:/home/mike # xbombs
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: can't open display
slagathor:/home/mike #

 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Dave Uhrin » Tue, 27 Nov 2001 07:03:48



> I've installed SuSE Linux Professional 7.3 on my IBM Thinkpad T20 and
> had to re-install it 3 times as things get majorly corrupted (mostly
> from unrecoverable crashes caused by the star office installer or star
> office itself).  The system crashed when I was installing Netscape6 as
> su and now I cannot run anything under su:


> Password:
> slagathor:/home/mike # emacs /etc/fstab
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> emacs: Cannot connect to X server :0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.

> slagathor:/home/mike # xhost
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xhost:  unable to open display ":0"

> slagathor:/home/mike # xbombs
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> Error: can't open display
> slagathor:/home/mike #

$ xhost +localhost
$ su
# export DISPLAY=<machine_name>:0

 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Michael E. Sto » Tue, 27 Nov 2001 11:49:16


Dave,

Thanks for your quick reply.  I got to this point from the man pages
as well, but your reply is apreciated  However, this is a temporary
fix that has to be repeated at every login.  I suspect SuSE was set up
to use one of the other authentification methods besides xhost and
that got corrupted.  At this point I am stuck using xhost at every
login.

Mike



> > I've installed SuSE Linux Professional 7.3 on my IBM Thinkpad T20 and
> > had to re-install it 3 times as things get majorly corrupted (mostly
> > from unrecoverable crashes caused by the star office installer or star
> > office itself).  The system crashed when I was installing Netscape6 as
> > su and now I cannot run anything under su:


> > Password:
> > slagathor:/home/mike # emacs /etc/fstab
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> > emacs: Cannot connect to X server :0.
> > Check the DISPLAY environment variable or use `-d'.
> > Also use the `xhost' program to verify that it is set to permit
> > connections from your machine.

> > slagathor:/home/mike # xhost
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> > xhost:  unable to open display ":0"

> > slagathor:/home/mike # xbombs
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> > Error: can't open display
> > slagathor:/home/mike #

> $ xhost +localhost
> $ su
> # export DISPLAY=<machine_name>:0

 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Dave Uhrin » Tue, 27 Nov 2001 13:20:31



> Dave,

> Thanks for your quick reply.  I got to this point from the man pages
> as well, but your reply is apreciated  However, this is a temporary
> fix that has to be repeated at every login.  I suspect SuSE was set up
> to use one of the other authentification methods besides xhost and
> that got corrupted.  At this point I am stuck using xhost at every
> login.

> Mike

Then just quit using X applications as root.  It is unnecessary.
 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Michael E. Sto » Wed, 28 Nov 2001 07:22:57




> > Dave,

> > Thanks for your quick reply.  I got to this point from the man pages
> > as well, but your reply is apreciated  However, this is a temporary
> > fix that has to be repeated at every login.  I suspect SuSE was set up
> > to use one of the other authentification methods besides xhost and
> > that got corrupted.  At this point I am stuck using xhost at every
> > login.

> > Mike

> Then just quit using X applications as root.  It is unnecessary.

I find it safer to do a lot of things under su as needed than logging
in as root.  I am accustomed to using emacs as my editor and some
graphical installers (Netscape 6.2 comes to mind) must run under root.
 I'm attempting to get back this functionality because something has
changed.

Mike

 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Dave Uhrin » Wed, 28 Nov 2001 09:42:23






>> > Dave,

>> > Thanks for your quick reply.  I got to this point from the man
>> > pages
>> > as well, but your reply is apreciated  However, this is a temporary
>> > fix that has to be repeated at every login.  I suspect SuSE was set
>> > up to use one of the other authentification methods besides xhost
>> > and
>> > that got corrupted.  At this point I am stuck using xhost at every
>> > login.

>> > Mike

>> Then just quit using X applications as root.  It is unnecessary.

> I find it safer to do a lot of things under su as needed than logging
> in as root.  I am accustomed to using emacs as my editor and some
> graphical installers (Netscape 6.2 comes to mind) must run under root.
>  I'm attempting to get back this functionality because something has
> changed.

> Mike

Then study up on xauth.  My earlier suggestion is merely a kluge and
not a particularly security-conscious one at that.
 
 
 

can't run anything under su (Xlib: connection to ":0.0" refused by server)

Post by Michael Perr » Wed, 05 Dec 2001 03:31:04



> I've installed SuSE Linux Professional 7.3 on my IBM Thinkpad T20 and
> had to re-install it 3 times as things get majorly corrupted (mostly
> from unrecoverable crashes caused by the star office installer or star
> office itself).  The system crashed when I was installing Netscape6 as
> su and now I cannot run anything under su:


> Password:
> slagathor:/home/mike # emacs /etc/fstab
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> emacs: Cannot connect to X server :0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.

Hi-

The IBM ThinkPad T20 uses a S3 Savage chipset which will react quite badly
with the StarOffice installer.  What happens on my T21 is that the
installer locks the entire display down.  This is mentioned in the
STarOffice readme as an issue with S3 virge cards but the S3 device driver
developer also mentions it on his website.  Here is an excerpt from the
STarOffice readme regarding these chipsets:

--cut from StarOffice 5.2 readme----------------

Problems with X-Server Installation
-----------------------------------------------------------

If you experience difficulties when using an Xfree S3Virge driver
noticeable by
the "freezing" of the X server, set the environment variable
SAL_DO_NOT_USE_INV
ERT50 to ?true? by using  the following syntax:

For users of a Bourne Shell (e.g. bash):

   export SAL_DO_NOT_USE_INVERT50=true

For users of a C Shell:

   setenv  SAL_DO_NOT_USE_INVERT50 true

IMPORTANT INFORMATION:

If the above named environment variable is used, different window elements
may be shown in a
n inverted way. As the "freezing" of the X server can also happen with
every other program w
hen using an Xfree S3Virge driver, we recommend, therefore, that the
appropriate SVGA driver
 be used at all times. This means that the setting of the environment
variable is no longer
a must.

---------end of readme-----------------

I have the same problem on a T21, BTW and with this environmental variable
set, StarOffice installs and runs quite well.  Here is what the S3 device
driver developer has to say at http://www.probo.com/timr/savage40.html:

StarOffice hangs on installation.  

This is probably my #1 Most Frequently Asked Question... There is a known
conflict between StarOffice 5.2 (and, presumably, OpenOffice as well) and
the Savage driver up to 1.1.19. There
is a note in the StarOffice README about hangs when using a ViRGE chip,
along with a suggested workaround, and the workaround also applies to the
Savage. The workaround is to set an
environment variable "SAL_DO_NOT_USE_INVERT50" to "true" before launching
StarOffice. The trickiest part is making sure StarOffice really sees the
variable. If you use xdm/kdm, you
must use one of the global rc files, like /etc/profile, /etc/bashrc, or
/etc/rc.d/rc.local. NOTE, however, that this problem should no longer occur
as of version 1.1.20t.

Hope this helps!

--
Michael Perry | "Do or do not; there is no try" Master Yoda

 
 
 

1. Xlib: connection to ":0.0" refused by server

Hello!

We're setting up a bunch of Ultra 30's (Solaris 2.6), and seeing
some X errors.  In particular, when we fire up FrameMaker, it
will freeze with the following error:

Xlib: connection to ":0.0" refused by server
Xlib: Maximum number of clients reached

I realize this is probably an X tunable parameter, but not
knowing too too much about Solaris - not sure which one..

Anyone have any ideas??

Thanks!
Peggy

2. DIP & Backspace problem

3. RedHat, mbone/multicast, vic?

4. Help!! RedHat NFS install???

5. Xlib: connection to "0.0" refused by server

6. Changing HostName Parameter

7. Xlib: connection to ":0.0" refused by server

8. Xlib: connection to ":0.0" refused by server ERROR

9. Xlib: connection to ":0.0" refused by server

10. Xlib: connection to "0.0" refused by server