DIGIT-ARC read-only archive · snapshot: July 23, 2026

[PROJECT] Anybody having experience in Linux from Scratch?

29 posts · originally from https://geek.digit.in/community/threads/project-anybody-having-experience-in-linux-from-scratch.168903/

ratul
ratul Original post #1
Jan 14, 2013 at 1:37 PM
Ok, so for B.tech final sem project, me and my friend chose to make an OS using Linux from Scratch, but he does'nt have any experience in linux, and what i have is just a basic set of commands, so i am working on it, and currently making my linux concepts clear before proceeding..
We have alot of time (whole sem till may), so i know we'll do it, but after reading the LFS book, i have certain doubts about it, it looks way more complicated than what i thought it would be...
Anyone here having any experience with LFS??? Please share it, and how to begin building the system, which distro will be the best choice to start working with LFS?
doomgiver
Jan 14, 2013 at 8:39 PM
well, i made a distro from scratch for my major project last sem.

i did the work, and the other 2 nubs slacked off. needless to say, they didnt manage good grades.

one thing to keep in mind : are your teachers aware of what a Open Source project is? one of my panel members in the final presentation was playing angry birds while i was giving the presentation.
ratul
ratul #3
Jan 14, 2013 at 9:24 PM
well, i made a distro from scratch for my major project last sem.

i did the work, and the other 2 nubs slacked off. needless to say, they didnt manage good grades.

one thing to keep in mind : are your teachers aware of what a Open Source project is? one of my panel members in the final presentation was playing angry birds while i was giving the presentation.

yes, my teachers are sorta "aware" of open source project, but i don't see anyone of them capable of even installing linux, forget about working on it... :p
but that's the norm these days i think, even my friends in big universities (DTU, Amity) complaints of low quality of teachers.. :twisted:
btw, how much time it took you to develop that distro? and how you started, which distro you selected as the base???
doomgiver
Jan 15, 2013 at 5:47 AM
took a couple of months, mostly debugging and finding new stuff to toss into the project to make it "viable". teachers were not satified with just the os, thye wanteded every effing thing along with that.

started out with a slackware base, then abandoned it in favor of arch. reason? im more used to arch, and AUR :)
ratul
ratul #5
Jan 15, 2013 at 3:46 PM
took a couple of months, mostly debugging and finding new stuff to toss into the project to make it "viable". teachers were not satified with just the os, thye wanteded every effing thing along with that.

started out with a slackware base, then abandoned it in favor of arch. reason? im more used to arch, and AUR :)

i can definitely say those teachers thought of windows like OS when you said you were making an OS, coz that was the case with me when one of my teachers said: "Isme start menu wagarah accha dena.. :p"... haha, i had to convince them that it would be a very basic linux distro,, :p

btw, yeah, arch is really good, and can you tell what helped you in debugging and all, what i have now is just this LFS Book to start with, does this have enough info or any other resources are needed.. (Google is always there, but if you have some specific sources, it would be better.. :oops:)
doomgiver
Jan 15, 2013 at 4:05 PM
hmm, basically i compiled a distro that was tailored for the hardware running on my college computers.
it was meant as a replacement for the old and slow windows xp.

then we added eye-candy, applications, some tweaks to make it boot faster(this one was important) and finally, booted it off a pen drive, so that it'd be portable.

as for resources, what exactly are you going to do?

for debugging, there were some problems with what w had done (full disk encryption, and some custom scripting i had written) that wouldnt run if the other was present. so, mostly compatiblity problems.
ratul
ratul #7
Jan 15, 2013 at 5:35 PM
hmm, basically i compiled a distro that was tailored for the hardware running on my college computers.
it was meant as a replacement for the old and slow windows xp.

then we added eye-candy, applications, some tweaks to make it boot faster(this one was important) and finally, booted it off a pen drive, so that it'd be portable.

as for resources, what exactly are you going to do?

for debugging, there were some problems with what w had done (full disk encryption, and some custom scripting i had written) that wouldnt run if the other was present. so, mostly compatiblity problems.

