Skip to content

Instantly share code, notes, and snippets.

@cheng10
Last active January 28, 2019 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheng10/91775ff77e44f2701fe0d22c1ff3b767 to your computer and use it in GitHub Desktop.
Save cheng10/91775ff77e44f2701fe0d22c1ff3b767 to your computer and use it in GitHub Desktop.
setup_ubuntu_dev.sh
#! /bin/sh
# basic package
sudo apt-get update
sudo apt install -y vim git htop curl wget zsh byobu mysql-server terminator
# setup git
git config --global user.name cheng10
git config --global user.email cheng10@ualberta.ca
git config --global core.editor vim
git config -l
# setup python
sudo apt-get -y upgrade
python3 --version
sudo apt-get install -y python3-pip python3-venv build-essential libssl-dev libffi-dev python-dev default-libmysqlclient-dev
sudo pip3 install virtualenvwrapper
# install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# dir
mkdir ~/Projects
mkdir ~/.venvs
# virtualenv wrapper
echo "
export WORKON_HOME=$HOME/.venvs
export PROJECT_HOME=$HOME/Projects
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
" >> ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment