LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 10-15-2007, 05:02 AM   #1
mert
LQ Newbie
 
Registered: Jan 2004
Location: Texas, USA
Posts: 8

Rep: Reputation: 0
who has a working LFS system?


...of course "working" is a matter of interpretation. I've been away from linux for a while but now I'm planning on building a linux pvr and I'm trying to decide on a distro. Building my own linux from scratch seems like it might be a fun (!?) way to go. I started this thread to see what other people's experiences have been following the LFS books. What are you using the system for? How long did it take to get your system set up? What kind of hardware are you using?
cheers
 
Old 10-15-2007, 07:11 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I use a Cross LFS multilib system for my everyday machine. I use it to do things like read e-mail, answer posts at LQ, or play Mahjong, develop, etc. Everything you might use an Ubuntu or Slackware or Fedora or Gentoo machine for.

I have a Gigabyte GA-M51-S3G motherboard. Sound, ethernet, and video built in. There's a review at the HCL with the specs. I use an AMD64 X2 5600+ processor. Seagate ST3120814A HDD (120GB) and WD WDC WD400BB-53AUA1 HDD (40GB). LITE-ON DVDRW LH-20A1H DVD/CD R/W and LITE-ON LTR-52327S CD R/W. I also have a second LiteOn NIC (Tulip clone).

It took 7-8 hours IIRC to build the base system. After that it's never really done. It has all kinds of stuff you might want. X Windows, GNOME and XFCE, Dia, Inkscape, Picasa, The GIMP, Firefox, X-Chat, BOINC, Open Office, Geany, DevHelp, Glade, MySQL, MPlayer, Nero, etc. I use my own "package manager"; doesn't resolve dependencies, but it keeps track of what gets installed for easy removal. I edit the CBLFS Wiki so I install a lot of stuff that I never really use.

The second NIC is used to connect this machine with three others in a cluster. The other three machines are a mish-mash of older 32-bit machines. All three of them have CLFS too. They're slower, so they took longer to build the base system. However, they don't have as much software installed on them as the master node.

Last edited by weibullguy; 10-15-2007 at 08:38 AM.
 
Old 10-15-2007, 08:29 AM   #3
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

My server (self build, based on an 'old' Tyan Tiger i7505 mobo), desktop ([quad core] MacPro) and (old) Asus laptop (quad boot with slackware, debian and fedora) run LFS.

The desktop was a challenge, but I'm running (B)LFS (+extra's) for a while now and I don't have any complains. On the contrary!

What do I run besides the usual stuff (e-mail, browsing, newsgroups/p2p/torrents)? I like to do multimedia related things and use (among others): cinelerra, mplayer/mencoder, kino, and gimp. I also have openLdap, SUN's Directory Server, LAMP, proFTPD and vsftpd running. Some of them run multiple instances (mostly work related) and some run both on my server and desktop.

It takes me about 6-8 hours to build LFS another 6-8 hours to build the none-X related BLFS packages. X and related can take a lot of time depending on what you want/need (example: building KDE takes a long!!! time). And, as weibullguy already stated, the work is never done (also true for all other distro's).

Hope this helps.
 
Old 10-15-2007, 11:22 AM   #4
mert
LQ Newbie
 
Registered: Jan 2004
Location: Texas, USA
Posts: 8

Original Poster
Rep: Reputation: 0
thanks for your replies. I'm not too concerned about the compile time but more about the time it takes to maintain a LFS system. Without a package manager, updating something like binutils or glibc could be a lot of work, if you have to manually recompile a bunch of dependencies. Just keeping track of the dependencies could be a nightmare. You could use a package manager that handles dependencies but then you'd have to write a bunch of .spec files (or whatever) and that could be even more work than installing the system in the first place. Of course you probably don't need to update those core packages too often. When I look at a source based distro (Gentoo) I see that they have done a lot of work to integrate CFLAGS and USE flags to make things easier on the end user and it seems like in a LFS system you'd have to track all that yourself somehow. Am I making it more complicated than it is?

Still, it sounds kinda cool to build you own operating system the way you might build your own computer.
 
Old 10-15-2007, 01:57 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
When you start talking about rebuilding tool chain packages like glibc or binutils, most (C)LFS users are just going to rebuild the system. In the long run it'll be quicker and your life will be simpler if you do.

You can install a package manager if you want, but what's the point? I installed Gentoo's portage on a CLFS partition once, but it's not really worth the effort IMHO. After you get a functioning environment, you'd be surprised how rarely a build will fail because of a missing dependency.

If you look in the LFS hints you will find several that are about package management. There is also the one that I linked to in my original post. The BLFS book and the CBLFS Wiki list dependency requirements because someone else has already figured that out.

CFLAGS can be set in your shell configuration files (e.g., ~/.bash_profile) or temporarily when you build a package. Other environment variables can be similarly set. The (C)LFS instructions will ensure that the environment variables that need to be set are properly set. There really aren't that many that you'd need to muck around with.

The USE variable is used by portage to, basically, determine which flags to pass to a package's configure script. You pass those options manually when you execute the configure script. There is no need for a USE type variable on a (C)LFS system. It's really used by the package manager, not the system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cloning (somewhat) my lfs system DropSig Linux From Scratch 2 02-11-2006 10:23 PM
Building an LFS system from another system z3r0star21 Linux From Scratch 6 11-08-2005 03:13 AM
Can I dd a LFS system onto a CF card? hussar Linux From Scratch 11 02-13-2005 08:52 PM
First LFS system Tez218 Linux From Scratch 1 10-25-2003 12:07 AM
Your LFS system mediab0x Linux From Scratch 3 07-14-2003 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration