Install Ubuntu MATE
Koha officially supports Ubuntu MATE. Download Ubuntu-MATE-20.04.1-desktop(amd64 bit) from the following link,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
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
createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace
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
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
I hope this tutorial will help you to install the DSpace in Ubuntu MATE22.4 LTS.
11 Comments
gjnetwork - オフショア モバイル アプリ開発サービスの第 1 位 — オフショア モバイル/ウェブ システムの開発は、もはや単なる出費ではありません。今ではやりがいのある投資です。
ReplyDeleteアプリ 開発 オフショア
Click on my this if you are interested (. )( .)
ReplyDeleteAwesome post ! Best Electronics retail software
ReplyDeleteThis 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</
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis 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!
ReplyDeletedigital marketing course
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
ReplyDeleteVery informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Christmas Boxes
ReplyDeletedatabasefirm
ReplyDelete/build/dspace-6.3-src-release/dspace/target/dspace-installer/build.xml:789: Java returned: 1
ReplyDeleteسایت جزوه یک ، مرجعی غنی از کتاب های دانشگاهی ، غیر دانشگاهی ، مقالات ، جزوات دانشجویی و کتاب های نایاب و ارزشمند می باشد. سایت جزوه یک با ارائه خدمات بیشمار توانسته جایگاه ویژه ای را در میان سایت های این عرصه برای خود به دست آورد. برای ورود به این کتایخانه غنی از لینک زیر استفاده فرمایید.
ReplyDelete