Author Topic: .profile and .bashrc, place to add to the PATH?  (Read 1745 times)

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
.profile and .bashrc, place to add to the PATH?
« on: August 31, 2004, 05:35:43 pm »
Hi, I have edited the .profile and .bashrc in my ~ folder and what I added isn't executing at startup.

I added

export PATH="$PATH:/home/zaurus/develop/bin/"
export PS1='[\u]:\w\$'

the new item in PATH won't show, and my console is still just # instead of showing me my u and location, etc.  Anyone know why these things aren't sticking?

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
.profile and .bashrc, place to add to the PATH?
« Reply #1 on: August 31, 2004, 05:42:11 pm »
well actually it does work! sorta...

it works when I use QConsole on the zaurus, but these extras don't show up when I telnet in.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
.profile and .bashrc, place to add to the PATH?
« Reply #2 on: August 31, 2004, 09:55:25 pm »
That's because the /etc/passwd file has /bin/sh (not /bin/bash) as your shell for zaurus (and root). When you run qkonsole it is hardwirded to run bash, however when you telnet (btw you should use ssh - it's more secure and faster than telnet) in it runs the default shell (/bin/sh) which doesn't run .bashrc.

Change the zaursus entry in /etc/password to end in /bin/bash rather than /bin/sh and your troubles should be solved

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