DISPLAY variable

Hello,

DISPLAY varible returns the following error when trying to invoke OUI:
-----
[oracle@Linux2005 oracle]$ export DISPLAY=localhost:0.0
[oracle@Linux2005 oracle]$ /OraHome/Disk1/runInstaller
[oracle@Linux2005 oracle]$ Initializing Java Virtual Machine from /tmp/OraInstall2004-09-09_04-17-25PM/jre/bin/java . Please wait...
Xlib: connection to "localhost:0.0" refused by server
Xlib: No protocol specified
                                                                                                                   
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the  value of the DISPLAY variable.
 -----

I tried using many different values for DISPLAYU, still running into the same PB

Any ideas ?

PT
ptrevesAsked:
Who is Participating?
 
pegasysConnect With a Mentor Commented:
just try and run whatever you are running from within X, i.e. from an x-term etc...
0
 
theruckCommented:
try to run xhost + as the user who has run the X server
0
 
theruckCommented:
"xhost +"
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
GnsCommented:
That would disable authentication for X completely theruck, and is probably not a good idea unless one has real good control over the LAN/network in question. Safer to just allow all X clients started on localhost to draw on the display with
xhost + localhost
(note that you need run this command in a terminal window as the user/session that started X in the first place, otherwise it'll be rejected in the same way oui/runInstaller is).

-- Glenn
0
 
theruckCommented:
just wanted to know if it works... then we would discuss the security
0
 
theruckCommented:
? this should be the solution?
0
 
GnsCommented:
Chuckle, sometimes....:-). Seems someone forgot to run it in a windowing environment, accepting that. (Hat off to pegasys:-)

-- Glenn
0
 
theruckCommented:
lol :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.