0% found this document useful (0 votes)
25 views25 pages

Dspace 1.5.2 Installation On Fedora 12

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1/ 25

Training Programme on DSpace for Digital Libraries

DSpace 1.5.2 Installation On Fedora 12

Hardik J. Mishra
Software Engineer
Webinito Networks - Ahmedabad
Agenda
 Installing pre-requisite softwares
 Setup Environment Variables
 Verify Pre-requisite installation
 Database Creation & Configure Files
 Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing pre-requisite softwares
 Following softwares are to be installed
 Apache Ant 1.6 Or Later
 Apache Maven 2.0
 Apache Tomcat Webserver
 DSpace 1.5.2
 JDK 1.6
 PostgreSQL SQL 8.x

Copyright © 2010 Webinito Networks


Setup Environment Variables
 Assuming all pre-requisite software are installed at
/home/username
 Following variables are to be set prior installation:

export ANT_HOME=${HOME}/apache-ant

export PATH=${PATH}:${ANT_HOME}/bin

export JAVA_HOME=/usr/java/jdk1.6.0_18

export PATH=${PATH}:${JAVA_HOME}/bin

export JRE_HOME=${JAVA_HOME}/jre

Copyright © 2010 Webinito Networks


Setup Environment Variables
export M2=${HOME}/apache-maven/bin

export M2_HOME=${HOME}/apache-maven

export PATH=${PATH}:${M2}

export PATH=${PATH}:${HOME}/apache-tomcat/bin

export CLASSPATH=${JAVA_HOME}/lib:${M2_HOME}/lib:
${ANT_HOME}/lib:${HOME}/apache-tomcat/lib

Copyright © 2010 Webinito Networks


Verifying Pre-requisite Installation

Copyright © 2010 Webinito Networks


Verifying Pre-requisite Installation

Copyright © 2010 Webinito Networks


Database Creation
 Open PgAdmin.
 Create a new login role as Super User named
‘dspace’ with ‘dspace’ as password.
 Create a new database named ‘dspace’ with ‘dspace’
as owner and Encoding as ‘UTF-8’.

Copyright © 2010 Webinito Networks


Database Creation

Copyright © 2010 Webinito Networks


Database Creation

Copyright © 2010 Webinito Networks


Configure Files
 Locate dspace-1.5.2-src-release/
dspace/config/dspace.cfg
 Change dspace.dir = /home/webinito/dspace
 Check installation of each installed pre-requisite
software.

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Locate dspace-1.5.2-src-release/dspace
 Type mvn package and press enter.
 It will start building dspace.
 At the end, it will show BUILD SUCCESSFUL.

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Now, locate dspace-1.5.2-src-release/dspace/
target/dspace-1.5.2-build.dir
 Type ant fresh_install
 It will generate all necessary files and structure for
dspace.
 At the end it will show BUILD SUCCESSFUL message.

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Now, locate dspace/bin directory
 Then type chmod 777 *.*
 This will give file executable permission.
 Create a dspace administrator using following
command.

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Now, locate dspace/bin directory
 Then type chmod 777 *.*
 This will give file executable permission.

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Create a dspace administrator using following command.
 Type ./create-administrator on terminal
 It will ask some input like shown in below example:
Creating an initial administrator account
E-mail address: hardik@webinito.com
First name: Hardik
Last name: Mishra
WARNING: Password will appear on-screen.
Password: hardik
Again to confirm: hardik
Is the above data correct? (y or n): y
Administrator account created

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 Copy dspace/webapps/jspui and
dspace/webapps/xmlui directories to
home/Maximus/apache-tomcat/webapps/
Or
 Open home/Maximus/apache-tomcat/conf/server.xml
 Locate
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
………………………………………………………….
</Host>
 Add Context path entry as per below

Copyright © 2010 Webinito Networks


Installing DSpace 1.5.2
 <Context path=“jspui"
docBase=“home/Maximus/dspace/webapps/jspui“ debug="0"
reloadable="true" />
 <Context path="/xmlui"
docBase=“home/Maximus/dspace/webapps/xmlui“ debug="0"
reloadable="true" />
 Start tomcat server by sh startup.sh from /apache-
tomcat/bin
 Open web browser type http://localhost:8080/jspui
to open and access dspace repository.

Copyright © 2010 Webinito Networks


Thank You!!!

Copyright © 2010 Webinito Networks

You might also like