Tutorials

Install Koha on Ubuntu 22.04
 Install Koha 23.05 on Ubuntu 22.04
 Update the System
sudo apt update
sudo apt upgrade

  Install Mousepad text editor 
sudo apt -y install mousepad

  Add Koha community repository 
echo deb http://debian.koha-community.org/koha oldstable main | sudo tee /etc/apt/sources.list.d/koha.list

wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add –

sudo apt update
  OR 
echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
wget -O- https://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -

sudo apt update
sudo apt upgrade

sudo apt clean
sudo apt install koha-common

 Install MariaDB server
sudo apt install -y mariadb-server
OR
 Install MySQL server
sudo apt install mysql-server

  Assign Root password for MariaDB OR MySQL 
sudo mysqladmin -u root password 	 newpass    [Replace 'newpass']

  Install Koha
sudo apt install -y koha-common

  Server configuration  
sudo mousepad /etc/koha/koha-sites.conf
Change 		INTRAPORT="8080"

  Koha instance creation  
sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart
sudo koha-create --create-db library

  Add new port  
sudo mousepad /etc/apache2/ports.conf
Change	Listen 8080
Change	Listen 8081

  Restart Apache  
sudo service apache2 restart

   Enable modules and sites 
sudo a2dissite 000-default
sudo a2enmod deflate
sudo a2ensite library
sudo service apache2 restart

   Setup the library 
sudo service memcached restart
http://127.0.1.1:8080 
sudo mousepad /etc/koha/sites/library/koha-conf.xml

************************************************************

Install DSpace 6.3 on Ubuntu 22.04
Installation procedure of DSpace 6.3 on Ubuntu 22.04 LTS
Prerequisite:
Unix like OS
Java - JDK
PostgreSQL 
Apache Ant
Apache Tomcat 
Apache Maven
DSpace-6.3

Open Applications > Accessories > Terminal and execute the following commands. Apply following commands   	
OR			Control + Alt + T
Install Mousepad text editor
The mousepad is a lightweight text editor, which requires opening configuration files while the installation process of Koha.
     sudo apt -y install mousepad	OR 	sudo apt-get install git
Update the System
     sudo apt-get update
     sudo apt-get upgrade
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
Enter the email address for user login.
Enter Your email Id : dspace@localhost
first & last name : dspace
password & confirm password : dspace
Continue: Yes
Open browser
DSpace has two interfaces; xmlui and jspui. You can load either one Dspace interface in a browser.
		http://localhost:8080/jspui 	 		
OR
		http://localhost:8080/xmlui 

  Step by Step installation procedures of KOHA 23.04, DSpace 6.3 and Joomla 4.3