Author Topic: default shell profile?  (Read 2121 times)

charlesa

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
default shell profile?
« 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.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
default shell profile?
« Reply #1 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

charlesa

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
default shell profile?
« Reply #2 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)

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
default shell profile?
« Reply #3 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...)
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

charlesa

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
default shell profile?
« Reply #4 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.

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
default shell profile?
« Reply #5 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.
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...