LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-02-2003, 11:05 PM   #1
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Rep: Reputation: 15
how to add environment variable to .bashrc file


please can anyone help me to do the following step to install realplayer8 properly on red hat 9.0
---------------------------------------------------------------------------------------------------------------

add:

export LD_ASSUME_KERNEL=2.2.5

to your .bashrc file. Then it will be set when you login to your machine
(if your default shell is bash of course)
 
Old 10-02-2003, 11:12 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Well, open up or use your favorite editor by opening up .bashrc in your users home directory, then add that line, then save. Can't be that hard right? Pretty self explanatory to me. Have you tried that so far or what kind of problems are you encountering?
 
Old 10-03-2003, 12:49 AM   #3
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Original Poster
Rep: Reputation: 15
tricky kid

the thing is i have no exposure to programming or scripting therefore i am lost not knowing what to do

so u said i should open up an editor program and go into file menu and select open file and from there i should select the file .bashrc to open?

and add that one line in there?

please do let me know, i will b really gratefull !!!
 
Old 10-03-2003, 12:59 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
Quote:
so u said i should open up an editor program and go into file menu and select open file and from there i should select the file .bashrc to open?

and add that one line in there?
exactly. the .bashrc is in your home directory and is hidden (that's what . at the beginning does).
 
Old 10-03-2003, 01:26 AM   #5
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Original Poster
Rep: Reputation: 15
one last question

that 1 line is to make real player 8 installation possible.

i was told by the customer service [for real player on linux ] of real.com
to do it this way for red hat 9.0

so, shouldn't it be in /root ?

so that the effect is system wide

why under /home ?
 
Old 10-03-2003, 01:35 AM   #6
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Original Poster
Rep: Reputation: 15
this is how my .bashrc file looks like

how should i add the line in here, i mean where

# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
~
~
~
~
 
Old 10-03-2003, 08:05 AM   #7
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Code:
# .bashrc
# User specific aliases and functions
# Source global definitions
if    [    -f   /etc/bashrc ];  then
                .   /etc/bashrc
fi

export LD_ASSUME_KERNEL=2.2.5
~
~


Add it just like that. And no, if you put it in root, that doesn't mean its global. /root is root's home directory. You should not be logged in as root for regular use. Create another login and use them. Logged in as root for regular use is bad idea and bad security practice. The only reason you will put this in root's bashrc file is if your going to be installing as root. Go ahead and add if for that purpose only or just place this in your /etc/bashrc or /etc/global files which are the global directories, not /root.

Regards.

Last edited by trickykid; 10-03-2003 at 08:08 AM.
 
Old 10-03-2003, 04:43 PM   #8
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Original Poster
Rep: Reputation: 15
hey linux gurus

i added the line " export LD_ASSUME_KERNEL=2.2.5 "

to

/etc/bashrc

realplayer is installed

but its not playing .... whatever real audio/video file i click on mozilla 1.4 browser

it does not play ... a dialog box opens saying open the file with default application " /usr/local/RealPlayer8/realplay " and click yes

and then mozilla download manager dialog box opens showing the download and then nothing happens ......

why is that????
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variable gamor Linux - Newbie 4 04-30-2005 05:28 PM
howto add an environment variable dtra Linux - Newbie 4 04-18-2005 06:22 PM
how to add environment variable to .bashrc file? hasan Red Hat 1 10-03-2003 01:37 PM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM
environment variable mimi Linux - General 2 04-10-2002 07:45 AM


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