Note: Everything here is just suggestions, and there might also be the occational spelling error.
mkdir ~/opt
cd ~/opt
wget http://apache.uib.no//maven/binaries/apache-maven-3.0.3-bin.tar.gz
wget ftp://ftp.uninett.no/pub/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz&mirror_id=303
tar zxf eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
tar zxf apache-maven-3.0.3-bin.tar.gz
mkdir bin
cd bin
ln -s ../apache-maven-3.0.3/bin/mvn
ln -s ../eclipse/eclipse
In your environment (e.g. .bashrc):
export PATH=/hom/<user>/opt/bin:$PATH
Personally, I would add the m2eclipse plugin to eclipse. One way to get it is to use this update site in Help->Install New Software: http://download.eclipse.org/technology/m2e/releases. Then, to import the code, use Existing Maven Project.
Database:
A lot of groups will have use for the demo database, available at http://dhis2.org/downloads. It is a postgres dump, so you need to get postgres up and running:
wget ftp://ftp.postgresql.org/pub/source/v9.1.1/postgresql-9.1.1.tar.gz
tar zxf postgresql-9.1.1.tar.gz
cd postgresql-9.1.1
./configure --prefix=/hom/<user>/pgsql
gmake
gmake install
Add postgres to your earlier path..
export PATH=/hom/<user>/pgsql/bin:/hom/<user>/opt/bin:$PATH
initdb -D pgsql/data
pg_ctl -D pgsql/data -l pgsql/pg.log start
psql postgres -c "alter role <username> with password 'password';"
createuser -dEPRS dhis # creating the user to use with dhis
createdb -Odhis dhis # creating the db to use..
# Edit pgsql/data/pg_hba.conf, change trust to md5 for the three default authorization lines
pg_ctl -D pgsql/data -l pgsql/pg.log restart
createuser -dEPRS dhis
createdb dhis
#Download demo db from dhis.org/downloads, and unzip it, then do:
psql -Udhis dhis < dhis-demo.sql
You should now be ready to go.