Roll your own Linux: for and against

APC administrator27 June 2006, 4:14 AM

Linux cops flack for being an operating system for supernerds who like nothing better than to spend the weekend recompiling their kernel. The advent of slick, pre-built distros are changing this perception, but are they really true to what Linux is all about, or are they starting to get bloated and flabby, like Windows?


Roll Your OWN lawlz Linux cops a lot of arguably unjustified flack from the mainstream media for being an operating system for supernerds who like nothing better than to spend the weekend recompiling their kernel.

The reality is that slick, pre-built distros now provide a perfectly solid alternative to Windows for many users. But user friendly Linux distros do have their own issues: for one thing, they don't exactly provide a 'low-fat PC'.

Here's what to consider before diving in to "rolling your own" or installing a pre-built distro.

For:

The best thing about rolling your own Linux is the fact that you can very easily tailor your software selection. With a bit of thought, a user can create a full suite of software which can make them instantly productive on any PC.And this isn't limited to applications; if you don't want to include driver modules for hardware that your PC isn't using, then leave them out and put something else there instead. Why do you need PCMCIA modules for a desktop PC anyway?

Not only is this advantageous to the desktop Linux user, but the sysadmins among us have even more to gain. Want to ensure that the software and OS versions on every desktop in your workplace is the same? Done. Want to have an instant restore solution if the office proxy server goes down? Done.

It's also a great way to learn about your operating system (if that's what gets you up in the morning). Linux is very descriptive about everything that happens with it, and the process of building your own distribution is no exception.

Against:

Well, it's a little tough for one thing. If you don't already use Linux, you've probably stopped reading by now. If you haven't, you may as well; without already having a fairly comprehensive knowledge of the OS, the task will be near impossible.

Another problem is that you can end up making life really difficult for yourself as far as using the computer. For example, say you want to make a lo-fat desktop OS, you probably don't want GNOME or KDE included in your packages. Then you go to install the Gimp, and find that you need to have a lot of GNOME libraries anyway, and that K3B needs a lot of Qt. So you end up downloading 50 to 100MB of packages simply because you wanted to free up some space for OpenOffice.org.

And the hardware module tailoring is a mixed blessing for desktop users at best. I don't know about you, but my hardware is liable to change every fortnight, meaning more time spent downloading after the fact.

In the enterprise world, it's more useful because most of the computers will be bought at the same time. Even then, though, it's not perfect. If our office is anything to go by, most of the desktop PCs deployed in the enterprise world have subtle hardware differences which confound any attempt to reinstall even Windows on them.

In our case, using a custom distribution which doesn't have the hardware support of the big desktop players like SuSE or Ubuntu would create a nightmare of tweaking.

In the end, though, ask yourself if it might not be easier to just do a post-install customise of your favourite distro rather than making one from scratch.

Still interested?

If you do want to get started with your own distribution, and the against arguments don't worry you, then these links willhelp you get started:

  • How to roll your own OS - an old article, but a very good step by step guide to using the low-level CLI tools that ship with a Linux distro to create a new one.
  • Tools to roll your own distribution - a brief overview of the most commonly used tools to build custom Linux distros.
  • Morphix home - Morphix is a heavily customisable live CD distribution which can boot into a tool used to build a custom distro in the available space of a connected hard drive.

Post your comment



Comments

RSS feed Email alert

BD:

Not very inforative.

you failed to mention LFS - Linux from Scratch
http://www.linuxfromscratch.org/ one of the most indeath Step-by-Step how-tos.

Then there is also Gentoo...


But then what can one expect for an MSN site.

BD

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Dan Warne:

Wow, what an original, refreshing and clever accusation.

NineMSN sells the advertising space on our site as part of a contractual agreement with our publisher, but has zero influence on our editorial coverage.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Akash Mehta:

BD, there are billions of sites on the intenet. Even googling 'linux roll your own distro' doesn't point out LFS, and you can't expect apc to know absolutely every linux site on the net. In addition, they don't have much of a choice being a ninemsn site, and it does not mean they are biased against linux - judging by the articles, it is clearly quite the contrary.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Bob Robertson:

Maybe the site distrowatch.com would be of interest. It lists hundreds of distributions, and you can search and sort as you want.

