These instructions are designed for those that are completely new to Greenstone (as I was) and would to try it out. This will guide you from blank to having a library that will be accessible through your Apache HTTP server.
I read elsewhere that the sun-java6 package version of java was not going to work. I think this was only for compilation on Ubuntu - I have tested it with the package version and it worked fine.
apt-get install sun-java6-jdk apache2
First Download Greenstone from: http://prdownloads.sourceforge.net/greenstone/Greenstone-2.82-linux – Select For Linux under 'Latest Distribution'
Make the file executable and start the installer:
chmod a+x Greenstone-2.82-linux
Most of what's in the installer is pretty self explanatory and one can happily go clicking next through the installer...
You will need to edit your apache configuration to be able to access the new digital library. I made a virtual host called greenstone by adding a line to /etc/hosts
Then make a new virtual host in apache by creating a file /etc/apache2/sites-available/greenstone for example:
#Greenstone 2 script:
ScriptAlias /greenstone/cgi-bin "/usr/local/Greenstone2b/cgi-bin"
Alias /greenstone "/usr/local/Greenstone2b/"
Options Indexes MultiViews FollowSymLinks
Allow from all
a2ensite greenstone && /etc/init.d/apache2 restart
Go with your web browser to: http://greenstone/greenstone/cgi-bin/library.cgi
Now it's time to try and add a content – go to this page with your browser. It should provide some info about the java version installed and at the bottom Installation OK - http://greenstone/greenstone/cgi-bin/gliserver.pl?cmd=check-installation
A message will come after a little while like Could not connect to local library server after 20 seconds – click no . Then it will prompt for a URL. Enter http://greenstone/greenstone/cgi-bin/gliserver.pl . I found that if you use the library.cgi address as it suggests then the collections do not build.
10. You can now make your collection by simply adding files, going through the tabs and then going to build collection. When you refresh your browser on the library page, your new collection should appear.