Skip to content

Instantly share code, notes, and snippets.

@z3t0
Created August 6, 2015 01:06
Show Gist options
  • Select an option

  • Save z3t0/9de5dfd9842e76816485 to your computer and use it in GitHub Desktop.

Select an option

Save z3t0/9de5dfd9842e76816485 to your computer and use it in GitHub Desktop.
Arch Provisioner
#!/usr/bin/env bash
###############################################################################
### Initial
###############################################################################
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
echo "Updatiing Arch..."
pacman -Syyu >/dev/null
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
echo "Installing Cinnamon"
pacman -S cinnamon --noconfirm --quiet >/dev/null
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
echo "Installing SLim"
pacman -S sddm --noconfirm --quiet >/dev/null
echo "Install Yaourt"
pacman -S base-devel --noconfirm --quiet >/dev/null
mkdir -p ~/temp/AUR/ && cd ~/temp/AUR/
wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz # download source tarball
tar xfz package-query.tar.gz # unpack tarball
cd package-query
makepkg # create package from source
sudo pacman -U package-query*.pkg.tar.xz --noconfirm # install package - need root
sudo pacman -S virtualbox --noconfirm
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
# Configure Keys
sudo pacman -S archlinux-keyring --noconfirm --quiet >/dev/null
sudo pacman -Su --noconfirm --quiet >/dev/null
sudo pacman-db-upgrade >/dev/null
# Install Packages
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
echo "Installing vim"
sudo pacman -Syu vim --noconfirm --quiet >/dev/null
echo "Installing Python"
sudo pacman -Syu python --noconfirm --quiet >/dev/null
echo "Installing git"
sudo pacman -Syu git --noconfirm --quiet >/dev/null
echo "Installing tmux"
sudo pacman -Syu tmux --noconfirm --quiet >/dev/null
echo "Installing zsh"
sudo pacman -Syu zsh --noconfirm --quiet >/dev/null
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
###############################################################################
### Configuration
###############################################################################
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
# echo "Installing OH My ZSH"
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Dot files
# git clone https://github.com/z3t0/dotfiles ~/.dotfiles
# sh ~/.dotfiles/setup.sh # Configure this postinstall
# Update
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment