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
sudo apt-get install git-core
JDK
- Download the latest version of JDK from Oracle.
cd /usr/local
sudo tar xvzf ~/PATH/TO/DOWNLAD/xvzf jdk-8u5-linux-x64.tar.gz
sudo nano /etc/profile
- 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.
- Download the latest version from PyCharm.
cd ~/PATH/TO/DOWNLOAD/
tar xvzf pycharm-professional-3.1.2.tar.gz
cd pycharm-3.1.2/bin/
./pycharm.sh
- 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.
- Follow PyCharm instructions to finish installation
- Now you can import the settings by clicking
File->Import Settings
and locating the files.
Pip
sudo apt-get install python-pip
VirtualEnv
sudo pip install virtualenv
- Create your virtualenvs.
MySQL
sudo apt-get install python-dev
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
- In your related virtualenv run
pip install MySQL-python
Django
- 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.