LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2014, 04:35 AM   #1
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Oracle 11g on Oracle Linux - xdpyinfo: unable to open display


Hi all,

Firstly, here is my setup:
1. Debian 7 local machine (ip: 192.168.57.1)
2. Oracle Linux on virtualbox (hostname: oraserver; ip: 192.168.57.100)
3. Oracle Linux has no GUI (no xhost, xlock, etc.)
4. I don't want my Oracle Linux to have any GUI.
5. I can ping from local machine to oraserver, v.v.
6. I can ssh from local machine to oraserver.
7. I tried setting up x11 forwarding on oraserver and using the following command, I assumed my setup is correct:
Code:
poo@rocket:~$ ssh -v -X oraadmin@oraserver
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
.....
debug1: Offering RSA public key: poo@rocket
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to oraserver ([192.168.57.100]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_PH.utf8
Last login: Mon Mar 24 16:52:54 2014 from 192.168.57.1
[oraadmin@oraserver ~]$
I have already configured everything mentioned in Oracle's install guide (setting kernel parameters, etc.), and here is what I have got so far:
* xhost on my local machine:
Code:
root@rocket:/home/poo# xhost +
access control disabled, clients can connect from any host
root@rocket:/home/poo#
* $DISPLAY is set for oracle@oraserver:
Code:
[oracle@oraserver ~]$ grep DISPLAY ~/.bash_profile
export DISPLAY=192.168.57.1:0
[oracle@oraserver ~]$
(echo would properly display the value)
* output of xdpyinfo on local machine:
Code:
root@rocket:/home/poo# xdpyinfo | grep name
name of display:    :0
root@rocket:/home/poo#
* I cannot run xdpyinfo on oraserver:
Code:
[oracle@oraserver ~]$ xdpyinfo
-bash: xdpyinfo: command not found
[oracle@oraserver ~]$ su
Password: 

[root@oraserver oracle]# xdpyinfo
bash: xdpyinfo: command not found
[root@oraserver oracle]#

So, after logging in to oraserver and doing (su - oracle) to login as oracle, i tried to run:
Code:
./runInstaller
and got the following:
Code:
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB.   Actual 30973 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 799 MB    Passed
Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] n

User Selected: No

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2014-03-24_05-10-29PM/installActions2014-03-24_05-10-29PM.log
I have already spent the day googling around but I really can't see what I am missing here Can someone please help me out?

I already tried logging in to virtualbox directly, but I get the same error.

Cheers!

Last edited by ilesterg; 03-23-2014 at 06:16 AM. Reason: updating title with a more appropriate description of the issue
 
Old 03-23-2014, 04:41 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
Ok, so this cleared my mind that xdpyinfo is not something included in an x install. I installed xdpyinfo and tried to run it and got this:
Code:
[oracle@oraserver database]$ xdpyinfo
xdpyinfo:  unable to open display "192.168.57.1:0".
[oracle@oraserver database]$
I'll try to figure this out and update this later.

Cheers!
 
Old 03-23-2014, 05:04 AM   #3
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
..to no avail.

Hey guys,

Can someone please point out what I am missing here?

Thanks!

Last edited by ilesterg; 03-23-2014 at 05:08 AM.
 
Old 03-23-2014, 11:49 PM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Original Poster
Rep: Reputation: 72
I made it! haha

here's the magic:

* don't DO NOT add $DISPLAY in oracle's .bash_profile, then login to oracle@oraserver through 'ssh -x'

Cheers!
 
  


Reply

Tags
oracle database, oracle linux, ssh, x11, xdpyinfo



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
[SOLVED] Oracle 11g R1 install on Oracle Enterprise Linux martymedina Linux - Newbie 4 10-27-2013 01:24 PM
[SOLVED] oracle 11g install - oracle user passwd- Authentication Token Maniperror cdhar Linux - Newbie 3 08-21-2012 09:48 PM
Oracle redhat6.1 x86 install Oracle 11g r2 error. reconcil Linux - Newbie 3 11-03-2011 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 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
Open Source Consulting | Domain Registration