Skip to content

Instantly share code, notes, and snippets.

@phroa
Last active August 29, 2015 14:17
Show Gist options
  • Save phroa/9b0dfdeac9710540d04f to your computer and use it in GitHub Desktop.
Save phroa/9b0dfdeac9710540d04f to your computer and use it in GitHub Desktop.
set -e
echo "dev.phroa.net" | sudo tee /etc/hostname > /dev/null
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get install -y build-essential \
python \
git \
zsh \
libpam-google-authenticator
google-authenticator
# y
# y
echo "auth required pam_google_authenticator.so" | sudo tee -a /etc/pam.d/sshd > /dev/null
sudo sed -i "s/ChallengeResponseAuthentication no/ChallengeResponseAuthentication yes/" /etc/ssh/sshd_config
curl -fSsl https://gist.githubusercontent.com/Phroa/743bf8f50594831ff82d/raw/2a2b942cea4ec14750b29669ddc05d8b81aa6171/gistfile1.sh > ~/.zshrc
chsh -s "$(which zsh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment