LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-17-2013, 11:32 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Lightbulb Curious question for LFS users.


Not to start a war here or discourage anyone but...

Have any of you at any time, in your own opinion found the LFS Book has better or clearer documentation than the Gentoo Handbook?

I can actually say...

Yes... to this question.

After attempting to read the Gentoo Handbook today I found that there are many things overlooked and under-documented by the handbook. By comparison to the attention to detail, I actually can say LFS seems so much easier to understand and seems more thorough.

It actually makes me appreciate LFS's book a lot due to it's superior level of documentation, even if it takes longer to build. It's like I know exactly what I'm doing without confusion.
 
Old 12-17-2013, 11:52 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
I second that, Gentoo's documentation is always mostly out of date and when it is up to date it feels like the always seem to skimp on the details of why things need to happen this way or that way.
 
Old 12-18-2013, 04:05 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It's strange, but every time I've attempted to install Gentoo, each and every time, the install has always failed at some point. Either the kernel build errors, the kernel panics on load, or something was always missing to where nothing worked at all, or I got lost in the setup stages and said "screw it".

To me honestly, I actually wonder how anyone has really got Gentoo to work at all outside of using a Live Disk to install it.

LFS is supposed to be a more advanced distribution than Gentoo also, but it feels the exact opposite.

Last edited by ReaperX7; 12-18-2013 at 04:08 PM.
 
Old 12-19-2013, 02:20 AM   #4
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
I gave up on Gentoo when I couldn't get - I think it was udev support in Thunar, or maybe it was something with udisks, I wanted to mount partitions in Thunar - without pulling in gnome-keyring. (I hate that stupid keyring, that eats all my passwords and leave everything unprotected...) I even tried to change the ebuilds, but couldn't find all places that was pulling it in.

Then I found out LFS was actually easier to install and get how I want it. I also think it was difficult to understand the instructions about Gentoo.
 
Old 12-20-2013, 10:40 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I've not used gentoo but have used loads of other distros over the years, debian,ubuntu,mint,sabayon,slackware,yellowdog,opensolaris and probably a few I've forgotten, but I have found the LFS book and associated documentation to be the best of the bunch and will probably never switch to another distro now.
 
Old 01-05-2014, 07:54 PM   #6
liquidkaleidoscopes
LQ Newbie
 
Registered: Aug 2011
Posts: 27

Rep: Reputation: Disabled
I've installed Gentoo about 10 times on computers ranging from a PIII with 128MB of R.A.M. to a laptop with a 4th-generation Intel Core processor, and don't see much wrong with the main handbook. Some of the wiki pages are out-of-date to varying degrees, but I haven't found anything essential to be missing. But then, maybe I know most of what needs to be done already, so maybe I know how to fill in the gaps?

I've installed Linux from Scratch twice, and I can't fault the documentation, apart from the fact that it's tedious, which is more a reflection of the nature of the project itself. Then again, after you've installed L.F.S., you still can't do much with it. From there, you need to move into B.L.F.S., which for me was hours upon hours of tracking dependencies manually. If I want X, I need a, b, c, and d, and for optional feature e, I need 1, 2, and 3. Then for b, I need subdependencies 1b, 2b, and 3b... and so on and so on. Thank goodness I use Openbox, because I would never want to install something like Gnome in Linux from Scratch.

Gentoo has many possibilities. You can use GRUB or LILO. You can use OpenRC or Systemd. You can install Gnome 3 or no desktop environment at all. L.F.S. is like this, as well, but Portage automates dependency resolution, downloading, configuring, compiling, and installing the packages, and so on.

L.F.S. walks you through by the hand with every single command that you need to run to get a specific minimal installation. Then B.L.F.S. might or might not have specific instructions for what you might want to do next. Gentoo teaches you how to make the minimal installation, and gives you guidelines on what to do from there, along with specific instructions for various extras.
 
Old 01-05-2014, 08:12 PM   #7
nd7rmn8
Member
 
Registered: Jan 2013
Distribution: Arch
Posts: 50

Rep: Reputation: 13
Quote:
Originally Posted by ReaperX7 View Post
It's strange, but every time I've attempted to install Gentoo, each and every time, the install has always failed at some point. Either the kernel build errors, the kernel panics on load, or something was always missing to where nothing worked at all, or I got lost in the setup stages and said "screw it".

To me honestly, I actually wonder how anyone has really got Gentoo to work at all outside of using a Live Disk to install it.
I believe gentoo chooses who it will work for, and I am not among the chosen. Over the years I've installed most advanced distro's, arch, lfs, slackware, freebsd, openbsd, but I have never gotten gentoo to work outside of a livecd, or the xbox. I eventually got it to install once, except for sound and network, and after some time, in fustration "rm -rf" the whole thing.

LFS was fun, but I soon realized that I needed to have a second computer or dual-boot another distro in order to do my homework. I still remember the feeling of excitement when I realized that I had built my very own linux system from scratch and the immediate dread when I realized I still had a long way to go to get firefox and open office installed before I failed out of college.

edit: yes, i found lfs easier to understand.

Last edited by nd7rmn8; 01-05-2014 at 08:13 PM.
 
