The Following 4 Users Say Thank You to burmashave For This Useful Post: | ||
![]() |
2011-03-27
, 16:37
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#2
|
To make bash your default shell:
Note: I believe there are other ways of setting coreutils-gnu and BASH as default. The above works for me.Code:echo "bash" >> /home/user/.profile echo "bash" >> /root/.profile
ln -s /etc/bashrc /root/.bash_profile ln -s /etc/bashrc /home/user/.bash_profile
![]() |
2011-03-27
, 17:00
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#3
|
Exit to what? From root to user? From root/user to desktop? Can you elaborate? Thank you!
![]() |
2011-03-27
, 18:23
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#4
|
For those using BASH and xterm, I've been using a modified version of the bashrc file that I use on my workstations. I use a number of aliases, and for those who are new to working in a terminal, aliases are an easy way to create shortcuts for commands you use on the command line. Instead of typing out an entire command, you just type the alias. Also, my bashrc file provides an easy way to set the colors for the prompt. Instead of figguring color codes, you just need to change the color names in the prompt settings.
You'll need to install BASH (in maemo-extras) to use these. You'll also need to install 'coreutils-gnu' (from Titan: http://maemo.org/packages/view/coreutils-gnu/) for many of these to work. Secondly, I use a central bashrc file that I link to both the 'user' and 'root' accounts. So, put your bashrc file in /etc/, and then as root:
This is an abbreviated bashrc file I use. I've added lots of comments to try to make it easier to understand. IMPORTANT -- I use these; however, if you are not sure what you're doing, please be careful. Also be careful of the line breaks. The long lines below are wrapped. You'll need to add and edit this as root:
Download: http://burmashave.net/media/files/bashrc.gz
/etc/bashrc :
Last edited by burmashave; 2011-01-15 at 21:10.