Ubuntu 14.04 - Fresh Install Instructions

With the latest LTS release of Ubuntu many people, including myself, will take this time to do a fresh install of the OS on their development machines.  Here are a few tips for getting up and running after your OS is installed.  This guide will be for Python and Django development using Ubuntu 64-bit, alter the commands to work with your flavor of Ubuntu.

Git

  1. sudo apt-get install git-core

JDK

  1. Download the latest version of JDK from Oracle.
  2. cd /usr/local
  3. sudo tar xvzf ~/PATH/TO/DOWNLAD/xvzf jdk-8u5-linux-x64.tar.gz
  4. sudo nano /etc/profile
  5. At the bottom of this file paste the following lines:
JAVA_HOME=/usr/local/jdk1.8.0_05
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
In the terminal type java to make sure it is working.

PyCharm

If you want to use settings from your previous install of PyCharm click File->Export Settings and back up this file to be used on your new installation.
  1. Download the latest version from PyCharm.
  2. cd ~/PATH/TO/DOWNLOAD/
  3. tar xvzf pycharm-professional-3.1.2.tar.gz
  4. cd pycharm-3.1.2/bin/
  5. ./pycharm.sh
  6. If PyCharm asks if you want to use old settings say that you don't right now, we will do this after it is installed.
  7. Follow PyCharm instructions to finish installation
  8. Now you can import the settings by clicking File->Import Settings and locating the files.

Pip

  1. sudo apt-get install python-pip

VirtualEnv

  1. sudo pip install virtualenv
  2. Create your virtualenvs.

MySQL

  1. sudo apt-get install python-dev
  2. sudo apt-get install mysql-server
  3. sudo apt-get install libmysqlclient-dev
  4. In your related virtualenv run pip install MySQL-python

Django

  1. In your related virtualenv run pip install Django
At this point you should be ready to install all of the other packages you need.  If I've missed anything critical for getting an Ubuntu installation at least up to a working state let me know below in the comments.