Linux From the bunch of Code
Learning new things to set yourself apart from your competitors and reaching out new opportunities or freelance jobs it’s the base to survive on the local and global market job.
Last month, while searching for some interesting and fancy stuffs to configure my Arch Linux, I came across a project “Linux from Scratch”.
Linux From Scratch (LFS) is a project that provides you with step-by-step instructions for building your own customized Linux system entirely from source. Building LFS teaches you about all that makes Linux tick, how things work together and depend on each other. And most importantly, how to customize it to your own tastes and needs. LFS is updated twice in a year, as of now the latest release is Version 8.3.
This article will not teach you how to do LFS, the official documentation is maintained well and is beginner friendly, but to motivate you towards it and share my experience with you, and the difficulties, mistakes which I have done during my project.
Issues and Solution
Here I’m sharing some important links and issues which I faced.
* Never skip any step while doing the project, believe it is not working, even if doesn’t give any error. I guess you like to stop and resolve current issue, rather then coming back form next chapter. ;)
* Try to do the stuffs in one go, atleast till chapter 5.
* Never forget chrooting in Chapter 6.4 everytime you resume work after it.
I f**cked up my Arch twice because of this (>_<)
* If you do some silly mistakes, look up here.
* Chapter 6 Glib ERROR:
error missing __attribute__ ((constructor)) support?
Solution.
* Chapter 6.21 GCC ERROR:
[Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]
Instead of [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
No need to do Chap 5 again, here is the hack.
* Chapter 6.40 Perl compliation error: recompile with -fPIC
What Next ?
Beyond Linux From Scratch(BLFS)!!!