Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi everybody,
I used to the bash shell under Linux/Ubuntu. With my DNS-323, I discovered that my shell is /ffp/bin/sh. There is no big deal about this, but I am wondering the big difference between the two? Anybody knows?
I usually have a .bashrc file in my home directory, under Ubuntu, that contains a lot of aliases. I created one on my DNS-323, but it is not sourced automatically when I log in (but is OK when i do ". .bashrc"). Is there a way to do such a thing?
Thanks
boupartac
Offline
/ffp/bin/sh is not a bash. It's ash from busybox.
http://en.wikipedia.org/wiki/Shell_(computing)#UNIX_shells
If you want bash, install it and change your shell. http://www.inreto.de/dns323/fun-plug/0. … .html#bash
Offline
Woah, you really rock, fonz.
Thanks,
boupartac
Offline
Once bash installed, creating the file "~/.bashrc" is not enough; You must also create the file "~/.bash_profile" and add this to it:
if [ -f ~/.bashrc ]; then
. ~/.bashrc;
fi
.bashrc = 644 = rw-r--r--
.bash_profile = 644 = rw-r--r--
Do not forget to replace the last field of the user, in /etc/passwd by /ffp/bin/bash
Once done, in root, store-passwd.sh to store changes in flash.
boupartac
Last edited by boupartac (2008-08-12 20:42:50)
Offline
yop.. or you can go by hand if you like risks
Offline
boupartac wrote:
Once bash installed, creating the file "~/.bashrc" is not enough; You must also create the file "~/.bash_profile" and add this to it:
if [ -f ~/.bashrc ]; then
. ~/.bashrc;
fi.bashrc = 644 = rw-r--r--
.bash_profile = 644 = rw-r--r--
Do not forget to replace the last field of the user, in /etc/passwd by /ffp/bin/bash
Once done, in root, store-passwd.sh to store changes in flash.
boupartac
Hi there. I have the files as you have suggested when I converted to the bash shell however, when ever I log in now it come up with the following
-bash: [-f~/.bashrc]: No such file or directory
Any idea how to fix this? Its works fine but its annoying me every time I log in.
Ta,
Lambretta.
Last edited by lambretta (2009-05-24 06:34:25)
Offline
Never mind, the bash_profile file didn't have the correct spacing between the various commands in the file. All fixed now, nothing to see here, move on....
:-)
Offline
Where are you guys placing your .bash_profile and .bashrc files? I log into the root account via SSH, but I was under the impression that /home/root was cleared with every shutdown/reboot.
Offline
Root on my box still uses ash. My user account uses bash so the .bashrc and the .bash_profile is in my users ~ directory.
Offline
lambretta wrote:
Root on my box still uses ash. My user account uses bash so the .bashrc and the .bash_profile is in my users ~ directory.
Ah, so if I use root I am stuck with ash then since the /home/root gets wiped with every reboot?
Offline
man usermod (see -d and -s)
Also, see http://dns323.kood.org/howto:ffp#shells
Offline
fonz wrote:
man usermod (see -d and -s)
Also, see http://dns323.kood.org/howto:ffp#shells
Sorry, I meant that I might as well be stuck with it since I wouldn't be able to have a configuration file (e.g. .bashrc).
Offline
You can use whatever shell you like. The point is that ~/.profile or ~/.bashrc must be in ~, which is a problem when it's on the ramdisk. So, move ~ to a hard disk and you're done, which is what usermod -d does.
Offline
fonz wrote:
You can use whatever shell you like. The point is that ~/.profile or ~/.bashrc must be in ~, which is a problem when it's on the ramdisk. So, move ~ to a hard disk and you're done, which is what usermod -d does.
Ahh, I see. Thanks fonz!
Offline