0% found this document useful (0 votes)
219 views

Installing Dspace 5.x in Ubuntu 14.04

This document provides step-by-step instructions for installing Dspace 5.x on an Ubuntu 14.04 system. It describes downloading and configuring required packages like Java, PostgreSQL, and Tomcat, creating database and system users, extracting and building the Dspace source code, and configuring Tomcat contexts. The process is completed by running the Dspace installer, fixing file permissions, and creating an initial administrator account to access the XMLUI or JSPUI interfaces. Contact details are provided for assistance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views

Installing Dspace 5.x in Ubuntu 14.04

This document provides step-by-step instructions for installing Dspace 5.x on an Ubuntu 14.04 system. It describes downloading and configuring required packages like Java, PostgreSQL, and Tomcat, creating database and system users, extracting and building the Dspace source code, and configuring Tomcat contexts. The process is completed by running the Dspace installer, fixing file permissions, and creating an initial administrator account to access the XMLUI or JSPUI interfaces. Contact details are provided for assistance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Installing Dspace 5.x in Ubuntu 14.

04

Open a terminal [ Ctrl+Alt+T ]

sudo apt-get update

sudo apt-get install openjdk-7-jdk postgresql tomcat7 ant maven

Create the database user

sudo su postgres
createuser -U postgres -d -A -P dspace

Enter password for new role: [Enter password as dspace]


Shall the new role be allowed to create more new roles? (y/n) n
[Enter n and press enter button]

Type exit

Allow the database user (dspace) to connect to the database


[If the following command not open, check the postgresql version number and apply in the
command]

sudo gedit /etc/postgresql/9.3/main/pg_hba.conf

Add this line to the configuration file at the end:

local all dspace md5

save and close the file

Restart PostgreSQL :

sudo /etc/init.d/postgresql restart

Create Dspace user

sudo useradd -m dspace

sudo passwd dspace [enter password as dspace]

sudo mkdir /dspace

sudo chown dspace /dspace

Create the PostgreSQL 'dspace' database

sudo -u dspace createdb -U dspace -E UNICODE dspace

Configure Tomcat
[If the following command not open, check the tomcat version number and apply in the command]

sudo gedit /etc/tomcat7/server.xml


Insert the following chunk of text just above the closing </Host>

<!-- 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="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

save and close the file.


Create Dspace directory

sudo mkdir /build


sudo chmod -R 777 /build
cd /build

Download Dsapce to /build directory


Copy paste following line in the terminal,

wget https://github.com/DSpace/DSpace/releases/download/dspace-5.5/dspace-5.5-src-release.tar.gz

Extracting Dspace package

tar -zxf dspace-5.5-src-release.tar.gz

cd /build/dspace-5.5-src-release

mvn -U package

Enter into Dspace package folder to download packages.

cd dspace/target/dspace-installer

sudo ant fresh_install

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat7:tomcat7 /dspace -R

Restart Tomcat

sudo /etc/init.d/tomcat7 restart

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@localhost).
Enter First name and surename (e.g. dspace)
Enter a password.

Open Dspace in your browser


You can load either one Dspace interface in a browser.
http://localhost:8080/xmlui
http://localhost:8080/jspui

For any queries,

Dr. Santhosh Kumar G


[email protected]

Dr. Surendran Cherukodan


[email protected]

You might also like