LinuxQuestions.org
Register a domain and help support LQ
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 06-09-2009, 02:05 PM   #1
diver1
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
X11 display problem


Hello all:
I am trying to run Oracle installer (runInstaller) and do not seem to get it to run.
Below is the error message I receive.
Some more info below:

1. I CAN run xclock as myself but not as 'oracle' user!
I check my 'env' and tried to replicate the same but still as Oracle can't run xclock.

2. # xhost +
X connection to localhost:10.0 broken (explicit kill or server shutdown).

I have read and tried to follow instructions on several recommendations on several online boards and all have failed.

I am using 'xmanager' from my Windows Xp machine to connect to the Linux server which is also my DB server with Oracle.
Xmanager seem to be working fine but the Oracle installer does not
start. Can anyone help, please.

Thanks,


--------------------------------------------------------------------
./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1, asianux-2 or asianux-3
Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-06-09_11-54-16AM. Please wait ...[oracle@findb1 Disk1]$ Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.

Can't connect to X11 window server using '10.76.101.161' as the value of the DISPLAY variable.
10.76.101.161
10.76.101.161
OUI-10025:Unable to start an interactive install session because of the following error:Can't connect to X11 window server using '10.76.101.161' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
OUI-10026epending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
OUI-10027:To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
% <full path to xclock... see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for 'xclock': '/usr/X11R6/bin/xclock'

------------------------------------------------------------------------
 
Old 06-09-2009, 03:59 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Are you logging in directly as the Oracle user when you try this or are you doing su (or sudo su) to the Oracle user after you login as yourself?

If you're doing su (or sudo su) after login that along with the localhost:10.0 DISPLAY suggests you're doing ssh X tunneling. If so xhost has no effect unless you change the DISPLAY variable to the name or IP of the workstation from which you're attempting to do this.

However, rather than doing that you can do the following:
1) Login as yourself.
2) Type "echo $DISPLAY" and save the value (presumably localhost:10.0).
3) Type "ls -l .Xauthority" to verify a file named .Xauthority exists. If so it should show permisssions -rw-------.
4) Type "chmod 644 .Xauthority" so permissions change to -rw-r--r--
5) Do your su or sudo su to the Oracle user.
6) Type "export DISPLAY=<value from step 2>"
7) Type "export XAUTHORITY=<homedirectory of YOUR account>/.Xauthority

Test it with xclock or xterm.

P.S. Step 4 is a bit of a security hole so should only be done temporarily for this install. When you log out and log back in it should recreate .Xauthority with normal permissions.

Last edited by MensaWater; 06-09-2009 at 04:00 PM.
 
  


Reply

Tags
display, x11


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
Fedora core 6 First Boot Monitor Display Problem .. X11 not getting configured... ngrid Fedora 4 03-30-2007 05:21 PM
Fedora core 6 First Boot Monitor Display Problem .. X11 not getting configured... ngrid Red Hat 1 03-30-2007 03:02 PM
Redirecting(Stealing?) X11 Display debuser123 Linux - Desktop 2 12-12-2006 05:05 PM
mplayer -vo x11, how do I specify which display? lukebeales Linux - Software 2 09-17-2004 09:35 AM
Correct X11 display??? s1lv1a9999 Linux - Software 2 05-03-2004 01:39 AM


All times are GMT -5. The time now is 08:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration