Last active
October 20, 2022 12:04
-
-
Save ben-hampson/5f2abbcdf78e0f57003ad2696254b033 to your computer and use it in GitHub Desktop.
Ubuntu Setup
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
#/bin/bash | |
echo "Updating packages" | |
sudo apt -y update | |
sudo apt -y upgrade | |
# VS Code | |
sudo apt-get install wget gpg | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt install apt-transport-https | |
sudo apt update | |
sudo apt install code | |
# Docker & Docker Compose | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
rm get-docker.sh | |
echo "Docker Installed:" | |
docker version | |
echo "Docker Compose Installed:" | |
docker compose version | |
# Install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
# Install asdf | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2 | |
# Install Python | |
sudo apt-get install -y --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev | |
asdf plugin-add python | |
asdf install python latest | |
asdf install python 3.6.15 3.8.15 | |
asdf global python 3.8.15 | |
# Install Go | |
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz | |
curl -OL https://golang.org/dl/go1.16.7.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xvf go1.16.7.linux-amd64.tar.gz | |
echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile | |
source $HOME/.profile | |
go version | |
echo "Add the following to ~/.zshrc plugins:" | |
echo " asdf" | |
echo "\nStart a new zsh shell." | |
echo "Finished setup." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment