12 KiB
| pid | title | type | url | date | updated | index | rss | sharing | imagePage | tags | draft |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | Istallation :. Arch Linux Install Script | pages | /installation/ | 2022-02-04T16:00:00+01:00 | 2022-02-04T16:00:00+01:00 | true | true | true | logotype:octopress.png | true |
Installation
Principles
{{< markdown >}} * Use the original Arch Linux installation media * As much unattended and automated as possible, require as little interactivity as possible * Allow to customize the installation to cover the most common cases * Provide support for system recovery * Provide support for installation log {{< /markdown >}}Features
- System: UEFI, BIOS
- Storage: SATA, NVMe and MMC
- Encryption: root partition encrypted and no encrypted
- Partition: no LVM, LVM, LVM on LUKS, GPT on UEFI, MBR on BIOS, custom partition scheme and mountpoints
- File system: ext4, btrfs (with subvols), xfs, f2fs, reiserfs
- Kernels: linux, linux-lts, linux-hardened, linux-zen
- Desktop environment: GNOME, KDE, XFCE, Mate, Cinnamon, LXDE, i3-wm, i3-gaps, Deepin, Budgie, Bspwm, Awesome, Qtile, Openbox
- Display managers: GDM, SDDM, Lightdm, lxdm
- 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
- 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 (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
- Wait after installation for an abortable reboot
- Fork the repository and use your own configuration
System installation
Download and boot from the latest original Arch Linux installation media. After boot use the following commands to start the installation.
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
{{< highlight bash "" >}} # 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 {{< / highlight >}}Advanced usage
{{< highlight bash "" >}} # 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-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" {{< / highlight >}}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.
Packages installation
After the base Arch Linux system is installed, alis can install packages with pacman, Flatpak, SDKMAN and from AUR.
{{< highlight bash "" >}} # 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 {{< / highlight >}}Recovery
Boot from the latest original Arch Linux installation media. After boot use the following comands to start the recovery, this will allow you to enter in the arch-chroot environment.
{{< highlight bash "" >}} # 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 {{< / highlight >}}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