This tutorial by Michael Ragusa of DigitalOcean shows us how to customize and recompile your kernel on FreeBSD 10.1.
The FreeBSD operating system utilizes the
GENERICkernel by default. This is a default configuration used to support a large variety of hardware out of the box. However, there are many different reasons for compiling a custom kernel, which include security, enhanced functionality, or better performance.
FreeBSD utilizes two branches of code for its operating system: stable and current. Stable is the current code release that is that is production ready. Current is the latest code release from the development team and has some of the latest bleeding edge features but is more prone to bugs and system instability. This guide will utilize the stable branch.
In this tutorial, we will recompile a FreeBSD kernel with a custom configuration.
To follow this tutorial, all you will need is:
- One FreeBSD 10.1 Droplet.
If you’re new to FreeBSD, you can check out the Getting Started with FreeBSD series of tutorials.
Step 1 — Obtaining the Source Code