Install FreeBSD

In this post I'll explain how to do the basic installation of FreeBSD.


The FreeBSD installer is in text mode, but it is very easy to make.

We just select "Install" on the first screen.

In the first step, we go out the keyboard language. In our case, we choose the German layout.

Next, we will be guided by the hostname. In our case, we've heard the installation under VirtualBox.

Here we can now see the system rights that should be. We request "lib32" here if we want to run a 32-bit-program. We can choose "ports" if we want to build packages locally and "src" if we want to build a custom kernel.

Next, we can know how to partition the hard drive. We can partition it by hand, or we can let the installer partition our hard drive automatically with UFS or ZFS. In our case, we choose UFS, because I have no experience with ZFS yet.

In this step, we have to choose whether we want to take the entire hard drive or a specific partition to install.

Now we can see the partition scheme. If you have an UEFi system, choose GPT-run MBR.

The installer shows you a suggestion on how it sees the hard drive partitioned. At this point, you can still follow up with the editor

At this point, we will change those responsible and start the installation process.

The basic system is installed with our selected packages.

We now choose our root password.

Next, we select our network card, either WI-FI or LAN.

Now, the installer asks us if we want to use IPv4 first and if we want to use DHCP. The same thing happens with IPv6.

Stateless Address Autoconfiguration (SLAAC) is a method for stateless and automatic configuration of IPv6 addresses on a network interface. With “stateless” or “stateless” it is meant that the respective IPv6 address is not assigned and stored centrally. Accordingly, the host generates its own IPv6 address with the aid of additional information. SLAAC is the further development of procedures for classic IP auto-configuration under IPv4. In contrast to IPv4, IPv6 routers play an active role in this. We choose.

We now see the configuration and confirm it.

In this step, we can now set the time zone—we select Europe -> Germany.

Here we can see if the date is set correctly.

Here we can see whether the time is set correctly.

At this point, we can choose which services are started when it starts. We select the following services:

  • sshd: we can access our PC via SSH.
  • nptdate: the system and network time are synchronized at start-up
  • ntpd: the system and network time are synchronized
  • dumpdev: kernel Crash Dump is activated

We can now set a few security settings. Here we will set the following options:

  • clear_tmp: the temp directory is deleted when the system starts.
  • disable_sendmail: sendmail is deactivated.

Now we are asked if we want to add more users.

When asked “Invite USER in other groups?” We will add our newly created user to the following groups: wheel operator dialer video

  • wheel: allows root to be passed with the su command
  • operator: required to use the su command and shut down the PC
  • dialer: enables using the serial interfaces (with "cu" and "tip")
  • video: enables access to the graphics card

Login class: leave it on "default" (we will change it later)

Shell: tcsh

Home directory: standard

We then choose a password and confirm the creation.

We can now complete the installation process.

At this point, we could open a shell and edit it manually. But we don't want that.

We restarted the PC, and we have successfully installed FreeBSD.