Skip Navigation

I Compiled the Linux Kernel myself for the first time

It's not really a big deal, but I am currently writing this using a linux kernel I compiled from source, which certainly feels like an accomplishment. The Arch Wiki has made the process fairly easy to follow. I just took the stock Arch Linux configuration without changes for now.

The most important part of this is of course that I have the option to do that, to take the source code of this incredible project and build my own kernel binary.

53 comments
  • I often did this for years, using -march=corei7 and -mtune=skylake or whatever was the best option for my cpu, patching with brainfuck scheduler, etc.

    Now I don't care really 😑

    It's always cool to tinker with kernel and config, congrats 🎉

    • As a student I wasted so much time mucking around with flags and settings in Gentoo. It definitely wasn't pointless since I learned so much, but I didn't need to sit there and watch it compile as much as I did.

      It was pleasing to watch though, just like defrag in Windows.

    • ahh what a shame. I have: https://kernel.melroy.org/.

      But I also didn't had the time to create new kernels. My PC is too slow at the moment. hahaha. Just wait.. maybe I will get the latest threadripper. Instead of the first -gen i7 from 2008.

  • Maybe it's not a big deal.. But I still remember the first time I compiled the Linux kernel. It feels good. Well done!!

  • This is the best part of free/libre/open-source software. Even if you would never want or need to compile software yourself, the fact that you have the option to do so, and the opportunity to learn how the software works, is what makes FLOSS superior to proprietary software IMO.

    I just compiled Handbrake from source a few minutes ago, and I know how you feel. Best of luck in your future code-compiling endeavors.

  • Nice! After the first time you get the hang of it but keep in mind, If you do make your own config you will have to recompile your kernel for any hardware that isn't automatically enabled in the config like graphics, touchpad, tablets, and other peripherals you will plug into your computer. Reading up on what hardware you have helps a lot but I still manage to forget something when I have to create my own config. Thankfully you can just transfer your config to the next kernel instead of creating it all over again.

  • Surely this is a feat of engineering on Arch. But in NixOS, this is just Monday. 😉

  • That's certainly nothing to shake a stick, OP! Very well done. The last time I compiled a kernel was back in 1999 with Slackware. If I remember correctly it was a version previous to 7.

    • I have vague memories around that time of doing it, I think it took 3 days to compile IIRC.

      Or maybe I'm thinking of early Gentoo installs...

  • Please contribute to Pine64. As a consumer I really want Linux phones to go mainstream.

53 comments