LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2008, 03:38 AM   #1
shugs81
LQ Newbie
 
Registered: May 2008
Posts: 8

Rep: Reputation: 0
How to build a distro??? Enquiry only.....


Hey peeps...

Is there a guide to setting up your own version of linux anywhere? not planning to make my own distribution but i'd like to find out how you do it... just fancy setting up an internet box or something which involves a kernel and a window manager and then adding bits that i need... probs never gonna happen but would like to have a look... ta peeps!
 
Old 06-16-2008, 03:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try Linux From Scratch. that's what you want, but with a manual to guide you. Do that, understand it and then go off on your own if you really wish to.
 
Old 06-16-2008, 04:26 AM   #3
shugs81
LQ Newbie
 
Registered: May 2008
Posts: 8

Original Poster
Rep: Reputation: 0
cheers for that.... I remember looking at something similar in the past! it's all coming back to me!! Woot!
 
Old 06-16-2008, 06:19 AM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
There are a gazillion "how to roll your own" and even "roll your own" distros.

After looking through an awful lot of pretty awfully written docs, what I can recommend is:

1. Read about the Linux boot process, from bootloader to initrd (if any), to the startup scripts, inittab, and getty.
2. Read about how to make a bootable CD using 'isolinux'
3. Take a Debian installer CD iso (very instructive for this purpose) and tear it apart:
(it may be convenient to use 'sudo' at many point in the process)
a. mount the iso using a 'loop' device
b. inspect the contents of the top directory - try to remember what you learned in (2) and see what you recognize. Poke around and see if there are other important bits that you forgot. There may be invisible files/directories (like .disk/)
c. mount the 'initrd' image and tear it apart - the Debian installer typically has 2 initrds - look at the isolinux.cfg file to see what's available on the disk (or use 'find')

Perhaps the most important thing on that initrd image is the "init" script - in this case a bash script - read through and try to understand what it is doing. The short answer is that it initializes the system, then switches to the final root partition, and executes the final 'init' program (usually a precompiled binary) which will then go through and process the rcS.d scripts (startup) as well as inittab (but I can't remember the order).

Have fun.

PS: I've spent a lot of time on LFS and it has its uses, but I wouldn't recommend it over what I've described here because some very important parts are magically skipped over and you will end up just running someone else's scripts and not really understand what you're doing. Be patient with Google and find good articles on the Linux boot process and on booting from CD. Also, it's far easier to roll your own distro basing it on another distro - Debian seems to be one of the most popular for this purpose (Knoppix, (K,X)Ubuntu, Mepis, etc etc etc).
 
  


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
SpamAssassin enquiry - how to clear the whitelist database bigbadbo Linux - Server 2 12-15-2010 01:35 AM
Want to build my own distro! dtcamargo Linux - Distributions 10 12-31-2006 02:48 AM
build your own distro koolgentoo Programming 2 04-15-2005 03:14 PM
another gtk related enquiry ;-) breakerfall Linux - Newbie 31 06-22-2003 04:31 PM
shell script enquiry chuck77 Linux - General 3 06-12-2003 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 AM.

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