CommunityNews

CommunityNews

Linux from Scratch with Training Wheels

Introduction

Linux from scratch (LFS) is a step-by-step tutorial for building your own Linux distribution. Using the LFS approach, you start with a major Linux distribution that you prefer (e.g. Ubuntu) and bootstrap your own custom distribution. Your final LFS distribution will have nothing from the original distribution you started your bootstrapping from.

LFS is an excellent learning tool even if you have been developing on or administering Linux systems for a long time. There is some kind of magic in the “learning by doing” approach - your brain will pick up a bunch of subtleties after you create a distribution where you, for example, configure every single aspect of the boot process. LFS is also a really good way to learn, in no particular order:

  • Kernel hacking - you will have created the operating system around the kernel that you do hacking on, which indirectly helps you reason about custom kernels that you make.
  • Custom kernels - for the same reason above, you will get a deep understanding of why and how to customize a kernel
  • Building Linux software from source - yes, we all know how to run “make” and “make install” but, trust me, there’s more to it than that. If you want to level-up your knowledge on how to build packages on Linux this is a great way.
  • How to build cross-compilers - you will simulate the process of building a distribution targeting an entirely new machine. This will include bootstrapping the entire GNU toolchain (gcc, libc, etc)

Read in full here:

https://philsyme.github.io/lfs-tw/

This thread was posted by one of our members via one of our news source trackers.

Where Next?

Popular Linux topics Top

First poster: bot
The Year of the Linux Desktop. The year of the Linux desktop has arrived. This is a guide for how to improve the Linux desktop experienc...
New
First poster: bot
It looks like thanks to AMD’s increasing sales and continuing successes in the enterprise space with more HPC wins and the like, AMD is h...
New
First poster: bot
In our previous post, we announced that Android now supports the Rust programming language for developing the OS itself. Related to this,...
New
First poster: AstonJ
In a few weeks, Fedora 34 will be released, and alongside it - you will get to use Gnome 40, the next version of this namesake desktop en...
New
First poster: bot
Thirty years ago, Linus Torvalds was a 21 year old student at the University of Helsinki when he first released the Linux Kernel. His ann...
New
First poster: bot
Linux Sucks 2021 - The End of Linux is Nigh. Welcome to the 2021 edition of Linux Sucks! View video here: This thread was posted by...
New
CommunityNews
As movement toward memory-safe languages, and Rust in particular, continues to grow, it is worth looking at one of the larger scale effor...
New
First poster: kokolegorille
Someone might need to check on Steve Ballmer. Microsoft has developed its own Linux distro, CBL-Mariner, and released it under the open s...
New
First poster: bot
Refusing to support my friends’ and family members’ devices that do not run Linux is the next step in my personal fight against products ...
New
First poster: AstonJ
I’ve had a busy week, so I didn’t have time until today to read this news about Red Hat locking down RHEL sources behind a Red Hat subscr...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
New
Margaret
Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New