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.
BLFS is very different from LFS! In LFS, you must go through the book page by page; you cannot jump around. In BLFS, you browse the contents list and install what you think you need. Consequently there is no standard list of source packages to download. Instead, you download separately each package that you have decided to install.
Each page gives you a link to the package and to any necessary patches. It also indicates what other packages you need to have installed as dependencies. You should install the required packages and any recommended ones. The optional ones are less important.
Because of the dependency problems, you will need to jump backwards and forwards quite a lot.The installation of X is dealt with in a chapter about 2/3 of the way down, but you will need dependencies such as python-2 and fontconfig from earlier on in the book.
Once you have installed X, there are chapters on building various desktops (gnome, kde, lxde and lxqt) as well as a few simple window managers if you don't want a full desktop.
I successfully compiled BLFS to make a GUI environment. From my experience, the blfs book is much harder than the lfs book. Blfs took me about two weeks, and I only completed about 20% of it. You can check out this video for a review and some screen shots. I don't include my screen shots here, since they are the standard xfce interface.
Unlike the lfs book, blfs is not meant to be followed linearly. You have to select what you want. The method I used was to decide what gui environment I needed and then work backwards through the dependencies So I built Xorg and all the dependencies. There are also D-bus, Polkit, PAM, and other system utilities. Then I build xfce and all the dependencies. When you click on a package, you see a list of required, recommended, and optional packages. You have to build the required packages first. Then sometimes the build process will complain about some library missing. You then have to look in the recommended or optional section or even Github to find it.
I would suggest first setting up authentication and security by compiling section 4. Then you will probably need some utilities in section 5, some of 9, 10, 11, 12, 14, 15, 16 (for NetworkManager. You might also need nm-applet, not in the book), and all of 24. Then you decide if you want to use KDE, Gnome, Xfce, or section 27. Xfce is the easiest of the big three to build.
My setup consists of Xfce as the desktop environment, mp3 music playback using rhythmbox, Emacs text editor, TeXlive, firefox, bittorent, Python, ristretto, evince for viewing pdf files, xfburn for CD rom, pulseaudio, acpi subsystem for suspend and hibernate. You also have to build Mesa for opengl graphics support.
Hi
Ok for BLFS do chapters 1, 2. 3 1st. Once you have read them and finished what it sayes you can then move on, You will also need to have Network working Eth0 or Wifi, you will need wget package http://www.linuxfromscratch.org/blfs...cnet/wget.html. That should get you started.
BLFS installs lots of different packaages there is no correct way of doing it except for the 1st 3 chapters.
To build Gnome, (very hard time consuming build), You will need to complete chapter24 1st installing all packages and dependecies required and recommended. I would for your 1st attempt, Look at an easier Desktop, XFCE, it still requires X chapter 24 but is alot easier than Gnome.
Regarding how to start it,s the same as LFS execpt you will need dependecies as well but the book dose explain what is required with links
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
You really would be best served by running something like Arch or Gentoo for a while. If the presentation of the BLFS book causes you to panic, you're going to end up with real headaches later. There are hundreds of things that won't work the way you expect if you don't know when and where to deviate from the books. For example...
Some of Cairo's functions won't even work unless they've been built with support from various image and GL libraries. So, after you build Cairo, you have to build the supporting library stack like this:
The book doesn't explain this kind of stuff. You figure it out as you go along. Something won't work as you expect and when you look into it the reason is an "optional" library connection that you never built.
LFS is probably the most difficult of distributions to work with. It is very much for the self-motivated do-it-yourself type of person. Questions like, "why don't mouse work?" are pretty hard for us to diagnose if you've done little of that yourself. Spending 3 minutes just typing "gpm start" over and over and expecting it to miraculously start working is not an attempt at diagnosing the problem either.
Some of Cairo's functions won't even work unless they've been built with support from various image and GL libraries. So, after you build Cairo, you have to build the supporting library stack like this:
[] = a rebuilt package
....
The book doesn't explain this kind of stuff. You figure it out as you go along. Something won't work as you expect and when you look into it the reason is an "optional" library connection that you never built.
Interesting! I never came across any problems of this sort, probably because I have a minimalist setup and don't do any fancy work like video editing or gaming. My philosophy wrt optional dependencies is to install now those that I was going to install anyway, unless this leads to circularity, in which case I ignore them.
Quote:
Spending 3 minutes just typing "gpm start" over and over and expecting it to miraculously start working is not an attempt at diagnosing the problem either.
I think it was Einstein who defined madness as doing the same thing over and over and expecting a different result.
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
Quote:
Originally Posted by hazel
Interesting! I never came across any problems of this sort, probably because I have a minimalist setup and don't do any fancy work like video editing or gaming. My philosophy wrt optional dependencies is to install now those that I was going to install anyway, unless this leads to circularity, in which case I ignore them.
I think it was Einstein who defined madness as doing the same thing over and over and expecting a different result.
Some of them will use internal packages if you don't explicitly say so. But then, when you update your system lib for whatever it is, you end up with a subsidiary library that's not being maintained, or security fixed.
do chapter 24 1st then start with xfce an easier gui to build. But you must do the 1st 3 chapters, You will need wget and internet. If you cant build wget then BLFS is not for you. Then move onto ch 24
What else do you need the advice has been given
Quote:
so tell me which is easy way to give gui with proper method and packages sequences
The sequences are CH1, 2, 3. then wget package then CH24
build all that 1st see how it gose.
We cant build it for you, use what you have learnt building LFS
Read The Book.
In all fairness Luridis if the OP follows the book it will work and a GUI will work
lets not over complicate it for them. They will learn things and "progress" Hopefully
Please, please, please! Don't make life so difficult for yourself.
I have been reading your previous posts in this forum and it is clear that you are not (yet) the kind of user LFS was designed for. You don't have the basic knowledge of Linux which the books assume and, without that foundation, it is difficult if not impossible to give useful answers to your questions.
So give up LFS for the time being, go back to using a mainstream distro and do a lot of reading. Try again next year and you are much more likely to succeed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.