Installing DSpace 1.4 on Ubuntu 6.06 LTS
Reference documentation: http://www.dspace.org/index.php?option=com_content&task=view&id=152#checker
The Installation on Ubuntu 7.04 is very similar to this procedure.
- Add all repositories (free, non-free, universe) (*System -> Administration -> Synaptic Package Manager -> Settings -> Repositories -> Add -> * *) and reload.
tomcat5package and all associated dependencies
sun-java5-jdkpackage and all associated dependencies
postgresql-8.1package and all associated dependencies
libpg-javapackage for the Postgres JDBC driver
ant-optionalpackage for regular expression support in build.xml
- Make Ubuntu use the Sun JDK:
- Create the Unix 'dspace' user, update the passwd, create the directory in which you will install dspace, and ensure that the Unix 'dspace' user has write privileges on that directory:
- Create the PostgreSQL 'dspace' user and the 'dspace' database. The key here is to issue each command using
sudoas the Unix 'postgres' user:
- Now perform the following tasks as the
- Download DSpace source (stable) from http://sourceforge.net/projects/dspace in any directory and unpack it. The new DSpace directory is referred to as [dspace-source].
- Copy the JDBC driver into the
[dspace-source]/config/dspace.cfg– check to see if email configuration is required for Ubuntu, currently set to local-only
- cd into the [dspace-source] directory
- Build the DSpace binaries:
ant clean), 2. remove the dspace tables from the database (execute
dropdb -U dspace dspace). Of course the reason for the failing must be cured too.
Remark: If the build fails two things are neccessary to do before a new attempt: 1. remove the remainings of the faild build (execute
- As root, copy the newly built WAR files into the tomcat webapps directory; then ensure they are owned by the dspace user:
- Create the initial DSpace administrator:
- Append the following lines to
/etc/default/tomcat5to set the preferences necessary for dspace:
- Change ownership of the directories to the dspace user:
- Modify the Tomcat properties in
/etc/tomcat5/server.xmlto use UTF-8 encoding. You can also change the port from the non-standard
8080to match the examples in DSpace documentation:
- Start Tomcat:
- Open the new URL in your Web browser: http://hostname:8180/dspace (adjust for your hostname and port number, accordingly)