I would like to stick as much as possible to Ubuntu provided packages, preferably the latest versions of everything. Confirmed on the list that Grouper can run fine with OpenJDK, so no need for the
Sun Oracle Java stuff any more . So(which was tedious to install and update since Oracle ended their Operating System Distributor License for Java in August 2011). So, at the moment it looks like we're going to use:
- Tomcat 6.0.35 (v7 does not work with Grouper - yet)
- PostgreSQL 9.1.4
- Ant 1.8.2
- OpenJDK 7u3
To get these installed page described how to get all various components installed and running on a pristine Ubuntu 12.04 system:.
This is the core, and consists of a database and the
grouper/ directory in the repository - which is downloaded later.
apt-get install --no-install-recommends subversion postgresql libpgjava tomcat6 openjdk-7-jdk ant
apt-get purge openjdk-6-jre-headless
Download Now download the source code, in this case we're fetching the latest version of the 2.1 .1 branch, and stick that under
cd /opt svn co http://anonsvn.internet2.edu/svn/i2mi/tags/GROUPER_2_1_1BRANCH/
Create the PostgreSQL database and credentials:
cd /opt/GROUPER_2_1_1BRANCH/grouper/conf cp grouper.hibernate.example.properties grouper.hibernate.properties
# Example: hibernate.connection.url = jdbc:postgresql://ip6localhostip6-localhost:5432/grouper hibernate.connection.username = grouper_user hibernate.connection.password = hackme
ln -s /usr/share/java/postgresql-jdbc4.jar /opt/GROUPER_2_1_1BRANCH/grouper/lib/custom/
cd /opt/GROUPER_2_1_1BRANCH/grouper ant dist
Create the database structure:
No errors should be reported in the end.
Configure the subject source(s)
At this stage the database structure is in place to manage groups, but obviously you need something to group .
Often you'll want to group users together. In Grouper-speak users are called subjects.
Grouper needs to know about the subjects before it can group them. This is done by configuring one or more subject sources.
There are several options: let Grouper look stuff up in a directory, an SQL database, etc, depending on the local situation.
users subjects are stored in a PostgreSQL database on a remote server. I created a dedicated view in the database, just for Grouper, which is handy because you can add whatever you like, without affecting the rest of the database.
This sits is the web interface that comes as another java app, and sits in
/grouper-ui of the repository.
First change the version statement to 1.7 to make sure it works with JDK1.7:
cd /opt/GROUPER_2_1_1BRANCH/grouper-ui sed -i -e 's/"1\.5"/"1.7"/g' build.xml
<?xml version="1.0" encoding="UTF-8"?> <Context path="/grouper" docBase="/opt/GROUPER_2_1_1BRANCH/grouper-ui/dist/grouper" reloadable="false" />
chown tomcat6:tomcat6 /opt/GROUPER_2_1_1BRANCH/grouper/logs