this post was submitted on 02 Aug 2024
38 points (100.0% liked)

Arch Linux

7761 readers
22 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

Hey all,

Just thought I'd share my kinda unattended installer. I know there are a number of scripts out there, but thought others might be interested in this style of installer.

Boot into the official Arch Linux ISO then download the script.

There is an installation config file where you choose which bundles you want installed, and things like the root drive and username etc.

The install will ask for the root password and your user password and that should be it. The rest of the script will go through and automatically install all your selected packages (plus further config if needed), do the regional stuff for timezones etc

I haven't updated the script in a while and it hasn't been tested by many others so your mileage may vary. But here it is, warts and all.

top 5 comments
sorted by: hot top controversial new old
[–] 1984@beehaw.org 5 points 3 months ago (1 children)

What's the advantage of this vs. archinstall?

[–] Matty_r@programming.dev 2 points 3 months ago* (last edited 3 months ago)

Good question. I suppose the advantage is it's small scope, and it's bash only so it's just using the same commands you'd use if you were to manually be installing Arch. Whether or not you find that an advantage or not is up to you really. The idea behind it was to put minimal thought into the install process and just have a lazy installation script. I found it super handy when spinning up VMs for instance.

[–] Hellmo_Luciferrari@lemm.ee 4 points 3 months ago (1 children)

I have been wanting to write my own setup script for (re)installing arch on my systems. But I haven't gotten around to it. Though this gives me some ideas how to do it. Thank you for sharing!

[–] Matty_r@programming.dev 3 points 3 months ago (1 children)

Awesome, love to hear it. Good luck

[–] Hellmo_Luciferrari@lemm.ee 1 points 3 months ago

I haven't been big on the AI bandwagon, buty curiosity was piqued. I used AI to write an install script, and I am gonna test it on a VM. It's quite robust if it works.

And I'm gonna hand rewrite it to be note modular instead of one script.