Problem with X windows on SunOS 4.1.3_U1

Problem with X windows on SunOS 4.1.3_U1

Post by josef jur » Thu, 08 Jan 1998 04:00:00



When trying to run an X window application one of our Suns
running SunOS 4.1.3_U1, the program would not run but instead
displayed the following messages:

     Xlib:  connection to ":0.0" refused by server
     Xlib:  Client is not authorized to connect to server
     Error: Can't open display: :0.0

Can someone suggest what the problem might be and how we might
implement a solution?

Thank you for your time,

Josef Jurek

 
 
 

Problem with X windows on SunOS 4.1.3_U1

Post by Timothy J. L » Fri, 09 Jan 1998 04:00:00


|When trying to run an X window application one of our Suns
|running SunOS 4.1.3_U1, the program would not run but instead
|displayed the following messages:
|
|     Xlib:  connection to ":0.0" refused by server
|     Xlib:  Client is not authorized to connect to server
|     Error: Can't open display: :0.0

Could it be that the display is not specified properly (either in the
DISPLAY environment variable or on the command line)?

--
------------------------------------------------------------------------

Unsolicited bulk or commercial email is not welcome.             netcom.com
No warranty of any kind is provided with this message.

 
 
 

Problem with X windows on SunOS 4.1.3_U1

Post by Paul J. Reimol » Fri, 09 Jan 1998 04:00:00


If the X app is on another host, you probably need to execute the xhost
command to allow access to the local display.


> When trying to run an X window application one of our Suns
> running SunOS 4.1.3_U1, the program would not run but instead
> displayed the following messages:

>      Xlib:  connection to ":0.0" refused by server
>      Xlib:  Client is not authorized to connect to server
>      Error: Can't open display: :0.0

> Can someone suggest what the problem might be and how we might
> implement a solution?

> Thank you for your time,

> Josef Jurek


--
**        Paul J. Reimold                UNIX Administrator      
**        
**                General Accident Insurance                **
**        436 Walnut Street        Phila, PA  19106        **

 
 
 

Problem with X windows on SunOS 4.1.3_U1

Post by Vincent Zweij » Fri, 09 Jan 1998 04:00:00



||  When trying to run an X window application one of our Suns
||  running SunOS 4.1.3_U1, the program would not run but instead
||  displayed the following messages:
||
||       Xlib:  connection to ":0.0" refused by server
||       Xlib:  Client is not authorized to connect to server
||       Error: Can't open display: :0.0

It seems you weren't running X on the same machine as where you tried
to run the X application.

Read <http://www.xs4all.nl/~zweije/xauth.html> for information.  And the
manual pages, of course, although they may be daunting concerning X.

Ciao.                                                           Vincent.
--

"Xhost should be taken out and shot."            Vincent Zweije

 
 
 

Problem with X windows on SunOS 4.1.3_U1

Post by Kaleb S. KEITHLE » Fri, 09 Jan 1998 04:00:00




> |When trying to run an X window application one of our Suns
> |running SunOS 4.1.3_U1, the program would not run but instead
> |displayed the following messages:
> |
> |     Xlib:  connection to ":0.0" refused by server
> |     Xlib:  Client is not authorized to connect to server

               ^^^^^^^^^^^^^^^^^^^^^^^^

Quote:> |     Error: Can't open display: :0.0

> Could it be that the display is not specified properly (either in the
> DISPLAY environment variable or on the command line)?

Probably not. The hint is in the "...not authorized..." message.

If you do a `ps auxww | grep X` you'll probably see something like:

   root     18425  0.0  0.0  884    0 ?  IW   Dec 14  0:14 /X11/bin/X
-auth /X11/lib/X11/xdm/authdir/authfiles/A:0-a18422

Note the "-auth" and also that the X server is probably running under
xdm.

The "-auth" means that Xauthority style authorization is necessary in
order for an application to connect to the server. The normal way to get
authorization is to log into the machine on the console, i.e. xdm.

When you log on using xdm, xdm will put a "key" in your ~/.Xauthority
file. This key will be used by X applications to connect to this
display. You can see a list of the "keys" in your .Xauthority file with
the command `xauth list`.

For more information read the xauth and xdm man pages. Yup, they're
long, but there's lots of good information in them.

--

Kaleb S. KEITHLEY

 
 
 

Problem with X windows on SunOS 4.1.3_U1

Post by josef jur » Thu, 15 Jan 1998 04:00:00


= When trying to run an X window application on one of our Suns
= running SunOS 4.1.3_U1, the program would not run but instead
= displayed the following messages:
=
=      Xlib:  connection to ":0.0" refused by server
=      Xlib:  Client is not authorized to connect to server
=      Error: Can't open display: :0.0
=  
= Can someone suggest what the problem might be and how we might
= implement a solution?

Thanks to everyone who responded to my post.

The commands:

     % xhost +
     % setenv DISPLAY <client machine address>:0.0

did initially solve our problem, though now, even with these
commands, we can no longer get an X window application to
work.  Shortly before this, the following message appeared
on the console of our server:

     XView Error (Intercepted)
     Error: Problem setting default modifier mapping
     Package: Server
     Recoverable Error: continuing
     XView warning: Problems setting default modifier mapping (Server
          Package)

Might these two problems be related?
Can someone suggest what our next step(s) might be to get our
Xserver working again?  It appears that we may be using
X11 Release 4, and might that have any bearing on this matter?

Thank you again for your time,

Josef Jurek

 
 
 

1. SunOS 4.1.3 vs SunOS 4.1.3_U1

We just had to reload our OS on a SPARC10 and found that the CD version
of the OS was a slightly earlier version of SunOS (4.1.3 vs 4.1.3_U1)
than had been originally on the machine.  I believe these versions
correspond to Solaris 1.1 and 1.1.1.

Since these versions are so old, SUN no longer supports them and I'm
having trouble finding a description of the difference between these
systems.  Can someone point me to a reference?

Thanks,

Dave

2. "Hangs at setting time"

3. simple NIS w/ SunOS 4.1.3_U1 problem

4. Digiboard config

5. Problem with cu under SunOS 4.1.3_U1

6. signals

7. Problem: Faulty Colors on Solaris 2.5.1 Port of SunOS 4.1.3_U1 App

8. Help planning a new system

9. /dev/audio problem on Sparc5+SunOS 4.1.3_U1

10. ps on sparc20 SunOS 4.1.3_U1 problem [help]

11. Diff. between SunOS4.1.3_U1 and SunOS4.1.3_U1 VB

12. SunOS 4.1.3_U1 cannot su - root

13. SunOS 4.1.3_U1 and Solaris 2.4 on one disk?