Old 01-05-2014, 08:18 PM   #8
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Have any of you at any time, in your own opinion found the LFS Book has better or clearer documentation than the Gentoo Handbook?
The LFS and BLFS books are indeed excellent. For my purposes (and I don't necessarily recommend this for newcomers to the system), I actually benefit from occasionally consulting the archived books in the museum such as this earliest one from December 1999:

http://archive.linuxfromscratch.org/...OWTO-1.0-HTML/

Following the evolution from the old static build era to the sophisticated shared library model used nowadays without any leakage from the host gives me greater appreciation for the architectural elegance of LFS/BLFS and reveals just how consistently good the book has been over almost 15 years.

Last edited by re_nelson; 01-05-2014 at 08:19 PM.
 
Old 01-06-2014, 12:18 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The good thing I've noticed is you can take the LFS and BLFS books and apply them to just about any other Linux distribution to rebuild packages when documentation is scarce. Few if any other distributions can stake that claim that their methods can be universally transferred into another distribution.

The only other documentation I've found that's transferable as well is Slackware's Slackbuilds community project scripts which can be used with some editing or reference to install software into LFS/BLFS.
 
Old 01-06-2014, 09:44 AM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I think we are still talking apples an oranges. LFS is more of a teaching tool. One can't really afford the time needed to create and maintain a working lfs system in production. Gentoo could be used to create a working production system and maintain and update it.

I know your question is about documentation. Unfortunately I haven't read manuals with a child's eye in many years. I tend to make my own mistakes by jumping pages.
 
Old 01-06-2014, 01:36 PM   #11
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Quote:
Originally Posted by jefro
One can't really afford the time needed to create and maintain a working lfs system in production.
Why not? I have kept my 2 lfs-system updated for a year now, upgraded from LFS-7.2 to LFS-7.4. I build the updated packages at home and put them in my dropbox, and then I can just install them on my machine at work. And sometimes I have time to do the opposite, and build the packages at work and put them in my dropbox, so I have them when I come home. With scripting it's usually fast.
 
Old 01-06-2014, 03:27 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You don't even really need a package manager either, at least from my point-of-view. Usually anymore I have rebuilt packages without installing them after resolving all their sub-dependencies with make && make install && make clean very similar to how FreeBSD manages it's ports collection, so that if I need to remove a package all I need to run is make uninstall, and then do whatever else is needed.

As far as documentation goes, I've found the more detailed the documentation, the better the system is overall because if something screws up you don't get lost and have a broken system to deal with.

Teaching tool regarding LFS is a very reaching term. Slackware in my opinion is a better introductory and teaching GNU/Linux distribution. Yes, some stuff in the LFS books teach you, but often at times, even BLFS and LFS have their limits.

I've actually been debating whether or not to craft up a complete public script set for LFS and BLFS I'd like to dub as ELFS (Expanded Linux From Scratch) that goes into extras that can be used with either LFS or BLFS outright. I've just started but I'd like some help into the project if anyone is interested.

Last edited by ReaperX7; 01-06-2014 at 03:31 PM.
 
Old 01-06-2014, 08:20 PM   #13
liquidkaleidoscopes
LQ Newbie
 
Registered: Aug 2011
Posts: 27

Rep: Reputation: Disabled
It's great knowing how to manage dependencies and configure, compile, install, and configure post-installation various programs, but doing all these steps manually for each upgrade seems a bit tedious. If I had infinite time (say a TARDIS and infinite longevity), I wouldn't mind using Linux from Scratch and keeping it up-to-date. Since I don't, I use L.F.S. as a learning tool, and use Gentoo for its automation.

It seems to come down to this, basically:

1. Find what program I want to install for a certain function.
2. Recursively find all the dependencies that are required or satisfy extra options that I want to enable.
3. Download, extract, configure, and compile the source code, then install the packages in order.
4. Troubleshoot and fix any errors.
5. Set up the programs post-installation with any run-time options that I want.

Having learned to do all this, I don't lose much from automating steps two and three, and it saves a lot of time.
 
Old 01-06-2014, 08:40 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Usually resolving dependencies manually is relatively simple.

On non-BLFS/LFS packages often I'll look at Slackware's SlackBuild scripts and get a generalized idea for the configuration and building, then work on dependencies.

I often use the readout from ./configure to see if any dependencies are missing at that time, and then go hunt them down and see if they exist on SlackBuilds.org and follow their list, or utilize the readouts from ./configure to see what else is supported.

The thing with Linux is resolving dependencies is one of the core aspects anyone using Linux should learn. Often at time, all you'll have is a configure script and a makefile and nothing else along with some piss-poor documentation that says nothing about the dependencies. Know how to resolve them is one thing that is a much have in a skill set.

Last edited by ReaperX7; 01-06-2014 at 08:47 PM.
 
Old 01-06-2014, 09:15 PM   #15
liquidkaleidoscopes
LQ Newbie
 
Registered: Aug 2011
Posts: 27

Rep: Reputation: Disabled
My point wasn't that resolving dependencies isn't simple, but that it's time-consuming. Sure, I know how to (a) read the L.F.S./B.L.F.S. documentation to see what dependencies I need, (b) read the website for the program to see what its maintainer says it needs, (c) run ./configure and, based on an error message, figure out what dependency I am missing, or (d) check in Gentoo to see what it needs.

My point was that doing all this is unnecessarily time-consuming after I already learned how to do it the first time. For me, there is no point in going back and doing it all again, because I probably won't learn much new this time, since I've done it at least twice already.
 
  


Reply



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
curious question about KDE wslyhbb Linux - Software 3 07-30-2006 03:14 PM
curious about switching to LFS jon23d Linux From Scratch 5 07-27-2006 05:36 AM
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
Memory Question - Curious?? Mistro116@yahoo.com Programming 3 12-14-2005 04:07 PM
Curious question about Fedora mhelliwell Fedora 2 02-20-2005 03:30 AM

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

All times are GMT -5. The time now is 07:21 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