Trying out FreeBSD
Date: 22-7-2024
Today, I had the pleasure of trying out FreeBSD, the open source, Unix-like operating system. In this post, I will share my experience with FreeBSD based on my time using it.
Instillation
Installing FreeBSD is relatively easy; you are provided with a nice graphical interface that supports mouse input. Below is a screenshot.
I had no issues with the install script. The only problem I encountered was with using Ventoy; for some reason, FreeBSD does not work with Ventoy, so I had to burn it to a standard USB stick.
I downloaded the amd64-memstick.img for my installation of FreeBSD.
I encountered some internet issues because my test computer has an unusual Wi-Fi card. I resolved this by plugging in an Ethernet cable and would recommend doing the same for anyone installing FreeBSD or any other operating system for that matter. Using Ethernet makes the setup process so much faster.
When adding users during the FreeBSD installation, I had to include them in the `wheel` group, which grants them the ability to gain root access.
Post install
After installing everything, the first thing I noticed was that most commands in BSD are similar to those in Linux, as both are Unix-like operating systems. Another observation was that the `sudo` command was not available by default. This command allows users to run commands with root privileges, so I had to install it using FreeBSD's package manager, PKG. The command to install it is listed below.
su # To become root
pkg install sudo # Installing the sudo program
Even after installing `sudo`, I was unable to use the command, despite being in the `wheel` group. This was unexpected because I assumed that `sudo` would check for group membership and grant access accordingly. However, FreeBSD handles this differently. To allow a user to use `sudo`, follow the commands below, replacing `shipwreckt` with your username:
su
sudo visudo
# Add this to the very bottom of the file on a new line
shipwreckt ALL=(ALL) ALL
After updating `sudo`, I was able to use the command. The next step was installing X.Org and dwm. I didn't need a display manager (login prompt) since I could use `startx`, so I focused on installing the X.Org package and `git` to use my own `dwm` configuration that I uploaded there. I tested X.Org with `startx`, and it worked fine. However, when I cloned my configuration files and tried to compile `dwm`, I encountered a problem. Fortunately, it was an easy fix thanks to a helpful post on the FreeBSD forums. After applying that fix, I was able to use my `dwm` setup successfully. I then checked if my two most-used programs, Alacritty and Librewolf, were available on FreeBSD. To my surprise, they were, and both were fully functional. Below is a photo of FreeBSD running with `neofetch` (`fakefetch` only works on Linux).
Conclusion
Overall, I like FreeBSD and could use it as a daily driver since it supports three of my most-used programs: `git`, `Librewolf`, and `Alacritty`. I appreciate how it works, but for now, I’m sticking with Linux because I am more comfortable with it and prefer Linux over BSD. In the future, I plan to set up a server with OpenBSD, as I’ve heard excellent things about BSD servers.
Thank you for reading!
Back 🚪 | More BSD 😈 | More Tech 🧑💻