2023-07-05 11:53:44 -07:00
..
2023-07-05 11:53:44 -07:00
2023-07-05 08:18:25 -07:00
2023-07-05 11:33:00 -07:00
2023-07-05 11:53:44 -07:00
2023-07-05 08:18:25 -07:00

Provision Arch

*Yes, I haven't showered in days.*

Jumpstart scripts to install Debian with packages and configs I use.

Usage

  1. Install Arch with archinstall and the following settings:

Install Options

  1. Complete installation until the "Install the base system" step.

  2. Switch to a tty and run the following commands:

    umount /target/boot/efi
    umount /target
    mount /dev/sdaY /mnt
    cd /mnt && mv @rootfs @
    btrfs subvolume create @home
    btrfs subvolume create @snapshots
    btrfs subvolume create @home_snapshots
    btrfs subvolume create @var
    btrfs subvolume create @tmp
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@ /dev/sdaY /target
    mkdir -p /target/boot/efi
    mkdir -p /target/home
    mkdir -p /target/snapshots
    mkdir -p /target/var
    mkdir -p /target/tmp
    mount /dev/sdaX /target/boot/efi
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@home /dev/sdaY /target/home
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@snapshots /dev/sdaY /target/snapshots
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@var /dev/sdaY /target/var
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@tmp /dev/sdaY /target/tmp
    mkdir -p /target/home/snapshots
    mount -o rw,noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@home_snapshots /dev/sdaY /target/home/snapshots
    
  3. Edit fstab to mount items from step 4.

  4. Switch back to gui install and complete install.

  5. Reboot and edit /etc/apt/sources.list to have these sources:

    deb http://ftp.us.debian.org/debian/ sid main contrib non-free non-free-firmware
    deb-src http://ftp.us.debian.org/debian/ sid main contrib non-free non-free-firmware
    

    Then run the following commands:

    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo apt-get autoremove
    sudo reboot
    
  6. Install zram with the sudo apt install zram-tools and edit /etc/defaults/zramswap and uncomment PERCENT=25.

  7. Run the following commands:

    sudo apt install vim git -y
    git clone https://github.com/starr-dusT/dotfiles ~/.local/share/chezmoi 
    

    Copy .chezmoidata.yaml.example to .chezmoidata.yaml and edit with desired settings then run the following commands:

    ~/.local/share/chezmoi/provision/debian/jumpstart.sh
    

Perform additional setup found in additional-setup

Update

linux-update --debian command updates the system with ansible. Run linux-update -h for information on usage.