Skip to content

Instantly share code, notes, and snippets.

@bmartel
Last active November 21, 2020 20:06
Show Gist options
  • Save bmartel/07c4a8d383777510aeb9b028de6aeaab to your computer and use it in GitHub Desktop.
Save bmartel/07c4a8d383777510aeb9b028de6aeaab to your computer and use it in GitHub Desktop.
#!/bin/bash
# Setup arch
pacman -S --noconfirm pacman-contrib curl
# Setup Mirrors
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
curl "https://www.archlinux.org/mirrorlist/?country=CA&country=US&protocol=http&protocol=https&ip_version=4" -o /etc/pacman.d/mirrorlist.new -s
sed -i 's/#S/S/g' /etc/pacman.d/mirrorlist.new
rankmirrors -n 10 /etc/pacman.d/mirrorlist.new > /etc/pacman.d/mirrorlist
# Update System
pacman -Syyu --noconfirm
# Base Packages
pacman -S --needed --noconfirm iptables docker docker-compose mosh git gist fzf ripgrep tmux nvim ruby nodejs yarn
# Set Time
timedatectl set-timezone America/Winnipeg
# Setup Mosh
iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT
# Setup tmux
curl https://gist.githubusercontent.com/bmartel/5386d5afe9aa1d57d7585b4747ddf95b/raw/1c89ffaeed78e175cab44dcec3460855c55d69d1/gistfile1.txt -o ~/.tmux.conf -s
# Setup nvim
mkdir -p ~/.vim/pack/minpac/opt
git clone https://github.com/k-takata/minpac.git ~/.config/nvim/pack/minpac/opt/minpac
curl https://raw.githubusercontent.com/bmartel/vim-config/master/minimalrc -o ~/.config/nvim/init.vim -s
# Clear Cache
paccache -r
# Setup docker
sudo tee /etc/modules-load.d/loop.conf <<< "loop"
modprobe loop
systemctl start docker.service
systemctl enable docker.service
# Reboot system, docker service seems to get finicky until rebooted
reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment