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 have just finished my first LFS system, and I am moving on to BLFS. I am not clear on how you should install software. If you just execute the commands for a given package, won't that install the package on your host system, rather than your LFS system?
I am also wondering about mounting the LFS partitons. At the end of the LFS book, you are told to unmount all of them. Should you remount them in /mnt/lfs for BLFS, or something elese? Sorry I haven't figured this out yet, this is my first time with Linux From Scratch.
-Aaron
Last edited by ubuntudude12; 02-04-2012 at 09:15 AM.
Reason: Added more information
As you can now boot into your lfs system that is it you are now seperate from your host system,
So now you should have a choice to boot Ubuntu (host) or lfs.
As you can now boot into your lfs system that is it you are now seperate from your host system,
So now you should have a choice to boot Ubuntu (host) or lfs.
So I should be performing the commands in the BLFS book on my completed LFS system?
Yes, Do the 1st three chapters, then find what you want/need for your system, the rest dont need to be installed in any order, BUT do make sure the dependencies are installed for the packages you want.
When you get to installing X the whole of chapter 23 needs to be done, i think that covers it for now.
So I should be performing the commands in the BLFS book on my completed LFS system?
Just for another perspective to consider, I prefer to continue on into the BLFS book still using the chroot environment in the host system until after I have installed Xorg, a window manager, and a browser. The simple reason is so I can install those components by continuing to copy and paste commands from the book using the host system's browser. From the moment that I can read the book in the LFS system's new browser, I don't use the host system anymore.
As spiky0011 said, I start out with the first three chapters and selected parts of chapter 4 (the security stuff). Then I move straight down to chapter 23 to install Xorg. Then Fluxbox and Opera. Then I install everything else I need from a terminal in the LFS system.
Just for another perspective to consider, I prefer to continue on into the BLFS book still using the chroot environment in the host system until after I have installed Xorg, a window manager, and a browser. The simple reason is so I can install those components by continuing to copy and paste commands from the book using the host system's browser. From the moment that I can read the book in the LFS system's new browser, I don't use the host system anymore.
First 3 packages I install after finishing an LFS build: gpm, lynx and wget (all from the BLFS book), which gives me the possibility to browse, copy/paste and get files/info from the Internet while running the newly created LFS.
This removes the need to use (parts of) the host when building BLFS, which is a possible downside when building BLFS from your host in a chrooted environment. The host parts I'm talking about are mainly the kernel and everything in /dev.
First 3 packages I install after finishing an LFS build: gpm, lynx and wget (all from the BLFS book), which gives me the possibility to browse, copy/paste and get files/info from the Internet while running the newly created LFS.
Thanks. I am planning to rebuild very soon and will use that idea for it.
I wanted to add to the record here that I have started building my fourth BLFS system and am trying drunna's suggestion to install GPM, Lynx, and wget as the first applications in the new base LFS system. It works for me. Thanks. In the new LFS system, I can read the book with Lynx in one console and my notes with vi in another console. And I can use the mouse to copy and paste as needed from those two to a bash prompt in a third console. That's all I needed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.