Monday, November 17, 2014

Installing DSpace 4.2 on Ubuntu 12.01 or 14.04 LTS

Installation of Prerequisites

Open terminal prompt (command prompt window)  


sudo apt-get install openjdk-7-jdk

sudo apt-get install tasksel
sudo tasksel

Select the following packagespe

[*] LAMP server

[*] Tomcat Java server
(do not * postgresql database)

use press (space-bar key) for select the options
Press [OK] button for install selected the application 

Install the Compile / Build tools
sudo apt-get install ant maven

PostgreSql 9.3- Graphical Installer on Ubuntu 12.04/14.x (64bit system)

- for 64bit system type in command 

- for 32bit system type in command 

  • enter cd /home/user/
Creating Database [dspace]
  • go to program list {dash home} search pgadmin and click.
    the following dialog window will appeared on screen

Create login role as a {dspace} password a {dspace}, create database {dspace} (see the screen above)

Restart postgres service
/etc/init.d/postgresql-9.3 restart

sudo mkdir /dspace
sudo chown dspace /dspace

Downlaod DSpace 4.2 release

sudo mkdir /build
sudo chmod -R 777 /build
cd /build
Downlaod latest version of DSpace from the repository
sudo cp -r /home/usr/Downloads/dspace-4.2-src-release.tar.gz /build/

cd /build
tar -xvzf dspace-4.2-src-release.tar.gz

cd /build/dspace-4.2-src-release
mvn -U packag OR mvn install

Configure Tomcat to know about the DSpace webapps.
[If the following command not open, check the tomcat version number and apply in the command]

sudo gedit /etc/tomcat6/server.xml
(if gedit is not installed in your system type apt-get install gedit)

------Add bellow lines at the end of & before </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 and close the file )

sudo chown tomcat6:tomcat6 /dspace -R

Restart Tomcat6 (my system has tomcat 6)

/etc/init.d/tomcat6 restart

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

/dspace/bin/dspace create-administrator


Your's Truly,


Post a Comment

Dspace Demo