LFS 4.0 Released
Tekmage writes "For those of you who have never had the pleasure of rolling your own Linux install from scratch, take a moment to check out Version 4.0 of Linux From Scratch. Definitely for the techies amonst us, there is (IMHO) truly no better way out there to get down and dirty with the inner workings of our favorite OS." LFS organizes its documentation into "books"; 4.0's book is dated yesterday.
an orgasm when I got LFS installed! It is so cool it can not be described.
I've used LFS before to build my own personal distro, and it's a great resource. With basic knowledge of Linux and how to compile, LFS can allow you to make your very own distro.
I have been using lfs for about two years. I cannot imagine going back to a normal distribution. LFS gives you so much freedom with the way YOU want to setup your system. If you are looking for just something to do, or if you dislike all the available distributions, try out LFS and you wont be sorry.
Doing a full LFS install has been on my to-do list for quite some time now... perhaps I should try it someday soon. Until now, I have always been a faithful Slackare user, and I've done a bit of hacking in a few programs myself... as I see it, LFS is the perfect way to get the ultimate "feel" for Linux... I'm just not quite sure if I'm up to the task... building a simple Linux system I can handle, but building a full KDE-setup may be a bit too much for me right now...
PageTurner Reader: open-source e-reader for Android with cloudsync. http://pageturner-reader.org
Man they must have seen us coming (have they been /.'ed before?), that is a nice list of mirrors on the linked page... that is until the linked page gets killed ;)
Are you local? There's nothing for you here!
When will we be getting WFS?
Slashdotter are stupid and biased.
Why not just use Gentoo? You get all of the benefits of a fully customized and compiled distribution when you want it. Yet it's completely automated for when you don't want to be bothered with every little package that goes into a fully functional system.
I've been using the 4.0 release candidate for about 2 weeks now, and although it is AWSOME, it does have some problems with some packages, like GDB and Tripwire (neither will compile). I'm pretty sure the problems are related to GCC 3.2. Hopefully a patch for GCC will be released soon so as to compile these apps properly. Just a warning for those interested in LFS (its great otherwise).
what about those who use linux for their desktops at home? there are many of us like that and we use LFS because we want it the way we set it up, not how someone else sets it up.
I can't say it's for me, but hey, if it's your thing...
Gentoo is pretty much based on iso-linux from the linux from scratch project.
The benefits are great documentation from their website and the best package manager out today. It truly feels like an os you own and not by some corporation since you have to put the os together yourself. The forums are also great. If you want to get your hands dirty and have a huge community help you out through the process then look no further.
http://saveie6.com/
The gentoo config files are not all that bad - they bring order to the chaos that is a source based distribution. With LFS you either remember what you have installed (which may be easy since you tend not to install very much when you have to do it from scratch) or most likely keep track if it in a file (or on paper). Either way you need to know what you have installed so you have that info available to pass as configure options. With gentoo you keep track of that in one place. Then for every package that *can* use, for example, OpenLDAP it will automatically be configured to use it. It's so much easier than LFS - and yet I'm failing to see what you lose with Gentoo...
it would be nice if it came with cron. Don't get me wrong, I've used and love lfs, and yes I can get cron elsewhere, but as it is a rather basic thing to have, it would have been nice to see it finally be included in this wonderful distribution...
Its been a great way for me to learn the ins and outs of Linux. I still don't know everything but I'm much more comfortable setting everything up. And the #LFS channel on irc.linuxfromscratch.org is very helpful.
As an aside, try using Slackware 8.1 for your base distro. Its got a pretty small footprint but it still has everything you need.
Vote for global prefs bug
I don't get you. LFS is a great way for people to get a grasp of what gnu/linux is/contains. If they have the time or not is up to them, but this definately is news for nerds. I'd say that lfs has great eductational value. but that's me.
c0w goes moo.
I'm sure people are going to reply saying that LFS is a niche product and not news that many people care about.
Well, though most of you are probably exposed to Linux through the desktop, Linux is winning it's in-roads in the industry through embedded systems and handheld devices (not desktop). Functional LFS installs can be as little as 5 megs or so and completely customized. Perfect to compete with several-thousand-dollar offerings from MS, Palm, etc.
So if embedded systems are driving commercial linux support, in a way LFS and systems like it are more important in the short term than Mandrake and SuSE.
So why not write your local LFS contributer and say thanks?
Uninnovate - Only the finest in engineering.
LFS is a great way to learn Linux. It truly helped take me to the next level of my personal understanding of how things work.
However I would never recommend it for a production system. Even using it for a personal workstation takes loads of time to manage. One doesn't appreciate package management until they have installed a LFS system!!! Of course one could always use RPM/APT/DEB after doing a LFS installation...
My, and the majority of the world's favorite OS, is Windows.
"Linux install" and "pleasure" do not belong in the same sentence.
But if you need handholding, you really need it. On the other hand, if you're comfortable with using Linux, but want to know more about how it's put together, even Slackware is too high-level. LFS, on the other hand, is the ultimate Linux-learners tool, because it doesn't automate anything.
Windows is my favorite too, but I am unwilling to use XP because of their "anti-piracy" features. I guess Linux will be installed on my next computer.
Slashdotter are stupid and biased.
If you're like me you like to have everything compiled from scratch. Thats why I tried LFS some months ago, but found it at that the time it took to make a basic setup was awful long. Then I switched to gentoo but I disliked their portage system, but finally I setteled with FreeBSD. Compiling everything from scratch is as easy as: /usr/src
cvsup stable-supfile
cd
make world && make buildkernel KERNCONF=MYKERNEL && make installkernel KERNCONF=MYKERNEL
and ports+portupgrade is just great.
For some time I'm toying around with the idea of using LFS as the basis of a linux distribution.
Use LFS to create a linux demo/distribution, a bit like Beos R5. You boot the cd, try it out, and if you like it, have a program to copy the cd over to the hard disk and setup a bootloader.
And keep it small. BeOS managed to cram a lot of stuff into a 40mb iso image. Current mainstream distros are too fat, spreading all on at least 2 cds.
Well, gotta ditch the older version and check this new LFS book.
>It's so much easier than LFS - and yet I'm failing to see what you lose with Gentoo...
Simple: If you are looking for easy, do not do LFS.
If you are looking for a pre-made distro, do not do LFS.
(Note that I said "do LFS" instead of "use LFS" above. With LFS you build the system the way you
want it, THEN use it the way you want to)
Stick with Gentoo if you don't get it, or don't want it...
I could never get 3.3 to work. Does it still support Red Hat 6.2 as build system? (me was using RH6.2 to build LFS)
"With Microsoft, you get Windows. With Linux, you get the full house" - unknown
If you've never installed linux or want to reinstall, start fresh and run FreeBSD instead.
It's a great operating system and the leader in innovation and is the base for Mac OS X.
Want to play with multiple distros? but you don't want to trash your setup? wait until the next major kernel release, you will be able to play with this with out even rebooting! The new VM in the latest kernel is touted as being able to run multiple installations.
LINUX ROCKS!
(disclaimer, this is only an opinion, not actually based on first hand experience)
-- The morphemes of your disquisition are ascertainable, but they have eschewed an ambit of transpicuous exposition.
From: LFS Book 4.0 - Chapter 1.1, Section 2
Okay, so what do these people mean by "Linux From Scratch"? Installing another distro first to install "required tools" is in my view not installing from scratch. I was hoping to be able to install a very, VERY base HD based distro for my two antique 486s with just the standard stuff (GCC, shell, GNU utils and iptables) for use as a router/NAT gateway but that is quite far out of the question now. Huge disappointment from something with such a promissing name.
Hate me!
When installing LFS, one tends to notice just how much of a contribution has been made by the FSF, so I dont mind calling it GNU/Linux. When someone ask's why not just call it Linux, I can tell them about Free Software. Thats what the GNU is for to spread the word, its not about credit. More power to everyone who is part of it, which includes RMS, Linus and everyone else. Im just happy to have an alternative which is free.
bait
..but it has to be said. Because I'm tired of hearing it in reference to RedHat vs. other distros.
"Real men use Linux From Scratch!"
Take that, Debian and Slackware users! Hah! From Cowardly Anonymity, I stab at thee! With my sprained wrists, I spit at thee!
If you need a document describing how to boot strap linux on a clean system, perhaps you should go back to windows. =)
Once the Gentoo ISO burned to CD is on hand does the Gentoo install require much more downloading? I'd like to give it another try but I'm on 56k for a while. I did check out gentoo.com but I couldn't figure out how much things had changed since I last tried it quite a while ago.
I did the LFS about a year ago, just prior to installing Gentoo 1rc6. It was a great learning experience. I am probably comfortable using Gentoo now, because of it. With that said, once my machine was up and running, there was not much I could do with it! LFS does walk you through the compiles and installs of all essential components of a linux system. But, they give you exact, step by step instructions on how to do this. This helps you learn a lot about how the linux system is built, and works, but it still doesn't help you learn how to compile and/or install other programs that may need adjustments to makefiles or anything non-standard. (This is why I have since picked up a book on C ;))
This is what Gentoo accels at. Installing applications (from source) successfully. Previously using RedHat or Mandrake, I never got to the point where I had ALL the applications I wanted installed and working successfully. With gentoo, I have this, and I'm actually using my linux box; not just tinkering with it...
Your particular definition of scratch involves compiling the C source code.
:http://www.linux.org/dist/index.html
Some might say scratch could also be:
- Writing it in assembly
- Writing it in x86 machine language
- Flipping the bits on the hard drive
- Re-inventing the C source code
All of the methods require additional tools:
- A tool to take the Hard Disk and provide a file structure, write a boot sector and loader
- A tool with some commands to copy the compiler there
- A tool to take the C source code and generate the machine language binary code
You might find it similar to how mammals develop. As far as I know, most mammals require parents to feed, care, and raise their young. I can't think of any fertilized egg, fetus, or newborn that can survive without the parent to hand down their knowledge (I even heard that the reason we are able to live past 30 is to provide knowledge as grandparents or family/clan elders).
I have thought of one way to completely write the OS with only one machine. A long time ago, the old IBM PCs (and Apple computers) had a key sequence which would break into debug mode. After this mode starts, you would be able to type in the machine code to get a rudimentary system going. Another way would be to get an old ethernet card with a rom chip and burn a startup rom. Then you type in the boot loader.
For example: a bootable ``Hello World!'' program, consisting of just over 100 lines of assembler code.
While 100 lines of code is easy to hand type, imagine typing in the 10,000-100,000 characters for an extremely simple operating system. Then imagine hand typing in the machine code for a C compiler (yikes!), unless you want to hand type in the millions to 100's of millions of bytes of machine code to write a Linux system. There would be another way speed it up if you take apart a keyboard, wire it to a device capable of playing back keystrokes. I started to work on this but have postponed it until better times. I did start out by building Linux from Scratch and it took me 30-40 hours of very patient, slow progress. The complexity of even a minimal Linux is boggling when you jump in, compile, link, and see how much text scrolls by your screen when compiling it.
The advantage to Linux from Scratch is you have the greatest control over the OS. Without your direct control over every detail it won't run, as it depends on your Linux knowledge or following the tutorial to install.
Other links:
From-PowerUp-To-Bash-Prompt-HOWTO
How to Write an Operating System
If you want an extremely minimalist Linux distro, there's a list at
Select Category-minimalist, Platform-Intel compatible and click go.
Search for gateway on the page.
I've tried the following ones because they have the basic OS requirements for a user, they load from a floppy, and move resources to RAM:
Alphalinux
muLinux
I wrote this babble:
That mangled sentence makes no sense at all, and the emphasized part was supposed to read "that different distros exist for a reason". My apologies, it seems I chopped that sentence apart.
Six sick
I'm surprised that nobody mentionned nALFS :
..
:
For me, LFS hand building processus is tedious. What mainly interesting for me in LFS is the minimal linux system you've got AFTER installing and rebooting. Compiling by hand, while effectively technically interesting, turn soon to boring for me, so i did my last LFS ( 3.3 ) installation using nALFS, and i'll never change even for a free (THWACK)
nALFS used with installwatch gave me what i finished to consider my best distro
Honest, i since installed an MDK and the last stable debian, and found me rebooting more than often on the LFS partition. Thing are so simple here. There's one editor, one window manager, the library there is there because I wanted it to be there : a question of taste, i like this.
nALFS
http://linuxfromscratch.org/~neven/nALFS/
For installwatch, i remember to have read an 'hint' somewhere on LFS site, or may be IN the doc packege, dont remember
Bullshit, I use Gentoo on a 56k ISA hardware modem.
Worked fine.
My home box, a 600Mhz AMD Duron, was bought two years ago, and I spent some days installing LFS on it. It's still the system I use now. A lot of software was added over time.
It works fine. However, now, after two years, package management is getting a bit aggravating. I find I have to upgrade libraries and stuff before I can install some new things, and there's no good way to uninstall the old ones. So you just make install the new one over it and hope it's all ok. I suppose I could look at the logs of make install to see what went where, and delete it by hand, but many of those logs are gone and it's too much work.
And recently I wanted to install something that triggered a bug in my trusty old gcc 2.95.2 (an actual software caused sig 11). So I installed gcc 3.2, the latest. And yes, many things have trouble, probably because their C++ isn't entirely up to the standard, but it's still irritating. Also some .configure scripts seems to get confused when the gcc version is 3.2. Keeping both around is doable, but not as smooth as I'd want it.
This system is fun, and everything is *exactly* like I want it, but I'll go to some "real" distro on my next computer.
I believe posters are recognized by their sig. So I made one.
One point that installing LFS drives home: GNU/Linux is a totally fair name. If I recall correctly, of the LFS version I installed, 45 of 61 packages came from ftp.gnu.org, and some others were also part of the project. Calling my system a GNU system is actually more accurate than calling it Linux. But I'll reserve that name for systems running Hurd.
I believe posters are recognized by their sig. So I made one.
LFS is brilliant, yeh, so it make take a good couple hours and maybe even give you some hassles, tho I had none, but at the end of the day it is all worth it. My LFS systems have all given me less hassles then any distro I've run, granted they take a tad longer to setup. For those of you that dont feel like enduring the proccess there is also a distro called LRs-Linux, which has a few setup options, including a LFS setup. You can find that here. There's also the automated LFS project which has a similiar affect, tho that requires an already setup installation like LFS, have a look here.
Simple, use Gentoo to build LFS :)
There are other ones out there too. Linux is not everything, although this site seems to think like that.
Linux is a great kernel with a bad GUI. X really, really sucks. Its as responsive as a drunk driver on a freeway.
Its a graphical subsystem.. if you dont like the GUI of the distro you somehow managed to install then change it..
Thats the beauty of X.. ( well one of them anyway )
---- Booth was a patriot ----
I learn't an awful lot doing this, but still have far more to learn yet. That's why I've begun trawling through Beyond LFS. The LFS documentation is very good. If you want to know more about a particular package read the INSTALL and README files after unpacking the file under /usr/src.
I haven't seen Gentoo so I cannot compare, but I can say I'm very chuffed to boot up my very own linux distro and to spend time building upon the LFS foundation (and all the time my understanding of linux grows too!).
Thanks to the LFS team for their efforts and respect to you all.................
...then, goddammit, I guess we better switch!
I've heard a lot of insane reasons for switching OS's, but I think that one wins.
-Looking for a job as a materials chemist or multivariat
I'm sure this exists, but if not, couldn't someone make a bootable CD with the compiler and whatever else you need, so you can boot straight from there and never use another bastard distro?
-Looking for a job as a materials chemist or multivariat
It wasn't intended for long term use but a file server on the our LAN that is an LFS based system now has:
...
$ uptime
6:37am up 479 days, 21:26
It is nearly out of drive space so it will be taken off-line in the near future for hardware upgrade.
I think, therefore, ken_i_m
Chief Gadgeteer
Elegant Innovations
I tried Gentoo around 6 months back, went back to LFS.
The package management system for Gentoo is great if you look at it unidirectionally i.e. install (and upgrade). But the uninstall is a major pain! Given you OpenLDAP example, say I installed OpenLDAP since it was needed by GomeMeeting. Later say I compile Courier and GNUPg that link against OpenLDAP. Now if I have uninstall GnomeMeeting and OpenLDAP, Courier and GNUPg will have problems. The installer won't warn me about it.
The right time to try LFS is when you feel you've learned everything you're likely to learn from playing with SuSE. Or maybe when you just have an overwealming LFS itch you need to scratch. Or maybe there's just not anything on TV.
But what if there's something in LFS I need to know and don't? Well, the LFS text is pretty good at specifying what you need to know. So if you get stuck, just go back to playing with SuSE until you feel ready for another pass. But you're probably smarter about that kind of basic stuff than you think.
AFAIK, the problem you suggest has been corrected in later versions of emerge. Unless you remove a package forcefully you will be warned about the dependancy issues.
It's just an unpopular opinion.
I've tried Gentoo too. I think the portage system per se is pretty good, and I like their XML based documentation. However, the software in portage is not up to the quality standards of Debian, for example. I emerged X11, and after waiting for several hours I was rewarded with non-functioning X server software a missing external symbol). This is not a problem with portage per se, but the contents of portage. Yes, I do have the source, but I don't have the time to figure this one out when I can simply download a Debian iso and know that everything will work.
Of course one glitch like this doesn't put me down on gentoo. I think it has a place, but I can't see using gentoo on anything but my personal experimental machine. First it takes to long to install major systems by emerging them. Secondly, it's too bleeding edge and therefore (in my opinion) too squirrely for use on machines I have to provide support with.
Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
In my opinion the useful knowledge is knowing how the various software on your system interact with eachother. Just an example that comes to mind:
/usr/share/man/man1/ls.1 | gtbl | \
Not everybody figures out that the groff and man packages are closely tied in to eachother. Often people think that 'man' is a program by itself that shows you manual pages. Little is known about programs like gtbl and nroff who do the formatting, then feeding it to a pager like 'less' or 'more'. All man basically does is invoking the right programs with the right parameters (note: this depends on your man package version and vendor of course).
It boils down to something like:
cat
nroff -mandoc | less -is
People who don't just install LFS but actually take the time to learn what they are installing by reading the docs that come with packages, example files and what not would learn this.
Some people may not find the above tidbit useful. I myself do find it useful. It gives me a clearer understanding how a man page is displayed and how big a part "groff" plays in all this (and that I need groff installed to be able to display man pages in a convenient matter, so keeping groff around would be a good idea).