LinuxQuestions.org
Visit Jeremy's Blog.
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 03-10-2017, 07:27 AM   #1
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Rep: Reputation: Disabled
BLFS


I was successfully completed LFS this outcome will be my own command based Linux

I have to give to the my distro GUI. can anyone help me for this
if someone completed GUI sent me screen shot and steps

I was reading BLFS but don't understand what can you do ???
and which sources installed
 
Old 03-10-2017, 11:14 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
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.
 
Old 03-10-2017, 11:45 AM   #3
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
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.

Good luck.
 
Old 03-10-2017, 01:22 PM   #4
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
i have to give gnome desktop environment I don't know what to due ??
 
Old 03-10-2017, 02:46 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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

Last edited by spiky0011; 03-10-2017 at 02:47 PM.
 
Old 03-10-2017, 09:49 PM   #6
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
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:

pixman, cairo, py2cairo, pygobject, libdrm, mesa, glu,
freeglut, giflib, libjpeg-turbo, jas-per, libtiff, lcms2, libmng, libraw,
openjpeg, graphite, harfbuzz, [freetype], [fontconfig], [graphite],
gdk-pixbuff, libcroco, libsrvg, pango, cogl, [cairo]

[] = a rebuilt package

The final configure for Cairo looks nothing like what's in the book:

Code:
./configure --prefix=/usr --disable-static --enable-xlib-xcb --enable-glesv2 \
--enable-egl --enable-xcb --enable-xlib --enable-ft --enable-fc \
--enable-gobject --with-x --enable-tee
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.
 
1 members found this post helpful.
Old 03-11-2017, 12:43 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by Luridis View Post
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:

pixman, cairo, py2cairo, pygobject, libdrm, mesa, glu,
freeglut, giflib, libjpeg-turbo, jas-per, libtiff, lcms2, libmng, libraw,
openjpeg, graphite, harfbuzz, [freetype], [fontconfig], [graphite],
gdk-pixbuff, libcroco, libsrvg, pango, cogl, [cairo]

[] = 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.
 
Old 03-11-2017, 12:45 AM   #8
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by hazel View Post
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.
 
Old 03-11-2017, 02:40 AM   #9
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
its really hard to build gnome
so tell me which is easy way to give gui with proper method and packages sequences
 
Old 03-11-2017, 04:32 AM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Read post #5

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

Last edited by spiky0011; 03-11-2017 at 04:46 AM.
 
Old 03-11-2017, 07:16 AM   #11
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by Suraj Patil View Post
so tell me which is easy way to give gui with proper method and packages sequences
Fluxbox in section 27 is the easiest to build.
 
Old 03-11-2017, 07:49 AM   #12
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
What is the fluxbox can you explain ? Me please step how to gui using this
 
Old 03-11-2017, 08:59 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
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.

Last edited by hazel; 03-11-2017 at 09:00 AM.
 
Old 03-11-2017, 09:03 AM   #14
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
Hazel if you want help me please help me otherwise leave it I'm student so don't expect anything. Im little knowledge Linux
 
Old 03-11-2017, 09:20 AM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I have given advice, what have you done so far
 
  


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
BLFS sonik3230 Linux From Scratch 1 01-21-2014 01:07 PM
BLFS 7.4 is now available stoat Linux From Scratch 1 09-13-2013 09:38 PM
[SOLVED] help me blfs happyrobo Linux From Scratch 79 07-14-2012 09:01 AM
I need BLFS !!! nykey Linux From Scratch 1 06-06-2006 07:05 PM
On to BLFS itsjustme Linux From Scratch 7 09-01-2003 04:20 AM

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

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration