Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Linux setup script
#!/bin/bash
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo bash -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
wget -q https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get --add-architecture i386
sudo apt-get -y update
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo apt-get -y dist-upgrade
sudo apt-get -y install \
apt-transport-https \
apt-utils \
build-essential \
code \
dos2unix \
dotnet-sdk-3.1 \
firefox-esr \
libgl1:i386 \
libgl1-mesa-glx:i386 \
nano \
nodejs \
pciutils \
postgresql-12 \
screen \
yarn \
curl https://get.docker.com | sudo bash
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker root steve
echo "alias start=\"screen -d -m\"" > ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.