Arch Linux + Btrfs + Luks
A shell script, simple and amateur, to install Arch Linux on my personal computers. You can use and modify it as you like.
- It is advisable that you already know how to install Arch in the traditional way, following the installation guide available on ArchWiki, the purpose of this script is to speed up my installations and not skip steps in learning.
- If you prefer you can partition your disk before launching this script.
- You can first try it in a Virtual Machine if you prefer.
- The console font will be changed while the script is running.
- I have intentions of migrating this script to the whiptail tool.
- The idea of creating this script came from the desire to practice the shell language, nothing more.
- A working internet connection.
- Logged in as 'root' user.
curl -L stenioas.github.io/malpi/malpi > malpi
wget stenioas.github.io/malpi/malpi
git clone https://github.com/stenioas/malpi
- This script assumes that you know your keymap and it will already be loaded.
- Only UEFI mode is supported.
- This script uses only two partitions, ESP and ROOT.
- The root partition will be formatted with the BTRFS file system.
- This script will create 4 subvolumes:
- @ for /
- @home for /home
- @pkgs for /var/cache/pacman/pkgs
- @snapshots for /.snapshots
- The EFI partition can be formatted in FAT32 if the user wants to.
- SWAP is not supported.
- NetworkManager is installed by default.
- Only Grub and Systemd-boot are available.
- This script can be cancelled at any time with CTRL+C.
- THIS SCRIPT IS NOT YET COMPLETE!
- A SWAP partition or SWAP file can be created after installing the system.
- The home partition can be migrated to another disk or partition after installing the system.
Boot with the last Arch Linux image on a bootable device.
Then make sure you have Internet connection on the Arch iso. If you have a wireless connection the iwctl
command might be useful to you. You can also read the Network configuration from the Arch Linux guide for more detailed instructions.
Finnaly, launch the script first step with the command below:
sh malpi -i
or
sh malpi --install
Then follow the on-screen instructions to completion.
- Set console font
- Timedatectl set ntp as true
timedatectl set-ntp true
- Rank mirrors (by country)
- Select disk and partitioning
- Format and mount EFI and ROOT partitions
- Select kernel version
- Select microcode version
- Install system base
- Configure fstab
- Configure timezone
- Configure localization
- Configure network(hostname file and hosts file)
- Configure initramfs
- Configure root password
- Install bootloader
Second step offers the post installation.
Launch the second script step, after succeeding in the first step, with the command below:
sh malpi -p
or
sh malpi --post
- Create and configure a new user
- Enable multilib mepository
- Install Xorg
- Install video driver (Currently only intel and virtualbox available)
- Install Desktop Environment or Window Manager (Optional)
- Install Display Manager or Xinit (Optional)
- Install extra packages (Optional)
- Install Laptop Packages (Optional)
- Install YAY (Optional)
- Cleanup orphan packages
- Archwiki
- archfi script (by MatMoul)
- aui script (by Helmuthdu)
- pos-alpine script (by Terminal Root)