Created
September 2, 2018 22:10
-
-
Save kudos/d01e944cd87062519f738e801bbf2116 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 | |
USER=$(sudo who | awk '{print $1}') | |
echo "" > /etc/motd | |
apt update | |
apt upgrade -y | |
apt install -y git htop build-essential direnv | |
if [ ! -f /usr/bin/zsh ]; then | |
apt install -y zsh | |
chsh -s /usr/bin/zsh $USER | |
fi | |
if [ ! -f /usr/bin/code ]; then | |
apt install -y libxss1 gvfs-bin | |
curl -L https://go.microsoft.com/fwlink/\?LinkID\=760868 > /tmp/vscode.deb | |
dpkg -i /tmp/vscode.deb | |
apt install -f -y | |
update-alternatives --set editor /usr/bin/code | |
fi | |
if [ ! -f /usr/bin/docker ]; then | |
apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
apt update | |
apt install -y docker-ce | |
/usr/sbin/groupadd docker | |
/usr/sbin/usermod -aG docker $USER | |
fi | |
if [ ! -f /usr/bin/node ]; then | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
apt install -y nodejs | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
apt update && apt install -y yarn | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment