Dspace-1.8.2 Installation on Centos-6.3

11 Comments

Add DSpace User in your System

root@localhost nurahammad~]#useradd dspace

Install prerequisite software

root@localhost nurahammad~]# yum install java-1.6.0-openjdk -y

root@localhost nurahammad~]# yum install tomcat6

root@localhost nurahammad~]# yum install postgresql postgresql-server postgresql-contrib

root@localhost nurahammad~]# service postgresql initdb

root@localhost nurahammad~]# yum install ant ant-nodeps

[root@localhost nurahammad]# /etc/init.d/postgresql start

Configure Postgres to listen localhost

[root@localhost nurahammad]# nano /var/lib/pgsql/data/postgresql.conf

listen_addresses = ‘localhost’ # what IP address(es) to listen on;

[root@localhost nurahammad]# nano /var/lib/pgsql/data/pg_hba.conf

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# IPv4 local connections:

host dspace dspace 127.0.0.1/32 trust

# “local” is for Unix domain socket connections only

local all all trust

Manually Download maven and Install. Maven is not in Default Centos-6.3 source

[root@localhost nurahammad~]# wget http://mirrors.ispros.com.bd/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz

[root@localhost nurahammad]# tar -zxvf apache-maven-3.0.4-bin.tar.gz

[root@localhost nurahammad]# mv apache-maven-3.0.4 /usr/local

[root@localhost nurahammad]# cd /usr/local/

[root@localhost local]# ln -s apache-maven-3.0.4 maven

[root@localhost local]# nano /etc/profile

export M2_HOME=/usr/local/maven

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

Create Database user and Database for DSpace

[root@localhost nurahammad]# su postgres

bash-4.1$ createuser -U postgres -d -A -P dspace

bash-4.1$ exit

[root@localhost nurahammad]# su dspace

[dspace@localhost nurahammad]$ createdb -U dspace -E UNICODE dspace

Download DSpace and configure

[root@localhost nurahammad]# wget http://garr.dl.sourceforge.net/project/dspace/DSpace%20Stable/1.8.2/dspace-1.8.2-src-release.tar.gz

[root@localhost nurahammad]# tar -zxvf dspace-1.8.2-src-release.tar.gz

[root@localhost nurahammad]# cd dspace-1.8.2-src-release/dspace

[root@localhost dspace]#nano config/dspace.cfg

Build DSpace

[root@localhost dspace]# mvn package

Install DSpace

[root@localhost dspace]# cd target/dspace-1.8.2-build/

[root@localhost dspace-1.8.2-build]# ant fresh_install

[echo]

[echo] ====================================================================

[echo] The DSpace code has been installed, and the database initialized.

[echo]

[echo] To complete installation, you should do the following:

[echo]

[echo] * Setup your Web servlet container (e.g. Tomcat) to look for your

[echo] DSpace web applications in: /dspace/webapps/

[echo]

[echo] OR, copy any web applications from /dspace/webapps/ to

[echo] the appropriate place for your servlet container.

[echo] (e.g. ‘$CATALINA_HOME/webapps’ for Tomcat)

[echo]

[echo] * Make an initial administrator account (an e-person) in DSpace:

[echo]

[echo] /dspace/bin/dspace create-administrator

[echo]

[echo] * Start up your servlet container (Tomcat etc.)

[echo]

[echo] You should then be able to access your DSpace’s ‘home page’:

[echo]

[echo] http://localhost:8080/xmlui

[echo]

[echo] You should also be able to access the administrator UI:

[echo]

[echo] http://localhost:8080/xmlui/dspace-admin

[echo] ====================================================================

[echo]

BUILD SUCCESSFUL

Total time: 1 minute 46 seconds

[root@localhost dspace-1.8.2-build]# nano /etc/tomcat6/server.xml

  Change this section
<Host name=”localhost”  appBase=”webapps”
unpackWARs=”true” autoDeploy=”true”
xmlValidation=”false” xmlNamespaceAware=”false”>

As the following
<Host name=”localhost”  appBase=”/dspace/webapps”
unpackWARs=”true” autoDeploy=”true”
xmlValidation=”false” xmlNamespaceAware=”false”>

