FreeBSD - Installing FreeBSD


I - Obtain Distribution

You can find a list of FTP mirrors here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html
Or click “Getting FreeBSD” from http://www.freebsd.org Find the i386 ISO image and download the latest stable version (4.6 at this time). Just download 4.6-disk1.iso. You shouldn’t need any of the other CDs. Burn the file as a CD image.

II - Install

First Boot
Boot the FreeBSD 4.10 CD-ROM
Let the kernel boot
Choose Skip kernel configuration

Sysinstall menu
Choose standard
Hit ok after reading msg.

FDISK Partition Manager
Press A to use entire disk
Press Q to finish

Boot Manager
Since we are not dual-booting choose Standard
Hit ok after reading msg.

FreeBSD disklabel editor
Press A to use entire disk
Press Q to finish.

Choose Distribution
Highlight kern developer (space). A message will come up asking if you want to install the portage tree. Hit (yes). User should have automatically been selected so hit (ok).

Choose Install Media
Choose CD-ROM (ok)
Press (yes) when it asks, “are you sure you want to continue?” (this can take awhile).
Hit (ok) after reading message.

The following is how I typically answer the installation questions:

Would you like to configure Ethernet? (yes)

Network Interface
Select em0 (or whatever your netowrk interface card is) (ok)
IPV6 config (no)
DHCP config (no)

Network Conf
Host: bsdbox
Domain: bsdbox.b3n.org
Gateway: 10.0.0.1
Nameserver: 10.0.0.2
Address: 10.0.0.3
Netmask: 255.255.255.0
Extra options: (blank)
Press (ok)

Bring interface up now (yes)

Random stuff
Act as gateway (no)
Configure inetd (yes)
Enable inetd (yes)
Invoke editor (no)
Anonymous ftp (no)
NFS Server (no)
NFS Client (no)
Set default security profile (no)
Press (ok) after reading message.

Custom System Console (no)

Time Zone
Set time zone (yes)
UTC (no)
Time Zone Selector 4 America 4 United States 4 Pacific Time.
Confirm (yes)

More Random Stuff
Linux binary compatibility (no)
Non-USB mouse (no)
Browse collection now (no)
Add initial user account (yes)

User and group management
Select user (ok)
Login id: [username]
UID: 1001
Group: wheel
Password: (whatever)
(ok)
Select Exit Choose (ok).
Hit (ok) to set root password.
(enter root password twice)
Visit general config menu (no).
(exit install)
Are you sure you wish to exit? (yes)

Rapidly remove CD before system reboots.

Note: on boot sendmail may hang if there is a problem with the network. You can press Control+C to abort sendmail for now.

The following documentation uses the old fashioned method of installing ports. If you require more speed you can use portinstall (included in the portupgrade port) to install all the ports rapidly.

Woo-hoo!
Login as root.
See if networking is working (may take a couple minutes on bad switches)
You can continue through ssh from this point by logging in as [username] then type “su”

Install/Configure CVSUP
# cd /usr/ports/net/cvsup-without-gui
# make install clean
You shouldn’t need to select any of the example options for gettext.

# cp /usr/share/examples/cvsup/ports-supfile /etc

# cd /usr/ports/sysutils/fastest_cvsup
# make install clean

# /usr/local/bin/fastest_cvsup –c us

(remember the host that comes out as being the fastest)

# vi /etc/ports-supfile

Change the *default host value to the cvsup server that was the fastest. Example:
*default host=cvsup10.FreeBSD.org
You also may want to comment out compression if you have a T1 or faster line.

Update Ports Tree
# /usr/local/bin/cvsup /etc/ports-supfile