Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
12-10-2001, 03:05 PM
|
#1
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Rep:
|
Linux from scratch
Has anyone tried that Linux from scratch and if so, how did you get on with it?
www.linuxfromscratch.org
L8rs
RecoilUK
|
|
|
12-10-2001, 05:24 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
about to start one here in the next month or so basically base mine off of slackware if i can.. but there are others, I know Cragstar has his i read in one of his posts.. and a few others..
|
|
|
12-10-2001, 11:39 PM
|
#3
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
I'm starting one also this week and also using Slack as my base. You'll first need to go to the LFS site and make sure you d/l all of the required programs and then start printing out the destructions and doing what it says. finegan is doing one and has already compiled everything (he's using Slack also). He may have some more info. And as said above Cragstar has a working LFS. Perhaps an LFS forum. Hmmmm...?
|
|
|
12-11-2001, 09:00 AM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
I'm going to do one when I get my new hard drives later this month, version 3.1 of LFS has just been released, make sure you get the latest.
|
|
|
12-11-2001, 03:58 PM
|
#5
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
Quote:
Originally posted by Aussie
I'm going to do one when I get my new hard drives later this month, version 3.1 of LFS has just been released, make sure you get the latest.
|
Yer kidding, oh man, I hope there isn't too big of a change! LOL
At least i've only gotten as far as making my directory structure. Thanks for the note Aussie!
|
|
|
12-12-2001, 11:48 AM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Weird...
I finished LFS from the CVS tree two days ago. I had about a day long fight with the init scripts, but other than that it was rather simple. I also had a big issue with the .75Gb recomendation. I gave the partition a gig and constantly had to move post-compiled source back and forth from the mounted lfs partition to the mother hen machine's partition. Give yourself 2-3 Gb and you'll have plenty of crawl space.
For instance, the next to last thing you compile before you chroot into the lfs mount is gcc. The source and the post-compiled binaries are 350+megs. Next there's glibc, source and post-compiled libraries 500+ megs. If you have the kernel source on the machine at the same time... that's it, three things, 1Gb+.
Oh, and other things compile really easily after LFS works. The first daemon I threw on last night, ssh, after adding zlib and ssl, worked staright off... well... after adding /usr/local/sbin(and bin) to root's path.
Oh... with 15 processes running and the fact I went for a rather slim kernel... the machine this is on, a P1 200Mhz, 64Meg RAM is acting faster than my roomate's K7 Athlon box. I hope I can keep it this quick all the way through installing X.
Oh, and this is the last oh... when you're done, name it. Not the machine, because that should already have a name, but your flavor of LFS. Wait until after you've dropped a lot of stuff on it and it has a personality. Here's mine:
Plebian v.1A6*
The version number is the code I punch into the world's nastiest coffee machine at work every morning I come in feeling like dreck because I was up playing with this crap until 4am.
Alright... I need to work today, or something; and for a play by play, Taz and I have been chattering about this like a pair of soccer moms for the past few days here .
Cheers,
Finegan
|
|
|
12-12-2001, 02:42 PM
|
#7
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
Soccer moms hehe..I like that! =) Last night I officially started compiling my LFS. I decided to update my source to LFS 3.1 and get everything I was missing, which wasn't too bad. I will say right now, if I have to type ./configure --prefix=/LFS/usr --disable-nls && one more time, i'm gonna puke. Oops, there went the cookies! LOL The 1G t-bird performed quite well so far with the compiles and like you suggested, have a good 3.5Gigs to work with. I was a bit tired by 1am so today I should get quite a bit done. Sounds like the LFS system is pretty lean and fast from your post, i'm looking forward to that. I already have a good set of names to choose from when I name mine, so we'll see what comes of that. Thanks for the tips and being a guinea pig of sorts and posting the whatnots. I'll keep up the posting as a good soccer mom would, gossiping about thier child's super-soccer abilities while the rest of the moms watch and gossip about how my child actually sucks! LOL
|
|
|
12-13-2001, 05:16 PM
|
#8
|
Member
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555
Rep:
|
this LFS thing seems to be like a jewel to a magpie... ooh that's nice.. want it.... I guess i'll do one in a few months.
But people have mentioned basing their distro off of slackware or such like, and i'm kinda curious as to what that's really meant to mean. is it a case of just installignn the same packages? Surely there's no need to base it off of anything...?
And when is there going to be an RPM based LFS?
|
|
|
12-13-2001, 05:51 PM
|
#9
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
Quote:
Originally posted by bluecadet
this LFS thing seems to be like a jewel to a magpie... ooh that's nice.. want it.... I guess i'll do one in a few months.
But people have mentioned basing their distro off of slackware or such like, and i'm kinda curious as to what that's really meant to mean. is it a case of just installignn the same packages? Surely there's no need to base it off of anything...?
And when is there going to be an RPM based LFS?
|
You need a distro base to create an LFS because if you didn't there'd be no way to install anything. Another way to call it is the host system, which hosts the mounted LFS partition to work from until you are done and ready to boot it proper. I used Slack because that's the distro I use. Others I dunno, gotta ask 'em. It has nothing to do with software so much since if you want an LFS system, you'll need the software packages IT requires. You're distro may already have some. But that's not the point of a base system. And if you want an RPM based LFS, i'm sure someone must have made one by now, or if not, you could.
|
|
|
12-13-2001, 06:12 PM
|
#10
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Quote:
But people have mentioned basing their distro off of slackware or such like, and i'm kinda curious as to what that's really meant
|
I might have used "basing" in the wrong context. You need a compiler and a library in order to compile a shell, sed, mawk, perl, heck another compiler! None of LFS is actually based on whatever machine, for lack of a better term, gives birth to it. Then, after you've gotten your own library and gcc, you cut the chord, chroot into the LFS partition, and rebuild the damn thing all over again so its not based on anything... other than LFS. The whole point to an LFS is that everything was compiled for and by that machine, so having an RPM based LFS is ridiculous... that's just a regular distrobution without some cute installer to unpackage it all for you.
When LFS is done, it isn't really based on anything. It is a base. Heck, there's no telnet, no easy script to add users, no ssh, no apache, no X-windows, no PAN, nada, nothing, zip, bleach. Its one of the ultimate learning tools for linux. Two days ago I knew I had to compile ssl to compile ssh, but I didn't know I needed something called zlib. Go figure.
Alright, I gotta get back to slacking off at work.
Word,
Finegan
|
|
|
12-13-2001, 07:10 PM
|
#11
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Original Poster
Rep:
|
Hi guys
OK, I think i,m going to give this LFS a shot since its the ultimate way to learn Linux, and i,m also gonna ask if we can have a dedicated forum for it to. But being totally ignorant when it comes to Linux I have a question, when you have completed the install, how can u get rid off your base system for more disk space without destroying your newly installed LFS system?
And also can you guys give me some pointers in the directory structure for the LFS system, space inst a problem as my HD is 10.1gb but I also have to install my base system to dont forget.
Thx guys
Good luck
RecoilUK
|
|
|
12-13-2001, 11:01 PM
|
#12
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
The LFS book will take you through all of that. From creating the directory structure to rebooting for the first time. Yes, you can get rid of the base once you have LFS running well enough or however you like it. I just got mine done and it only takes the better part of two maybe three days depending on how fast you type and coffee abundance! When you are done with LFS, it will have you installing LILO from there instead of the base (your choice there). So you can boot into LFS or what you name it and just delete the base. Just make sure you give LFS at least 3-4Gigs of space to work with, without having space problems, give it more if you plan on installing the X-window system, etc...First get the book for www.linuxfromscratch.org and print it out or read it online or download it. You'll see it's not as daunting as you may think. And DEFINATELY download the lfs-bootscripts, that'll save you 5 straight days of scripting. The book is written well so give 'er a try.
|
|
|
12-13-2001, 11:20 PM
|
#13
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Quote:
depending on how fast you type and coffee abundance!
|
Hallelujah, sing it brother.
That's really all I had to say, although what I found helpful on day 3 (yeah, same amount of time here), was having another machine next to the LFS box to check out the site from. It made things dink easy.
Cheers,
Finegan
|
|
|
12-14-2001, 12:21 AM
|
#14
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Original Poster
Rep:
|
Hi
Thx for the reply
One more question?
So I can delete the base system safely enough, but what about maximising my new $LFS partition to use up all the disk space, is this also possible with a program like cfdisk without losing any data?
Thx again
RecoilUK
|
|
|
12-14-2001, 01:56 AM
|
#15
|
LQ Newbie
Registered: Dec 2001
Location: Oslo, Norway
Distribution: Slackware
Posts: 2
Rep:
|
Use GNU Parted
If you want to use up the rest of your harddisk space, use a little and stable program called parted.
search alltehweb.com - you'll seee it in the first 5 hits.
|
|
|
All times are GMT -5. The time now is 11:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|