Skip to content

Instantly share code, notes, and snippets.

@sauyon
Last active January 20, 2016 06:36
Show Gist options
  • Save sauyon/077e4d4cbe501fabe35d to your computer and use it in GitHub Desktop.
Save sauyon/077e4d4cbe501fabe35d to your computer and use it in GitHub Desktop.
Sauyon's Arch Linux Bootstrap
#!/bin/bash
usage() {
cat <<EOF
USAGE: bootstrap.sh USERNAME
EOF
}
getrep() {
read -p "$1"
while [[ ! $REPLY =~ ^[YyNn]|$ ]]; do
read -p "Please enter y or n: "
done
[[ $REPLY =~ ^[Nn]$ ]] && return 1
return 0
}
pacman -Syu --noconfirm
pacman -S zsh git base-devel --noconfirm
useradd "$1" -s /bin/zsh -G wheel network
passwd "$1"
git clone https://aur.archlinux.org/aura-bin
cd aura-bin
sudo -u "$1" makepkg -si
aura -S pkgfile sxiv bc mlocate mercurial thefuck --noconfirm
aura -A oh-my-zsh compton ttf-google-fonts-git --noconfirm
aura -S chomium synapse feh --noconfirm
pkgfile --update
if getrep "Install xorg/dm/etc? [Y/n] "; then
aura -S xorg emacs compton sddm networkmanager network-manager-applet polkit-gnome xorg-xbacklight
systemctl enable sddm
else
aura -S emacs-nox
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment