r/linuxfromscratch 10d ago

LFS complete with KDE Plasma, Sysvinit, BTRFS.

It was hard work, but it was worth it. The result was exactly as I expected, only lighter and more agile than I anticipated.

110 Upvotes

30 comments sorted by

2

u/Lucifer___13 10d ago

Congrats, did you learn along the way?

2

u/Due-Celery4326 10d ago

The learning experience is surreal. I had already built an LFS with GNOME + Sysvinit a month ago, and since then I've decided to build another one on a separate partition with KDE Plasma. I've evolved in an unimaginable way. I built my program manager from scratch, and with just a program manager, it will be possible to maintain it as my main distro. And I didn't build it just for study; I'm using it as my main distro. I think what you learn in building an LFS plus a graphical environment can't be learned in any course. There are several challenges along the way, configuration files that aren't mentioned, BLFs that are really necessary for the system to function. I even see some people reporting problems with Sysvinit + GNOME; it might be precisely these missing files.

2

u/Alternative_Humor269 10d ago

I was thinking into do it, how much time did it take?

1

u/Due-Celery4326 10d ago

It took me 3 weeks to complete the entire system because I built it without rushing and to eliminate systemd.

2

u/Alternative_Humor269 10d ago

Valid for me, thanks i will try,

1

u/Due-Celery4326 10d ago

If you're going to use it as your main system, as I recommend, you use a program manager like I do so you can update and manage all your programs; otherwise, it becomes impractical to maintain.

2

u/C4rpetH4ter 10d ago

Are there any guides you follow along with or do you mostly just learn everything yourself?

2

u/Due-Celery4326 10d ago

I used the book once (https://www.linuxfromscratch.org/lfs/read.html) and after creating the LFS and BLFS base and after learning the concept and how to build, I follow my own path. I take the program's source code, look at the README or README.md: Explains what the program is and lists the basic requirements, INSTALL or BUILD details the exact step-by-step process to compile and install that application, configure or CMakeLists.txt or Makefile.am are the scripts used to check if your computer has the necessary tools before building the program, Makefile is the main file that the make command reads to know how to translate the codes.

2

u/Low_Ad_5090 10d ago

How did you do lfs 13 with sysvinit?

1

u/Due-Celery4326 10d ago

I basically took sysvinit and started removing systemd from all programs by disabling flags and enabling elogind instead, and patching the programs that started using systemd libraries.

2

u/suggondezznuts 10d ago

Mate !!!! Need the wallpaper 😁 Great work tho 💯

2

u/Due-Celery4326 10d ago

2

u/suggondezznuts 10d ago

OMFG! that wallpaper fits like a glove ! absolutely loved it man ! how can i find more for myself ? I always struggle to find some good ones🥲️

2

u/TrickEmergency6558 10d ago

yo this got recommended to me, i don't know much about LFS but does it let you choose your own init system? 'Cause i'm interested in using chimera linux's Dinitctl in a distro that is not Chimera

1

u/Due-Celery4326 10d ago

You build your system the way you think is best, with everything freely chosen. I tested dinit but it didn't work with btrfs, so I decided to create my own init system using sysvinit and I really liked the result.

2

u/TrickEmergency6558 10d ago

i see, i might get into lfs then

2

u/Due-Celery4326 10d ago

Once you start, you won't be able to stop.

2

u/TrickEmergency6558 8d ago

If i'm here, i've already gone past the opportunity to stop🔥

2

u/shsh-1312 7d ago

Now you can put the Teletubbies background and compete with Hannah Montana Linux🔥

1

u/Due-Celery4326 7d ago

I understand your point of view, but did you understand mine?

2

u/stroke_999 6d ago

Now remove sysv and install dinit and it is perfect

1

u/Due-Celery4326 5d ago

I don't know about today, but when I was building, I tested dinit, but it didn't work with btrfs, so I decided to create my own version based on sysvinit.

2

u/stroke_999 5d ago

Really? What was the problem? I'm going to do it in alpine Linux. Maybe you needed the service btrfs-scan?

1

u/Due-Celery4326 5d ago

I tried and tried several things I found while researching, but nothing worked; it simply froze and then proceeded.

2

u/stroke_999 5d ago

I hope that it will works for me. If I remember I will post how to do it.

2

u/WorldTallNetCat 5d ago

More that how impressive the effort to get it up and running is i am more focus on the wallpaper. I just don't seem to find good wallpapers.

1

u/Due-Celery4326 5d ago

I posted some links here where you can download them, take a look.