LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't connect to X11 window server using 'localhost:0.0' (https://www.linuxquestions.org/questions/linux-newbie-8/cant-connect-to-x11-window-server-using-localhost-0-0-a-784472/)

Respinoza 01-24-2010 07:41 PM

Can't connect to X11 window server using 'localhost:0.0'
 
Hi:

I have an intel i7 with windows7 64b , then install VMware Workstation and create a machine with Oracle enterprise Linux 64b 5update4, now i want to inatall oracle db10gR2, but this message apears

[oracle@localhost database]$ 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.
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)

I allready did try with xhost + with root but does not work, i thanks someone help

RES

kforbus 01-24-2010 08:29 PM

RE:
 
Maybe you could try:

# su - oracle
$ export DISPLAY=127.0.0.1:0.0
$ xhost +
$./runInstaller

I know you said you tried it as root, but I'm not sure if you've tried it as your oracle user. Hopefully that will make a difference for you.

theYinYeti 01-25-2010 02:54 AM

Using “127.0.0.1:0.0” (or anything with an IP address) may be interpreted as an attempt to access X via the IP stack in TCP protocol. You X server is probably running with the “-nolisten tcp” option. Try using “:0.0” as the DISPLAY value instead, which should use Unix sockets instead.

Yves.

sohail0399 01-25-2010 03:11 AM

login to the oracle usr with GUI and the install oracle with GUI

because Oracle 10 G support installation through GUI.

Respinoza 01-26-2010 04:22 AM

Quote:

Originally Posted by kforbus (Post 3839211)
Maybe you could try:

# su - oracle
$ export DISPLAY=127.0.0.1:0.0
$ xhost +
$./runInstaller

I know you said you tried it as root, but I'm not sure if you've tried it as your oracle user. Hopefully that will make a difference for you.

I tried but dose not work

[root@localhost ~]# xclock
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ export DISPLAY=127.0.0.1:0.0
[oracle@localhost ~]$ xhost +
xhost: unable to open display "127.0.0.1:0.0"
[oracle@localhost ~]$

Respinoza 01-26-2010 04:30 AM

Quote:

Originally Posted by Respinoza (Post 3840748)
I tried but dose not work

[root@localhost ~]# xclock
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ export DISPLAY=127.0.0.1:0.0
[oracle@localhost ~]$ xhost +
xhost: unable to open display "127.0.0.1:0.0"
[oracle@localhost ~]$

Please Explain

Respinoza 01-26-2010 04:33 AM

Quote:

Originally Posted by sohail0399 (Post 3839503)
login to the oracle usr with GUI and the install oracle with GUI

because Oracle 10 G support installation through GUI.

Please Explain

theYinYeti 01-26-2010 06:43 AM

I think the “xhost +” command should be run beforehand as the user running the X server.

Yves.

Respinoza 01-26-2010 08:38 PM

Ok, finylly i did this

su - oracle
export DISPLAY=0.0
sh runinstaller

and it works, thank u, for all the tips


All times are GMT -5. The time now is 01:05 AM.