Versions Compared

Key

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

...

  1. Become the right postgres user for your system, usually called "postgres":

     

    su - postgres

     

    (unless you execute this su from user root, this will ask for a password)
  2. createuser -d -A -P dspace

     

    Make sure to remember the password you assign to the dspace user, you'll need this in the next step, and in the dspace config later.
  3. createdb -U dspace -E UNICODE dspace

...

You'll need to do some work on your postgres Postgres security settings. See PostgresqlConfiguration Postgresql Configuration. You may also be interested in doing some PostgresPerformanceTuning Postgres Performance Tuning, since the default install has a conservative configuration.

...

The Java SDK can be installed as binary either in plain binary format or as a RPM for some linux systems. In any case, the Java SDK is all contained within one single directory. In the course example, this directory was /usr/java/j2sdk...

Set

 

JAVA_HOME

 

with:

 

export JAVA_HOME=/usr/java/j2sdk...

 

making sure that you use the directory the software is contained in on your system.

On a typical Solaris9 system, Java will already be installed. In this case,

 

export JAVA_HOME=/usr/j2se

 

...

  1. Unzip/untar the dspace source package in a temporary directory with tar zxvf dspace...tar.gz
  2. cd to the dspace source directory you just created
  3. Extract the javamail, javabeans activation framework and servlet jars to a temporary directory.
  4. Copy all the .jar files from these into lib
  5. Edit dspace configuation file config/dspace.cfg:
     
    dspace.url = https://localhost:8443

     

    (8443 is the port the Tomcat SSL uses by default. This can be changed in the Tomcat config if you want)
    1. dspace.hostname = localhost

       

      For a real dspace system, you want to change these to use the publicly visible hostname of the server running DSpace.
    2. Add the correct database user/password information.

  6. Copy the postgres jdbc driver into lib. On Solaris, with a stock Postgres 7.3 install, this would be, for example:

     

    cp /usr/local/pgsql/share/java/postgresql.jar lib/

     

    If you built postgresql from source (with the --with-java option) Then postgresql.jar would have been built at that time.

  7. In the dspace source dir, do

     

    ant; ant fresh_install

...