Choose style:

Author Topic: enviroment variables  (Read 1157 times)

0 Members and 1 Guest are viewing this topic.

Offline Walrus

  • nOOb
  • *
  • Posts: 1
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 4.0
enviroment variables
« on: April 12, 2014, 11:32:36 am »
Hi, need to set some enviroment variables such as PATH, JAVA_HOME and CLASSPATH during login. Where do I do this?


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25473
  • Karma: 2803
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: enviroment variables
« Reply #1 on: April 12, 2014, 07:02:43 pm »
If I'm understanding you correctly, and you want to do this on a per user basis at login.......

Use gedit to add them to the end of your

So you'd add lines like
Code: [Select]
export JAVA_HOME=/usr/lib/jvm/java-8-oracle

once you've saved your edited .profile file, you can load it with:
Code: [Select]
source .profile
or log off/on.

Test the variable by echoing it:
Code: [Select]
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint