Giter Site home page Giter Site logo

lfs-build's Introduction

LFS Build

Codacy Badge

Overview

LFS Build is a tool which automatically builds and configures a Linux from Scratch system.

The tool is applicable to LFS version 7.10. The following software is used:

  • linux-4.7.2
  • glibc-2.24
  • gcc-6.2.0
  • bash-4.3.30
  • grub-2.02

Building your own Linux system from source is a time-consuming process. Here are some real-world examples of how long it may take:

System Specs Build Time
Intel Core i5, SSD 182m17.485s
Intel Atom, HDD 385m32.365s

Getting started

Build

Create a new virtual machine. Additional disk is automatically created for a new LFS installation

vagrant up

Log in to the VM

vagrant ssh

Build the system. The following command:

  • Prepares a new partition which will host the LFS system
  • Downloads all required source packages
  • Installs packages that will form the toolchain which is used to build the actual system
  • Builds the full LFS system
  • Installs kernel, bootloader and sets up configuration
bash /vagrant/lfs.sh build

After the build is done you can examine and reconfigure your LFS system. Or just exit and leave the default settings

exit

Gracefully shutdown the VM

vagrant halt

Create a new virtual machine using the lfs disk file box-disk2.vmdk

Obtain the root password

cat ROOT_PASS

Clean up

vagrant destroy
bash lfs.sh clean
rm -f box-disk2.vmdk ROOT_PASS

License

LFS Build is licensed under the MIT License

lfs-build's People

Contributors

nmuzychuk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.