Operating System - HP-UX
1823921 Members
3095 Online
109667 Solutions
New Discussion юеВ

Can't connect to X11 window server using 'localhost:0.0 <<<< help please

 
SOLVED
Go to solution
DnD_1
Regular Advisor

Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Hi all,

I am new to oracle, and its my first time to install oralce 9i to our hp ux version 11.23 remotely(ssh), and i got this error messages,

$ ./runInstaller
$ Initializing Java Virtual Machine from /data/OraInstall2008-06-17_05-21-49PM/jre/bin/java. Please wait...
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'md2:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:63)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.(Window.java:188)
at java.awt.Frame.(Frame.java:315)
at java.awt.Frame.(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)

$ xhost +
xhost: unable to open display "md2:0.0"
$ export DISPLAY=127.0.0.1:0.0
$ xhost +
xhost: unable to open display "127.0.0.1:0.0"
$ export DISPLAY=:0
$ xhost +
xhost: unable to open display ":0"

I already followed all the suggestion from the forum, like in

https://community.oracle.com/tech/developers/discussion/298443/cant-connect-to-x11-window-server-using-127-0-0-1-0-0 

but still got the same error, someone please help ?? please...

Moderator Note: [Updated with new links]

25 REPLIES 25
Torsten.
Acclaimed Contributor
Solution

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

If you work remotely, you need to export the DISPLAY to the remote system, not to the local host.

What is your remote OS?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

i mean, i ssh to the unix machine...like here

me(in stockholm) (ssh)----> hp ux(in copenhangen)....

any suggestion ? its quite very and i am new recruit :( ...

we have no oracle expert as well.....help please..

Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Better question: What is the OS on the system in front of you?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

win XP :)
Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

OK, you need a Xserver application for your PC (for example xming).

once this is running, use putty to connect to your hp-ux server:

> putty -X hpux-server

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

hi torsten.

i really have to do that ? is there any others way ?

so i will install the xserver application, and and re do the step as instructed in oracle installation guide....

thanks !!
Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

That's the way it works ...

You need a Xserver on the local system (your PC).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

i give it a try tomorrow.....but i think its hard to install a new software since the company is very strict in installing new software...

pardon my english :)
Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

See

http://en.wikipedia.org/wiki/X_Window_System_protocols_and_architecture

the application that want to "draw" something is the client.

The application that "owns" the screen and does the drawing is the server.

So you need a local X-server if you want to see something on your pc.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

another question torsten.

so i install the xming, then just run the command as normal ?
DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

great, i will give it a try tomorrow.

sorry for my non sense question, never using oracle before..you been a great help !!!

thanks !!!!!!
Dennis Handly
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

I'm not sure if oracle has a non-GUI installer?
If so, you may try "unset DISPLAY".
Hein van den Heuvel
Honored Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Dennis, Typically you really want to run the GUI for the OUI. There is a 'silent' mode for some version for some platforms.

DnD,

If you want to properly install Oracle 'stuff', then Yes you really have to run an X-server on your PC, or 'an' PC. Several options are avaibale for this. Reflection, RealVNC,...

I use CYGWIN.

That command "xhost +" (or preferably a more restrictive version of that) should be run at the PC, not the HPUX box.

This was discussed not too long ago in:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1159922 ADMIN Note: Broken link removed]


Hope this helps,
Hein.

DnD_1
Regular Advisor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

hi,

i installed the xming, and run the xhost +

and got this error

xlib:connection to "10.15.177.60:0.0"refused by server.
xlib:no protocol specified.

xhost:unable to open display "10.15.177.60:0.0"

my pc ip is "10.15.177.60"..

any idea ?
Andrew Rutter
Honored Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

hi,

did you export your display after installing the xming s/w.

if not telnet into the server and export the display to your pc ip address

#export DISPLAY=10.15.177.60:0.0

then try and run the application from server

Andy
Hein van den Heuvel
Honored Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

So did you actually start the X server?

For cygwin see my reply in the note I referenced earlier, or in:

[ ADMIN Note: Broken link removed]


And uh... before you even attempt OUI, always try xclock or xeyes, first on the PC itself, next on the targetted client.
Only bother to try OUI once those work.

Cheers,
Hein.

Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

run putty from your PC, it will care about the DISPLAY var:

> putty -X hpux-server

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Stan Sieler
Respected Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Hi DnD,

To test X locally with xclock, do:

(on PC)

(start your X server)

(start a dos shell ("command" window))

cd \program files\xming
(or wherever your xserver code is)

dir x*.exe

see if you have an "xclock.exe" or
"xeyes.exe". Let's assume you
have "xclock.exe".

set DISPLAY=localhost:0.0
xclock

Bring your X window to the foreground, and you should see a small rectangle showing an
analog clock (the window for xclock).

Starting xclock may have resulted in a few
warnings that you can probably ignore.
Here's a sample session where I start xclock:

C:\Program Files>cd xming

C:\Program Files\Xming>xclock
Error: Can't open display:

C:\Program Files\Xming> set display=localhost:0.0

C:\Program Files\Xming>xclock
Warning: locale not supported by C library, locale unchanged
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*-*-*-*-*-*-
*-*-*" to type FontSet
Warning: Unable to load any usable fontset
Warning: Unable to load any usable fontset

(xclock is now running and is visible
on the main X-window .. which I have configured as one big Windows window (some
X servers let you configure it so each new
X window is a new Windows window)

control-C in the DOS window to terminate
xclock, or click on the close gadget of its
window in X Windows.

Hope that helps you test your X setup!
stan lin
Occasional Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

please su - root , and execute xhost +
oracle user have no permissiom by default.

FYI
Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

@stan lin:
"xhost +" on a windows system?
Maybe with cygwinX only ...

@DnD:
Does it work now?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Stan Sieler
Respected Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Torsten: yep, xhost + on a windows system.

Xhost.exe comes with xming, and (IIRC)Cygwin.
(But not with WRQ/Attachmate's Reflection X,
nor with Starnet's X-Win32).
(X-Win32 has an xhost-like list you can edit)
(Refelction X has an xhosts.txt file)

DnD: don't forget points :)

thanks,

Stan
Torsten.
Acclaimed Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

I have no xhost with my xming, but I think I remember it was needed with cygwin ...

I just discovered that xming can do XDMCP.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Avinash20
Honored Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Yes,, Best option is to install an Emulation software and start with the installation

YOu could install X-manager software on your Windows host and start dtlogin and xfs daemons on HP-UX server
# /sbin/init.d/dtlogin.rc start
# /sbin/init.d/xfs start

Once you login via emulation software, the display variable is automatically set to Windows hosts.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Stan Sieler
Respected Contributor

Re: Can't connect to X11 window server using 'localhost:0.0 <<<< help please

Torsten: no xhost with xming

Good point...it's not in the default package.
It is in the Xming-tools-and-clients package,
available at http://sourceforge.net/project/showfiles.php?group_id=156984, among others.

BTW, the xming xhost works fine with WRQ Reflection X. (I suspect it should work
with any PC X server.)