Link to home
Start Free TrialLog in
Avatar of ptreves
ptreves

asked on

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
Avatar of theruck
theruck
Flag of Slovakia image

try to run xhost + as the user who has run the X server
"xhost +"
Avatar of Gns
Gns

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
just wanted to know if it works... then we would discuss the security
ASKER CERTIFIED SOLUTION
Avatar of Adrian Sluijters
Adrian Sluijters
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
? this should be the solution?
Chuckle, sometimes....:-). Seems someone forgot to run it in a windowing environment, accepting that. (Hat off to pegasys:-)

-- Glenn
lol :)