LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2010, 08:41 PM   #1
Respinoza
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Unhappy 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
 
Old 01-24-2010, 09:29 PM   #2
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
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.
 
Old 01-25-2010, 03:54 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
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.
 
Old 01-25-2010, 04:11 AM   #4
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
login to the oracle usr with GUI and the install oracle with GUI

because Oracle 10 G support installation through GUI.
 
Old 01-26-2010, 05:22 AM   #5
Respinoza
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by kforbus View Post
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 ~]$
 
Old 01-26-2010, 05:30 AM   #6
Respinoza
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by Respinoza View Post
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
 
Old 01-26-2010, 05:33 AM   #7
Respinoza
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by sohail0399 View Post
login to the oracle usr with GUI and the install oracle with GUI

because Oracle 10 G support installation through GUI.
Please Explain
 
Old 01-26-2010, 07:43 AM   #8
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

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

Yves.
 
Old 01-26-2010, 09:38 PM   #9
Respinoza
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, finylly i did this

su - oracle
export DISPLAY=0.0
sh runinstaller

and it works, thank u, for all the tips
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. defa0009 Linux - General 13 01-20-2012 03:55 PM
java.lang.InternalError: Can't connect to X11 window server serjith Linux - Server 1 09-25-2006 10:45 AM
Can't connect to X11 window server kofibull Linux - Newbie 10 06-17-2006 12:47 AM
Can't connect to X11 window server suresheva31 Linux - General 0 10-19-2004 03:17 PM
Can't connect to X11 window server Checking operating system version: must be redha pmarino Linux - General 2 09-20-2004 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration