Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux 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.

  3. #3
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •