Friday, October 9, 2015

DSpace 5.2 on Ubuntu 15.04


Open terminal   using Ctrl+Alt (like a command prompt in window)

(I assume that your system is 64bit and not under the proxy server)

 Login as a > 

enter  sudo su 

sudo apt-get install openjdk-7-jdk

Sudo apt-get install tasksel


chmod +x

Install PostgreSQL database in Ubuntu system

Give the password (postgres) 

Go to program menu and open PgAdmin (search pgadmin from first launcher menu from desktop screen) 

               give the password – postgres to connect the database

create login role – dspace with password – dspace (in definition tab)

Create a database – dspace with owner – dspace

(close the PgAdmin screen)

open terminal 

sudo apt-get install tasksel

sudo tasksel 

Select the following packages.

Use space bar for select applications from list.

[*] LAMP server [*] Tomcat Java server 

use tab key to select OK button and enter. Packages will start to install.
On the way you have to give MySQL root password. MySQL not necessary for Dspace installation

Sudo apt-get install ant maven

Edit postgresql config file

sudo gedit /opt/PostgreSQL/9.4/data/pg_hba.conf

(save and close the file)

sudo mkdir /dspace

Configure TOMCAT

sudo gedit /etc/tomcat7/server.xml 

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

<!-- Define a new context path for all DSpace web apps -->

<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(Save and close)

(Now Install Dspace 5.2 Package)

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


unzip -xvjf

Open computer manager go to build directory and 


enter cd /build/dspace-5.2-src-release

mvn -U package

(It will take a while to download necessary repository files from maven)

Finally you will receive BUILD SUCCESS massage

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

sudo ant fresh_install

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat7:tomcat7 /dspace -R

sudo chmod -R 777 /opt/PostgreSQL/

Now create your Dspace Administrator

/dspace/bin/dspace create-administrator

(enter the required information)

Restart Tomcat Server:

sudo service tomcat7 restart

test your Dspace live using follwing Urls

Now your DSpace 5.0 is Up and Running 

If you have any query  regarding Installation please feel free to connect me 
to OR Mob. 9428415401

Post a Comment

OR2018 DSpace 7 Update

DSpace 7 Updates from OR2018 DD At  OR2018  (June 2018), several talks/workshops gave an overview of the latest DSpace 7 work and th...