Arch Linux Installation Script

Ben Armstead

2022/04/02

Categories: Linux Tags: Linux

Warning: Try this at your own risk, this script will overwrite all data currently on your device.

Introduction

After re-installing Arch Linux many times on many different machines, I decided to invest the time in automating the process by writing a shell script to do it.

arch_install

What the script does

The script installs Arch Linux and then set’s it up with my default configuration.

Specifically:

Run the script

Arch based distro’s using systemd should work.

To run the script you must be booted into an Arch Linux live CD on a machine which you wish to wipe and lose all the data on.

Run

1curl https://dots.benarmstead.co.uk/install/setup.sh > setup.sh
2chmod +x setup.sh
3./setup.sh

Once you have filled out the required details and the script has finished, run reboot and login with your chosen credentials. You now have a base Arch Linux installation, therefore the next step is to deploy my custom configuration.

To do this, run:

1curl https://dots.benarmstead.co.uk/install/install.sh > install.sh
2chmod +x install.sh
3./install.sh <username> <git name> <git email>

You should now have a fully working install of Arch Linux with my custom configuration.

Warning: This script is still under development therefore may include bug’s and error’s in its current state