Giter VIP home page Giter VIP logo

distributio's Introduction

Distributio

Boot certain Linux distributions from ISOs in ten steps:

  1. Debian Live 10 amd64 gnome non-free
  2. Debian Live 10 amd64 standard non-free
  3. Fedora Silverblue x86_64 31 installation image
  4. Lubuntu 18.04 desktop i386

The Debian distributions selected above include non-free firmware, for devices including WiFi adapters. Distribution 1 does not include a desktop environment.

For simplicity these instructions don't check any GnuPG signatures on checksums; checking signatures on checksums is a good practice and should be considered.

Alpine Linux does not appear to support booting ISO images directly; there is an open issue on the bug tracker.

Overview

The process below will:

  • check a device for errors
  • format the disk with a single "FAT32" partition in a GPT partition table
  • download distribution 1 above
  • install grub including settings to boot distribution 1

Steps

These steps have been tested from distribution 1 above.

  1. Clear the kernel ring buffer with dmesg -c, insert the USB device, and clear the ring buffer again is order to identify the device. In the example below the device is /dev/sdb.
    $ sudo dmesg -c
    โœ‚
    [   XX.XXXXXX] sd X:0:0:0: [sdb] Attached SCSI removable disk
    
  2. Check the device for errors:
    sudo badblocks -v -w /dev/sdb
    This is a slow process as the entire device will be written several times.
  3. Partition the disk: GPT partition table (g), single new partition with default number, start and end (n), type of Microsoft Basic Data (t, 11, w):
    sudo fdisk /dev/sdb
  4. Connect to the internet.
  5. Install grub and mkfs.vfat:
    sudo apt update &&
    sudo apt install --yes curl dosfstools grub-efi-amd64-bin
  6. Format and mount the disk:
    sudo mkfs.vfat -v -n distributio /dev/sdb1 &&
    sudo mount /dev/sdb1 /mnt &&
    cd /mnt
  7. Install grub onto the device:
    sudo grub-install -v --target=x86_64-efi --efi-directory=. --boot-directory=.
    --removable --no-uefi-secure-boot
  8. Download these files:
    curl -L https://github.com/maxwell-k/distributio/archive/master.tar.gz |
    sudo tar xz --strip-components=1
  9. Download and check an ISO then generate grub configuration:
    sudo sh bin/prepare.sh debian-live-10.?.?-amd64-gnome+nonfree.sh
  10. Reboot.

Testing

To test manually, the following should succeed:

rm *.sha256 *.iso
sh bin/prepare.sh debian-live-10.?.?-amd64-gnome+nonfree.sh
sh bin/prepare.sh debian-live-10.?.?-amd64-standard+nonfree.sh
sh bin/prepare.sh Fedora-Silverblue-ostree-x86_64-31-1.9.sh
sh bin/prepare.sh lubuntu-18.04-desktop-i386.sh

Booting into each distribution should also be tested.

References

distributio's People

Contributors

maxwell-k avatar

Watchers

 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.