GithubHelp home page GithubHelp logo

arch-install-script's Introduction

Arch Linux Installation Script

These scripts use QEMU to install Arch Linux on a physical disk.
Edit launch_iso and install_script_settings to use them.

Summary

  • Two target physical storage devices are required:
    • A boot disk, typically a small USB flash drive
    • A main drive onto which everything else will be installed, typically an SSD or hard disk
  • Boot the Arch Linux installation ISO in a QEMU virtual machine
  • Give the VM access to the two physical drives
  • Format the drives:
    • Boot disk:
      • MBR partition table
      • Single partition
      • Ext4 filesystem
      • Contents of /boot are placed here
    • Main disk:
      • GPT partition table
      • BIOS boot partition
      • Remaining space in a second partition:
        • LUKS encrypted
        • LVM physical volume
        • 50 GB logical volume for /
  • The encryption key for the LUKS partition is written to the USB drive
  • Grub and initramfs are configured to supply the key from the USB for unattended boot
  • Unmount and remove the USB drive after booting for security, if desired, but remember that the USB drive is needed for rebooting
  • Users are created
    • Added to sudoers
    • SSH public keys added
  • All password login is disabled, that is, SSH login with public key is the only login method allowed
  • Bare-bones set of packages are installed
  • Locale and timezone are configured
  • Hostname and network are configured

Recommendations

  • Make a backup of the contents of the USB drive---without the encryption.txt file on that drive, the contents of the main drive are unrecoverable
  • Keep the package list for pacstrap minimal, and do other package installation later with Ansible

arch-install-script's People

Contributors

johnp789 avatar

Stargazers

 avatar

Watchers

 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.