ok, so i still have to learn much before i begin with it.. :p
from your point of view, how much you think i need to study before starting building Linux from scratch..
means, that how much should i know before starting, now what i know are just a set of basic commands, managing directories and users, samba, yum servers, and editing boot and config files, that is some basic stuff only, do i have to master linux before starting??
doomgiver
Jan 15, 2013 at 6:59 PM
er, quite a lot :)

you dont need to "master" linux.

you just need enough knowledge to put together a working distro.
you need a base, decide on one and stick to it.

you should be aware of how stuff works in linux, that config settings are stored and edited via files, and your entire OS behaviour can be changed just by writing some code.
ratul
ratul #9
Jan 15, 2013 at 11:27 PM
er, quite a lot :)

you dont need to "master" linux.

you just need enough knowledge to put together a working distro.
you need a base, decide on one and stick to it.

you should be aware of how stuff works in linux, that config settings are stored and edited via files, and your entire OS behaviour can be changed just by writing some code.

ok, so i still need to work more before starting, thanks for your kind help..
one more question, does creating distro from scratch need me to know scripting, like Bash Shell Scripting, or creating Python scripts, or C programming??
TheSloth
TheSloth #10
Jan 15, 2013 at 11:42 PM
very nice guys. Seems to be interesting. I too want to learn this. Currently struggling in linux to connect to wifi but want to learn.
@ratul: if you don't mind then tell me from where you started, how much finished and what should be the approach to solve problems.
ratul
ratul #11
Jan 15, 2013 at 11:55 PM
very nice guys. Seems to be interesting. I too want to learn this. Currently struggling in linux to connect to wifi but want to learn.
@ratul: if you don't mind then tell me from where you started, how much finished and what should be the approach to solve problems.

well, the commands and some servers were taught to me in my Networking Security course, but that was all too unfinished, as they just started telling all that without properly introducing linux to us..
Currently i have RHEL 6.3 installed in VM, and is following the CBT Nuggets linux Video tutorials, you can get them here..
These tuts use RHEL, so i am currently hooked to redhat..
The tuts are old though (2002), but works good to set the basics, and covers even the advanced linux course, with Shell scripting and all the topics for RHCE examinations, and have got really good reviews from many..
Acc to their course, i have completed till User administration, and is almost in the midway for the basic vids...
doomgiver
doomgiver #12
Jan 16, 2013 at 9:05 AM
bash scripting is not *required*, per se, but can be useful in sticky situations, where you might want to "hack" together a working system (eg, script that runs a startup process to do something, and adding this script to the global startup script).
TheSloth
TheSloth #13
Jan 16, 2013 at 2:44 PM
I have no idea what you guys are talking about but as soon as my exam get over i will start learning about these things. Thank you @ratul. Keep informing how you created your own linux.
ratul
ratul #14
Jan 16, 2013 at 5:32 PM
bash scripting is not *required*, per se, but can be useful in sticky situations, where you might want to "hack" together a working system (eg, script that runs a startup process to do something, and adding this script to the global startup script).

ok, so some time is saved for me then.. :p
thanks for your help, you have given me a very good moral boost from your guidance.. :razz:

I have no idea what you guys are talking about but as soon as my exam get over i will start learning about these things. Thank you @ratul. Keep informing how you created your own linux.

hehe, don't worry once you'll start using linux, you'll understand all these concepts..
i'll keep you informed, but i think it'd still take me a couple of months before i know enough about linux to start working in building a distro, but once i start, i'll keep you informed..
TheSloth
TheSloth #15
Jan 16, 2013 at 6:31 PM
@ratul: No problem, i will wait. I have lot of time.
Anish
Anish #16
Jan 16, 2013 at 7:44 PM
@ratul : but knowing bash scripting / perl would save you a lot of time. Just learn the basics. I think perl would do. Its easy enough to grasp.
ratul
ratul #17
Jan 16, 2013 at 8:50 PM
@ratul : but knowing bash scripting / perl would save you a lot of time. Just learn the basics. I think perl would do. Its easy enough to grasp.

