How to Install Dspace-6.3 on Ubuntu MATE 22.04 LTS and Install same server in Koha

 

Install Ubuntu MATE

Koha officially supports Ubuntu MATE. Download Ubuntu-MATE-20.04.1-desktop(amd64 bit) from the following link,

Burn the Ubuntu MATE ISO image to a Pen Drive/CD/DVD. Insert the medium, change the boot option of the computer and start the installation process of Ubuntu. Visit the link to familiar with the Ubuntu MATE installation.

Open Terminal on your Ubuntu machine for Dspace installation.

sudo apt-get update
sudo apt-get upgrade

Install Git.

sudo apt-get install git

Check git Version. 

git --version

Add git Key. 

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

Upgrade git version. 

sudo apt update; apt install git
Install Java. 
sudo apt-get install openjdk-8-jdk

Install Maven. 

sudo apt-get install maven
Install ant. 
sudo apt-get install ant

 Install Postgresql.

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

Create Postgres Username and Password.

createuser --username=postgres --no-superuser --pwprompt dspace
Create Database. 
createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace
Crypto.
psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"
exit

Open the following postgresql, pg_hba.conf file.

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

Restart PostgreSQL

sudo /etc/init.d/postgresql restart
Create a DSpace User.
sudo useradd -m dspace
sudo passwd dspace
sudo mkdir /dspace
sudo chown dspace /dspace
sudo mkdir /build
sudo chmod -R 777 /build
cd /build

Download the Dspace-6.3 version folder.

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 105

<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

 Install Apache tomcat-8.5.82

sudo ant fresh_install
cd /opt

Tomcat Download file path Location.

sudo wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.83/bin/apache-tomcat-8.5.83.tar.gz

Unzip the download Tomcat folder.

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

Rename folder apache-tomcat-8.5.82” to “tomcat

Move tomcat folder.

sudo mv apache-tomcat-8.5.83 tomcat

Tomcat reading permission. 

sudo rm apache-tomcat-8.5.83.tar.gz

Open the following file. 

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

Dspace and Tomcat file configuration Permission.

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

Edit the Tomcat init.d  file and Add the Below Scripts. 

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

Tomcat permission.

sudo chmod +x /etc/init.d/tomcat
sudo update-rc.d tomcat defaults

Now you can Restart Tomcat.

sudo service tomcat start

Create the Dspace Administrator 

sudo /dspace/bin/dspace create-administrator

It will ask to enter the email address for user login.

Enter Your email Id : dspace@localhost

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



I hope this tutorial will help you to install the DSpace in Ubuntu MATE22.4 LTS.

Thank you so much.

Install same server in Koha Latest version 
Visit: https://libpowertech.blogspot.com/2021/03/how-to-install-koha-on-ubuntu-mate-2004.html


Post a Comment

10 Comments

  1. gjnetwork - オフショア モバイル アプリ開発サービスの第 1 位 — オフショア モバイル/ウェブ システムの開発は、もはや単なる出費ではありません。今ではやりがいのある投資です。
    アプリ 開発 オフショア

    ReplyDelete
  2. This particular looks for example certainly superb. Most of these slight tips are made using availablility of cosmetic foundation interest. I like to him or her appreciably. lawyer near me</

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This is exceptionally instructive substance and composed well for a change. It's pleasant to see that a few individuals still see how to compose a quality post!
    digital marketing course

    ReplyDelete
  5. This particular looks for example certainly superb. Most of these slight tips are made using availablility of cosmetic foundation interest. I like to him or her appreciably. online markting

    ReplyDelete
  6. Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Christmas Boxes

    ReplyDelete
  7. /build/dspace-6.3-src-release/dspace/target/dspace-installer/build.xml:789: Java returned: 1

    ReplyDelete