This is a simple bash script that runs a list of installation commands, to simplify setup of a new development VM. It is intended to be used on a fresh Ubuntu installation in a zsh shell, perfect for Nitrous containers!
From your development machine, first download setup.sh
, and edit the script variables in that file. (You don't have to download the whole repo; the setup script will pull the cheat sheet and sourcefile using curl.)
curl -L https://raw.githubusercontent.com/brittanywelsh/django-dev-env/master/setup.sh > setup.sh
# [NOTE - at this point, edit the setup.sh variables to suit your needs!]
sudo chmod u+x setup.sh
./setup.sh
OR, if you're me, try this (but if you're not me, remember to re-configure your git settings back to your own name and email!):
curl -L https://raw.githubusercontent.com/brittanywelsh/django-dev-env/master/setup.sh | zsh
Here's the full summary of what the setup.sh
script runs:
- Update/upgrade Ubuntu packages (via apt-get)
- Configure git
- Install PostgreSQL and python-psycopg2 (via apt-get)
- Install python-setuptools (via apt-get)
- Install pip (via easy-install)
- Install pyenv (via pyenv-installer)
- Install Python via pyenv
- Install virtualenv and virtualenvwrapper (via pip)
- Install Ruby (via apt-get)
- Install the Heroku toolbelt
- Install a "cheat sheet" (see below for usage)
- Add sources to ~/.zshrc file
All of the information printed out to the screen during the installation process is also nicely logged for you in a file located in your home directory, ~/.my_dev-env_setup.txt
, so later you can double-check what exactly the script did.
NOTE: pyenv, virtualenv, virtualenvwrapper, and cookiecutter are all installed globally, i.e. not contained within any kind of virtual environment. Make sure you understand the implications of this in your own environment!
The setup script will create a new folder in your home directory called ~/.cheat/
. Inside this folder is a shell script, named "cheat", which you can invoke at any time by typing cheat
into your shell. It contains some useful syntax/reminders. Feel free to edit your cheat file to add your own commands!
NOTE: to use cheat
for the first time after running the installation script, you will have to open a new shell so that the path variable is updated appropriately.