Last active
August 29, 2015 14:17
-
-
Save phroa/9b0dfdeac9710540d04f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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