Results 1 to 3 of 3
Hello,
I was wondering if somebody could tell me how to set up environment variables in Mandrake 10.1 Official. I am planning to install Tomcat and have installed Java for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-28-2005 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 42
Environment Variables
Hello,
I was wondering if somebody could tell me how to set up environment variables in Mandrake 10.1 Official. I am planning to install Tomcat and have installed Java for Tomcat to use. So I think I'll need to set up environment variables for Tomcat to work. Does anybody know how to do this? Thank you so much.
Victor.
- 03-29-2005 #2Linux Newbie
- Join Date
- Jul 2004
- Location
- Calcutta, India
- Posts
- 220
If you are using BASH shell ( which in most probability you are )
then edit your .bash_profile file in your $HOME directory.
Suppose you want to set environment variable MY_VAR1 as "myusername"
add the following to the file :
MY_VAR1=myusername
export MY_VAR1
mind you, this will set up environment variables only for the current user,
if you want to do this system-wide, then edit the system file /etc/profile as root,
in the same manner as above.
- 03-29-2005 #3Just Joined!
- Join Date
- Mar 2005
- Posts
- 42
Environment Variables
Hi,
Thank you so much for your reply. With your help, I am beginning to get the hang of things.
Cheers.


Reply With Quote
