This is a script to automate the installation process of my minimal Arch setup. Calling it minimal because my laptop has poor hardware specifications (lower than potato PCs & probably higher than minimalist GNU/Linux users). The script is heavily inspired by Bugswriter's Arch install script. I omitted a lot of commands which I didn't think were necessary. Just like his script, this one divides itself into 3 parts:
-
Part 1: The first part is for formatting & mounting of partitions, and continues to install base packages, divide the script into 2 more parts, chroot into the new system, and run Part 2 of the script.
-
Part 2: This second part sets username, password, locale, hostname, and configures grub along with my desired user permissions.
-
Part 3: This part prepares to set up my "work environment" by cloning my dotfiles, and other required repositories. Then, it installs a lot of programs using
pacman
(the package manager in Arch distributions). It also usesyay
(an AUR helper) to further install a few more packages from the AUR. Then, it configures the touchpad to use the older synaptics driver for the circular scroll feature that I absolutely love, set date & time, start some Systemd services, and start zsh4humans script to set up the shell. -
Part 4: The zsh4humans quits the running script so have to have a Part 4. This final script makes sure my dotfiles are correctly migrated. Makes a backup if found conflicting files. Also, this part runs the grub configuration again in case you want to dual boot with Windows on your device.
- Get the latest Arch ISO and burn it to a flash drive by using Rufus, Etcher or any other tool you prefer.
- Boot into that flash drive.
- Upon reaching the initial prompt, connect to internet.
- Type the following:
pacman -Sy git
git clone https://github.com/SamIsTheFBI/SAMI
cd SAMI
chmod +x SAMIv2.sh
./SAMIv2.sh
Check Arch Linux Wiki Installation Guide because I think it's important for anyone using Arch to be familiar with Arch Wiki.
ME.
Or if you are someone who is trying out others' Arch setups. Or if you're making an Arch installer script for your own rice & would actually tinker around with the script. Or if Arch Wiki is daunting to look at but you are eager to install Arch manually.
This script is NOT for someone who wants to create their own Arch setup with ease because what you're actually looking for then is something like archinstall or Archfi. Unless you're happy with what they install for you, you should install Arch the traditional way.
Because I was bored. But I guess now I just want to write proper documentation. Of course, there will be more updates to this and other repositories.