Arch Linux Install Script (or alis, also known as the Arch Linux executable installation guide and wiki) installs unattended, automated and customized Arch Linux system.
It is a simple Bash script developed from many Arch Linux Wiki pages that fully automates the installation of a Arch Linux system after booting from the original Arch Linux installation media. It contains the same commands that you would type and execute one by one interactively to complete the installation. The only user intervention needed is to edit a configuration file to choose the installation options and preferences from partitioning, to encryption, bootloader, file system, language and keyboard mapping, desktop environment, kernels, packages to install and graphic drivers. This automation makes the installation easy and fast, as fast as your internet connection allows.
If some time later after an system update for any reason the system does not boot correctly a recovery script is also provided to enter in a recovery mode that allows to downgrade packages or execute any other commands to restore the system. Also a log of the installation can be taken with asciinema.
A simple powerful Bash based script for an unattended, easy and fast way to install Arch Linux.
Boot. Get. Configure. Install. Enjoy.
Warning! This script can delete all partitions of the persistent storage. It is recommended to test it first in a virtual machine like VirtualBox.
Currently these scripts are for me but maybe they are useful for you too.
Follow the Arch Way of doing things and learn what this script does. This will allow you to know what is happening.
For new features, improvements and bugs fill an issue in GitHub or make a pull request. You can test it in a virtual machine (strongly recommended) like VirtualBox before run it in real hardware. If you test it in real hardware please send me an email to [email protected] with the machine description and tell me if something goes wrong or all works fine. Pull request and new feature request are welcome!
Arch Linux Install Script (alis) is based on Arch Linux but is NOT approved, sponsored, or affiliated with Arch Linux or its related projects.
Graphics controller: intel, nvidia and amd with optionally early KMS start. With intel optionally fastboot, hardware video acceleration and framebuffer compression.
Bootloader: GRUB, rEFInd, systemd-boot
Custom shell: bash, zsh, dash, fish
WPA WIFI network installation
Periodic TRIM for SSD storage
Intel and AMD processors microcode
Optional swap file
VirtualBox guest additions and VMware tools support
Kernel compression and custom parameters
Users creation and add to sudoers
systemd units enable or disable
systemd-homed support
PipeWire support
Multilib support
Files provision support
SSH install and cloud-init support
Arch Linux custom packages installation and repositories installation
Flatpak utility installation and Flatpak packages installation
SDKMAN utility installation and SDKMAN packages installation
AUR utility installation (paru, yay, aurman) and AUR packages installation
Packages installation after base system installation (preferred way of packages installation)
Script for download installation and recovery scripts and configuration files
Retry packages download on connection/mirror error
Packer support for testing in VirtualBox
Installation log with all commands executed and output in a file and/or asciinema video
Follow the Arch Way of doing things and learn what this script does. This will allow you to know what is happening.
Internet connection is required, with wireless WIFI connection see Wireless_network_configuration to bring up WIFI connection before start the installation.
Minimum usage
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# ./alis.sh # Start installation
Advanced usage
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash -s -- -h [HASH_COMMIT] # Use specific version of the script based on the commit hash
# ./alis-asciinema.sh # (Optional) Start asciinema video recording
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# vim alis-packages.conf # (Optional) Edit configuration and change variables values with your preferences (packages to install)
# # (The preferred way to install packages is after system installation, see Packages installation)
# ./alis.sh # Start installation
# ./alis-reboot.sh # (Optional) Reboot the system, only necessary when REBOOT="false"
Packages installation
After the base Arch Linux system is installed, alis can install packages with pacman, Flatpak, SDKMAN and from AUR.
# # After system installation start a user session
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# ./alis-packages-asciinema.sh # (Optional) Start asciinema video recording
# vim alis-packages.conf # Edit configuration and change variables values with your preferences (packages to install)
# ./alis-packages.sh # Start packages installation
Recovery
Boot from the latest original Arch Linux installation media. After boot use the following commands to start the recovery, this will allow you to enter in the arch-chroot environment.
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# ./alis-recovery-asciinema.sh # (Optional) Start asciinema video recording
# vim alis-recovery.conf # Edit configuration and change variables values with your last installation configuration with alis (mainly device and partition scheme)
# ./alis-recovery.sh # Start recovery
# ./alis-recovery-reboot.sh # Reboot the system
SSH install and cloud-init
SSH install and cloud-init allows to install Arch Linux unattended and automated way in local virtual machines and cloud environments.
Build the cloud-init ISO, mount it in the VM along side the official Arch Linux installation media, start the VM and get its IP address.
$ ./alis-cloud-init-iso.sh
SSH to the VM.
$ ./alis-cloud-init-ssh.sh -i "${IP_ADDRESS}"
Or, start a unattended installation with the provided configuration.
Once the installation ends you have a ready to use system with your choosen preferences including all the free software latest version you wish to do produtive task from browsing, multimedia and office programs, to programming languages, compilers and server software and tools for creative and artistic tasks.
These are some desktop environments that can be installed.
Video
Arch Linux base installation installed in less than 4 minutes with a fiber internet connection and a NVMe SSD. Don't trust me? See the video.
Type the system installation commands and wait to the installation complete. After a reboot the system is ready to use and customized with your choosen preferences.
How you can help
Test in VirtualBox and create an issue if something does not work, attach the main parts of the used configuration file and the error message
Create issues with new features
Send pull requests
Share it in social networks, forums, create a blog post or video about it
Send me an email, I like to read that the script is being used and is useful :). Which are your computer specs, which is your alis configuration, if is your personal or working computer, if all worked fine or some suggestion to improve the script
Also and recomended for new Arch Linux new comers follow the Arch Way of doing things is a good way to use and learn about Arch. There are many guides out here, the official Arch Linux installation guide the first one. These are other good ones that explains step by step from instalation media creation to first boot and programs installation, all the necessary to start.
请发表评论