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 03-17-2009, 08:14 AM   #1
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Rep: Reputation: 2
LFS install using DSL or Gentoo


hi all!

i'm about to install LFS an was thinking about using Damn Small Linux or the Gentoo Linux live (minimal install) CD as the host system for installation. anyone did this before? i know of people using Knoppix, is it ok with DSL or Gentoo too? i ask this 'cause of the time needed to get LFS running.. i'd like to take advance of other's experiences, if someone tells me it doesn't work with this way.. thanks in advance!
 
Old 03-17-2009, 01:13 PM   #2
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
LFS... In my opinion at first was a blast. In fact its the reason I prefer Gentoo as a main OS. In my opinion I'd go with the SystemRescueCD. It provides the basic necessities to build, and has Minefield installed to reference the web for needed help, or to post questions about compilation errors. Bootstrapping initially for me at first was the most difficult. Always getting compilation errors. So after my second attempt I decided I needed a good live disk with a browser.

Since then I have another computer with a kvm. I guess its really about personal preference. Though you'll notice, that alot of long time Gentoo users usually suggest SystemRescuecd (it has support for 64bit & 32bit kernels) for Gentoo builds. And I think that would also be true with an LFS build.

Again it really comes down to preferences. At first I tried the Gentoo Live cd and just couldnt get it to work with my comp. Haven't tried Knoppix, but it seems like a decent choice. Maybe even Sabayon lite LiveDVD. That is now my preference for a lvie disk. It has everything I need & it has a persistence mode. So I can save settings when I reboot.
 
Old 03-17-2009, 04:43 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
I have used a Gentoo live cd to do an LFS build before. Works pretty well. I believe I used the 2008.0 cd, and it was on LFS 6.3 (I think). If you use the nice little script at the beginning of LFS, it should tell you if you have all the necessary tools.
 
Old 03-18-2009, 07:48 AM   #4
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Original Poster
Rep: Reputation: 2
thanks for the hints.. i'm gonna burn a SystemRescuecd anyway i think, i gave a look at it and seems pretty interesting. Yes true, i forgot the script. well, you'll probably know what i've done at last anyway.. 'cause i'm pretty sure i'll ask more than a few s.o.s. questions!
 
Old 03-18-2009, 12:10 PM   #5
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Original Poster
Rep: Reputation: 2
well.. SystemRescueCD did not work for me, this is what i got trying to compile the fist package, binutils:
Code:
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
so, a requirement is not met, didn't check the lfs script, i was pretty sure it had all what needed.
or, it is my fault, perhaps i missed something..
 
Old 03-18-2009, 01:45 PM   #6
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Are you using the ALFS script? Or are you using the LFS guide step by step..?

I am wondering if its referring to texinfo. Which should be installed with SystemRescueCd. Try

Code:
emerge -av texinfo
Though you might need to emerge --sync first

Last edited by manwithaplan; 03-18-2009 at 01:48 PM.
 
Old 03-18-2009, 06:14 PM   #7
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Original Poster
Rep: Reputation: 2
I'm using the LFS 6.4 standard book (step by step). I thought SystemRescueCd would be fine, but this is the output of LFS's requirements script:
Code:
#bash version-check.sh
bash, version 3.2.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.18
version-check.sh: line 9: bison: command not found
yacc not found
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.10
diff (GNU diffutils) 2.8.7
find (GNU findutils) 4.4.0
GNU Awk 3.1.6
/usr/bin/awk -> /bin/gawk-3.1.6
gcc (GCC) 4.2.4 (Gentoo 4.2.4 p1.0)
GNU C Library stable release version 2.7,
grep (GNU grep) 2.5.1
gzip 1.3.12
Linux version 2.6.27.19-std116 (root@catalyst) (gcc version 4.2.4 (Gentoo 4.2.4 p1.0)) #1 SMP Wed Feb 25 19:40:00 UTC 2009
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.8.8';
GNU sed version 4.1.5
tar (GNU tar) 1.21
version-check.sh: line 30: makeinfo: command not found
Compilation OK
it's obviously bad. i must conclude it is not a valid method for building LFS, perhaps it is for building Gentoo.. haven't tried yet.
I don't quite understand what you mean with "Which should be installed with SystemRescueCd". Do you mean you thought it was in the cd, or that i should emerge it? Since it is a live cd, i wouldn't see the point in doing this. Or, should I build a customized version of the cd?
 
