Last active
May 5, 2020 16:37
-
-
Save nakanod/deaf3b381af3a422e0510a305d43751b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# | |
# curl https://gist.githubusercontent.com/nakanod/deaf3b381af3a422e0510a305d43751b/raw/wsl_setup.sh | bash | |
sudo apt -y update | |
sudo apt -y install debconf-utils | |
echo 'libssl1.1 libraries/restart-without-asking boolean true' | sudo debconf-set-selections | |
sudo apt -y upgrade | |
sudo apt -y install python3-pip | |
pip3 install --user ansible | |
pip3 install --user awscli | |
sudo apt -y install unzip python3-venv whois ntpdate gimp | |
mkdir -p ${HOME}/.ssh | |
chmod 700 ${HOME}/.ssh | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/ssh/config ${HOME}/.ssh/ | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/ssh/id_{rsa,ecdsa,ed25519} ${HOME}/.ssh/ | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/ssh/id_{rsa,ecdsa,ed25519}.pub ${HOME}/.ssh/ | |
chmod 644 ${HOME}/.ssh/config | |
chmod 600 ${HOME}/.ssh/id_{rsa,ecdsa,ed25519} | |
chmod 644 ${HOME}/.ssh/id_{rsa,ecdsa,ed25519}.pub | |
mkdir -p ${HOME}/.aws | |
chmod 755 ${HOME}/.aws | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/aws/{config,credentials} ${HOME}/.aws/ | |
chmod 600 ${HOME}/.aws/{config,credentials} | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/gitconfig ${HOME}/.gitconfig | |
chmod 644 ${HOME}/.gitconfig | |
cp -p /mnt/c/Users/${USER}/Documents/linux_config/gcp_service_account.json ${HOME}/.gcp_service_account.json | |
chmod 600 ${HOME}/.gcp_service_account.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment