Solved

DISPLAY variable

Posted on 2004-09-09
8
604 Views
Last Modified: 2011-09-20
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
0
Comment
Question by:ptreves
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 14

Expert Comment

by:theruck
ID: 12021507
try to run xhost + as the user who has run the X server
0
 
LVL 14

Expert Comment

by:theruck
ID: 12021510
"xhost +"
0
 
LVL 20

Expert Comment

by:Gns
ID: 12026890
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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 14

Expert Comment

by:theruck
ID: 12029217
just wanted to know if it works... then we would discuss the security
0
 
LVL 7

Accepted Solution

by:
pegasys earned 500 total points
ID: 12031466
just try and run whatever you are running from within X, i.e. from an x-term etc...
0
 
LVL 14

Expert Comment

by:theruck
ID: 12033321
? this should be the solution?
0
 
LVL 20

Expert Comment

by:Gns
ID: 12041981
Chuckle, sometimes....:-). Seems someone forgot to run it in a windowing environment, accepting that. (Hat off to pegasys:-)

-- Glenn
0
 
LVL 14

Expert Comment

by:theruck
ID: 12042056
lol :)
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question