~greenfoo/archinstall

Semi automated Arch installation scripts
gpg: disable built-in CCID driver
add smart card tools
zathura: add plugin for reading cbr

refs

master
browse  log 
verified_20240818
browse  .tar.gz 

clone

read-only
https://git.sr.ht/~greenfoo/archinstall
read/write
git@git.sr.ht:~greenfoo/archinstall

You can also use your local clone with git send-email.

#What is this?

A series of scripts I use everytime I need to setup a new computer:

  • "01_base.sh" installs a basic, GUI-less, Arch based system.
  • "02_desktop.sh" is meant to be run after "01_base.sh" and adds all the additional packages expected by a desktop user (ie. windows manager, web browser, music player, ...) including dev tools (vim, compiles, mutt, ...)

#How to use it?

#To deploy a bare machine

  1. Download the latest Arch image, flash it to a USB and boot from it.

    TIP: If you want to install inside a virtual machine, a quick way to do so is to install "quickemi" and then run these commands:

    $ quickget archlinux latest
    $ quickemu --vm archlinux-latest.conf 
    
  2. If you are connected by ethernet, skip to the next step, otherwise, use these command to connect to a WiFi network:

    # iwctl device list
    # iwctl station <device_name> scan
    # iwctl station <device_name> get-networks
    # iwctl station <device_name> connect <wifi_network_name>
    
  3. From the live-USB root prompt, download and run "01_base.sh". You can do it directly from the internet using this command:

    # bash <( curl -s https://git.sr.ht/~greenfoo/archinstall/blob/master/01_base.sh )
    
  4. Follow the instructions.

  5. Remove the USB and reboot.

WARNING

This script completely wipes out the hard drive. Dual boot configuration and/or more complex disk layouts are not supported.

#To deploy a desktop machine

  1. Follow the instructions in the previous section to deploy a bare machine.

  2. Log into the just deployed bare machine as a regular (ie. not "root") user.

  3. If you are connected by ethernet, skip to the next step, otherwise, use these command to connect to a WiFi network:

    $ systemctl start NetworkManager
    $ nmcli device wifi rescan
    $ nmcli device wifi list
    $ nmcli device wifi connect <wifi_network_name> password <wifi_password>
    
  4. Download and run "02_desktop.sh". You can do it directly from the internet using this command:

    $  bash <( curl -s https://git.sr.ht/~greenfoo/archinstall/blob/master/02_desktop.sh )
    
  5. Answer the questions you will be asked.

  6. Wait for it to finish and reboot.