LFS and CLFS

Chat about Linux in general

LFS and CLFS

Postby nolag on Wed Nov 03, 2010 1:48 pm

Has anyone tried either? I am thinking of doing LFS or CLFS, I am assuming that LFS is easier. I want to know if I was to make a LFS and I wanted to then make CLFS (so I can have 64-bit with multi-lib) can I reuse most of it or would I need to start again? I would idealy like to have both a 32 bit and 64 bit (multi-lib not pure) version, but do as little work as possible to make changes to both (ie I don't want to redo everything I want it to share as much of the code as possible). I am also wondering if I chose to use CLFS could it porduce the 32-bit and the multi-lib 64 bit?

Thanks for any help and advice! I want to learn a lot of linux stuff and I think this is a good way to do so :D.
I am posting to get a free site at a new forum, try it what do you have to loose?http://howtocompute.com/member.php?action=register&uid=2
nolag
Level 1
Level 1
 
Posts: 41
Joined: Mon Jul 19, 2010 9:18 pm

Linux Mint is funded by ads and donations.
 

Re: LFS and CLFS

Postby piratesmack on Thu Nov 04, 2010 7:38 am

I'd recommend LFS first (Either 32-Bit or pure 64-Bit).

You'll have to start over when doing CLFS, but it's good to go through the process a few times.
You might not quite get everything the first time (I know I didn't).

It should be possible to use a 64-Bit kernel with a 32-Bit LFS build.
That way you can use 4+ gigs of RAM efficiently and still run 32-Bit software.

To do this, you'll need to rebuild gcc with support for creating 64-Bit executables, then use that cross-compiler to build a 64-Bit kernel. (I don't know exactly how to do this, but I'm sure CLFS has information)
piratesmack
Level 5
Level 5
 
Posts: 710
Joined: Mon May 26, 2008 3:08 pm

Re: LFS and CLFS

Postby nolag on Thu Nov 04, 2010 9:17 am

Thanks for the quick reply! What types of things did you end up learning from LFS? I am reading many mixed reviews, some people say you just end up following instructions and mostly compile, while learining very little, some say you learn a lot (but don't say what). I think I would go with CLFS becasue I want to learn about the cross compliers anyways (and it seems like that is the bulk of what it adds).
I am posting to get a free site at a new forum, try it what do you have to loose?http://howtocompute.com/member.php?action=register&uid=2
nolag
Level 1
Level 1
 
Posts: 41
Joined: Mon Jul 19, 2010 9:18 pm

Re: LFS and CLFS

Postby waldo on Thu Nov 04, 2010 12:18 pm

In a forum like this that is frequented by new Linux users, it is really helpful to define "insider" jargon in your posts. Posting cryptic topics will scare some new users away.

LFS is Linux From Scratch, and CLFS is Cross Linux From Scratch. Here are a couple of sites, if you're curious:

http://www.linuxfromscratch.org/faq/
http://trac.cross-lfs.org/

Perhaps this forum needs to add a "For Experts Only" section. No regular Linux user needs to be concerned with this subject.
waldo
Level 4
Level 4
 
Posts: 360
Joined: Mon Oct 15, 2007 3:55 pm

Re: LFS and CLFS

Postby nolag on Thu Nov 04, 2010 12:36 pm

waldo wrote:In a forum like this that is frequented by new Linux users, it is really helpful to define "insider" jargon in your posts. Posting cryptic topics will scare some new users away.

LFS is Linux From Scratch, and CLFS is Cross Linux From Scratch. Here are a couple of sites, if you're curious:

http://www.linuxfromscratch.org/faq/
http://trac.cross-lfs.org/

Perhaps this forum needs to add a "For Experts Only" section. No regular Linux user needs to be concerned with this subject.



You are right, I should have used the full name. I guess I figured that if someone had feedback to give they would know what LFS and CLFS stands for.

I don't know if its experts, I don't consider myself one, just someone who wants to learn as much as he can!
I am posting to get a free site at a new forum, try it what do you have to loose?http://howtocompute.com/member.php?action=register&uid=2
nolag
Level 1
Level 1
 
Posts: 41
Joined: Mon Jul 19, 2010 9:18 pm

Re: LFS and CLFS

Postby piratesmack on Fri Nov 05, 2010 5:51 am

What did I learn from Linux from Scratch?

Things like:
Which basic programs make up a GNU/Linux system
Where each basic program comes from
Each program's basic function
How it's built
How to configure it
How the programs depend on one another

I also learned that it is a lot of work to build a Linux distro from scratch, even the very minimal LFS system.

Note: You'll also have to read BLFS (Beyond Linux from Scratch) if you want a system that is actually useful as a desktop, server, or whatever. Luckily, BLFS continues where LFS left off, so you won't have to start over.

But the LFS book does assume a certain level of existing Linux knowledge. It says at minimum, "you should already have the ability to use the command line (shell) to copy or move files and directories, list directory and file contents, and change the current directory. It is also expected that you have a reasonable knowledge of using and installing Linux software."
http://www.linuxfromscratch.org/lfs/vie ... sites.html

If you don't meet these requirements, you might want to use Linux a little longer before trying LFS.
Maybe give a distro like Slackware or Arch Linux a try; you can learn a lot from them, too.

Slackware and Arch aren't usually considered 'beginner-friendly" distros, but a beginner can use them as long as they're willing to learn and read the documentation.
piratesmack
Level 5
Level 5
 
Posts: 710
Joined: Mon May 26, 2008 3:08 pm


Return to Chat about Linux

Who is online

Users browsing this forum: No registered users and 8 guests