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

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

xhost: unable to display "test:1.0"

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

DISPLAY=test:1.0
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.

REgards,

M Abdussami
0
devdept
Asked:
devdept
  • 3
  • 3
1 Solution
 
chingmdCommented:
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
 
or
 use /sbin/ifconfig  (in the VM)  take the IP.

export DISPLAY=192.168.235.55:0


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.
0
 
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 '192.168.1.104:0' 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.

Regards,

MAS
0
 
chingmdCommented:
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?  
0
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

regards,

MAS
0
 
chingmdCommented:
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?  



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

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