This paper has been written for non-expert users looking for an easy way to install FreeBSD.
We'll use detailed screenshots to help you setup FreeBSD 11.1 with full disk encryption using ZFS.
If you need help to configure your machine after the installation, you can consult this tutorial made for Raspberry PI but working for the other platforms too.
Table of Contents :
- What do I need ?
- Boot and install
- Configure your keyboard layout
- Hostname and system components configuration
- Network configuration
- Select the server you want to use for the installation
- Disk configuration
- Last steps to finish the installation
8.1. Root password
8.2. Time and date
8.5. Additionnal user
8.6. The end
- First boot
- Need help ?
For this tutorial, the installation has been made on a Intel Core i7 - AMD64 architecture.
On a USB key, you would probably use this link :
If you can't do a network installation, you'd better use this image :
You can write the image file on your USB device (replace XXXX with the name of your device) using dd :
# dd if=FreeBSD-11.1-RELEASE-amd64-mini-memstick.img of=/dev/XXXX bs=1m
For Windows users you can use this tool.
To navigate easily into the installation interface, remember a few things :
- Use ARROWS to change your selection
- Use TABULATION to jump from the selection list to the validation options
- ENTER is used to validate your choices
- Multiple selections can be made with SPACEBAR
Here is your first choice :
As I'm French I took the FRENCH layout.
You have the possibility to test your keyboard layout to see if it fits you, or you can continue :
Set the name of your machine :
What components do you want to install ?
- Use ports if you want to compile your applications yourself, otherwise, you'll use the pkg tool to install precompiled packages.
- You can install the system sources, src, if you're willing to compile your system later, apply patches, activate specific kernel options (Like ALTQ for Packet Filer)...
Select the network interface you want to configure.
First, we configure our IPv4 network. I used a static adress so you can see how it works, but you can use DHCP for an automated configuration, it depends of what you want to do with your system (desktop/server).
IPv6 network configuration. Same as for IPv4, you can use SLAAC for an automated configuration.
Here, you can configure your DNS servers, I used the Google DNS servers so you can use them too if needed.
I always use the IPv6 mirror to ensure that my IPv6 network configuration is good.
As we want to do an easy full disk encryption, we'll use ZFS.
Make sure to select the disk encryption :
Launch the disk configuration :
Here everything is normal, you have to select the disk you'll use :
I have only one SSD disk named da0 :
Last chance before erasing your disk :
Time to choose the password you'll use to start your system :
The installer will download what you need and what you selected previously (ports, src, etc.) to create your system :
Enter your root password :
Set your timezone, in my case : Europe/France
Make sure the date and time are good, or you can change them :
Security options you want to enable. You'll still be able to change them after the installation with sysctl.
Create an unprivileged system user :
Make sure your user is in the wheel group so he can use the su command.
End of your configuration, you can still do some modifications if you want :
Enter the passphrase you have chosen previously :
Welcome to Freebsd 11.1 with full disk encryption !
Subscribe to CagedMonster'S Blog
Get the latest posts delivered right to your inbox