Skip to content

Instantly share code, notes, and snippets.

@aahnik
Created June 18, 2021 04:02
Show Gist options
  • Save aahnik/afbfe24e9909628f563d0d882daddc39 to your computer and use it in GitHub Desktop.
Save aahnik/afbfe24e9909628f563d0d882daddc39 to your computer and use it in GitHub Desktop.
My script to setup Digital Ocean Ubuntu Droplet for deploying python apps
apt-get update && apt-get upgrade -y
apt install wget curl git zsh -y
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
apt install python3.9 python3.9-venv python3-pip -y
python3.9 -m pip install --upgrade pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2
pip install pipx
pipx ensurepath
pipx install poetry
pipx ensurepath
git config --global credential.helper store # store as plaintext
poetry config virtualenvs.in-project true
# reboot
# chsh -s $(which zsh) # set zsh to default shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment