The FreeBSD Handbook covers most FreeBSD installation topics in depth, but the following is exactly the way I install all of my systems. This process is quick and will get you into a system that you can customize to your liking.
Obtaining FreeBSD
As with most open-source operating systems, FreeBSD is freely downloadable from a number of mirror sites around the world. FreeBSD.org hosts an excellent table that will help you choose a mirror for what you want to download.
Unless you have some offbeat architecture (and if you don't know, don't worry about it), you will most likely use the FreeBSD i386 (32bit machines) or amd64 (64bit machines).
Anyways, I usually just download my ISO images from ftp://ftp2.freebsd.org/pub/FreeBSD. When you get to the contents of this FTP directory, you will see the ISO-IMAGES-ARCH-HERE directories. Go into the directory pertaining to your architecture, then to the biggest number, then download FreeBSD *.disc1.iso! Burn this to a CD somehow. Restart your computer, make sure you can boot the CD-ROM drive (go into BIOS and change the boot order if you can't), and follow along.
CUSTOM INSTALL
PARTITION
I wanted to use the whole disk, so I opted for hitting A. If you would like to select a partition, use the arrow keys to select what you want and hit C to create a custom sized slice. The default type is fine. Hit Q when you are done.
I decided to make this whole disk dedicated to FreeBSD so I chose the standard option. If you would like to boot FreeBSD off an existing boot manager (grub, etc), select the do nothing option to leave the MBR unchanged and you can edit your boot manager after the installation has completed.
LABEL
Most users will be fine with the auto partitioning (A) option, but if you would like to customize the slices, go for it! I would at-least recommend selecting the auto partition option to see the suggestions and back out of any changes by typing U. Then proceed with your custom options.
DISTROBUTIONS
Do not worry about selecting anything else here. All you need is the base system, kernel, man pages, and sources. select lib32 compat if you are installing FreeBSD amd64.
Don't feel like you're missing out on anything. We'll load ports, etc after that install.
MEDIA
COMMIT
You have reached the point where you can really mess up your harddrive if you do not know what you are doing! When you confirm the commit, the installer will do its edits as instructed. If you are sure everything is OK and you have backed up important data (just in case!), press enter.
You're done! Now exit out of everything and restart.
Get Online
Wired (DHCP)
- # ifconfig
- <note interface name>
- # dhclient <.interface name>
Wired (static IP)
- # ifconfig
- <note interface name>
- # ifconfig <interface name> inet 192.168.5.1 netmask 255.255.255.0
- # route add default gw 192.168.5.1
- # echo 'nameserver 192.168.5.1' > /etc/resolv.conf
Wireless
With PRE 8.0 FreeBSD releases, you could use the wireless interface directly. Since FreeBSD 8.0, you have to alias the main interface and you configure the alias.
I used ath0 in the example; of course, change this to your wireless interface name! wlan0 is just what we alias it to. This should be the same no matter what.
- # ifconfig
- <note interface name>
- # echo 'wlans_ath0="wlan0"' >> /etc/rc.conf
- # echo 'ifconfig_wlan0="WPA DHCP"' >> /etc/rc.conf
- # vi /etc/wpa_supplicant.conf
- network={
- ssid="wireless SSID here"
- key_mgmt=WPA-PSK
- psk="wpa password here"
- priority=1
- }
- # /etc/rc.d/netif restart
- # ping google.com
- <responces hopefully>
I am assuming a DHCP WPA config for the wireless interface. There are tons of docs online to get you started if your sitation is different. Start by reading man wpa_supplicant.conf.
get ports tree
Now that you are online, fetch the latest ports tree and extract it to /usr/ports
- # portsnap fetch extract
Now that you have the latest tree, you can do portsnap fetch update from now on to only download the changes.
- Tags
- AI (1)
- ALIX (1)
- digitalfoo.net (2)
- embedded (6)
- FreeBSD (30)
- Java (1)
- Linux (26)
- misc (7)
- my projects (1)
- MySQL (2)
- NanoBSD (3)
- opensource (7)
- perl (1)
- PHP (3)
- programming (11)
- Python (1)
- security (4)
- Archives
- 2011
- February (1)
- March (1)
- June (1)
- July (1)
- August (1)
- 2010
- June (5)
- July (2)
- December (4)
- April (6)
- March (2)
- May (1)
- August (2)
- October (1)
- November (1)
- 2009
- August (7)
- July (8)
- April (4)
- May (4)
- December (2)
- June (1)
- September (1)
- November (4)
- October (1)
- Web Tools
- Index
- dig-shovel Live
- SQL Injection Encoder
- Links
-

