This is the group management app that we intent to use for our federation plans.
I want to We will run this on a an Ubuntu VM. Since Lucid is just around the corner and the beta seems to work OK, I will try to get grouper to work on Lucid.
The old Ubuntu Hardy does not have tomcat6 either.12.04 VM.
I would like to stick as much as possible to Ubuntu provided packages (no manual source compilation), yet also try to stick with the stuff that the I2 guys have experience with (Tomcat, Sun Java, MySQL).
The Sun apps used to be in multiverse in Hardy, but they seem to have moved to a more fenced-off repository called 'partner'. See /etc/apt/sources.list
on how to enable that. If you try to install sun-java6-jdk
without it you'll get this warning:
No Format |
---|
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate |
After enabling the partner repository you can install the needed packages (this will also pull down all the depending packages). The resulting syste
apt-get install sun-java6-jdk tomcat6 tomcat6-admin ant libmysql-java mysql-server
The grouper quickstart already hung because of not enough memory it seems, fixed by putting this in /etc/default/tomcat6
:
Code Block |
---|
JAVA_OPTS="-Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m"
|
...
, preferably the latest versions of everything. Confirmed on the list that Grouper can run fine with OpenJDK, so no need for the Oracle stuff any more. At the moment it looks like we're going to use:
- Tomcat 7.0.26
- PostgreSQL 9.1.4
- Ant 1.8.2
- OpenJDK 7u3
To get these installed on a pristine Ubuntu system:
Code Block |
---|
apt-get install subversion postgresql libpgjava tomcat7 openjdk-7-jdk ant |
Make Jdk7 the default one:
Code Block |
---|
update-java-alternatives --jre-headless -s java-1.7.0-openjdk-amd64 |
Create a database and credentials:
Code Block |
---|
su - postgres
createuser -D -I -R -S -P grouper_user
createdb -O grouper_user -T template0 grouper |
Copy the default hibernate config file and edit so that at least hibernate.connection.url
, hibernate.connection.username
and hibernate.connection.password
are set.
Note |
---|
The value should NOT be enclosed with quotes. |
Code Block |
---|
cd /usr/src/GROUPER_2_1_1/grouper/conf
cp grouper.hibernate.example.properties grouper.hibernate.properties |
Download the latest/greatest sources and compile:
Code Block |
---|
cd /usr/src
svn co http://anonsvn.internet2.edu/svn/i2mi/tags/GROUPER_2_1_1
cd GROUPER_2_1_1/grouper
ant dist |