Fedora Linux Support Community & Resources Center
  #1  
Old 14th May 2005, 04:31 PM
raptrex Offline
Registered User
 
Join Date: May 2005
Posts: 15
add environment variable

http://mypod.sourceforge.net/user%20...l/ch01s03.html

this is a site to install a program (made in java) to work with your ipod

how do i add a environment variable like it says?
Reply With Quote
  #2  
Old 14th May 2005, 08:22 PM
tejas Offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore
Age: 27
Posts: 1,574
add it to either the
~/.bash_profile
ore the
~/.bashrc

This only works for your user though.

Linux conventions insist that the bashrc is where to add it, unless it is a mega important system variable.

Add the line set MYPOD_HOME="/usr/local/mypod"

-Tejas Dinkar
__________________
I Was Counted! Registered Linux User #384707

BASH && Beer && Bass! Now THAT makes sense!!
Reply With Quote
  #3  
Old 14th May 2005, 08:44 PM
stry_cat Offline
Registered User
 
Join Date: Mar 2005
Posts: 110
Quote:
Originally Posted by tejas
add it to either the
~/.bash_profile
ore the
~/.bashrc

This only works for your user though.

Linux conventions insist that the bashrc is where to add it, unless it is a mega important system variable.

Add the line set MYPOD_HOME="/usr/local/mypod"

-Tejas Dinkar
Don't forget to also inlucde MYPOD_HOME in the line that starts with the word "export"
Reply With Quote
  #4  
Old 15th May 2005, 12:36 AM
jonest Offline
Registered User
 
Join Date: Sep 2004
Location: Sydney, Australia
Posts: 162
You can also add the variable to /etc/profile as root if you wanted it to be a global variable to be used by all users.
Reply With Quote
  #5  
Old 15th May 2005, 02:28 PM
raptrex Offline
Registered User
 
Join Date: May 2005
Posts: 15
i do this in the terminal right?
if so, i get an access denied
and im root
Reply With Quote
  #6  
Old 15th May 2005, 03:09 PM
tejas Offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore
Age: 27
Posts: 1,574
ay ay ay ay ay!

Open ~/.bashrc in kedit or gedit or emacs or Notepad or whatever you want. Just make sure it is a text editor. You don't run bashrc.
__________________
I Was Counted! Registered Linux User #384707

BASH && Beer && Bass! Now THAT makes sense!!
Reply With Quote
  #7  
Old 15th May 2005, 03:39 PM
jonest Offline
Registered User
 
Join Date: Sep 2004
Location: Sydney, Australia
Posts: 162
To spell it out, follow these steps.

1. open a terminal from your program menu

2. Type 'nano -w ~/.bashrc' - this will open the .bashrc file in the nano editor (easy to use text editor).

3. After adding the lines you want to, type CTRL-X and choose to save the file.

4. Next, type 'source ~/.bashrc' as this will re-read the .bashrc file.

5. Type 'env' to see your environmental variables. You should be able to see your new variable.

6. You can now use that terminal session with your new environmental variable and it will be there for any new sessions you have open. To start with a clean slate and make sure everything you are working on has the new variable, logout and log back into the system.

You can also edit /etc/profile in the same manner described above as the root user and this will make the variable available to all users.
Reply With Quote
Reply

Tags
add, environment, variable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOZILLA_FIVE_HOME environment variable sharique Using Fedora 1 15th February 2008 04:28 PM
environment variable nooit Using Fedora 2 13th May 2007 03:03 PM
How to set an environment variable royeo Using Fedora 1 1st December 2006 07:49 AM
Environment variable massimomm Using Fedora 2 19th April 2006 11:53 AM
environment variable karima Using Fedora 2 2nd February 2005 04:45 PM


Current GMT-time: 12:25 (Thursday, 23-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Port Chester - Kortrijk Photos - Keren