Linux From ScratchThis 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.
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.
I want to compile LFS. At first I tried the Live CD, but my DVDROM drive is slow, and I kept getting "Input/Output Error".
So I have copied the sources to my LFS partition, and I have the book.
But I need to know what distro to compile it on. I currently have Slackware 10.2, but it is slightly messed up, with incompatible things here and there, kernel headers not working properly, etc. In short it is not good to compile LFS on.
I have about 1-2GB free space for this distro, I am wondering what to use. I was thinking of Arch Linux, but that uses GCC 4.x, when LFS says use 3.x, then I thought of Zenwalk. I am looking for something that fits in 1-2GB of free space.
Any distro with GCC(the version LFS requires) should in theory work. Suse,Fedora,Ubuntu,Debian They can all be installed or configured to be installed to 1-2 gigs of space.
I tried all those, somehow, someway, I encountered some test and make failures. The bese way to go is using the live cd. Since it meets all the requirements. Btw, you don't have to use it in text mode (although I did using lynx), you can configure your graphic card and use xfce. It's much better that way If you need any help, holla!
p.s. slackware works just as well if you installed all the software on the two install cd's.
Believe me, the Live CD is slow. It took me about 5 or 10 minutes to bring up XFCE, then 2 or 3 to bring up a terminal.
I tried a custom Slackware install, which was just Slackware's base, applications, development tools, X, and xfce. I ran out of space on the last package, though I might try again.
I'm thinking Zenwalk, it is based on Slackware and the whole complete thing fits is 2GB (doesn't it?).
aha! now that's a matter of taste and preference. I tried everything..........well about major distros and I always ended up having to restart my lfs *again*. So I settled for the live cd. Now that I'm through, I'm using slackware as my host for BLFS, just before I install a window manager and use myblfs system.
anyways, lots of luck. Especially with gcc<------- almost gave up because of it!!!
Thanks, trying to install Zenwalk now, however after 4 attempts it keeps coming up with an error message about corrupt package. The CD passed MD5SUM, and I meet all requirements. It happened with Slackware before, but I just retried a few times and it worked.
I want to use Vim 7 instead of 6.3, how should I compile this? The same as the book without the patches for 6.3?
I have compiled the whole temporary system, and have done everything up to the first package in Chapter 6. However, I exited the chroot environment by typing exit at the console, then I rebooted. Is this correct and does it work properly? Or does it pose problems?
I currently have Slackware 10.2, but it is slightly messed up, with incompatible things here and there, kernel headers not working properly, etc. In short it is not good to compile LFS on.
i doing LFS 6.1.1 using slackware 10.2 as a host - it's worked-out great...
Quote:
I want to use Vim 7 instead of 6.3, how should I compile this? The same as the book without the patches for 6.3?
depends on what the patches do... by looking at the patch and reading the description you should be able to determine if it addresses a particular version issue, or if it's a general change which would have to be made regardless of the version... as for the configuration options at build time, read the developer's changelog and see if anything which would require different configuration options has happened...
Quote:
I have compiled the whole temporary system, and have done everything up to the first package in Chapter 6. However, I exited the chroot environment by typing exit at the console, then I rebooted. Is this correct and does it work properly? Or does it pose problems?
you should be fine as long as you mount the virtual filesystems and enter the chroot in the same way as before... from chapter 6.3:
Quote:
If you leave this environment for any reason (rebooting for example), remember to first mount the proc and devpts file systems (discussed in the previous section) and enter chroot again before continuing with the installations.
I used Knoppix to build LFS-SVN from last month. I can never get GCC to finish the libstdc++ tests without exiting, but everything works very fast and very stable, and I have a ton of stuff running on LFS... ie,
- Xorg-6.9.0 (Xorg-7.0 is such a pain in the ass right now with so many packages hardcoding /usr/X11R6 into their makefiles)
- kde-3.5
- amaroK
- k3B
- kdevelop (I love it... great for multiple-file projects, although I miss ViM simple keystrokes... ViM >> Kate)
- firefox-1.5
- opera (bin, since no src provided)
- xmame, gxmame, foobilliard, frozen-bubble, fceu, zsnes
- GIMP
- blender
- kde-games, gnome-games. gnome-card-games, etc.
- mathematica-5 (bin)
- JDK (used the binary though... who wants to wait for that compile?)
- MPlayer
- xine
- totem
- sound-juicer
- abiword
- wine
When I compared the speed of LFS to my old OpenBSD installation, I was blown away.
I used LFS Live CD iso image with VMWare Workstation (Free Downloadable version). Yes, it was slow, but I turned on march and sse optimizations flags (I know, not very good idea for a beginner) and compiling went 5 times faster (compared to my previous LFS build) after I have installed GCC in chapter 5.
Loading XFCE on VMWare with LFS Live CD iso takes about 5 minutes, starting terminal - hmm...5 seconds. And it is on my Celeron 700 PC. I like that I do not need to turn off PC and mess with chrooting - I just suspend virtual PC and resume it next time I have inspiration to go on with LFS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.