OESF Portables Forum

General Forums => General Discussion => Topic started by: charlesa on June 05, 2004, 02:02:35 pm

Title: default shell profile?
Post by: charlesa on June 05, 2004, 02:02:35 pm
Hi all -

I am trying to get under the hood on a new SL-C860, and am somewhat perplexed by the default shell when logging in.  While I understand that Z uses bash, it does not seem to pickup the /home/zaurus/.profile nor /home/root/.profile or .bash_profile settings.  there isnt a systemwide /etc/profile either.  where are these settings geting picked up?  it picks them up fine when i manualy do a /bin/bash, but that\'s kinda manual.  

I notice that terminal isnt getting the .bash_profile nor .profile settings, but neither is ssh.  So can anyone suggest to be the location(s) of the default shell setting files?

Thx in advance!

C.
Title: default shell profile?
Post by: Stubear on June 06, 2004, 08:00:54 am
You will probably need to change the shell in /etc/passwd from /bin/sh to /bin/bash to get all the bash goodness.

Not sure what Sharp was thinking here but they probably didn\'t expect anyone to actually use the termnial

Stu
Title: default shell profile?
Post by: charlesa on June 07, 2004, 02:38:15 am
Quote
You will probably need to change the shell in /etc/passwd from /bin/sh to /bin/bash to get all the bash goodness.


Thx!  But my root and zurus logins are set to /bin/bash in /etc/passwd - and the ~/.profile settings are still not getting pick up!

You may be right - we\'re likely in a minority to want to use the shell so much.  But it _is_ linux...  8)
Title: default shell profile?
Post by: bluey on June 07, 2004, 02:46:17 am
ln -s ~/.profile ~/.bashrc

.profile is read when you open a session, usually when you login for the first time, or on multiple ttys, for bash profile that is read on each new shell instance you should use .bashrc or even .bash_profile



(hmmm I\'m having some issues with it, now that I look into it in more detail, tough...)
Title: default shell profile?
Post by: charlesa on June 07, 2004, 02:57:31 am
Quote
ln -s ~/.profile ~/.bashrc

(hmmm I\'m having some issues with it, now that I look into it in more detail, tough...)


Me too!  Thanks for the tip on linking ... but it still isn\'t allowing me to automate the setting of my environment.
Title: default shell profile?
Post by: bluey on June 07, 2004, 03:05:52 am
I believe it should work, try the following:

Create /etc/profile.d/homeprofile.sh:

if [ -e ~/.profile ]; then
. ~/.profile
fi


Every /etc/profile.d/ file should be sourced in /etc/profile, if sharp broke that, add the previous 3 lines to /etc/profile.