Old 03-18-2009, 06:52 PM   #8
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
It meant that it was included with the cd. Those tools can be easily emerged.

Bison, yacc, texinfo ...

I built a 6.3 LFS with SRCD... It shouldn't be a big deal... You just need to emerge --sync then emerge the tools you need to continue.

Code:
emerge --sync && emerge -av bison yacc texinfo
 
Old 03-19-2009, 01:41 AM   #9
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Original Poster
Rep: Reputation: 2
ok, thanks. anyway, since i'll have to divide the whole process through days, i'd have to re-emerge all the packages needed, and preparing some steps everytime i reboot. i'll try to go with an installed host, to have some of the steps done. anyway, thanks for the tips, i didn't think emerging something from a live-cd was possible at all and i didn't know SRCD wich is really great. btw, i'm corious about this.. where does it install the files when i emerge something, directly in the Ram?
 
Old 03-19-2009, 03:47 AM   #10
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I can see how a LiveCd can be a pain when your spreading out the build process over several days.

I use SRCD for alot of repairs and fixes. And Gentoo builds. Though in your case emerging a package is no different then when using Gentoo. The entire disk is not loaded into ram unless specified at boot. I use these parameters when starting SRCD

Code:
rescue64 dodhcp setkmap=us
Then when it finishes loading I use

Code:
nvidia-xconfig
to configure xorg & startx. After in which I emerge --sync.

I do have 4 gigs of ram, so i have never really worried about running out of space. You can always --sync then emerge your tools. Then remove the portage ebuilds for increased storage. You just need those three tools to continue. Then you can discard the portage database by deleting /usr/portage/, this removes all distfiles and ebuilds after emerge.

Now with the LFS build, I would create small partitions on the drive and mount it. Then download all sources for the project, and add another partition for the LFS build. So you have a backup of all downloaded sources in case of a problem. [partiton1=LFS] [partition2=LFS sources] and mount them.

LFS is simple just takes time and patience. I had to leave my PC on for several days when I built it at first... Just didn't want to loose my progress.

Depending on RAM you could go with Sabayon, a Gentoo binary based distro. They make a live MCE lite edition, I've use this, aand it has a persistence mode. From there you can save all your settings and progress. Just a suggestion. You still need too update equo, & update the database and install missing build tools (takes more ram)

You should be fine emerging and syncing in SRCD. And if your concerned about space then just delete the portage files in the dir I stated above, to increase space availability in virtual memory.
 
Old 03-22-2009, 10:28 AM   #11
mr_magen
LQ Newbie
 
Registered: Mar 2009
Location: Europe
Distribution: Debian, Gentoo, Slackware
Posts: 19

Original Poster
Rep: Reputation: 2
well thank you all for the tips, i solved the problem by building a live-cd optimized for the purpose myself. got a base of gentoo and all the tools needed, plus some scripts for automating routines (like chroot, profiles etc).
 
  


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
LFS vs Gentoo tane_stelzer Linux From Scratch 15 03-28-2014 01:35 AM
Gentoo/BSD/LFS rvijay Linux From Scratch 2 01-12-2005 03:38 PM
Gentoo Vs. LFS rvijay Linux From Scratch 6 11-05-2004 05:26 PM
LFS vs. Gentoo Breezwell Linux From Scratch 8 01-27-2004 02:29 AM
LFS vs. Gentoo safrout Linux - Distributions 3 05-03-2002 07:59 AM

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

All times are GMT -5. The time now is 01:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration