Slashdot Mirror


Linux From Scratch 5.0 Book Released

Mecha-A writes "Linux From Scratch 5.0 was released earlier this month, incorporating GRUB as a bootloader, GNU coreutils, GCC 3.3, and lots of other package upgrades among other improvements. If you haven't tried it, LFS is a procedural outline for building a Linux system from the ground up. For those who can't get enough customizability..."

32 comments

  1. Linux from scratch by termos · · Score: 2, Funny

    I've always wanted to learn how Linux was written, FROM SCRATCH!

    I hope there will be book about GNU/Linux from scratch soon.

    (awaits the flame about old smelling men with beards, and so on)

    --
    Note to self: get smarter troll to guard door.
    1. Re:Linux from scratch by jon787 · · Score: 1

      This is the first GNU/Linux troll I've laughed at.

      --
      X(7): A program for managing terminal windows. See also screen(1).
  2. I wish I had used this for my first Linux install by scumbucket · · Score: 0, Funny

    About two weeks ago I decided to try and install Linux on my old K6-2 450mhz machine gathering dust in the basement.
    A friend of mine gave me a few cd's that had something called 'Mandrake' on it.

    He said "This is supposed to be the most user-friendly 'distro' out there. Give it a try."

    So with trepidation about wiping out my beloved win98se install on the old machine, I jumped right in.

    On firing up the install disk, the Man-drake installer asked me if I wanted to remove the win98se partition
    that already existed. After pondering this for several minutes I though, 'what the hell, I can always
    reinstall it!' So I let it fly.

    After what seemed like 45 minutes of swapping cd's in-and-out of the drive, the man-drake (isn't that some sort of bird?)
    installer ask me what I wanted to use this linux machine for. So many choices! games, office, mail server,
    web server, about 2 dozen choices flooded my screen. This is madness! So after carefully considerating my options
    I decided to choose them all! I would be a Linux power-user to end all linux power-users!

    So after this decision was made I waited. And waited. And waited. During this I started to wonder. My Windows XP
    Home intallation on my other Peecee didn't ask me thse kind of questions, and it easily has the all the abilities
    that man-drake advertised to have. After all, I paid for WinXP Home. Sigh, I guess this it the price one pays
    for being part of the linux elite.

    Approximately 50 mintues later I get another prompt from the man-drake installer asking me what kind of GUI I wanted
    to use, KDE or GNOME. Fool me once, shame on you, fool me twice shame on me! I selected both and let it fly.

    After only about 20 mintues this time it appeared the install was completed. The mandrake installer told me it
    was going to reboot and then I would revel in Linux goodness. I waited with baited breath while the reboot
    churned away, eagerly waiting the opportuntity to use the KDE/GNOME interface. Page after page of command line
    stuff flew by my screen, seeming to get faster and faster as the time of my linux deliverance approached. Then,
    the screen flashed black (kinda like those scenes from the movie Wargames). I gasped and was presented with
    something like this:

    bsh: blah/blah/blah/ ____

    What the hell was this? Wasn't this man-drake linux supposed to be user friendly? Instead of the friendly
    confines of a WinXP like GUI instead I was given an ugly DOS like prompt, which looked supiciously like
    the TRS-80 system I first learned BASIC on in high school. Is this all the farther the great open-source
    movement has progressed?

    After serveral minutes of sobbing and knashing of teeth, I came to a decision. All the linux fags out there
    were not going to defeat me! They were not going to cry "Bend over WinXP boy, you're going to take linux OUR
    WAY and like it!".

    I quickly found my old musty copy of 'Unix in a Nutshell' from my college days and got to work. In a few hours
    I found out how to start the KDE GUI. This made life so much easier. After several days I was able to get the
    machine's 14.4 internal modem working with man-drake and connected to the internet, using a browser called
    Mozilla. Where oh where were the glorious pop-ups that appeared as I was surfing porn sites? Those bastards!

    After several more days I was starting to feel somewhat comfortable. Using something called Gimp to manipulate
    my growing collection of adult images was becoming a habit. And because I was ashamed to let my friends and
    neighbors know I was using a gasp! free operating system like mandrake, I kept the pee-cee in the basement. Now
    my girlfriend things the sounds emanating from below are me just woodworking or lifting weights. I guess linux has
    freed me after all!

    --
    CMDRTACO CHECK YOUR EMAIL!
  3. Tried LFS 4.1 by Bobulusman · · Score: 1

    About a month ago, I tried out LFS 4.1 and was very happy with it. (Wish I had known LFS 5 was coming so soon. I might have waited) I'm new to Linux and it helped me get a handle on a lot of commands that I probably would not have learned for quite a while longer had I not tried it. I'm currently in the middle of using the BLFS (Beyond Linux from Scratch) to add in the necessary tools to use my LFS system as my main linux system.

    For others new to linux, I would recommend it. All you need is:
    - A spare partition
    - An ordinary linux distro to start building the lfs system. (I hear you can build w/o it, but I didn't try that method, as it wasn't recommended)
    - Lots of free time

    --
    Cogito ergo sum in Slashdot.
    1. Re:Tried LFS 4.1 by Khazunga · · Score: 1
      My experience also, albeit not with LFS 4.1. I tried LFS a couple of years ago, and I don't remember the version exactly. It's excellent as a learning tool, and I recommend it to every newbie with a tech vein (i.e. if you want to look under the hood, this is one of the best tools).

      However, for a long running system, LFS is way too time consuming. I switched to Gentoo after a while, with all the customization, at a fraction of the time cost.

      --
      If at first you don't succeed, skydiving is not for you
  4. This looks like a very handy tool. by scootr1 · · Score: 1

    It seems like it has been updated very regularly, too.

  5. Re:I wish I had used this for my first Linux insta by Anonymous Coward · · Score: 0

    Kind of an odd troll. It's been my experience that Mandrake does a very good job of configuring XFree86 w/o intervention, especially on old hardware like that in a K6-2 system.

  6. I'm Installing It Right Now by tim_mathews · · Score: 1

    Well, right now as in I started almost 24 hours ago compiling stuff. Don't get me wrong, I think it's a great idea; so great in fact that I'm building it on a P-III 500. Which is something I'd strongly recommend against if you're in any sort of a rush. Of course, GCC gets compiled 4 times i think (three when it's bootstrapped, and again when it's built using the new toolchain), glibc gets compiled and tested twice. Compiling doesn't take so long compared to testing it. Later on I'll be building Perl, X, KDE (at least the libraries), Gnome, OpenOffice. Yeah, I think that covers the really big packages. I fully expect this whole process to take every bit of 48 hours. Nothing like sleep between compiles. :-) This must be what it was like installing Linux 10 or 11 years ago.

    1. Re:I'm Installing It Right Now by Anonymous Coward · · Score: 0

      You're in a better position than I was. I was using LFS 4.1, and couldn't figure out why I couldn't get half my hardware to work. Finally figured out that my nforce2 stuff was added to the kernel in 2.4.22, while 4.1 used 2.4.20.

      So, having any problems, other than slowness?

  7. Gentoo by HuggybearVT · · Score: 1

    http://www.gentoo.org

    /obligatory

    1. Re:Gentoo by EduardoFonseca · · Score: 1

      If you are lazy like me, Gentoo is great. If you want to learn the guts of Linux, LFS wins far ahead. Cheers!

    2. Re:Gentoo by Bobulusman · · Score: 1

      I'm interested, but I have a question:

      I've got an nforce2 motherboard with an onboard 3com ethernet card that wasn't added to the 3c59c module until 2.4.21 or so. As I understand it, Gentoo uses 2.4.20. I would therefore not be able to access the net and download all the required packages if I did a stage1 or stage2 build.

      Am I missing something, or would I have to wait for another release that uses 2.4.22/2.6.x? I guess I'll just fiddle with my LFS system until then...

      --
      Cogito ergo sum in Slashdot.
    3. Re:Gentoo by Micah · · Score: 1

      Gentoo can use whichever kernel source you want. You're correct that "gentoo-sources", the one generally recommended by the Gentoo team, is still at 2.4.20. But there's also pfeifer-sources, at 2.4.21. There are also ebuilds for the vanilla-sources 2.4.22.

      Personally, I use mm-sources -- 2.6.0test8-mm2 currently. Been using it for almost three weeks, works fine. (Tried to upgrade to test9-mm1, had mouse trouble, so I downgraded again.)

    4. Re:Gentoo by Guido+von+Guido · · Score: 1

      I tore down my LFS system for Gentoo on my laptop. While I like Gentoo, frankly I missed my LFS system. Once you have it going, it's really not that much more trouble than Gentoo. Granted, I don't think I'd bother using it for a server.

  8. The book I'm looking for by BoomerSooner · · Score: 1

    How to create your own distro from scratch.

    Hell or how about how to make a bootable cdrom for installing your distro.

    I've looked but no such luck. Maybe the google nazis can find something to help out!

    1. Re:The book I'm looking for by wolverine1999 · · Score: 1

      Just boot with Tom's Rescue Disk.

      You can use it to format a hard disk, fdisk etc.
      Then mount the cdrom with your distro
      and copy the files.
      Call lilo from your distro using chroot
      to finalise the thing, and voila' your distro is ready.

      Sure, it's not your neighbourhood friendly installer, but it works fine.

  9. A distro by rodentia · · Score: 1

    just builds this and that on top of LFS. Try this for starters.
    As to a bootable cdrom how about this?

    Google nazis? is that a sequitur?

    --
    illegitimii non ingravare
    1. Re:A distro by Bobulusman · · Score: 1

      I assume he means so that when he has his LFS system just the way he wants it, he can create a CD that will let him install it on anything he wants. It wouldn't really work, though, what with the hardware-specific tweaks LFS puts in.

      --
      Cogito ergo sum in Slashdot.
    2. Re:A distro by Skjellifetti · · Score: 1

      Works fine. The only HW specific tweaks IIRC are those you choose for your kernel. So build all the modules and write a script that lets you choose which ones you really want when you boot your CD. Et voila, your own distro.

    3. Re:A distro by Bobulusman · · Score: 1

      If you go with the most general tweaking, yeah. But, for example, I compiled all my programs with the -march=athlon flag, which means I get a slight performance boost, but my system would not play well with older intel systems. I'm just saying that since one of the key philosphies of LFS is a system customized to exactly your setup, it seems counter-intuitive to make a generic distro out of it.

      --
      Cogito ergo sum in Slashdot.
  10. LFS 4.1 by NegativeK · · Score: 2, Informative

    I must say, I've installed LFS 4.0 and 4.1 on a few machines, and it's taught me a _lot_ about Linux. I wasn't totally ignorant before, but I now know a bit more about compilation flags, standard directory structures, etc. It is, of course, a long and sometimes painful install - which is why I highly recommend booting from Knoppix to do the installation, as you'll get lots of things to toy with while you're waiting for some of the longer things to compile. =) Of course, that which really sucks is the fact that I don't want to reinstall until 2.6 becomes stable, and I can run XFS on my box.. ;.; Oh well. Hopefully that won't be too far off.

    On the major tips side of things, if you've never done LFS before, make sure you download and install ssh for scp and sftp or lynx/links before booting into it. LFS is bare to the point of having no www, ftp, or nfs utilities, which can be annoying. =p Anyways, for those brave few souls, good luck, and happy compiling!

    --
    This statement is false.
  11. Automate with Bash Scripts by rovitotv · · Score: 2, Interesting

    I created several bash scripts that automate the process for me. It works pretty good and was easy to do. Every time a new edition is released I just update my scripts and then reinstall. The think I like best about LFS is the system in the end is configured to your liking. It takes time but gets you a very customized system.

    1. Re:Automate with Bash Scripts by Glytch · · Score: 2, Informative

      Amen to that. The things I love most about LFS are the way that there are no dependancy problem, and the fact that there are never any missing headers. The only two pieces of software on my system that I haven't compiled myself are the Nvidia drivers and Opera 7, and both of them are pretty much self-contained. So long, Debian/Redhat circular dependencies and missing devel packages! Don't let the door hit your ass on the way out!

      Also, the Beyond LFS hints are a great resource even if you don't use LFS. Short, clear guides on how to get certain programs installed and working.

    2. Re:Automate with Bash Scripts by Anonymous Coward · · Score: 1, Insightful

      I think your scripts should be submitted to LFS itself as examples for others.

    3. Re:Automate with Bash Scripts by Prior+Restraint · · Score: 1

      I thought LFS was great, right up to the point that I had to uninstall stuff. I can't see any reliable way to do it (make uninstall isn't always implemented well).

      Ever since I got a broadband connection, I've been using Gentoo. This doesn't make any sense to me, but I swear Gentoo runs slower than LFS, which leads me to my other LFS complaint: any peculiarities to your system need to be documented thoroughly by you.

      I love LFS, but after a point, I just get tired of being a full-time, unpaid sysadmin.

    4. Re:Automate with Bash Scripts by Glytch · · Score: 1

      I use Epkg, an Encap-compliant manager, along with a typical install command of "PREFIX=/temp/usr/local make install", and then I move the contents of /temp/usr/local into /usr/local/encap/[package name]-[package version], then typed "epkg [package name]". All Epkg does is manage symlinks. There's no database to corrupt or dependencies to worry about.

      Almost all programs that can be installed with the "./configure ; make ; make install" dance work fine with Epkg. Gnome is an exception, with that miserable Scrollkeeper nonsense. I've since said "to hell with it!" and dumped Gnome into /usr/local/gnome to solve the problem.

      I can completely understand where you're coming from, though. LFS is *definitely* high-maintenance. If I didn't have so much free time, I wouldn't bother with LFS and would use Slackware instead.

    5. Re:Automate with Bash Scripts by rovitotv · · Score: 1

      I actually used somebody else's scripts a long time ago and can't remember the original authors name otherwise I would be happy to post them. Lots of people other than me have their own scripts for doing the same thing, in fact there is a project called ALFS (Automated Linux From Scratch).

  12. Free Tickets to SCALE by MrMorph · · Score: 0, Troll

    Come join us at the Southern California Linux Expo on November 22nd at the Los Angeles Convention Center in Los Angeles, California. The exhibitors include Real Networks, Novell, and Pogo Linux. Some of the speakers include Seth Nickell, Chris Dibona, Patrick Mochel and John Terpstra. Full and student tickets are still available for this event as well as free exhibition only passes using the FREE promotional code.

  13. Reinventing Slackware... by aphor · · Score: 1

    I've seen this all before... Oh yeah: that's what Slackware was about. You see, real hackers installed Linux the hard way, and SLACKERS used Slackware. You can slack off your installation... Red Hat was (as far as I can remember) based on Slackware, which left much to be desired back in the day.

    Now we come full circle. May I interest you in trying FreeBSD 4.x? Have I mentioned the PORTS tree?

    --
    --- Nothing clever here: move along now...