LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 04-04-2013, 04:01 PM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
Bit confused about display env variable settings in RHEL5


Hello to all ;

I need small clarification for display env variable ..
I got error when setting display variable

PHP Code:
[root@rhel5 ~]# hostname
rhel5.linuxserver

[root@rhel5 ~]# xhost +
access control disabledclients can connect from any host

[root@rhel5 ~]# su - oracle
[oracle@rhel5 ~]$ DISPLAY=local_host:0.0 ;  export DISPLAY 
PHP Code:
[oracle@rhel5 ~]$ cd /u01/
[
oracle@rhel5 u01]$ ./runInstaller 

Starting Oracle Universal Installer
...
Checking installer requirements...
Checking operating system versionmust be redhat-3SuSE-9redhat-4UnitedLinux-1.0asianux-or asianux-2
                                      Passed
All installer requirements met
.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-04-04_08-12-54PMPlease wait ...
[
oracle@rhel5 u01]$ Exception in thread "main"
java.lang.InternalErrorCan't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable. 
>> I did n't get an error when refusing to set display env variable >>

PHP Code:
[root@rhel5 ~]# hostname
rhel5.linuxserver

[root@rhel5 ~]# xhost +
access control disabledclients can connect from any host

[root@rhel5 ~]# su - oracle
[oracle@rhel5 ~]$ DISPLAY=:0.0 ;  export DISPLAY 
Here , i got OUI Screen

> but getting bit confused and don't understand what actually happend in both scanarios ..

Please review attached screenshot and kindly please explain it !

Thanks in advance ..
Attached Thumbnails
Click image for larger version

Name:	slide_01.png
Views:	19
Size:	127.0 KB
ID:	12217   Click image for larger version

Name:	slide_02.jpg
Views:	20
Size:	103.2 KB
ID:	12218  

Last edited by thiyagusham; 04-04-2013 at 04:03 PM.
 
Old 04-04-2013, 07:27 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Change "local_host" to "localhost". Or it is defined somewhere?
 
1 members found this post helpful.
Old 04-04-2013, 07:32 PM   #3
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hi ; i need lit bit explanation regarding this .. I am getting confused .. please clarify ..
 
Old 04-04-2013, 07:33 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
1. As above, try localhost, not local_host.

2. I note it says it must be RHEL3 or RHEL4, but you're doing this on RHEL5?
Is this really the correct version to install...?
 
1 members found this post helpful.
Old 04-04-2013, 07:43 PM   #5
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Thanks Chrism01

I note it says it must be RHEL3 or RHEL4, but you're doing this on RHEL5?

Yes obviously rhel5.

As per supporting doc , need to change version from rhel-5 to rhel-4

Replace the release Information (RedHat Enterprise Linux Server release 5 (Tikanga)) to redhat -4.

Is this really the correct version to install...?

Yes ..
 
Old 04-04-2013, 09:07 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
I think you didn't get my point; you shouldn't install that version on RHEL5. It might(!) work, but you'd be better off getting the version designed to be installed on RHEL5.
Don't backtrack to RHEL4; its out of (normal) support at RH http://www.redhat.com/security/updates/errata/
 
1 members found this post helpful.
Old 04-04-2013, 10:01 PM   #7
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hi Chrismo1 ;

Thanks for your clarification ..
 
Old 04-04-2013, 10:07 PM   #8
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Finally one more question

Is this compulsory ?

Should we set display variable every time i.e( Installation ) ?

because i issued echo $DISPALY command ( before setting display variable) it showed :0.0

then what's the need to set once again ?

Thanks Chrism01.
 
Old 04-05-2013, 03:03 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
I'd stick to whatever the instructions say; probably set it every time.
Never assume (you know what they say about 'assume' .. )
 
Old 04-05-2013, 09:01 AM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Note: By default most systems disable the TCP connection to the X server.
Instead, use ssh to forward connections (more secure).

The normal default for X is to use UNIX domain sockets rather than TCP.

using xhost + disables access controls - which means anyone on your network
can connect and capture your display, and keystrokes.

That means they can capture any passwords you use.
 
  


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
[SOLVED] I'm confused as to what is meant by 12-bit offset in 32-bit intel processors... trist007 Programming 10 08-08-2011 01:21 PM
How to set Display env variable in solaris LINUXQueAns Solaris / OpenSolaris 3 11-08-2010 08:14 AM
How to setup user's PATH env when sudo command in RHEL5? sailer_sh Red Hat 3 12-22-2008 08:36 PM
env variable allelopath Linux - Software 3 04-14-2005 01:07 PM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 05:15 PM


All times are GMT -5. The time now is 08:25 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