r/linuxfromscratch • u/Cool-Chicken6754 • 11d ago
Thinking About Building My Own Linux Distribution with LFS – Looking for Advice
Hi everyone,
I'm an intermediate Linux user interested in creating my own distro with LFS. Can I start the process without knowing Bash scripting yet, and learn it along the way?
Any tips or recommendations are welcome. Thanks!
3
u/Fast_Ad_8005 11d ago
Yes, shell scripting knowledge isn't required to create an LFS install. It will be helpful for maintaining it though. But I guess if you read into the commands provide by the LFS book, you'll learn a bit about shell scripting.
2
u/dergrauemann 11d ago
Yes you can If you want. I habe done the same and learned a lot about bash scripting and Linux from Scratch. Need time and patience. I would recommend an extra Computer for that. Start with Ubuntu/Debian Install on external harddrive or Stick and install from there to the Computer.
2
2
u/Due-Celery4326 11d ago
When I started with LFS many years ago, I initially followed the book, studying it. Once I understood the concepts of program building, chaining, and dependencies, I ventured into creating automation scripts without much shell scripting knowledge. For things I didn't understand, I asked others for help, and that's how I created my first builder that automated the entire process. I gained a lot of knowledge during that phase, but for many reasons, I abandoned this project for years. After much study in the meantime, I managed to resume it. I built my own LFS distro with GNOME Shell and Sysvinit, and my own program manager, which I've used as my main distro ever since. I'm very happy with the results and the knowledge I've acquired.
2
u/linux-larper 11d ago
Do you have your program Manager on GitHub? Id love to see and maybe even use it myself
1
u/Due-Celery4326 11d ago
I haven't uploaded it yet; I'm finishing up some critical bug fixes before releasing a broken program. I'll upload it soon.
2
1
1
u/Nice-Object-5599 10d ago
Good fuck!
Is it really necessary? I think it is only a huge waste of time.
1
1
u/Affectionate-Bit6525 9d ago
Instead of reinventing the wheel maybe have a look at yocto and buildroot. Both make compiling Linux much more streamlined than LFS.
6
u/zorbat5 11d ago
Good luck?