What a slacker learned from building Linux from Scratch...
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
While it would take longer on a netbook than an 8 threaded desktop, the LFS book breaks down each build into relative time units called SBU's (Standard Build Units) so you will have a rough idea of build time for each piece.
While it would take longer on a netbook than an 8 threaded desktop, the LFS book breaks down each build into relative time units called SBU's (Standard Build Units) so you will have a rough idea of build time for each piece.
Here are my notes from building LFS. I keep meaning to tidy them up, but hopefully you can get something useful from them.
@piratesmack Here's a snippet that might interest you:
Quote:
Started work using a slackware 13.0 32bit install as the host system.
Host hardware: Intel 3.0 GHz Core2 Duo E8400 with 4GB ram (3.37 GB usable in 32 bit system)
...
1 SBU on my machine is (real from time) 1m34s with "make" or 58s with "make -j2"
Tested build of binutils (2.1 SBU) on eee pc 1000H with intel atom N270@1.6GHz - time (real) gave 6m26s
Wow. Thanks for posting your notes, Drew. I'll be looking forward to any updates, too, since it will be December before I can play with this. (I can't believe 2/3 of October's already gone!) I appreciate your work in documenting everything.
I finished my LFS build today, using Slackware-Current as the host (only updated to Oct 16th). A couple package versions were higher than the LFS book recommended, but I didn't run into any problems.
I did almost everything like the book said, but I used kernel 2.6.35.7 instead of 2.6.35.4 and Grub4dos instead of Grub2.
I've built LFS a couple times before but it's been a few years now, so I downloaded 6.7 and will try it this weekend. This thread is inspiring. The challenge will be to get the wireless working.
This'll be my fourth trip down this rabbit hole and I learn more every time. If I had a kid, this is what I'd give her/him to play with. See what you can do with THIS erector set!
I first found Linux looking for something else. Patrick was looking for a free Lisp interpreter, I was looking for a free C compiler.
But I've had no need in school or work to know Unix.
After snooping around Red Hat 6 for a while (it's what everyone was using at the time), I just focused on C and Perl. I still didn't understand the environment I was working under.
I was delighted to find Linux From Scratch. After several false starts, I finally got into it, though I don't think I even finished the book the first time.
The main thing this does is get you really familiar with the basic 'configure - make - make install' workflow for installing software from source.
I'm a bit disappointed that the book doesn't really explain exerything (Gawk is described as a "program for manipulating text files" - yeah, so is Emacs and so is Perl), but it does SHOW you everything.
It provokes questions ("what is this M4 that so many programs need and why is sed being used so much and do I really need to install all these 'extras' like Perl and Tcl and Bison and...?") and has given me so much more to look into.
Over the years tinkering on and off with LFS I've become impatient with distributions that try to do everything automagically. When you hide the sharp edges the tool loses its effectiveness.
After futzing around with a dozen different distros I've finally come back to the beginning with Slackware. It is my experience with Linux From Scratch that has sold me so hard on Slackware. It's the only distro I've tried that doesn't get in the way.
Linux From Scratch showed me how it is done and Slackware showed me how it is done right. I need my system to be stable so that's my Slackware, but LFS is for fun, with the latest (though not bleeding edge) releases of tools.
Last edited by leeeoooooo; 10-25-2010 at 01:09 PM.
Linux From Scratch showed me how it is done and Slackware showed me how it is done right. I need my system to be stable so that's my Slackware, but LFS is for fun, with the latest (though not bleeding edge) releases of tools.
Yeah. That's where I'm at -- mostly, anyway. There are folks who run LFS as their day-to-day systems. I'd like to try that on my secondary computer, where I'm building LFS 6.7 right now. Still, I think keeping track of security updates and so forth will be a lot more difficult than with Slackware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.