Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To get these installed on a pristine Ubuntu 12.04 system:

 

Code Block
apt-get install subversion postgresql libpgjava tomcat7 openjdk-7-jdk ant

Download source code, in this case we're fetching version 2.1.1 and stick that under /opt:

Code Block
cd /opt
svn co http://anonsvn.internet2.edu/svn/i2mi/tags/GROUPER_2_1_1/

 

Make JDK7 the default one:

...

Code Block
su - postgres
createuser -D -I -R -S -P grouper_user
createdb -O grouper_user -T template0 grouper
exit

Because we run our databases on IPv6 only, we have to configure Postgres by editing /etc/postgresql/9.1/main/postgresql.conf:

Code Block
listen_addresses = '::' 

Copy the default hibernate config file:

Code Block
cd /usropt/src/GROUPER_2_1_1/grouper/conf
cp grouper.hibernate.example.properties grouper.hibernate.properties

...

Code Block
languagebash
# Example:
hibernate.connection.url              = jdbc:postgresql://ip6-localhostip6localhost:5432/grouper
hibernate.connection.username         = grouper_user 
hibernate.connection.password         = hackme

...

Code Block
ln -s /usr/share/java/postgresql-jdbc4.jar /usr/srcopt/GROUPER_2_1_1/grouper/lib/custom/

 

Download the latest/greatest sources and compileCompile sources:

Code Block
cd /usr/src
svn co http://anonsvn.internet2.edu/svn/i2mi/tags/opt/GROUPER_2_1_1
cd GROUPER_2_1_1/grouper
ant dist

Run the tests. This will blitz your database, so make sure it doesn't contain precious data:

Code Block
cd /usr/srcopt/GROUPER_2_1_1/grouper/
bin/gsh.sh -test -all

...