Beruflich Dokumente
Kultur Dokumente
Raghuraman K P
NCSI
1
DSPACE
Main Objective
z Captures Data in any Format
z Text, Audio, Video and Data
z Distributes over the web
z Indexes the work
z Preserves digital work for a longer term
2
DSPACE - Development
z Application is written in Java
z Built on top of free open source tools
z Apache web server
z Tomcat servlet engine
z PostgreSQL relational database system
z Tools run on any UNIX type OS
z Linux, HP/UX or Solaris
3
Pre - Requisites
Hardware configuration
4
Pre - Requisites
Software
z UNIX-like OS (Linux, HP/UX etc)
z Java 1.4 or later (standard SDK is fine, you don't
need J2EE) – Sun Java preferred
z Apache Ant 1.6.2 or later (Java make-like tool)
z PostgreSQL 7.3 or later - an open source relational
database, or Oracle 9 or higher.
z Java Servlet Container – Tomcat, Resin, Jetty,
JBoss etc.
(From the Dspace website)
5
Unix like OS
z Any flavor of UNIX like
z Linux, any flavor
z Redhat
z Suse
z Mandrake
z Debian
z Fedora etc.
z Solaris (Sun system)
z HP-UX (Hewlett Packard)
z AIX (IBM)
z Mac OS X
6
Java Compiler
z Sun Java (preferred)
z IBM Java
z GNU Java
NOTE
z Some Linux versions might have already been loaded with GNU
java.
z Make sure of the PATH variable points to Sun Java
7
Ant
War files - A Web application is a group of HTML pages, JSP pages, servlets,
resources and source file, which can be managed as a single unit. A Web
archive (WAR) file is a packaged Web application. WAR files can be used to
import a Web application into a Web server.
8
DBMS
z Collection
z Members - passwords
z E-groups
9
Servlet containers
z Tomcat (most popular with DSpace)
z Jetty
z Resin
z JBoss (more professional)
z J2EE
Servlets are server-side Java™ programs. These Java programs extend the
functionality of a Web server by generating dynamic content and responding
to Web client requests. When a browser sends a request to the server, the
server can send the request information to a servlet, so that the servlet can
construct the response that is sent back to the browser.
10
Workshop - Config
z Operating System – Fedora 8.0
z Java – jdk-6-linux-i586.rpm
z Apache Ant – apache-ant-1.7.0-bin.tar.gz
z PostgreSQL
z postgresql-8.2.5-2PGDG.f7.i686.rpm
z postgresql-server-8.2.5-2PGDG.f7.i686.rpm
z Postgresql-8.2.507.jdbc4.jar
z Tomcat – apache-tomcat-5.5.23-compat.tar.gz
z Dspace – dspace-1.4.2-source.tar
11
Downloads
Site address of downloads
z DSpace
z http://www.sourceforge.net/projects/dspace
z Apache-Tomcat
z http://tomcat.apache.org
z Apache-ant
z http://ant.apache.org
z Postgre-sql
z http://www.postgresql.org
Note:
z ant may be available with your OS
z Tomcat may be available with your OS, But use the downloaded tomcat
12
Installation
Demonstration and Practical
Session
13
Install JAVA
z Check whether java is installed
z #java –version
16
Install PostgreSQL
z Copy the postgresql-8.2.5-
2PGDG.f7.i686.rpm and postgresql-server-
8.2.5-2PGDG.f7.i686.rpm
z Install the files in the same sequence
z #rpm –ivh postgresql-8.2.5 -2PGDG.f7.i686.rpm
z #rpm –ivh postgresql-server-8.2.5-
2PGDG.f7.i686.rpm
17
Install PostgreSQL (contd)
z Log into postgres
z #su –l postgres
z Initialize database
z $initdb
z Configuration changes
z Open /data/postgresql.conf and remove comment for
listen_addresses = ‘localhost’
z $vi /data/postgresql.conf
z Open /data/pg_hba.conf and add a line in the section #IPv4-style
local connections:
z host dspace dspace 127.0.0.1 255.255.255.255 md5
z Save the file
18
Install Tomcat
z Copy apache-tomcat-5.5.23.tar.gz to /usr/local
z #cp apache-tomcat-5.5.23.tar.gz /usr/local
z Change directory
z #cd /usr/local
z Configuration changes
z Open the file /etc/profile and the add the following
z JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
z export JAVA_OPTS
z Save the file
21
Install Dspace (contd)
z Create an user dspace
z #useradd –d /dspace dspace
z #passwd dspace
z Download file postgresql-8.2.507.jar and rename
z #mv postgresql-8.2.507.jar postgresql
z Copy postgres jdbc driver
z cp postgresql /dspace/lib
z Login to dspace
z #su –l dspace
z $cd /dspace
22
Install Dspace (contd)
z Create dspace database
z $createuser –U postgres –d –A –P dspace
(Give password and remember it)
z createdb –U dspace –E UNICODE dspace
23
Install Dspace (contd)
Minimal configuration changes
z Open the file /dspace/config/dspace.cfg
z dspace.url = [like http://10.183.xx.xx/dspace]
z dspace.hostname = [IP address of server]
z dspace.name =[ Dspace at IISC Workshop]
z db.password = [the password you entered in the last step of
postgresql installation]
z mail.server =[l10.183.xx.xx]
z mail.from.address = [dspace@localhost]
z feedback.recipient =[dspace@localhost]
z mail.admin = [dspace@localhost]
z alert.recipient =[email address (not essential but very useful!)]
z Save the file
24
Install Dspace (contd)
z Compile and install
z $ant fresh_install
z Copy the war files created
z $cp /dspace/build/*.war /usr/local/tomcat/webapps
z Create initial administrator account
z $/dspace/bin/create-administrator
z Enter details as prompted
25
Install Dspace (contd)
z Change ownership to user dspace for tomcat
z #chown –R dspace.dspace /usr/local/tomcat
z Start tomcat
z $/usr/local/tomcat/bin/startup.sh
z Open browser
z Give address http://10.183.xx.xx:8080/dspace
z There you will have the dspace page
z Successful installation
26
Thank you
27