Install Dspace-6.3 or 6.4 on Ubuntu 20.04

How to Install Dspace-6.3 on Ubuntu

 

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install git

git --version

sudo add-apt-repository ppa:git-core/ppa

sudo apt update; apt install git

sudo apt-get install openjdk-8-jdk

sudo apt-get install maven

sudo apt-get install ant

 

Add Postgresql Source file location

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

 

Add Postgresql Key

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

sudo apt-get update

 

Install Postgresql -9.6 Version

sudo apt-get install postgresql-9.6

 

sudo su postgres

createuser --username=postgres --no-superuser --pwprompt dspace

createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace

psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"

exit

sudo gedit /etc/postgresql/9.6/main/pg_hba.conf

 

Add this below line to the configuration file at the end

local    all                    dspace                                                             md5

sudo /etc/init.d/postgresql restart

sudo useradd -m dspace

sudo passwd dspace

sudo mkdir /dspace

sudo chown dspace /dspace

sudo mkdir /build

sudo chmod -R 777 /build

cd /build

 After that install Dspace 6.3 or 6.4

Download the Dspace-6.3 version  Or Dspace-6.4 Go down

Note: Please try any one of these Dspace-6.3 or 6.4 only. Don't try two versions in the same time

sudo wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz

 

Unzip the download Dspace-6.3 version folder

tar -zxf dspace-6.3-src-release.tar.gz

 

Build the download Dapace-6.3 version folder

sudo gedit /build/dspace-6.3-src-release/dspace-api/pom.xml

 

([remove 1.4 plugin] line number 103 to 115)

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>buildnumber-maven-plugin</artifactId>

<version>1.4</version>

<executions><execution>

<phase>validate</phase>

<goals>

<goal>create</goal >

</goals>

</execution

</executions>

</plugin>

  

Installation of DSpace-6.3 version

cd /build/dspace-6.3-src-release

sudo mvn -U package

cd dspace/target/dspace-installer

sudo ant fresh_install

cd /opt

Please ensure the availability of Tomcat version 

sudo wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.86/bin/apache-tomcat-9.0.86.tar.gz

sudo tar xvzf apache-tomcat-9.0.86.tar.gz

sudo mv apache-tomcat-9.0.86 tomcat

sudo rm apache-tomcat-9.0.86.tar.gz

sudo gedit /etc/profile

 

Add following lines at the bottom of the file

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export CATALINA_HOME=/opt/tomcat

 

sudo cp -r /dspace/webapps/* /opt/tomcat/webapps

sudo gedit /etc/init.d/tomcat

 

[add this script]

#!/bin/bash
### BEGIN INIT INFO
# Provides:                 tomcat8
# Required-Start:      $network
# Required-Stop:       $network
# Default-Start:         2 3 4 5
# Default-Stop :         0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
start() {
sh /opt/tomcat/bin/startup.sh
}
 
stop() {
sh /opt/tomcat/bin/shutdown.sh
}
 
case $1 in
  start|stop) $1;;
  restart) stop; start;;
  *) echo "Run as $0 <start|stop|restart>"; exit 1;;
esac

 

sudo chmod +x /etc/init.d/tomcat

sudo update-rc.d tomcat defaults

sudo service tomcat start

sudo /dspace/bin/dspace create-administrator

 

Enter Your Email Id: dspace@dspace

first & last name: dspace

password & confirm password: dspace

Continue: Yes

 Finished the installation


Go to any browser copy and paste the link.

http://localhost:8080/jspui

http://localhost:8080/xmlui


If you want to try Dspace -6.4

Please Note: Don't try Dspace 6.3 and 6.4 in the same system

For the Dspace-6.4 version folder

cd /build

sudo wget https://github.com/DSpace/DSpace/releases/download/dspace-6.4/dspace-6.4-src-release.tar.gz

 

Unzip the download Dspace-6.4 version folder

tar -zxf dspace-6.4-src-release.tar.gz

 

Build the download Dapace-6.4 version folder

sudo gedit /build/dspace-6.4-src-release/dspace-api/pom.xml

 

([remove 1.4 plugin] line number 103 to 115)

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>buildnumber-maven-plugin</artifactId>

<version>1.4</version>

<executions><execution>

<phase>validate</phase>

<goals>

<goal>create</goal >

</goals>

</execution

</executions>

</plugin>

 

 

Installation of DSpace-6.4 version

cd /build/dspace-6.4-src-release

sudo mvn -U package

cd dspace/target/dspace-installer

sudo ant fresh_install

cd /opt

sudo wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.86/bin/apache-tomcat-9.0.86.tar.gz

sudo tar xvzf apache-tomcat-9.0.86.tar.gz

sudo mv apache-tomcat-9.0.86 tomcat

sudo rm apache-tomcat-9.0.86.tar.gz

sudo gedit /etc/profile

 

Add following lines at the bottom of the file

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export CATALINA_HOME=/opt/tomcat

 

sudo cp -r /dspace/webapps/* /opt/tomcat/webapps

sudo gedit /etc/init.d/tomcat

 

[add this script]

#!/bin/bash
### BEGIN INIT INFO
# Provides:                 tomcat8
# Required-Start:      $network
# Required-Stop:       $network
# Default-Start:         2 3 4 5
# Default-Stop :         0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
start() {
sh /opt/tomcat/bin/startup.sh
}
 
stop() {
sh /opt/tomcat/bin/shutdown.sh
}
 
case $1 in
  start|stop) $1;;
  restart) stop; start;;
  *) echo "Run as $0 <start|stop|restart>"; exit 1;;
esac

 

sudo chmod +x /etc/init.d/tomcat

sudo update-rc.d tomcat defaults

sudo service tomcat start

sudo /dspace/bin/dspace create-administrator

 

Enter Your Email Id: libsciinfo@dspace

first & last name: dspace

password & confirm password: dspace

Continue: Yes


Go to any browser copy and paste the link.

http://localhost:8080/jspui

http://localhost:8080/xmlui


Ref: https://libpowertech.blogspot.com/2022/09/how-to-install-dspace-on-ubuntu-mate.html 

Comments

Popular posts from this blog

Install Dspace 7.2 on Ubuntu 22.04 LTS

How to delete library data in koha using the command line

Koha INSTALLATION

Total views