First steps after installing FreeBSD

After installing FreeBSD successfully, we will complete the following steps before proceeding with the actual setup.

First, we will install the nano editor and the ca_root_nss certificates with the following command:

root: pkg inst nano ca_root_nss

SSD Trim

Here is a short guide on how to activate the trim support of an SSD.

First, we boot into single-user mode.

The following commands are then executed.

tunefs -t enable /dev/ada<partition number>

tunefs -p /dev/ada<partition number>



The bash shell isn't included by default with FreeBSD: it's tcsh that we'll be using. It is not recommended using a shell installed by ports (bash, for example) for our root user, as this will not work in case of problems (missing library, for example or no access to /usr/local).

If we want to use a different shell for the root account: we change the root account shell instead (this administrator account is used for this). By default, the tcsh does not suggest a color and the PC beeps, so we configure it by editing the /etc/csh.cshrc file that is common to all users:

root: nano /etc/csh.cshrc =>

# Add color to CLI
setenv CLICOLOR true
setenv COLORTERM true

# Disable system beep
set nobeep

Reduce the time of the bootloader menu

The bootloader menu has a 10-second timeout, which is a bit long. We'll reduce it to 2 seconds:

root: sysrc -f /boot/loader.conf autoboot_delay=2

Deactivate the internal loudspeaker

With the following instruction, we can disable the internal speakers:

root: nano /etc/sysctl.conf =>


CPU microcode update

The package devcpu-data provides us with microcode updates for use with the microcode cpuctl update function. We can use this to keep the firmware of our processor up to date.

root: pkg inst devcpu-data
root: service microcode_update enable
root: service microcode_update start


The powerdxx daemon is a replacement for FreeBSD's native powerd. It monitors the system load and adjusts the CPU clock accordingly.

root: pkg inst powerdxx
root: service powerd disable
root: service powerd stop
root: service powerdxx enable
root: service powerdxx start


For FreeBSD to be localized in German, we take the following steps:

user: nano ~/.xinitrc =>

export LC_ALL=de_DE.UTF-8
export LANGUAGE=de_DE.UTF-8
export LANG=de_DE.UTF-8
setxkbmap de

user: nano ~/.profile =>

LANG=de_DE.UTF-8; export LANG

user: nano ~/.login_conf =>

  :charset=UTF-8: \
  :lang=de_DE.UTF-8: \

root: nano /etc/profile =>

LANG=de_DE.UTF-8; export LANG