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

Home -> Community -> Usenet -> c.d.o.server -> Re: DISPLAY xhost Report Server

Re: DISPLAY xhost Report Server

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Sun, 27 Mar 2005 23:07:21 GMT
Message-ID: <Xns962699D5ECD51SunnySD@68.6.19.6>


"Joe Pike" <none_at_hotmail.com> wrote in
news:42472374$0$44091$5fc3050_at_dreader2.news.tiscali.nl:

> Hi,
>
> I have a question about having an Oracle report server access the :0
> Display on a Red Hat AS2.1 server.
>
> Ideally the Oracle report server should be started during boot time.
> I put the report server startup script in rc.local.
> This startup script sets variable 'DISPLAY=:0' -> so the report server
> should have access to an X server

IIRC, this happens when the "user" (usually oracle) has not logged onto the system via ssh Xforwarding enabled, which automagically creates & populates the directory .Xauthority

>
> This always causes problems (the infamous 'Xlib: connection to ":0.0"
> refused by server').
> To get the report server going, someone has to logon to the console of
> the server, type 'xhost +localhost', and then run
> the report server startup script again.
> Not really the best way to do this...
>
> I guess the easiest way to solve this is to install something like
> VNC, and put the VNC startup script in rc.local, right
> before the report server startup script. Should probably work and get
> rid of the 'xhost' problems.
>
> Otherwise maybe setup something like the MIT-MAGIC-COOKIE stuff, will
> that also avoid the 'xhost' problems?
>
> Or is there maybe a way to 'xhost +localhost' right after the X server
> is started
> Google found some stuff about adding 'xhost +localhost' to the
> '~/.xinitrc' file.
> It seems the '/etc/X11/X' runs under user root, but root's '.xinitrc'
> is nowhere to be found.
>
> I'm just wondering how other shops handle this situation.
>

I used VNC X-server. Received on Sun Mar 27 2005 - 17:07:21 CST

Original text of this message

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