LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2007, 11:19 AM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
How to start bash commands automatically every time I start the computer


Hi,
I use Debian 4.0 . And I just installed Tomcat and JDK manually. There is a need to set the variables JAVA_HOME etc every time the computer starts.
So i would like to know if there any file that i can change adding these bash command lines like: JAVA_HOME="/usr/local/java".

Thanks
 
Old 10-18-2007, 11:22 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Edit ~/.bash_profile and add something like
Code:
export JAVA_HOME=/usr/local/java
 
Old 10-18-2007, 11:26 AM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
If a change /etc/skel/.bash_profile the commands will be started for anyone who logs in?

I will do this in Server machine so, not necessarily someone will login. It will just start.

Thanks
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer doesn't start; fans start then stop; 1 long, 1 short beep PatrickMay16 General 18 09-26-2007 07:48 PM
Start with KDE automatically each time xmdms Linux - General 4 06-11-2006 06:17 PM
automatically start gdm at boot time rosslaird Debian 6 09-07-2004 09:00 AM
Getting my computer to automatically start XP and RH 9 only from floppy Rikoupe Red Hat 2 06-20-2004 12:09 AM
How to start scriptfile(tomcat) automatically at boot-time run fmohideen76 Linux - General 4 07-11-2002 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration