OK, I have Suse 7.3. I can't find profile.local. I need to put "path=/opt/kde/bin" in somewhere to get my new theme working. Where's profile.local?? Thanks! Tom
On 31 Mar 2002, Tom Nielsen wrote: tn> OK, I have Suse 7.3. I can't find profile.local. I need to put tn> "path=/opt/kde/bin" in somewhere to get my new theme working. tn> tn> Where's profile.local?? tn> Doesn't exist until root (or you as root) puts it within /etc directory. /etc/profile reads it only if it exists, by default, it does not. Take a look at /etc/profile for where PATH is set and copy/paste it into a new file that you call profile.local, change the paths you want added and and next time you restart, the new paths will be appended. ie: for dir in /first/path \ /second/path do test -d $dir && PATH=$PATH:$dir done unset dir export PATH tn> Thanks! tn> Tom tn> tn> tn> -- S.Toms - smotrs at mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.3+ - Kernel 2.4.10-4GB
On 31 Mar 2002, Tom Nielsen wrote: tn> OK, I have Suse 7.3. I can't find profile.local. I need to put tn> "path=/opt/kde/bin" in somewhere to get my new theme working. tn> Also, should have noted, forgot in the last post, that /opt/kde/bin has already been added to the PATH variable from /etc/profile (assuming it existed last time you logged on). If /opt/kde/bin didn't exist and does now, a simple . /etc/profile run at a prompt will re-create the PATH variable with the new paths added/appended. Again, this is assuming that the path actually exists on the drive which I'm assuming it does if you added it or installed packages that added it. tn> Where's profile.local?? tn> See my previous post sent a minute earlier thne this one. tn> Thanks! tn> Tom tn> tn> tn> -- S.Toms - smotrs at mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.3+ - Kernel 2.4.10-4GB
On Sunday 31 March 21:24, Tom Nielsen wrote:
OK, I have Suse 7.3. I can't find profile.local. I need to put "path=/opt/kde/bin" in somewhere to get my new theme working.
Where's profile.local??
Just create /etc/profile.local. These lines in /etc/profile check to see whether /etc/profile.local exists, and execute it if it does: # and now let's look if there is a local profile (for stuff not # defined by SuSE Linux, but your friendly admin) # test -e /etc/profile.local && . /etc/profile.local The line you put in /etc/profile.local should be: export PATH=$PATH:/opt/kde2/bin But are you sure you need to add this line? /opt/kde2/bin is already in my PATH by default. Try echo $PATH SH
participants (3)
-
S.Toms
-
Sjoerd Hiemstra
-
Tom Nielsen