{"id":5144,"date":"2020-08-29T10:00:00","date_gmt":"2020-08-29T10:00:00","guid":{"rendered":"https:\/\/raspberrytips.com\/?p=5144"},"modified":"2025-01-09T03:54:34","modified_gmt":"2025-01-09T01:54:34","slug":"install-freebsd-raspberry-pi","status":"publish","type":"post","link":"https:\/\/raspberrytips.com\/install-freebsd-raspberry-pi\/","title":{"rendered":"How to install FreeBSD on Raspberry Pi? (step-by-step guide)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">FreeBSD is an original operating system you can install on Raspberry Pi to experiment a bit outside Linux. But the process is not always easy if you are used to working on Debian-like systems.<br>Today, we&#8217;ll see how to install it on a Raspberry Pi, to configure it and use it like almost like any other operating system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD is an open-source operating system, available on Raspberry Pi since 2014. It&#8217;s a good solution for any usage (server or desktop)<br>It&#8217;s not based on Linux, as they develop their code for everything. Even if there are many similarities, it includes several differences, more or less visible.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To help you as much as possible, I will start by an introduction to FreeBSD, then I&#8217;ll show you how to install it, and finally, everything you need to know to use it the way you want.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <em>I&#8217;m not an expert in BSD systems. I&#8217;m a fan of Pfsense which is based on FreeBSD, but I never really used it beside that. The goal here is only to share with you my notes about this system.<\/em><\/p>\n\n\n<p class='ml_begpost' id='ml_begpost_commands'>If you&#8217;re new to Raspberry Pi or Linux, I\u2019ve got something that can help you right away! <br \/><a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'>Download my free Linux commands cheat sheet<\/a> \u2013 it\u2019s a quick reference guide with all the essential commands you\u2019ll need to get things done on your Raspberry Pi. <a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'><b>Click here to get it for free!<\/b><\/a><\/p>\n\n\n<h2 class=\"wp-block-heading\">FreeBSD introduction<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Presentation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD is not a new system, far from that. The first release comes in 1993! (same year as Debian).<br><\/strong>The main goal is to offer a lightweight system, with critical part related to stability. So you can use it  almost anywhere.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"183\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/freebsd-logo.jpg\" alt=\"\" class=\"wp-image-5166\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/freebsd-logo.jpg 500w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/freebsd-logo-300x110.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">FreeBSD works on two branches : <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>STABLE<\/strong>: The main branch, each new major version is released from the STABLE branch (<strong>RELEASE<\/strong>)<\/li>\n\n\n\n<li><strong>CURRENT<\/strong>: It&#8217;s the development branch, to get the latest improvements, but less speed and stability.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Usage<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD can be used in any situation. It&#8217;s fast, stable and secure<\/strong>. So, it&#8217;s perfect for a Raspberry Pi, but also for a server or a desktop usage.<br>By the way, the FreeBSD FAQ is pretty clear about this:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Can FreeBSD replace my current operating system?<br><\/strong>For most people, yes.<\/p>\n<cite><a href=\"https:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/faq\/introduction.html#:~:text=the%20FreeBSD%20Handbook.-,1.2.,any%20purpose%20without%20strings%20attached.\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1396\">FreeBSD documentation<\/a><\/cite><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ll see in the next parts how to install it on your Raspberry Pi, but it&#8217;s also a solid system for your computer or on server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD has been adopted by many companies over the world.<br><\/strong>It may be <a href=\"https:\/\/raspberrytips.com\/unknown-raspberry-pi-os\/\" data-type=\"link\" data-id=\"https:\/\/raspberrytips.com\/unknown-raspberry-pi-os\/\">a lesser known distro in the mainstream<\/a>, but other brands like IBM, Apple or Sony are using parts of the FreeBSD code (for example, the PlayStation 4 system is a fork from FreeBSD).<br>Some NAS operating systems are also based on FreeBSD (FreeNAS for example).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FreeBSD vs Linux<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As I told you in introduction, <strong>FreeBSD is not a Linux-based system<\/strong>.<br>Systems on Linux, are all using the same kernel and basic drivers, and then add many applications to offer a specific solution at the end.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD don&#8217;t use this base, they develop and release everything, including the kernel and drivers. <\/strong><br>However, the differences while using it are minimal (I will show you the main ones).<br>But you may have some commands working differently on Linux and FreeBSD.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FreeBSD strengths<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">So, why do I need to try FreeBSD if it&#8217;s almost the same thing?<br>As always when I test systems, the main goal here is to experiment, and see how it works. So you&#8217;ll get more details at the end.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But in theory, <strong>FreeBSD is a minimal system that should be faster, more secure and with less compatibility issues than most Linux systems<\/strong>.<br>We&#8217;ll see now if this is true for the Raspberry Pi version \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install FreeBSD on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s see how to install a basic FreeBSD system on your Raspberry Pi:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download the latest version from the official FTP (RELEASE or CURRENT image).<\/li>\n\n\n\n<li>Flash it with Balena Etcher or Raspberry Pi Imager to your micro SD card.<\/li>\n\n\n\n<li>Boot the Raspberry Pi and start the system configuration.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Raspberry Pi models support<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Recent models are not necessarily supported on FreeBSD, it may take time to get them fully supported, as the release cycle is slow. You might need to check the release notes for more details, but basically, at the time of my last edit:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Raspberry Pi 4 and 400 are only supported on versions 13+.<\/li>\n\n\n\n<li>The Raspberry Pi 5 is not yet supported with pre-built images.<\/li>\n\n\n\n<li>Recent releases are only available for ARM64, you might need to check older releases for older models.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">There may be other options, like using a custom firmware, but I haven&#8217;t tested it, so I can&#8217;t recommend it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Download<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FreeBSD offers pre-built images for the ARM and ARM64 architecture.<br><\/strong>The ARM64 version is working fine on Pi 3B+ and 4, I didn&#8217;t test on other models.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the general link to the FTP server: <a href=\"https:\/\/download.freebsd.org\/ftp\/snapshots\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1398\">https:\/\/download.freebsd.org\/ftp\/<\/a><br>Once here, you have two choices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Download the RELEASE version:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Open the releases subfolder and go to <a data-lasso-id=\"1399\" href=\"https:\/\/download.freebsd.org\/ftp\/releases\/ISO-IMAGES\/\" target=\"_blank\" rel=\"noopener\">ISO-IMAGES<\/a>.<\/li>\n\n\n\n<li>Select the version you want to install (14.0 for example).<\/li>\n\n\n\n<li>Then, find the image corresponding to the Raspberry Pi (&#8220;RPI&#8221; suffix) and the right architecture (&#8220;arm64-aarch64&#8221; for example).<br>For example:<br><code>FreeBSD-14.0-RELEASE-arm64-aarch64-RPI.img.xz<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Download the CURRENT version:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Go to snapshots and then <a data-lasso-id=\"1400\" href=\"https:\/\/download.freebsd.org\/ftp\/snapshots\/ISO-IMAGES\/\" target=\"_blank\" rel=\"noopener\">ISO-IMAGES<\/a>.<\/li>\n\n\n\n<li>Select the version you want (15.0 for example).<\/li>\n\n\n\n<li>Same thing here, find the FreeBSD images corresponding to the Raspberry Pi, for example:<br><code>FreeBSD-15.0-CURRENT-arm64-aarch64-RPI-20240523-1e84b85aad10-270337.img.xz<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Download the file you need on this server, and feel free to ask <a rel=\"noreferrer noopener\" aria-label=\"in the community (opens in a new tab)\" href=\"https:\/\/raspberrytips.com\/community\" target=\"_blank\">in the community<\/a> if you are lost with this, or if I need to update it for the latest versions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SD card preparation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have the image on your computer, the installation part is similar to what you may already know with other systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I generally use Raspberry Pi Imager for everything now, even for custom images. Here are the main steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Start Raspberry Pi Imager.<br><\/strong><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"294\" class=\"wp-image-22232\" style=\"width: 500px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2022\/05\/rpi-imager-home.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2022\/05\/rpi-imager-home.jpg 849w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2022\/05\/rpi-imager-home-300x177.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2022\/05\/rpi-imager-home-768x452.jpg 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/li>\n\n\n\n<li>Click on &#8220;<strong>Choose OS<\/strong>&#8220;, and find &#8220;<strong>Use custom<\/strong>&#8221; in the list.<\/li>\n\n\n\n<li>Select the image you just downloaded from your downloads folder.<\/li>\n\n\n\n<li>Click on &#8220;<strong>Choose storage<\/strong>&#8221; and select the installation media (your SD card).<\/li>\n\n\n\n<li>Click &#8220;<strong>Next<\/strong>&#8221; (you can skip the OS customization options) and wait a few minutes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">After a few minutes, your SD card is ready to use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have a full guide on <a href=\"https:\/\/raspberrytips.com\/raspberry-pi-imager-guide\/\" data-type=\"post\" data-id=\"11264\">how to install and use Raspberry Pi Imager<\/a> on the site, feel free to check it out if you need more guidance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">First boot<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On the first boot, a terminal prompt will appear where you need to log in.<br>There are two users available by default:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>freebsd is the default user, the password is freebsd<\/strong><\/li>\n\n\n\n<li><strong>root is the administrator, the password is root<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Connect with root for now and continue to the next part.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want,<strong> SSH is enabled by default<\/strong>, so you can absolutely continue from your computer once the network cable plugged. But the root user is not accessible directly with SSH. You need to connect with &#8220;freebsd&#8221; and then use &#8220;su&#8221; to switch to the root user.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh-1024x485.jpg\" alt=\"\" class=\"wp-image-27767\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh-1024x485.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh-300x142.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh-768x363.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh-1536x727.jpg 1536w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/freebsd-ssh.jpg 1587w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There is no sudo command available by default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configure FreeBSD on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once installed and logged in, it&#8217;s time to check that everything is configured properly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Packages management<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With the tool I show you just after, you can manage almost everything in your configuration, but t<strong>he &#8220;Packages&#8221; part didn&#8217;t work for me<\/strong> (didn&#8217;t found the server).<br>So we have to do this manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The package management tool on FreeBSD is &#8220;pkg&#8221;.<br><\/strong>It works almost the same thing as &#8220;apt&#8221; or any other tool in command line.<br>I&#8217;ll show you how to use it later, but for now, you have to install it with this command (with the root user):<br><code>pkg clean -a &amp;&amp; pkg upgrade -f<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"80\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/pkg-install.jpg\" alt=\"\" class=\"wp-image-27768\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/pkg-install.jpg 674w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/05\/pkg-install-300x36.jpg 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration tool<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>There is a tool on FreeBSD to manage most of the configuration from the terminal <\/strong>(a bit like &#8220;raspi-config&#8221; on Raspberry Pi OS).<br>To open it, enter the command:<br><code>bsdconfig<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main menu looks like this:<br><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"394\" class=\"wp-image-5152\" style=\"width: 400px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/bsd-config.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/bsd-config.jpg 400w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/bsd-config-300x296.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the arrows to scroll to the part that you need to change, and follow the instructions to configure it (if you are connected with SSH, the mouse is working).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, to change the root password (which is recommended), go to &#8220;Root Password&#8221; and enter the new one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Network configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The network will work directly with an Ethernet cable if there is a DHCP server on the network<\/strong> (your router probably).<br>If not, you can go to &#8220;Networking Management&#8221; in bsdconfig and set a static IP.<br>You can also use this tool to find your current IP address.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"240\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/network-management.jpg\" alt=\"\" class=\"wp-image-5153\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/network-management.jpg 400w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/network-management-300x180.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Wi-Fi is not supported yet<\/strong>, as the driver is not included in the image.<br>You can try a USB stick to fix this (<a rel=\"noopener\" href=\"https:\/\/www.amazon.com\/dp\/B07YYL3RYJ\/\" target=\"_blank\" data-lasso-id=\"1402\">my DLINK model<\/a> didn&#8217;t work, but maybe there is something to install).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: Personally, I&#8217;m using a Wi-Fi extender to plug Ethernet cable on systems that doesn&#8217;t support Wi-Fi for Raspberry Pi. <a href=\"https:\/\/www.amazon.com\/dp\/B0195Y0A42\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1403\">This one on Amazon<\/a> is working perfectly in this case if you are interested.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Users and groups<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As I told you, two users are already there after the first boot: freebsd and root. But you can obviously change this as you want.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"268\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/users-management.jpg\" alt=\"\" class=\"wp-image-5156\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/users-management.jpg 350w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/users-management-300x230.jpg 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the &#8220;Login\/Group Management&#8221; from bsdconfig, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Manage users:<\/strong>\n<ul class=\"wp-block-list\">\n<li><span style=\"text-decoration: underline;\">Add Login<\/span> to create a new user.<\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\">Edit\/View Login<\/span> to see a list of current accounts on the system. In addition to the two we are using, there are many more. You can also change them in this submenu. For example, I recommend editing the password for freebsd too.<\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\">Delete Login<\/span>: only do this once you have tested that everything is working without it. For example, you can create a &#8220;pi&#8221; account and remove &#8220;freebsd&#8221;.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Manage groups:<\/strong>\n<ul class=\"wp-block-list\">\n<li>It&#8217;s almost the same thing as for the users.<\/li>\n\n\n\n<li>You don&#8217;t really need this except for specific applications. <\/li>\n\n\n\n<li>To add a user in a group, you&#8217;ll probably use the Edit\/View Login menu.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For your information, <strong>the &#8220;wheel&#8221; group add the permission to use &#8220;su&#8221;.<\/strong><br>So, if you create a new user (like &#8220;pi&#8221; in my example), you need to add it in the &#8220;wheel&#8221; group if you want it to switch to the administrator account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Extra tips<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this last part, I&#8217;ll share with you a few other things that may be important depending on your current level on FreeBSD.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The pkg command<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We already used the &#8220;pkg&#8221; command to manage packages that is the main change with Debian. <br>Here is a few examples on how to use it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>pkg update<\/strong>: update the depository sources<\/li>\n\n\n\n<li><strong>pkg upgrade<\/strong>: upgrade the packages you are already using on the system<\/li>\n\n\n\n<li><strong>pkg search &lt;string&gt;<\/strong>: find the package you want to install, example:<br><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"192\" class=\"wp-image-5158\" style=\"width: 800px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/sudo.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/sudo.jpg 800w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/sudo-300x72.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/sudo-768x184.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li><strong>pkg install &lt;package&gt;<\/strong>: install the package you want, example:<br><code>pkg install nano<\/code><\/li>\n\n\n\n<li><strong>pkg remove &lt;package&gt;<\/strong>: uninstall any package on the system<\/li>\n\n\n\n<li><strong>pkg help<\/strong>: get a list of all other options available<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, it&#8217;s really close from apt, yum or any other package management tool you might know. So, it should not be complicated to switch for pkg.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Text editors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, the only text editors pre-installed on the system are vi and ee.<br>Personally, I don&#8217;t really like these editors, so I installed nano with:<br><code>pkg install nano<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer, vim is also available:<br><code>pkg install vim<\/code><br>And probably other ones, try &#8220;pkg search&#8221; if you want to check for your favorite \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need help using these tools, I have two cheat sheets that you might like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a data-lasso-id=\"1404\" href=\"https:\/\/raspberrytips.com\/nano-commands-shortcuts\/\" data-type=\"post\" data-id=\"2524\">35 most useful nano commands and shortcuts<\/a><\/li>\n\n\n\n<li><a data-lasso-id=\"1405\" href=\"https:\/\/raspberrytips.com\/use-vim-on-raspberry-pi\/\" data-type=\"post\" data-id=\"4473\">Vim tutorial on Raspberry Pi<\/a> (it&#8217;s for Raspberry Pi OS, but the end should help you)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Sudo<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As the root user is directly available after the installation, the sudo command is not installed automatically with the system. But you can install it later if needed, here is how to do this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Install the &#8220;sudo&#8221; package:<br><\/strong><code>pkg install sudo<\/code><\/li>\n\n\n\n<li>To add the permission to use it to one user, <strong>open the sudoers file<\/strong>:<br><code>visudo<\/code><\/li>\n\n\n\n<li><strong>Edit the file as needed<\/strong>, for example, to add all the permissions to freebsd, add this line:<br><code>freebsd ALL=(ALL) ALL<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">On the next login, freebsd will be able to use sudo with any administrator command, for example:<br><code>sudo bsdconfig<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Graphic interface<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I have spent several hours trying to install a graphic interface, but unfortunately, I can&#8217;t achieve it.<br><strong>Many graphic interfaces are available in the repository: Gnome 3, KDE, XFCE4, LXDE, etc.<br><\/strong>But none of them worked, even on the latest version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The error is always the same: it doesn&#8217;t start automatically, and when I start it manually I get an error like &#8220;No screen found&#8221;.<br>I find several useful links that I&#8217;ll share with you, and if anyone manages to do this, I will edit this post with the solution:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a data-lasso-id=\"1406\" href=\"https:\/\/www.freebsd.org\/doc\/handbook\/x11-wm.html\" target=\"_blank\" rel=\"noopener\">The FreeBSD wiki page about desktop environments<\/a><\/li>\n\n\n\n<li><a data-lasso-id=\"1407\" href=\"https:\/\/blog.cochard.me\/2013\/03\/xorg-for-freebsd-on-raspberry-pi.html\" target=\"_blank\" rel=\"noopener\">Xorg for FreeBSD on Raspberry Pi<\/a><\/li>\n\n\n\n<li><a data-lasso-id=\"1408\" href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=217880\" target=\"_blank\" rel=\"noopener\">Install MATE on Raspberry Pi<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Video<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=0bpPHGAY0Ug&#038;t=1s\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"How to install FreeBSD on Raspberry Pi (Raspberry Pi 4 support and desktop environment)\" title=\"Play video &quot;How to install FreeBSD on Raspberry Pi (Raspberry Pi 4 support and desktop environment)&quot;\">https:\/\/www.youtube.com\/watch?v=0bpPHGAY0Ug&#038;t=1s<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=0bpPHGAY0Ug&#038;t=1s\" title=\"How to install FreeBSD on Raspberry Pi (Raspberry Pi 4 support and desktop environment)\">How to install FreeBSD on Raspberry Pi (Raspberry Pi 4 support and desktop environment) (https:\/\/www.youtube.com\/watch?v=0bpPHGAY0Ug&#038;t=1s)<\/a><\/noscript><\/div>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it, you now have a pretty good overview of the FreeBSD system on Raspberry Pi. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Basically, it&#8217;s a powerful system, I found it really fast in the RELEASE version, even on Raspberry Pi 3. But it drives me crazy to not find a solution for the desktop environment. Also, the lack of support for Raspberry Pi in general (like the Wi-Fi), might be an issue for some of you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Personally, I didn&#8217;t really find an interest to keep it on my Raspberry Pi, I have my habits on Raspberry Pi OS \/ Debian like systems, and I don&#8217;t have any project right now where it could be useful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But it&#8217;s just my opinion after this quick test, what about you?<\/p>\n\n\n<section id=\"end-block-pi\">\r\n<div class=\"rt-community-card \">\r\n\t<div class=\"rt-community-card__inner\">\r\n\r\n\t\t<div class=\"rt-community-card__main\">\r\n\t\t\t<h3 class=\"rt-community-card__headline\">\r\n\t\t\t\tNot getting the same result?\t\t\t<\/h3>\r\n\r\n\t\t\t<p class=\"rt-community-card__description\">\r\n\t\t\t\tEven when you follow every step, small differences in OS version, hardware or config can change the outcome. Instead of wasting time guessing, get help from people who have already fixed the same kind of issue.\t\t\t<\/p>\r\n\r\n\t\t\t<div class=\"rt-community-card__actions\">\r\n\t\t\t\t<a class=\"rt-community-card__button\" href=\"https:\/\/raspberrytips.com\/school\/community\/?coupon=EBCTY\">\r\n\t\t\t\t\t<span>Ask your question now<\/span>\r\n\t\t\t\t\t<span class=\"rt-community-card__button-arrow\">\u2192<\/span>\r\n\t\t\t\t<\/a>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class=\"rt-community-card__small\">\r\n\t\t\t\t\t\t<span class=\"rt-community-card__small-lock\">\ud83d\udd12<\/span>\r\n\t\t\t\t\t\tNo risk. Cancel anytime.\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t<\/div>\r\n\r\n\t\t\t\t\t<div class=\"rt-community-card__side\">\r\n\t\t\t\t<ul class=\"rt-community-card__benefits\">\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Get help on your exact issue<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Access step-by-step videos for tricky setups<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Browse the website without ads<\/li>\r\n\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t<\/div>\r\n\t\t\r\n\t<\/div>\r\n<\/div>\r\n<\/section>\r\n\r\n<style>\r\n.rt-community-card {\r\n\t--rt-bg: #f7f7f9;\r\n\t--rt-border: #e4e4e8;\r\n\t--rt-text: #15171b;\r\n\t--rt-muted: #5b6270;\r\n\t--rt-accent: #C61E4A;\r\n\t--rt-accent-hover: #aa183f;\r\n\t--rt-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);\r\n\r\n\tmargin: 36px 0;\r\n\tcolor: var(--rt-text);\r\n\tfont-family: inherit;\r\n}\r\n\r\n.rt-community-card__inner {\r\n\tdisplay: grid;\r\n\tgrid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);\r\n\tgap: 34px;\r\n\talign-items: start;\r\n\tbackground: var(--rt-bg);\r\n\tborder: 1px solid var(--rt-border);\r\n\tborder-radius: 22px;\r\n\tpadding: 34px 36px;\r\n\tbox-shadow: var(--rt-shadow);\r\n}\r\n\r\n.rt-community-card__main {\r\n\tmin-width: 0;\r\n}\r\n\r\n.rt-community-card__side {\r\n\tborder-left: 1px solid #e1e1e6;\r\n\tpadding-left: 28px;\r\n}\r\n\r\n.rt-community-card__benefits {\r\n\tmargin: 6px 0 0;\r\n\tpadding: 0;\r\n\tlist-style: none;\r\n\tdisplay: grid;\r\n\tgap: 18px;\r\n}\r\n\r\n.rt-community-card__benefits li {\r\n\tposition: relative;\r\n\tpadding-left: 18px;\r\n\tfont-size: 18px;\r\n\tline-height: 1.55;\r\n\tcolor: var(--rt-text);\r\n}\r\n\r\n.rt-community-card__benefits li::before {\r\n\tcontent: \"\";\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0.72em;\r\n\twidth: 7px;\r\n\theight: 7px;\r\n\tborder-radius: 999px;\r\n\tbackground: var(--rt-accent);\r\n\ttransform: translateY(-50%);\r\n}\r\n\r\n.rt-community-card__actions {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: flex-start;\r\n\tgap: 10px;\r\n\tmargin-top: 30px;\r\n}\r\n\r\n.rt-community-card__button {\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tgap: 10px;\r\n\tmin-height: 60px;\r\n\tpadding: 0 28px;\r\n\tborder-radius: 14px;\r\n\tbackground: var(--rt-accent);\r\n\tcolor: #fff !important;\r\n\ttext-decoration: none !important;\r\n\tfont-size: 21px;\r\n\tfont-weight: 700;\r\n\tline-height: 1;\r\n\tbox-shadow: 0 12px 22px rgba(198, 30, 74, 0.22);\r\n\ttransition: background .2s ease, transform .2s ease, box-shadow .2s ease;\r\n}\r\n\r\n.rt-community-card__button:hover {\r\n\tbackground: var(--rt-accent-hover);\r\n\tcolor: #fff !important;\r\n\ttransform: translateY(-1px);\r\n\tbox-shadow: 0 14px 26px rgba(198, 30, 74, 0.28);\r\n}\r\n\r\n.rt-community-card__button-arrow {\r\n\tfont-size: 20px;\r\n\tline-height: 1;\r\n}\r\n\r\n.rt-community-card__small {\r\n\tfont-size: 15px;\r\n\tline-height: 1.5;\r\n\tcolor: #6a717d;\r\n\tpadding-left: 2px;\r\n}\r\n\r\n.rt-community-card__small-lock {\r\n\tmargin-right: 6px;\r\n\tfont-size: 14px;\r\n\tvertical-align: baseline;\r\n}\r\n\r\n\/* Tablet *\/\r\n@media (max-width: 900px) {\r\n\t.rt-community-card {\r\n\t\tmargin: 28px 0;\r\n\t}\r\n\r\n\t.rt-community-card__inner {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 24px;\r\n\t\tpadding: 28px 24px;\r\n\t}\r\n\r\n\t.rt-community-card__side {\r\n\t\tborder-left: 0;\r\n\t\tborder-top: 1px solid #e1e1e6;\r\n\t\tpadding-left: 0;\r\n\t\tpadding-top: 22px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 12px;\r\n\t}\r\n}\r\n\r\n\/* Mobile *\/\r\n@media (max-width: 640px) {\r\n\t.rt-community-card__inner {\r\n\t\tpadding: 22px 18px;\r\n\t\tborder-radius: 18px;\r\n\t\tgap: 20px;\r\n\t}\r\n\t\r\n\t.rt-community-card__side {\r\n\t\tpadding-top: 18px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits li {\r\n\t\tfont-size: 16px;\r\n\t}\r\n\r\n\t.rt-community-card__actions {\r\n\t\tmargin-top: 24px;\r\n\t\talign-items: stretch;\r\n\t}\r\n\r\n\t.rt-community-card__button {\r\n\t\twidth: 100%;\r\n\t\tmin-height: 56px;\r\n\t\tfont-size: 18px;\r\n\t\tpadding: 0 20px;\r\n\t}\r\n\r\n\t.rt-community-card__small {\r\n\t\ttext-align: center;\r\n\t\tpadding-left: 0;\r\n\t}\r\n}\r\n<\/style>\r\n\t\r\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD is an original operating system you can install on Raspberry Pi to experiment a bit outside Linux. But the process is not always easy if you are used to working on Debian-like systems.Today, we&#8217;ll see how to install it on a Raspberry Pi, to configure it and use it like almost like any other&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5143,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-5144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-tutorials"],"taxonomy_info":{"category":[{"value":2,"label":"How-To Tutorials"}]},"featured_image_src_large":["https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/08\/install-freebsd-raspberry-pi-1024x683.jpg",1024,683,true],"author_info":{"display_name":"Patrick Fromaget","author_link":"https:\/\/raspberrytips.com\/author\/admin\/"},"comment_info":6,"category_info":[{"term_id":2,"name":"How-To Tutorials","slug":"how-to-tutorials","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":228,"filter":"raw","cat_ID":2,"category_count":228,"category_description":"","cat_name":"How-To Tutorials","category_nicename":"how-to-tutorials","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/5144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/comments?post=5144"}],"version-history":[{"count":31,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/5144\/revisions"}],"predecessor-version":[{"id":36129,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/5144\/revisions\/36129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media\/5143"}],"wp:attachment":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media?parent=5144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/categories?post=5144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/tags?post=5144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}