[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1207
  • Last Modified:

xhost: unable to display "test:1.0"

I am installing oracle 10.2g with OS Linux 4 on VMware 5.  while installation to use xhost I have setup display as below :

export DISPLAY

After this when i start installer ./runInstaller it show error message :  Cant' connect to X11 window server using test:1.0 as the value of DISPLAY variable.

any suggestion is appreciated.


M Abdussami
  • 3
  • 3
1 Solution
First make sure that test can be resolved.   ping test.   Does it return the right address?

Also, even though you are in a vmware session, that doesn't mean you are using a non console head number.

You might try one of the following:

export DISPLAY=test:0
 use /sbin/ifconfig  (in the VM)  take the IP.

export DISPLAY=

I believe the problem resides in the DISPLAY setting.    Also VMWare also uses some difference types of IP schemes.   Indicating whether you are using bridged, NAT, or Host only will be a big help.
devdeptAuthor Commented:
hi chingmd:

I tried with suggested solutions but still same error  as below:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
        at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:378)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)

any more suggestions.


Let's take a step back and look at the scenario.

Let's start with a few questions:   The OS of the host machine, the OS of the machine want to display the installer to, and we already know the OS of the guest machine?

What kind of networking model are you using in VMWARE?

On the machine  that you are displaying the window, you've run xhost +  (Assuming Xwindows is running)

Then on oracle  VM host  that has the software, is where you set the DISPLAY environment variable.  

There are network settings to be considered here.  Since VMware can have three primary type of networking.  NAT, Bridged, and Host Only.    Each one can change your display settings slightly.  
the fourth is no network, and that's a bit overly secure, eh?

Which one are you using?  
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

devdeptAuthor Commented:
hi chingmd:

Thanks for reply.
I am suing network type  BRIDGED in VMWARE


OK...  So the host of the VM should be getting it's own IP address.

What host and OS are you trying to display the output to?  

devdeptAuthor Commented:
Dear Admin,
pls close this question as it didnt help to fix my problem

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now