Hi, everyone!
This post is a collection of notes that I've been keeping over the last few days. I'm pretty new to FreeBSD, so a lot of things don't seem obvious to me. I'm hoping this post will help, and encourage, new people to try out FreeBSD.
Comments, suggestions, feedback would be appreciated, especially from people with a lot more experience using FreeBSD. I'm still pretty new to the FreeBSD world, so please correct me if I'm wrong.
This howto is assuming that you've just installed FreeBSD 9.1 and this is your first boot to the system as root. Also, "open in a text editor" means use vi or ee to edit the file, for example,
Set up the correct locale and system charset.
Open /etc/login.conf in a text editor. At the end of the default:\ section add the following lines. Make sure to follow the syntax. Only the last line in the section should end in a colon.
After saving that file, run
Get the current ports snapshot.
This is important if you want to install software. Download ports for the first time with,
Fix ntpd time exceeds sanity limit.
This error came up for while booting. If you didn't get this error, skip to the next section.
Open /etc/rc.conf in a text editor. Add the
Set the type of CPU you have processor optimization.
This one is a bit tricky because it's not as intuitive as you might think. Check out /usr/share/examples/etc/make.conf for a list of the different values you can set. I'm running FreeBSD with a Core i7 processor, but I'm not exactly sure what value I should set this to. Maybe someone can help out in the comments!
Anyway, if you know what to do, open /etc/make.conf in a text editor and enter your CPU type at this line.
I'm also unsure about the syntax here. Some people have CPUTYPE?=name, while others have CPUTYPE=name. I know the example make.conf says, "?= allows to buildworld for a different CPUTYPE", but I haven't the faintest idea of what that means. Someone comment!
Enable the su command for regular users.
If non-root users need root privileges, then the user root will need to add them to the wheel group by entering the following command.
You can check what groups any user is in by doing
Update the FreeBSD base system.
Future section: Enable ZFS
I'm looking for a ZFS setup tutorial so basic and easy to understand that my twelve year old cousin could set it up. I don't really know much about ZFS. What are pools? How do I set that up? Why do I have to set that up? I'm also still new to FreeBSD, so I bet that adds to the confusion. Links to tutorials would be greatly appreciated!
This post is a collection of notes that I've been keeping over the last few days. I'm pretty new to FreeBSD, so a lot of things don't seem obvious to me. I'm hoping this post will help, and encourage, new people to try out FreeBSD.
Comments, suggestions, feedback would be appreciated, especially from people with a lot more experience using FreeBSD. I'm still pretty new to the FreeBSD world, so please correct me if I'm wrong.
This howto is assuming that you've just installed FreeBSD 9.1 and this is your first boot to the system as root. Also, "open in a text editor" means use vi or ee to edit the file, for example,
vi file.txt
.Set up the correct locale and system charset.
Open /etc/login.conf in a text editor. At the end of the default:\ section add the following lines. Make sure to follow the syntax. Only the last line in the section should end in a colon.
Code:
default:\
:morestuff:\
:charset=UTF-8:\
:lang=en_US.UTF-8:
After saving that file, run
cap_mkdb /etc/login.conf
and log out. When you log back in try running locale
and you should see the new charset in effect.Get the current ports snapshot.
This is important if you want to install software. Download ports for the first time with,
portsnap fetch extract
. Anytime after that just run portsnap update
to update.Fix ntpd time exceeds sanity limit.
This error came up for while booting. If you didn't get this error, skip to the next section.
Open /etc/rc.conf in a text editor. Add the
ntpdate
lines.
Code:
...
ntpdate_enable="YES"
ntpdate_hosts="0.us.pool.ntp.org"
ntpd_enable="YES"
...
Set the type of CPU you have processor optimization.
This one is a bit tricky because it's not as intuitive as you might think. Check out /usr/share/examples/etc/make.conf for a list of the different values you can set. I'm running FreeBSD with a Core i7 processor, but I'm not exactly sure what value I should set this to. Maybe someone can help out in the comments!

Anyway, if you know what to do, open /etc/make.conf in a text editor and enter your CPU type at this line.
CPUTYPE?=name
I'm also unsure about the syntax here. Some people have CPUTYPE?=name, while others have CPUTYPE=name. I know the example make.conf says, "?= allows to buildworld for a different CPUTYPE", but I haven't the faintest idea of what that means. Someone comment!
Enable the su command for regular users.
If non-root users need root privileges, then the user root will need to add them to the wheel group by entering the following command.
pw groupmod wheel -m username
You can check what groups any user is in by doing
groups username
. Make sure the new user is in the wheel group, then logout. When the user logs back in, they'll be able to use su.Update the FreeBSD base system.
freebsd-update fetch install
Future section: Enable ZFS
I'm looking for a ZFS setup tutorial so basic and easy to understand that my twelve year old cousin could set it up. I don't really know much about ZFS. What are pools? How do I set that up? Why do I have to set that up? I'm also still new to FreeBSD, so I bet that adds to the confusion. Links to tutorials would be greatly appreciated!