Last active
January 28, 2019 07:25
-
-
Save cheng10/91775ff77e44f2701fe0d22c1ff3b767 to your computer and use it in GitHub Desktop.
setup_ubuntu_dev.sh
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/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 [email protected] | |
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