That way you don't have to do a Google search on nebulous terms, or "know absolutely every linux site on the net."

Several very low resource Linux binary distributions are listed, which belies the "low-fat" comment in the article. It's also important to remember that resource-hungry application suites are not requirements on a Linux box built from binary packages. Even the GUI itself is optional.

Vista will be coming out soon. That means that Microsoft is putting lots of effort into FUD, with especially "Damning With Faint Praise" astroturf articles coming out in large numbers. It is very easy to confuse simple unfamiliarity (such as not knowing about LFS or DistroWatch) with deliberate sins of omission. Zealots on both sides aught to be shunned.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Declan Kennedy:

@1: I didn't mention LFS because I don't think that it's a very good introduction to building a distribution. It's an entire (250+ page) book. LWN.net doesn't list it in that article I linked to either, and their article is about the tools, but I don't see attacking them at all.

Gentoo is also not a good introduction to building a distro. It's too complex unless you already use it daily, and the hardware wear and tear caused by having your CPU at full capacity all the time when installing software is not worth it.

You see fit to condemn my writing and this entire site without reading anything else here? Cool, don't let the door hit you on the way out.

@3: Thankyou :)

@4: I'm completely aware of Distrowatch, but the whole point of the article was to point out why you would or wouldn't build your own distro. There are hundreds of projects out there which show people how, but that wasn't the point of this article.

Certainly source distros are going to be faster hands down, but I really don't think that the aforementioned hardware wear and tear is worth it.

When compiling, your CPU is running hard and hot, and your drives are constantly reading and writing. Considering that compiling large applications can take all night, over the course of a couple of years this begins to take a toll on your hardware.

Still, if you're only compiling small applications (which would be the case if you were to take the low-fat path) and didn't need to add new software and hardware too often, a source distro is a fine choice. It's just a little outside the scope of this piece to discuss the pros and cons of source vs binary and how your choice affects the end result when rolling your own.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Alan Jameson:

@5's @1: While his MSN comment was a little below the belt, I was also surprised that there was no LFS link - it's chunky, yeah, but its the first (and only) step by step guide to rolling your own system from the ground up that I've found on the net and followed through on. If someone was to come to me and say that they a) wanted to learn more about the inner workings of the OS, or b) wanted to learn how to put a distro together, the three things I would point them at are slackware, gentoo and LFS (in no specific order). I also didn't think LFS was that poorly-known, but ./shrug.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Ivan:

What about source-based distros like Gentoo, SourceMage, etc? They not quite roll-your own, but you still choose exactly what you want to put on your system, and they come with a package manager to help you install your software.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

sokrates:

How to roll your own OS - an old article, but a very good step by step guide to using the low-level CLI tools that ship with a Linux distro to create a new one.

Did you really read the links you provide, or do you merely google some keywords and paste the first hits?

"How to roll" your own OS is just a howto, which covers compiling a linux kernel, nothing more.
I don't see any relation between this link and your article at all. Sure, at some point (near the end, by the way) of building ones own distro, you surely want to build a custom kernel. But this link wont give one any help as to build a distribution.

In my opinion there are two major options:

1.) To build a distro 'from scratch',
like LFS or Gentoo

2.) Install a mere base system (for example Gentoo stage 3, Slackware , FreeBSD base install etc.), and add the needed sowtware as you like.

Maybe you should try to read up more deeply on the things you write articles about.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Declan Kennedy:

"Did you really read the links you provide, or do you merely google some keywords and paste the first hits?"

Actually I can't read. My feeble brain is obviously no match for your amazing intellect Sokrates.

"In my opinion there are two major options:

1.) To build a distro ‘from scratch’,
like LFS or Gentoo

2.) Install a mere base system (for example Gentoo stage 3, Slackware , FreeBSD base install etc.), and add the needed sowtware as you like."

Awesome, nice to hear. We build distributions with customised software configurations every month for our cover DVD using shell scripts, because we can't fit a full DVD distro and the other software we include on the same DVD. Does that make your suggestion wrong? No, it's just another option.

"Maybe you should try to read up more deeply on the things you write articles about."

Except that wasn't the point of the article. It asks the question: should you roll your own OS? Forgive me for not taking reading comprehension advice from somebody who hasn't even understood the headline of this piece.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

anonymous user Anonymous user


Tags