LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-20-2010, 05:09 PM   #1
x81kilo
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
Permanent $PATH edits


hi,

i have installed tomcat and java sdk successfully with help of uncle google (and with some hair still left on me head)

question:
i have a vmware setup running redhat 5.4 environment, i have set paths in my .bashrc as such:

export CATALINA_HOME=/opt/dtv/apache-tomcat-5.5.26
export JAVA_HOME=/usr/java/jdk1.5.0_15
export PATH=$PATH:$CATALINA_HOME:$JAVA_HOME


question is that works all well and good when i login to the server and my profile executes, but i dont wanna login, i just wanna start my vmware login once and log back out, if the vmware linux enviro is still running, great, but if for some reason it gets rebooted (fuse goes out a lot in the house) i dont wanna deal with walking my kid thru how to start this service back up,

is there a better way to accomplish this so if server starts, so it sets the path environemnts for me without logging in?

** sorry if i sounded redundant there for a sec, still in headspin from the install **

thanks
x81kilo
 
Old 09-20-2010, 05:32 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,705
Blog Entries: 1

Rep: Reputation: 220Reputation: 220Reputation: 220
Have you checked the Bash reference manual to try and figure out how Bash sources its configuration files?
 
Old 09-20-2010, 05:34 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by x81kilo View Post
hi,

i have installed tomcat and java sdk successfully with help of uncle google (and with some hair still left on me head)

question:
i have a vmware setup running redhat 5.4 environment, i have set paths in my .bashrc as such:

export CATALINA_HOME=/opt/dtv/apache-tomcat-5.5.26
export JAVA_HOME=/usr/java/jdk1.5.0_15
export PATH=$PATH:$CATALINA_HOME:$JAVA_HOME


question is that works all well and good when i login to the server and my profile executes, but i dont wanna login, i just wanna start my vmware login once and log back out, if the vmware linux enviro is still running, great, but if for some reason it gets rebooted (fuse goes out a lot in the house) i dont wanna deal with walking my kid thru how to start this service back up,

is there a better way to accomplish this so if server starts, so it sets the path environemnts for me without logging in?

** sorry if i sounded redundant there for a sec, still in headspin from the install **

thanks
x81kilo
Create a file
/etc/profile.d/tomcat.sh
put the exports in it
make it executable
 
  


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
$CFLAGS and $PATH - how to change them so that they stay permanent kiwi_MTBer Linux - Newbie 8 04-16-2009 09:51 PM
Permanent PATH variable with azureus dreamcatcheromerta Linux - Newbie 4 11-06-2008 07:31 PM
fstab edits won't stick in SM 6.5? bluesman2333 MEPIS 7 04-17-2007 06:48 PM
Code edits not showing in C++ Rojon Programming 3 06-02-2006 09:09 AM
Script edits KDE-Config? theonebeyond Programming 0 09-22-2004 01:53 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration