Saturday, 19 December 2015

Dspace Installation in Ubuntu Linux

Dspace Installation in Ubuntu 12.04.4 64 bit amd

Pre-request source

1.JAVA: jdk-6u35-linux-x64 download
2.ANT: apache-ant download
3.MAVEN: apache-maven download
4.TOMCAT: apache-tomcat download
5.DSPACE: dspace-x.x-src-release download

I prefer /opt(exist in root if opt directory not exist then please create it) for install all require software
like java,ant,maven and tomcat.

Install JAVA
1.Copy Java source to /opt
terminal>sudo cp jdk-6u35-linux-x64.bin /opt/
2.goto /opt
terminal> cd /opt
3.change the permission of jdk-6u35-linux-x64.bin into /opt for execute it.
opt > sudo chmod 755 jdk-6u35-linux-x64.bin
4.execute it
opt > sudo ./jdk-6u35-linux-x64.bin
        this is create folder into /opt/jdk1.6.0_35

5.Set JAVA_HOME and JRE_HOME path into /etc/profile carefully.
terminal> sudo vi /etc/profile
-add path end of profile file
export JAVA_HOME="/opt/jdk1.6.0_35"
export JRE_HOME="/opt/jdk1.6.0_35/jre"
export PATH="$PATH:$JAVA_HOME/bin:$JRE_HOME/bin"
terminal>source /etc/profile


Intsall Apache Ant
1.Copy Apache-Ant to /opt
terminal>sudo cp -rf apache-ant-1.9.3 /opt/

2.Set ANT_HOME path into /etc/profile carefully.
terminal> sudo vi /etc/profile
-add path end of profile file
export JAVA_HOME="/opt/jdk1.6.0_35"
export JRE_HOME="/opt/jdk1.6.0_35/jre"
export ANT_HOME="/opt/apache-ant-1.9.3"
export PATH="$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$ANT_HOME/bin"
terminal>source /etc/profile

Install Apache Maven
1.Copy Apache-Maven to /opt
terminal>sudo cp -rf apache-maven-2.2.1  /opt/

2.Set MAVEN_HOME path into /etc/profile carefully.
terminal> sudo vi /etc/profile
-add path end of profile file
export JAVA_HOME="/opt/jdk1.6.0_35"
export JRE_HOME="/opt/jdk1.6.0_35/jre"
export ANT_HOME="/opt/apache-ant-1.9.3"
export M2_HOME="/opt/apache-maven-2.2.1"
export                  PATH="$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$ANT_HOME/bin:$M2_HOME/bin"

terminal>source /etc/profile

Complete JAVA, ANT and MAVEN intallation...
After set PATH need to restart computer for set path on OS level.

Intsall Posrgresql database(helpfull link : https://help.ubuntu.com/community/PostgreSQL)
1.install package
terminal> sudo apt-get install postgresql
after installation complete
run following commands
terminal> sudo -u postgres psql postgres
terminal> \password postgres
terminal> Enter new password for postgres user
terminal>Ctrl+Z for out postgres prompt
Install PgAdmin-client for postgres database
terminal> sudo apt-get install pgadmin3

now you are access postgres database from pgAdmin client of postgres

Install Dspace
1.Go into Dspace source directory
terminal>cd WorkData/Dspace/DspaceSource/dspace-4.1-src-release/
terminal>mvn clean install
after getting Build succesfull message
you need to create dspace directory into /
terminal>sudo mkdir /dspace
terminal>sudo chmod 777 /dspace
create database for dspace using pgAdmin
you need to create database name with dspace
and also create user with dspace name and also password dspace
allow rights to dspace user to dspace database
       
          OR Using terminal create database and user in postgres.
          terminal>createuser -U postgres -d -A -P dspace
          terminal>createdb -U dspace -E UNICODE dspace
          terminal>createuser -U postgres -d -A -P dspace ; createdb -U dspace -E UNICODE dspace
          
        after create dspace database you need to deploy project using ant
terminal>cd dspace/target/dspace-4.1-build/
terminal> ant fresh_install 

We need ApplicationServer Apache-Tomcat
Install tomcat
1.copy the extracted source of tomcat into /opt
terminal>sudo cp -rf apache-tomcat-6.0.37 /opt/
we need to set JAVA_HOME and JRE_HOME into tomcat
terminal>sudo vi /opt/apache-tomcat-6.0.37/bin/catalina.sh 
add this to line into file
JAVA_HOME="/opt/jdk1.6.0_35"
JRE_HOME="/opt/jdk1.6.0_35/jre"

For deploy dspace into tomcat just you need to copy module to tomcat/webapps directory
terminal>sudo cp -rf /dspace/webapps/* /opt/apache-tomcat-6.0.37/webapps/


Start Tomcat

terminal> sudo sh /opt/apache-tomcat-6.0.37/bin/startup.sh

for more detail read dspace manual here

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. One of the best product. Nice experience so guys you can trust on this amazing product will definitely recommended
    Recommended site

    ReplyDelete