Code Monkey home page Code Monkey logo

tldrlfs's Introduction

too long; didn't read linux from scratch


too long; didn't read linux from scratch.

tldrlfs is a short guide that will teach you how to build a working operating system using the Linux kernel in much fewer commands and less time than LFS. It's meant to inform the reader, but be much more straight to the point in nature. All that's needed is a little bit of time, some hardware to work on, and if you're so inclined, copious amounts of alcohol if you want a fun drinking game.


While Linux From Scratch is a great book, it provides a fair bit of unnecessary information to an end user. It is filled to the brim with information, and while that's not at all a bad thing, it is very daunting to readers who wish to only have a minimal operating system. At the bare minimum you only need the kernel and a process that runs as PID 1. That's it. Of course, readers probably want a tailored distribution to their needs. Perhaps that's a desktop, a specialized media server -- whatever the case may be, the two components previously mentioned are the greatest common denominator.

This GitHub repository is comprised entirely of README files to guide you through the bare minimum and just a little bit more to get an operating system up and off the ground.


Table of Contents -


There's only two prerequisites to begin tl;dr lfs.

(1) An already running Linux distribution to bootstrap from
(B) A storage medium to install to.

The distribution to bootstrap from does not necessarily need to be installed on anything; you can do this from a live medium if you so choose. If you're not comfortable working on real hardware or want to practice, you can always work with a virtual machine.

To prepare you storage medium you will need to partition the disk, format it, and mount it somewhere on your currently running distribution.

$ mkdir -p ./tldrlfs
$ fdisk /dev/sdX
$ mkfs.ext4 /dev/sdXY
$ mount /dev/sdXY ./tldrlfs
$ export BUILD_DIR=./tldrlfs
$ export THREADS=$(nproc || printf '%s\n' 1)

/dev/sdX and /dev/sdXY refers to a device file for a storage medium. Yours may be /dev/sdb, /dev/sdc, or anything else. If you do not know the path for your device, you can use lsblk. X refers to the drive itself, and Y is the specific partition you wish to use.

You are not at all tied to using ext4 as your filesystem, fdisk for your partitioning program, or otherwise. Keep in mind, this is a guide, not a legally binding contract. Feel free to supplement your own preferences where applicable.

Just remember: have fun!


tl;dr lfs needs help! feel free to contribute if you find something missing

tldrlfs's People

Contributors

formerlybased avatar kiedtl avatar loannaflip avatar mininmobile avatar rachelambda avatar sweets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tldrlfs's Issues

Suckless version when?

GNU coreutils are so bloated... How dare you insist that I install such garbage on my own time?! I demand that you spoonfeed me a very slightly different command.

(/s, but would be kind of cool if you did)

Inconsitent use of BUILDDIR and BUILD_DIR

Both variables mean the same but are used in different places. BUILD_DIR is the initialized one on the README while BUILDDIR isn't initialized anywhere. Should fix for consitency

Possible to do a section on GRUB?

Hello,

Thanks for the guide. Just wanted to ask if it is possible to use grub instead of syslinux and how to go about doing that? Any help is much appreciated. I am stuck at the very last section as my computer wouldn't boot with the USB.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.