OESF Portables Forum

General Forums => General Discussion => Topic started by: projekt on August 31, 2004, 05:35:43 pm

Title: .profile and .bashrc, place to add to the PATH?
Post by: projekt 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?
Title: .profile and .bashrc, place to add to the PATH?
Post by: projekt 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.
Title: .profile and .bashrc, place to add to the PATH?
Post by: Stubear 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