You are not logged in.

#1 2005-06-11 19:44:59

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

New Installation $PATH Variable

I just did a complete reinstall, and am wondering why I've had to add some entries to my $PATH variable (i.e. /opt/xfce4/bin, and /opt/firefox/bin) in the /etc/profile file, when I don't ever remember having to touch that last time I did an installation.  Should I just add /opt and let it look there recursively?

Offline

#2 2005-06-11 19:58:01

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: New Installation $PATH Variable

those entries are usually added by scripts in /etc/profile.d, which are sourced from /etc/profile, I think... is that being sourced properly in your ~/.bash_profile or ~/.bashrc?

Dusty

Offline

#3 2005-06-11 22:56:34

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: New Installation $PATH Variable

Hmmm...that is weird.  I never noticed that section of /etc/profile before, but yes, it is set up to run the scripts under /etc/profile.d/*.sh and all of the correct files exist and the permissions are set correctly.  Any idea why that would be failing to import those?

Offline

#4 2005-06-11 23:26:36

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: New Installation $PATH Variable

I'm retarded...I hadn't logged out since installing those things, I was just su'ing back and forth so they never got the chance to load.  Looks like everything is working fine now.

Offline

#5 2005-06-11 23:49:10

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: New Installation $PATH Variable

Oops, that was supposed to be the first thing I suggested too. hehehe.

Dusty

Offline

#6 2005-06-12 00:59:20

dust
Member
Registered: 2005-06-04
Posts: 152
Website

Re: New Installation $PATH Variable

Isn't there a command to have the profile reread without having to logout/in?


Writing stories for a machine.

Offline

#7 2005-06-12 02:01:02

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: New Installation $PATH Variable

yeah, '. /etc/profile' or 'source /etc/profile'

However, it tends to be better to log out to make sure everything happens in the right order. Otherwise you end up with duplicate entries on your path and stuff.

Dusty

Offline

Board footer

Powered by FluxBB