Prepare Development Environment in Ubuntu 12.04

Roman Ivanov edited this page Jul 28, 2015 · 34 revisions

Install GIT

  1. Install Git in Ubuntu:
sudo apt-get install git gitk
git config --global branch.autosetuprebase always

Follow instructions at github to setup your username and ... : http://help.github.com/linux-set-up-git/, ssh connection setup is here.

  1. Change fonts in git 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

  1. Update your bash prompt to show git status:

screenshot

For bash(works fine for Ubuntu): https://github.com/magicmonty/bash-git-prompt . Follow instructions in its README.md file.

After all instructions from README.md I recommend do following update for /home/%USER%/.bash/gitprompt.sh :

find this lines

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

and change them to be like this

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

Install Java Oracle

1 Register non-Oracle reporsitory

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

2 Install Oracle Java8 JDK:

Download it from Oracle web site - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html select either - jdk-8uXX-linux-x64.tar.gz (64bit) or jdk-8uXX-linux-i586.tar.gz (32bit) save it your Downloads folder (~\Downloads) unzip it: tar -xvf jdk-8u45-linux-x64.tar.gz verify unzup : ls ~/Downloads/jdk1.8.0_45

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

export JAVA_HOME=~/Downloads/jdk1.8.0_45
export PATH=$JAVA_HOME/bin:$PATH

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

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. from "Help -> Eclipse market place" install plugin "Maven Integration for Eclipse". Optional (required only for sevntu-checkstyle development):
  4. Install eclipse-cs plugin from http://eclipse-cs.sourceforge.net/downloads.html it is necessary for our plugin compilation, this will help you testing, ... .
  5. 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