linux1 min read
Arch Linux Installer script
I wrote this script to install Arch Linux over SSH, using LVM on LUKS for encrypted storage.
Source repository: archlinux-installer.
It handles disk and partition formatting using layout files or commands, configures GRUB and mkinitcpio hooks and modules, and sets GRUB_CMDLINE_LINUX_DEFAULT. It also handles SSH key generation, installs KDE Plasma with SDDM, and adds a baseline UFW configuration. The installation is semi-automatic: passwords and passphrases still require input.
Running it
- Clone the repository to the machine that will initiate the installation.
- Make the scripts executable:
chmod +x run.sh ./installer/install.sh ./installer/chroot.sh. - Run
./run.sh. It connects to the target over SSH and runs./installer/install.sh, followed by./installer/chroot.sh.
Configure the target in files/install.config:
#!/bin/bash
# Target node SSH connection parameters
HOST="root@localhost"
PORT="3099"
# Hardware profile specification: <desktop|laptop>
COMPUTER="desktop"
This describes the script's configuration, not a guarantee that an old installer still works with current Arch packages. Review the disk layout and installation commands before running it.