LinuxQuestions.org
Visit Jeremy's Blog.
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 09-18-2003, 02:04 AM   #1
djinniyah
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Question Startup Files


Hello,

I am using redhat9, mysql 4, apache and trying to integrate with tomcat, JDBC and J2sdk1.4.1_05. I have several problems.
I can't set JAVA_HOME permenantly. If I can't do that, I can't set CATALINA_HOME either.
I 'ls' the /etc in a terminal and the 'profile' is not a directory. What I understand is that startup files refers to /etc/profile.
I can't find it! There's 'profile.d' directory though. Are they the same?
When I type '~/.bash_profile' in the terminal, there'll be an error. There's no such file!!! I read that I have to open '~/.bash_profile' file, and add the following line:

export JAVA_HOME=/usr/local/j2sdk1.4.1_05

...then save the file, exit, and then source the file to read it and
update the settings:

$ source ~/.bash_profile

What does it mean by 'open' and 'add' and 'update'? Update what settings? Do all of that in terminal? I am so stuck.
Please, please help as I am quite new to linux!!!

Thank you!
 
Old 09-18-2003, 04:01 AM   #2
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 30
No panic If someone or something tells you to open a file, and that file doesn't exist, then just create the file. Open an editor, edit away, and save this as a new file, with the appropriate name.

Yes, /etc/profile IS a file, and this is the global setup file if you're using bash. It is one of the places where you can put your JAVA_HOME or whatever variable you want. ~/.bash_profile, ~/.bash_login, and ~/.profile are personal setup files for each individual user.

These setup files are scripts that are run when you're starting your session. If you make changes in one of these files, you'll also have to update the settings. This is simply done by doing

$ source ~/.bash_profile

HTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Startup files in Suse AmdMhz Linux - Software 6 09-27-2004 11:31 PM
How to mount files on StartUp GeoMiB Linux - Software 3 06-01-2004 08:02 AM
startup files or scripts BajaNick Slackware 10 05-25-2004 01:12 AM
Shell startup files Fernando534 Linux - Newbie 3 05-07-2004 01:45 PM
prompt/startup files snocked Linux - Newbie 9 06-02-2003 11:32 PM


All times are GMT -5. The time now is 02:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration