A set of instructions / commands to quickly bring an Arch Linux VPS back to operational from baseline re-install.
# as root
pacman -Syu
pacman -S bash-completion htop vnstat exa
pacman -S ufw
ufw allow SSH
ufw limit SSH
# as root
useradd -m -G wheel <username>
passwd <username>
visudo
uncomment %wheel ALL=(ALL) ALL
line
$ as a regular user
sudo passwd -l root
Modify /etc/ssh/sshd_config
file and change PermitRootLogin
directive to no
.
Also, you can modify Port
directive(s) to change/add SSH listening ports.
sudo vim /etc/ssh/sshd_config
git config --global credential.helper 'cache --timeout=3600'
git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
sudo hostnamectl set-hostname <new hostname>
sudo hostnamectl set-icon-name <new hostname>
git clone https://github.com/gbursson/dotbot ~/dotfiles
rm .bashrc
cd dotfiles/
./install
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
$ as user
sudo pacman -S docker docker-compose
sudo usermod -aG docker <username>
sudo systemctl enable docker