×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Linux From Scratch

jeremyp (130771) writes | more than 10 years ago

User Journal 0

Following a comment I read in a recent Slashdot post, I decided to build a "Linux From Scratch" distribution. Interestingly, Linux From Scratch comes in the form of a book in HTML format - no software is included.

Following the book's instructions, you download the source packages you need to build a basic Linux system and then use the step by step instructions to get it working.

Following a comment I read in a recent Slashdot post, I decided to build a "Linux From Scratch" distribution. Interestingly, Linux From Scratch comes in the form of a book in HTML format - no software is included.

Following the book's instructions, you download the source packages you need to build a basic Linux system and then use the step by step instructions to get it working.

The idea is to set aside a partition on an existing Linux system and build the software there. I chose my "firewall box" as that is the only permanent Linux system I have. Interestingly, on running fdisk I found I have approximately 20 Gb of unused disk space on it - well i say "unused" it has the original Win 98 system that the box came with. I immediately reformatted about 10 Gb of space on the first disk as /boot, swap and / respectively (/ is a reiser FS partition) and rolled my sleeves up.

The methodology is to mount your new partitions on your original system, build a basic toolchain (compiler etc) and then chroot into your new "/" and literally build the Linux system from scratch. At the time of writing I am just starting the build of my new Linux - the final version of glibc is compiling (for at least two more hours :( ).

I have to say it's quite exciting building a Linux system from scratch. You have to hand create the directory structure, password file and group file among other things. OTOH the configure -> make -> make install cycle can get a bit tedious. BTW it's taken 24 hours of compiler time and about 8 hours of my time to get to where I am.

0 comment

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Sign up for Slashdot Newsletters
Create a Slashdot Account

Loading...