Then create DSpace Administrator account

[root@localhost dspace-1.8.2-build]# /dspace/bin/dspace create-administrator

Creating an initial administrator account

E-mail address: nurahammad@iub.edu.bd

First name: Nur

Last name: Ahammad

WARNING: Password will appear on-screen.

Password:Password

Again to confirm: Password

Is the above data correct? (y or n): y

Administrator account created

Set Permission and ownership for DSpace

[root@localhost nurahammad]#chmod -R 755 /home/dspace/

[root@localhost nurahammad]#chown -R dspace:dspace /home/dspace/

Finally you can get your Dsapce by pointing the address in your web browser:

http://localhsot:8080/xmlui

OR

http://localhost:8080/jspui

Maarch

Leave a comment

Maarch is a Open Source Electronic Archiving and Document Management System.

You can get more information at http://www.maarch.com

Dspace installation on Debian Squeeze

8 Comments

I am mentioning my practical experience of Dspace installation on Debian Squeeze. I hope, you can do
it and this will help you.
First make a dspace user in debian for Dspace.
root@dir:~#adduser dspace
Then install other softwares as prerequisites for Dspace installation. It is a good approach to
install sun-java6.
root@dir:~# apt-get install sun-java6-jdk
root@dir:~#update-java-alternatives -v -s java-6-sun
root@dir:~# apt-get install tomcat6
root@dir:~#apt-get install maven2
root@dir:~#apt-get install postgresql-8.4
After installing prerequisite softwares, create dspace database in postgresql for Dspace use.
root@dir:~# cd /home/dspace/
root@dir:/home/dspace# su postgres
postgres@dir:/home/dspace$ createuser -U postgres -d -A -P dspace
Enter password for new role:
Enter it again:
Shall the new role be allowed to create more new roles? (y/n) n
postgres@dir:/home/dspace$ exit
exit
root@dir:/home/dspace# su dspace
dspace@dir:~$ createdb -U dspace -E UNICODE dspace
After that download the latest version of Dspace and set right configuration
root@dir:/home/dspace/dspace-1.8.2-src-release#nano dspace/config/dspace.cfg
Thereafter build Dspace by running the following command
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# mvn package
[INFO] Scanning for projects…
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-pom/10/dspace-pom-10.pom
[WARNING] Unable to get resource ‘org.dspace:dspace-pom:pom:10’ from repository central
(http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] ————————————————————————
[ERROR] FATAL ERROR
[INFO] ————————————————————————
[INFO] Error building POM (may not be this project’s POM).
Project ID: org.dspace:dspace-parent:pom:1.8.2
Reason: Cannot find parent: org.dspace:dspace-pom for project: org.dspace:dspace-parent:pom:1.8.2
for project org.dspace:dspace-parent:pom:1.8.2
[INFO] ————————————————————————
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.dspace
If you have problem in your Internet connectivity, you will get the above messages. These messages
also can get, if you have proxy in your Internet connectivity. To solve this problem, set proxy in you
maven configuration file.
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace#nano /etc/maven2/settings.xml
Uncomment and set you proxy in the following section-

optional
true
http

proxy.iub.edu.bd
3000
localhost

root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# mvn package
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# cd target/dspace-1.8.2-build/
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build# ant fresh_install

To complete installation, you should do the following:
Setup your Web servlet container (e.g. Tomcat) to look for your DSpace web applications in:

/home/dspace/webapps/
OR
copy any web applications from /home/dspace/webapps/ to the appropriate place for your servlet
container. (e.g. ‘$CATALINA_HOME/webapps’ for Tomcat)
Create E-person in Dsapce by using the command-
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# /home/dspace/bin/dspace create-administrator

Set Permission and owner for DSpace

root@dir:~#chmod -R 755 /home/dspace/

root@dir:~#chown -R dspace:dspace /home/dspace/
Finally you can get your Dsapce by pointing the address in your web browser:
http://localhsot:8080/xmlui

OR

http://localhost:8080/jspui

%d bloggers like this: