[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuring a non-root-user profile



Incoming from gmorais:
> Ruby Deepdelver wrote:
> 
> >Hi. I'm a newbie in debian, and almost everything that i used to do in 
> >Mandrake now doesn't work in debian. I understand i'm doing something 
> >in the wrong way.
> >I need to configure in my account some extra entries in the PATH 
> >variable. I configure my .bash_profile and it looks like this:
> >
> >PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$ANT_HOME/bin:/usr/local/pgsql/bin:/usr/local/eclipse 
> >
> >
> >but the only thing i get in bash is:
> >
> >bash-2.05b$ echo $PATH
> >/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> >
> This is something like newbie to newbie: I had the same problem while 
> ago and the solution was:
> 
> 1. edit your .bashrc file and add a line with:
>    source .bash_profile
> 
> 2. Then you have to logout (or login elsewhere) for your changes take 
> effect ;

The last time I read O'Reilly's Learning the Bash Shell, it said
.bash_profile is run on all logins.  .bashrc is run on top of that
(automagically) for all _interactive_ logins (which is why aliases
should be defined in .bashrc).

For Ruby, I'd suggest _exporting_ your PATH variable once you've
fiddled with it.  Then start a new x/k/g*term and echo PATH there.

Finally, see if you have a .profile, because this can foul things up.
Move that somewhere else, then start a terminal and do the echo PATH
thing again.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: