setup gerrit on ubuntu code example
Example 1: ubuntu install gerrit
wget https://gerrit.googlecode.com/files/gerrit-2.7-rc1.war
Example 2: ubuntu install gerrit
export GERRIT_SITE=~/gerrit_testsite
java -jar gerrit*.war init --batch --dev -d $GERRIT_SITE