View Single Post
  #13 (permalink)  
Old October 16th, 2001
rls rls is offline
Apprentice
 
Join Date: October 1st, 2001
Posts: 5
rls is flying high
Default Install Problem

Yes I could not find the bash_profile immediately. If you nominated a name for your home directory which you are asked to do when you install RH 7.1 you will have a home/name you gave directory. Look in there in a shell by using cd then las -al. You should see something like this:
ls -al
total 2028
drwxrwxr-x 34 Raena Raena 4096 Oct 16 20:27 .
drwxr-xr-x 3 root root 4096 Jul 22 14:16 ..
drwxrwxr-x 11 Raena Raena 4096 Aug 11 21:23 adabas
drwxrwxr-x 2 Raena Raena 4096 Oct 7 01:58 autosave
-rw------- 1 Raena Raena 7011 Oct 16 07:25 .bash_history
-rw-r--r-- 1 Raena Raena 24 Jul 22 14:16 .bash_logout
-rw-r--r-- 1 Raena Raena 250 Oct 4 00:14 .bash_profile
-rw-rw-r-- 1 Raena Raena 225 Oct 3 21:52 .bash_profile.old
-rw-rw-r-- 1 Raena Raena 225 Oct 3 21:58 .bash_profile.old1
-rw-r--r-- 1 Raena Raena 398 Oct 14 00:36 .bashrc
drwx------ 2 Raena Raena 4096 Sep 1 17:55 .cddbslave

...and all your other directories and files....

Then type
more .bash_profile

This will let you just look inside the .bash_profile but you cannot edit in this mode, and you should see something like this

more .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc

export BASH_ENV PATH
unset USERNAME

Then using an editor (in KDE and GNOME there are lots including emacs. I think the simplest is Advanced editor in KDE for simple things like this) you can edit the .bash_profile PATH values by opening the editor then finding and opening the file .bash_profile and hacking away.

Or, (and this is the more correct way to put JRE in your PATH,)in the .bash_profile is another .bashrc. If you type

more .bashrc

you will get soemthing like this:

more .bashrc
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# by Sun Microsystems setup
HOME=/home/Raena
DBROOT=/home/Raena/adabas
DBWORK=/home/Raena/adabas/sql
DBCONFIG=/home/Raena/adabas/sql
PATH=$DBROOT/bin:$DBROOT/pgm:$PATH
LD_LIBRARY_PATH=$DBROOT/lib:$LD_LIBRARY_PATH
export DBROOT DBWORK DBCONFIG PATH LD_LIBRARY_PATH

In .bashrc you use your editor to edit the PATH to

PATH=$DBROOT/bin:$DBROOT/pgm:/usr/java/jre1.3.1_01/bin:$PATH
Reply With Quote