Sunday, February 8, 2015

How to Install DSpace 5.0 on Ubuntu 14.10

Installing DSpace 5.0 on UBUNTU 14.10

Open Terminal and execute following commands. Text in italics are commands to be executed.

sudo apt-get apdate

sudo apt-get install openjdk-7-jdk
sudo apt-get install tomcat8

sudo apt-get install ant maven

Database [PostgreSQL 9.3] Installation

cd /home/user
Go to program list and find [pgpadminIII]. the dilog box will appear on screen.
Create login role as a {dspace} password a {dspace}, create database {dspace}

Restart postgres service

/etc/init.d/postgresql-9.3 restart

Dspace Installation

sudo mkdir /dspace
sudo chown dspace /dspace

Downlaod DSpace 5.0 release

sudo mkdir /build
sudo chmod -R 777 /build
cd /build

Extract Dspace 5.0 package

tar -zxf dspace-4.1-src-release.tar.gz
cd /build/dspace-4.1-src-release
mvn -U package

cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install   

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat8:tomcat8 /dspace -R

Configure Tomcat

sudo gedit /etc/tomcat8/server.xml

(past this below text befor </host> section)

<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(Save the file and close)

Restart Tomcat

sudo service tomcat8 restart

Install Dspace

cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install

Make an initial administrator account (an e-person) in DSpace:

sudo /dspace/bin/dspace create-administrator

It will ask to enter email address for user login. Enter an email address (e.g. dspace@domain).
Enter First name and surename (e.g. dspace)
Enter a password.***

Now open Dspace in your browser

You can load either one Dspace interface in a browser.


No comments:

Installing SubjectPlus 4.2 on Ubuntu 16.04 LTS

SubjetcPlus is a free and open source tool to help you manage several interrelated parts of your library data CREATING USERS AND DATAB...