Skip to content

Prepare Development Environment in Ubuntu 12.04

Roman Ivanov edited this page Jul 15, 2013 · 34 revisions

Install GIT

  1. Install Git in Ubuntu: http://help.github.com/linux-set-up-git/, ssh connection setup is here.

  2. Change fonts in GUI: Run GUI by command "git gui", If you do not like ugly font apply following

sudo apt-get install tk8.5
sudo update-alternatives --config wish

and pick /usr/bin/wish8.5

Update your bash prompt to show git status:

screenshot

For bash(works fine for Ubuntu): https://github.com/magicmonty/bash-git-prompt

I do following update for /home/USER/.bash/gitprompt.sh :

PROMPT_START="$WHITE$Time12a $Yellow$PathShort$ResetColor"
PROMPT_END=" $ "

Install Java Sun/Oracle

1 Register non-Oracle reporsitory

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

2 Install Sun Java7 JDK:

sudo apt-get install oracle-java7-installer

3 Add to ~/.profile (execute the same, to define these variables in terminal)

export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export PATH=$PATH:$JAVA_HOME

make sure that ls -la /etc/alternatives/java point to your Sun 7 JDK "/usr/lib/jvm/java-7-oracle/jre/bin/java". If you have openJDK please expect problems with compilation in Eclispe for "artifact com.sun.tools 1.5.0 is missing"

Install Maven3.

It will be necessary for compilation

  1. Install
sudo apt-get install maven
  1. add to ~/.profile
export PATH=/usr/share/maven/bin:$PATH

Install Mercurial.

It will be necessary for downloading main Checkstyle project and preparing patch.

sudo apt-get install mercurial

Install CVS.

It will be necessary for downloading Checkstyle Eclipse plugin Checkstyle-cs project and preparing patch.

sudo apt-get install cvs

Download Eclipse EE.

  1. Unpack Eclipse and launch
  2. So if you do not like the new look of Eclipse, select Window -> Preferences -> General -> Appearance and select “Classic” as the theme. And restart afterwards. Afterwards Eclipse should very similar to what you are used to.
  3. Install eclipse-cs plugin from http://eclipse-cs.sourceforge.net/downloads.html it is necessary for our plugin compilation, this will help you testing, ... .
  4. Install EclEmma plugin for Eclipse to check that UTs are completely cover code.

Tools for convenient work

  1. "Open Terminal" for Nautilus file manager. You will be able to open terminal from any folder(see it in context menu) in file-manager.
sudo apt-get install nautilus-open-terminal
  1. File and Folder compare tool - Meld
sudo apt-get install meld
Clone this wiki locally