FreeBSD 13.2 has been released a few days. FreeBSD 13.2 edition is shipped with so many updates and features. This step by step guide explains how to download the latest FreeBSD version, how to create a FreeBSD Bootable USB and how to install FreeBSD 13.2 latest edition with screenshots.
Table of Contents
What is FreeBSD?
FreeBSD is an Unix-like, advanced operating system that can be installed in modern Servers, Desktops, Laptops and embedded platforms.
The first version of FreeBSD was released in 1993, and today it is the most widely used open source BSD operating system.
FreeBSD is the direct descendant of BSD Unix and of course it is free. It is licensed under permissive BSD license.
Download FreeBSD 13.2
Go to the FreeBSD official download page and download the suitable version for your system's architecture.
FreeBSD 13.2-RELEASE is available for the amd64, i386, powerpc, powerpc64, powerpc64le, powerpcspe, armv6, armv7, aarch64, and riscv64 architectures.
The FreeBSD installation requires at least 2-4 GB RAM and 8 GB hard drive space. However, you may need more Memory and disk space to run graphical desktop environments.
Create FreeBSD Bootable USB Medium
FreeBSD DVD ISO size is around 4.3 GB. So you may require 6 GB USB drive or more.
First, you need to create a bootable USB medium with the FreeBSD ISO file. There are many bootable USB creation tools available to create a bootable USB medium.
We have listed some of the tools to create bootable USB drive in Linux.
Command line bootable USB creation tools:
- How To Create Multiboot USB Drives With Ventoy In Linux
- How To Create Bootable USB Drive Using dd Command
- Bootiso Lets You Safely Create Bootable USB Drive In Linux
Graphical bootable USB creation tools:
- Create Bootable USB Drive With Ventoy WebUI In Linux
- Create Bootable USB Drives And SD Cards With Etcher In Linux
- Popsicle – Create Multiple Bootable USB Drives At Once
- Create Bootable USB Drive With USBImager In Linux
- Kindd – A Graphical Frontend To dd Command
If you wish to install and test FreeBSD on any hypervisor (Virtualbox, KVM, Vmware), just skip the media creation step and boot up the ISO image.
For demonstration purpose, I will be installing FreeBSD on Proxmox VE.
Install FreeBSD 13.2 Step By Step
Boot your system with FreeBSD bootable USB. You will be greeted with the FreeBSD Boot Loader menu.
Press 1 (number one) or press ENTER key to start the FreeBSD installation.
A few seconds, you will be prompted to choose one of the three options.
- Press ENTER to install FreeBSD on your hard drive.
- Select Shell and press to enter into command line mode. In commend line mode, you can partition the hard drives as per your choice before installing FreeBSD on it.
- The third option, Live CD will let you to try the live FreeBSD system without installing it.
Choose the "Install" option and hit ENTER to start FreeBSD installation.
Select your preferred keymap . I will go with the default keymap.
Enter a hostname for your FreeBSD system.
Choose the optional system components that you want to install on your FreeBSD system.
This is an important step. In this step, you need to choose how would you like to partition the drive. You will be prompted to choose one of the four partitioning methods as listed below.
- Auto (ZFS) - This is the default selection. If you choose this option, the drive will be automatically partitioned with ZFS filesystem.
- Auto (UFS) - This will automatically partition the disk with UFS filesystem.
- Manual - It is meant for advanced users. When you selected this method, you can create customized partitions from enu options as you wish.
- Shell - It allows the users to create customized partitions of their choice using commandline tools like fdisk, gpart etc.
Choose the partitioning method that suits you and follow the on-screen instructions to complete partitioning the drive. I will go with the default selection i.e. Auto (ZFS).
When Auto (ZFS) method is selected, you will see the main ZFS configuration menu that provides a number of options to control the creation of the pool. Configure the options according to your requirements.
Finally choose ">>> Install Proceed with Installation" option and hit ENTER to continue.
Next, we need to partition the disk drive and allocate space for each partition. FreeBSD installer provides six different partitioning methods to choose from.
Depending upon the use case, you can choose any one of the following partitioning method.
- stripe - It provides maximum storage of all connected disks, but no redundancy. If just one disk fails, the data on the pool is completely lost.
- mirror - Mirroring stores a complete copy of all data on every disk. It provides a good read performance because the data is read from all disks in parallel. On the contrary, the Write performance is slower because the data is written to all disks in the pool. Allows all but one disk to fail. To use this option, you must have at least two disks.
- raid10 - Striped mirrors. Provides the best performance, but the least storage. This option needs at least an even number of disks and a minimum of four disks.
- raidz1 - Single Redundant RAID. It requires at least three disks and allows one disk to fail concurrently.
- raidz2 - Double Redundant RAID. It requires at least four disks and allows two disks to fail concurrently.
- raidz3 - Triple Redundant RAID. It requires at least five disks and allows three disks to fail concurrently.
I have only one disk and I go with the "stripe" option.
For other partitioning methods, please head over to the Allocating Disk Space section in FreeBSD handbook.
Once the partitioning method is selected, a list of available disk drives will be listed in the next menu. You need to select the one or more devices to make up the ZFS pool.
You will now see a warning message that says the contents of the selected disk(s) will be deleted. make sure you don't have anything important in the disk. Choose "Yes" and and hit ENTER key to continue.
FreeBSD installation will begin now. It will take a few minutes to complete.
After FreeBSD installation is completed, you will prompted to set a password to the root
user.
Choose a network interface to configure.
Choose "Yes" to configure IPv4.
If you have a DHCP server in your network and want to assign IP address automatically from the DHCP to the FreeBSD system, choose Yes and hit ENTER. If you don't have a DHCP server, simply choose "No".
I don't have a DHCP server in my network, so I chose "No".
Enter the IP address, subnet mask, and gateway.
Next, you will asked if you want to configure IPv6 for the network interface. I don't want to configure IPv6 at the moment, so I chose "No".
If you choose "yes" to configure IPv6, you need to provide the IP address, subnet and gateway as shown above.
Enter the DNS server details. Here, I've used the Google public DNS servers.
Select your geographical region and press ENTER.
Select your Country.
A pop up message will ask you to confirm the time zone.
Set your current date.
Set the time.
Choose the services that you'd like to be started at system reboot.
Choose the system hardening options that you'd like to apply on your FreeBSD systems.
Select "Yes" if you wish to add a new user to your system.
Enter the user details such as username, full name, password etc. Review the user details and type "yes" and press ENTER to create the user.
If you want to create more users, type "yes" and enter the details of the new user. If you don't want to add more users, simply type "no" and press ENTER.
We reached the final stage of FreeBSD installation. You can now modify the configuration choices that you made throughout the installation process. If you don't want make any changes, simply choose "Exit" and hit ENTER.
FreeBSD installation is finished! If you want to make any manual changes before completing the installation, choose "yes". If you don't want to make any modifications, choose "no" and press ENTER.
Reboot into the newly installed FreeBSD system.
Login to the FreeBSD system as root
user.
Check the install FreeBSD version using any one of the following commands:
# freebsd-version -k
# uname -mrs
# cat /etc/os-release
Update FreeBSD System
The first thing to do after installing any operating system is to apply the latest available updates.
To update FreeBSD OS, run the following command as root
user:
# freebsd-update fetch install
Congratulations! We have successfully installed and updated FreeBSD 13.2 edition. In our upcoming articles, we will see how to,
- Create sudo users,
- Enable SSH,
- Set Static IP address and DNS,
- Reset or recover root user password,
- And more BSD related stuffs.
4 comments
Did you copy and paste?
The article is mentioning:
”
If you wish to install and test Ubuntu Linux on any hypervisor (Virtualbox, KVM, Vmware), just skip the media creation step and boot up the iso image.
”
But, this article is about FreeBSD… 🙂
Yes. The bootable creation instructions are same for all OSes. It is copied from our Ubuntu installation article. I fixed it now. Thanks for pointing it out.
How to triple boot windows 10, linux and freebsd?
We don’t have a guide for triple boot setup yet. We will try to write one when we can.