Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Installation Problem Xlib: connection to ":0.0" refused by server

Re: Installation Problem Xlib: connection to ":0.0" refused by server

From: Mark Bole <makbo_at_pacbell.net>
Date: Tue, 30 Nov 2004 15:10:30 GMT
Message-ID: <G30rd.52024$QJ3.30117@newssvr21.news.prodigy.com>


Frank van Bortel wrote:

> Randy Harris wrote:
>

>> "Frank van Bortel" <fvanbortel_at_netscape.net> wrote in message
>> news:coco6u$rcf$1_at_news6.zwoll1.ov.home.nl...
>>
>>> Fred*** wrote:
>>>
>>>> I'm trying to install 9iR2 on a Redhat AS3 machine and I'm getting an
>> error
>>>> when running 'runInstaller'.  I am doing this from an X session
>> physically
>>>> on the server; not remote.
>>>> As 'oracle' user, I get the following error:
>>>>
>>>> [oracle_at_mymachineDisk1]$ ./runInstaller
>>>> [oracle_at_mymachineDisk1]$ Initializing Java Virtual Machine from
>>>> /tmp/OraInstall2004-11-28_02-58-23AM/jre/bin/java. Please wait...
>>>> Xlib: connection to ":0.0" refused by server
>>>> Xlib: No protocol specified
>>>
>>> Basic, very basic... xhost +
>> This is usually because you did an 'su' to oracle.  Log out and log 
>> back in
>> as oracle.

>
> Sorry - I'm lost here, especially as xhost + needs
> to be performed by root, not oracle.
>
> What would logging off, and logging on as oracle
> change to prevent the error?

No, read the man page for xhost. Any user can run it, not just root.

Understand that you have an X server running under the ownership of a specific user (could be root, oracle, or whoever you are logged into the console as).

The X client, in this case the OUI program, is trying to display stuff using the server. If the client and server are both running under the same ownership, this is not a problem. So, if your console login is 'oracle' and you run OUI as 'oracle', everything will be fine.

However if your console login is 'joe' and you su to 'oracle', then 'oracle' will not normally have permission to use joe's X server, unless joe first runs something like 'xhost +'.

Please try it and post any further error messages if you still don't believe it. A much easier way to test X capabilities is a program like xterm, which doesn't take nearly as long to get going as OUI. If you can successfully display an xterm window, then your X permissions are OK.

-Mark Bole Received on Tue Nov 30 2004 - 09:10:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US