:|, oh, so the basics are covered in CBT nuggets, i'll get bash scripting from there, but won't python do instead of perl???
i attended a python basic course from coursera.org, so i know very basic of it, do i have to learn perl too??
Anish
Anish #18
Jan 17, 2013 at 7:03 AM
:|, oh, so the basics are covered in CBT nuggets, i'll get bash scripting from there, but won't python do instead of perl???
i attended a python basic course from coursera.org, so i know very basic of it, do i have to learn perl too??

No need. Knowing any one is enough. Atleast for arch. I am using arch and bash/perl would do.
ratul
ratul #19
Jan 17, 2013 at 1:25 PM
No need. Knowing any one is enough. Atleast for arch. I am using arch and bash/perl would do.

thnxx for some guidance bro.. :razz:
ratul
ratul #20
Mar 12, 2013 at 2:35 AM
GOOD NEWS: I have finally completed building my distro with LFS.. :hyper:..
Here's the login page screenshot:
*i.imgur.com/BaE6JIL.png​
I started building it 5 days ago with my partner, and just half hour ago, i successfully booted into the system... :mrgreen:.
It was slightly frustrating at times, but the whole process was enjoyable and very informative, really learned about linux alot during this process..
First two days were out, and we were'nt able to find a good distro to start (most of them had missing packages needed for LFS, and we could'nt download them as internet was not accessible to VMWare), finally found Slackware 14.0 x64, it had all the packages needed and provided a very good platform to start...
Rest was just following the instruction, some debugging, troubleshooting and now, it's built.. :razz:
ratul
ratul #21
Apr 11, 2013 at 9:20 PM
ok guys, finally i have completed the build with a minimal GUI, used XFCE desktop environment, and took 20-25hrs after the LFS Command prompt build was complete (the previous one), max time was took by the debugging of errors and repairing them.. :evil:

Firstly, compiled and build the X-Windows System (X-org) for the minimalistic GUI:
*i.imgur.com/G82itxO.png​

Next compiled and build the XFCE for a desktop environment:
*i.imgur.com/0J9qkxk.png​
Shah
Shah #22
Apr 12, 2013 at 11:17 AM
@Ratul: Good job! Can you write a tutorial of each step you did in developing your distro, right from the starting? It will be helpful for others too.
ratul
ratul #23
Apr 13, 2013 at 12:18 AM
@Ratul: Good job! Can you write a tutorial of each step you did in developing your distro, right from the starting? It will be helpful for others too.

whole tutorial?? :shock: that would be like more than 300 pages.. :p
btw, all the info and tuts are found here: Welcome to Linux From Scratch!
TheSloth
TheSloth #24
Apr 13, 2013 at 10:12 PM
Now days i am studying OS as it is in my MCA course. Its very hard to imagine like writing code for managing threads. I want to start something like this, but understanding simple things are taking time for me, writing code for OS is impossible for now. From where to start. I am going to download books form LFS website. Let's see
ratul
ratul #25
Apr 18, 2013 at 9:36 PM
Now days i am studying OS as it is in my MCA course. Its very hard to imagine like writing code for managing threads. I want to start something like this, but understanding simple things are taking time for me, writing code for OS is impossible for now. From where to start. I am going to download books form LFS website. Let's see

there's no code usage in this, all you need to know is how to compile the packages, which is well presented in the book... :twisted:
TheSloth
TheSloth #26
Apr 22, 2013 at 9:34 PM
thanks ratul. I saw the book, there's alot alot alot alot to read. It will take lot of time :(
ratul
ratul #27
Apr 22, 2013 at 10:00 PM
thanks ratul. I saw the book, there's alot alot alot alot to read. It will take lot of time :(

yes, but it's a good thing, everything is given in such a detail, that building a Linux distro does'nt seem to be that hard after going through the book once, the content of the book is quite good and informative.. :wink::-D
TheSloth
TheSloth #28
Apr 22, 2013 at 10:11 PM
you gone through all books given there?
ratul
ratul #29
Apr 23, 2013 at 12:23 AM
you gone through all books given there?

no, only the LFS and BLFS one's, LFS book needs to be completed in order to build the basic system, and BLFS helps to add utilities to it (GUI, browsers, security, multimedia etc.)..