Kindly support DOTSLASHLINUX on Patreon to keep the website up and running while remaining ads free.

Best Lightweight GNU/Linux Distros

lightweight
Firas Khalil Khana | 21/03/2017

In this article I’ll be talking about some lightweight GNU/Linux distro that don’t sacrifice conveniency for being lightweight. (Yes I’m looking at you TinyCoreLinux)…

Let’s define some rough outlines before venturing any further. The distros that I’ll be mentioning won’t be those super tiny ones that can be run on a toaster. They will be distros that can be run mainly on a x64/x32 machine and possibly on ARM hardware.


Gentoo Linux

Who didn’t see this coming… The truth is that gentoo is an awesome independent source-based rolling-release GNU/Linux Distro. What that means is that you download the source code of the packages you want and build them. The devs were kind enough to provide a precompiled version of the basic files used for the installation of gentoo known as stages.

“But wait aren’t source files bigger than their compiled relatives?”, bigger yes as they take more space, but once you’ve compiled the package the result is almost always smaller (even if by 1%) that it’s original relative. Not only that but you can choose what you want from a certain package and disable what you don’t want (this feature is known as USE flags).

Why on earth would you want to download all the locales available in the world for every single package when you only speak one maybe two or three languages? Why would you need xorg server support and sound support when you’re building a headless server (without a GUI)? Why would you need networking support in a package that you know most certainly isn’t going to use it anyways? The list goes on and on…

The same thing that goes for the packages can be applied to the kernel as they highly recommend that you build your own kernel. For example, I was able to idle at 37mb RAM usage on a headless 64bit machine, and at 49mb RAM usage using DWM (a super lightweight dynamic wm that does its thing perfectly) and I had everything working from sound to microcode updates to compositing to everything just name it… (Don’t you worry I’ll be posting my results and my builds and what I did to achieve them later on). The number of packages it provides by default is also quite notable. It can be extended further more using overlays (some are official and some are not).

“Alright I’ll go download that gentoo and install it on my Pi!!”… woah woah woah hold on there… It’s true that gentoo has lots of pros, but let’s look at the cons as well. First of all compiling everything from source is a time consuming, heat producing and age reducing process.. (your age as well as the hardware’s age). I was running gentoo on my toshiba laptop and compiling everything meant that I had to leave the machine running at 80 to 90 degrees celsius and at 90-99% CPU usage for times varying from 1 minute to sometimes hours.

My laptop had a quad core intel cpu, now imagine doing that on a pi… I wonder if it’s ever going to finish compiling… But you can as always cross-compile by forcing your stronger higher end hardware to build the packages with a configuration suitable for that pi or any other lower end hardware. “Ok I have a high-end PC should I download gentoo now?”… The truth is that gentoo requires a lot and a lot of knowledge to work with. But if you’re interested I’ll be more than pleased to help you on that (let me know by leaving a comment below).


Void Linux

“Wait what? I’ve never heard of this distro before? How did it make it here?”.. Simply said it EARNED it. Sorry for being too loud but that’s the truth. Void Linux is an independent rolling-release GNU/Linux distro, developed entirely by volunteers and they nailed every aspect in it. Everything in it is lightweight and does what it needs to do perfectly. Their package manager xbps is awesome. Their service manager runit kicks systemd’s and openrc’s ass. It boots under 10 seconds on an old HDD and between 2-4 seconds on an SSD.

They even provide two flavors of void. The glibc based void with glibc packages and the musl based void with musl based packages. The different between the two is that musl is lighter and somewhat faster but has very little packages as many software in the GNU/Linux won’t compile using musl. But if you’re lucky and all the software you use is available in the musl repositories then go for the musl version.

That’s not it they even provide a source based version of void using xbps-src, which I think is good for those who want to tinker with their packages. But seriously if you want to use a source based distro just choose gentoo…

I can’t think of any cons for void as I didn’t use it for a long period of time (it took me alot to configure bumblebee for my optimus laptop which I didn’t like other than that it was great).


Arch Linux

Oh boy… You saw this coming from a mile didn’t you… It’s our all time star Arch Linux! The distro with the worst community ever. The distro where I tried to report several bugs in the irc and got roasted as either they were upstream or that I’m a retard for using the features that bugs made unavailable… Anyways…

Archlinux, is an independent rolling-release binary based GNU/Linux distro. And no it’s not hard to install unlike gentoo… In fact the whole installation process can be automated using scripts so you don’t have to manually reinstall it (if you ever needed to). In fact that’s what some distros are doing. They’re automating the installation process of archlinux and leave you with a basic archlinux install.

Archlinux uses systemd by default which will hopefully be a distro of itself if they keep doing what they’re doing now. Thus it offers you a fast boot time (faster than OpenRC in gentoo and slightly slower than runit on void), and higher memory footprint for its journald service. The wiki is astonishing. It has everything you need to know to make arch whatever you want. But that doesn’t mean that their community should badmouth everyone who asks for help. In fact the installation of archlinux is the easier among the distros mentioned on this list, so they get no right to brag…

The official repositories offer a fair amount of packages (more than voidlinux and less than gentoo). This can also be extended using the aur which is completely unofficial. Everything seems super smooth with arch as pacman does most of the work for you. Optimus laptops won’t have any hard time using arch. In fact arch is the only distro that makes the “But I have 2 graphics card an iGPU and dGPU…” a problem of the past. The devs did a lot of configuration for the packages so you don’t have to bother about missing libs or having to relink libs or stuff like that.

You don’t need to know that much in GNU/Linux to install arch. The amount of knowledge needed to install arch is like a mere 5% to 20% (at max) compared to gentoo.


Conclusion

If you have the time and wanted to learn GNU/Linux then go with Gentoo. Otherwise go with Arch or Void. Just remember this one thing “never make an OS your end goal unless you’re willing to become a sysadmin”.

In the end, every distro can be lightweight if it offered the means for users to customize it to their likings without breaking on every stupid thing. This is just the start, after you’ve installed a base system using one of these distros, be sure to follow other guides on our site to choose your set of lightweight apps suitable for your work.

4 Comments

ramata

17/06/2017


Hi, thanks for the comparision. Gentoo with dwm is the best way for a productive desktop system, fast, secure and lovely. Arch is good for building a small testing envirement, but using systemd, the openrc variant is for medium users, like me buggy. I‘m searching for a binary distro, systemdfree for a multiboot system. Alpine. Arch, Sabayon and BSD variants arenot my way. Greets ramata

DOTSLASHLINUX

17/06/2017


@ramata, you’re welcome! Well the only choice you have left for a systemd-free binary distro is Void Linux. It’s super lightweight and uses runit instead of systemd and is very easy to install which makes it perfect for what you need. However, it’s lacking in packages so you better check if it has all the packages you need before using it. Other than that it’s a great distro!

oldgaro

07/10/2017


As a minimalist I am really really interested in Gentoo. I love Arch Linux but if is there any true in what you say about installing only what I need, well boy…I am up to it!

Dwm user too! haha

DOTSLASHLINUX

17/06/2017


@oldgaro, Thanks for stopping by! Yes, I’m a man of my word! If you’re a fan of minimalism and have got some time to spare, then go with Gentoo :D

Lemme know if you have any questions or need any help along the road.

Leave A Comment