Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Monday, January 05, 2009
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
linuxGuru 1
scary 1
tashak 1
siluni 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
How to set bash as default shell in FreeBSD
If you have always used bash on your machines and now you have FreeBSD with default shell sh/csh this is an article how to change it with bash.

Firstly we have to install the bash shell. We can use the ports packat manager of FreeBSD. We can follow this 2 commands:

cd /usr/ports/shells/bash
make install clean

This has installed bash on your system and now you need to edit the account so you can set the bash shell as default for it. For example I will use the root account. You can edit the file located at /etc/passwd. You can use vi or some other text editor to edit this file. For example:

vi /etc/passwd

There should be a line that looks like this:

root:*:0:0:Charlie &:/root:/bin/sh
or
root:*:0:0:Charlie &:/root:/bin/csh

you should change this line to be like this:

root:*:0:0:Charlie &:/root:/usr/local/bin/bash

As you can see from the example above that we are just changing the path to the shell. That's all. The path to the new shell is /usr/local/bin/bash.

Now after you have done these changes you can logout and login again with the same account and you will be using Bash shell.
Comments
tashak on March 09 2008 11:59:42
Yeap that one helped me a lot.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 100% [1 Vote]
Very Good Very Good 0% [No Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 56
Newest: Grantt721
Random Gallery Image
Gentoo
Gentoo
Screenshots
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
HouseFreaks.Net
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.