Table of Contents
FreeBSD Install
Afterboot
Right after installation, you can login as root. Your default shell will be csh.
Before moving on, setup SSH so you can login as root remotely:
sed -ie 's/#PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config /etc/rc.d/sshd restart
Update the kernel and userspace, and then reboot the machine:
freebsd-update fetch freebsd-update install
Install Ports Tree
Before installing any packages, let's bring the ports tree up to date. Depending on your install, you may already have a ports tree, but it will be outdated at this point.
Fetch the latest ports snapshot and update the tree:
portsnap fetch portsnap extract > /dev/null
Configure Build System
Before building any ports from source, update the configuration for all builds:
echo BATCH=yes >> /etc/make.conf echo WITHOUT_TEST=yes >> /etc/make.conf echo WITHOUT_X11=yes >> /etc/make.conf
Base Install
Update timezone
cp /usr/share/zoneinfo/America/Denver /etc/localtime echo ntpdate_enable=YES >> /etc/rc.conf /etc/rc.d/ntpdate start
Utilities Install
Now that the base install is finished, let's move into the basic utilities.
Setup linprocfs for htop
Load linux modules:
kldload linux kldload linux64
Enable auto load of modules in /etc/rc.conf:
kld_list="linux linux64" linux_enable="YES"
Add to /etc/fstab:
procfs /proc procfs rw 0 0 linprocfs /compat/linux/proc linprocfs rw 0 0
Install htop:
pkg install htop