Results 1 to 5 of 5
[/B]Hello all,
first of all i wish you Merry Christmas,
second forgive me for my english. (i am not native).
The reason i am posting here (hoping to find some ...
- 12-24-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 4
I need to run enviromental variables on a ubuntu 10.04 LTS home server
[/B]Hello all,
first of all i wish you Merry Christmas,
second forgive me for my english. (i am not native).
The reason i am posting here (hoping to find some answer-cause googling didnt help me) is the following:
I have installed ubuntu10.04 LTS in VirtualBox in my home computer(i forgot to tell you i am very new to linux-though i am studying a lot, but....-maybe because of my age "45" i am going slow. LOL. I hope i dont have a heart attack before i finish what i am trying to do in the server). Back to my issue:
What i want is to have in the server some enviromental variables running not only for the root user but for all the users,when the server is open and not having to type the following commands every single time i open the terminal. Here are the commands:
export JAVA_HOME=/opt/java
export PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/opt/maven/maven
export PATH=$M2_HOME/bin:$PATH
export CATALINA_HOME=/opt/tomcat
export PATH=$CATALINA_HOME/bin:$PATH
$CATALINA_HOME/bin/startup.sh
(where java, maven, tomcat are symbolic links for java jdk, maven and apache-tomcat 5.5.31).
Please (LOL) save me from the heart attack, give me the chance to enjoy the holidays with my family!!!
Again i want to thank "a priori" everyone that could help
George
confused:
- 12-24-2010 #2
Merry christmas

You could add these to a file in
/etc/profile.d/
make sure, this file ends with a .sh
Then it should get sourced and be available to any user.You must always face the curtain with a bow.
- 12-24-2010 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 4
What can i say???
It worked just fine!!!
so quick!!!
A very very very huge infinite THANK YOU!!!
again again and again.
I was stuck 3 days!!!
Thanks so very much Irithori
deeply grateful
George(yiorgos)



Have a nice holiday!!1
- 12-24-2010 #4
yw.
Just a note:
- document that change
- and if you need it on multiple servers: automate it (via cfengine/puppet for example)You must always face the curtain with a bow.
- 12-24-2010 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 4
thank for the notice.
I just documented it!!!Last edited by yiorgos; 12-24-2010 at 11:37 AM. Reason: i forgot somethin


Reply With Quote