Showing posts with label Installation. Show all posts
Showing posts with label Installation. Show all posts

Sunday, August 24, 2025

How to install DSpace 9 on Ubuntu 24.04?

DSpace Installation Guide

Complete guide to installing and configuring DSpace 9.1 on Ubuntu 24.04 LTS

What is DSpace?

DSpace is an open-source digital repository and archival software that institutions, libraries and other organisations use to manage, preserve, and disseminate research papers, documents, datasets and other scholarly or institutional digital content.

It was initially developed in collaboration with MIT Libraries and Hewlett-Packard (HP) Labs in the early 2000s.

How to Install DSpace 9.1

Before installing DSpace, it's important to understand that it consists of two main components that work together to provide the complete functionality and user experience:

DSpace Architecture

Backend (Server API)
Frontend (User Interface)
Spring Boot · Java
Angular · TypeScript

Backend

It consists of a Server API ("server" webapp), built on Spring Boot. It is responsible for storing, retrieving, and manipulating digital objects, metadata, and repository configurations. It also provides a REST API that exposes the functionality and data of the repository to other applications or services. The backend is written in Java and uses PostgreSQL as the database management system.

Frontend

It consists of a user interface that is built on angular.io. It runs on the browser and interacts with the user. It is responsible for displaying, formatting, and updating the repository's data, content, and design. It also allows the user to perform actions such as browsing, searching, submitting, editing, and managing the repository. It is written in Angular, a modern framework for building dynamic and responsive web applications.

The backend and frontend are separated by a clear boundary, which makes them easier to develop, maintain, and customize independently. They communicate with each other through the REST API, which ensures a consistent and standardized interface between them.

Installation Guides

Follow these comprehensive guides to install and configure DSpace on your Ubuntu 24.04 system:

Prerequisites

Before diving into the installation process, make sure you have the following prerequisites in place:

For Backend

  • Linux (Operating System)
    • Ubuntu 24.04
  • Open Java Development Kit (JDK) or Oracle JDK
    • Java JDK 17
  • Apache Maven (Java build tool)
    • Maven 3.8.x or above
  • Apache Ant (Java build tool)
    • Ant 1.10.x or later
  • Relational Database (PostgreSQL)
    • PostgreSQL 14.x, 15.x, 16.x or 17.x (with pgcrypto installed)
  • Apache Solr (full-text index/search service)
    • Solr 9.x and above
  • Apache Tomcat (Servlet Engine)
    • Tomcat 10.1.x
  • Git (code version control)
  • (Optional) IP to City Database for Location-based Statistics

For Frontend

  • Linux (Operating System)
    • Ubuntu 24.04
  • Node.js
    • Node (v18.19+ or v20.x or v22.x)
  • PM2 (or another Process Manager for Node.js apps)
    • Optional, but recommended for Production

Tuesday, January 16, 2024

Installing VIVO 1.14 (Latest Version) on ubuntu 22.04 (LTS)

 Minimum Requirement to install VIVO in ubuntu 22.04 (LTS).

  1. Operating System (VIVO can be install in any operating system - UNIX-like  (eg, Linux, CentOS), macOS, Windows)
  2. Java 8 or 11
  3. Maven 3.6.1 or later
  4. Tomcat 8 or 9
  5. Solr 8.x
  6. Optional - MySQL / MariaDB 5.5 or later (or any other supported by Jena SDB)



==============Update and Upgrade ubuntu==============

Tuesday, July 11, 2023

How to Install SubjectPlus 4.6 on Ubuntu 22.04 LTS

What is SubjectsPlus?

It is the information, content creation, management and pathfinder Software that is free and Open Source created by Ithaca College Library, and presently, it is maintained by the University of Miami Libraries, this (SubjectsPlus) is based on web 2.0 library information sharing system tools to manage and organize resources effectively.

This software is mostly used by Librarians and subject experts in many ways such as 

  1. To create different guides
    • Subject Guide
    • Research Guide
    • Course Guide
    • Audio-Visual Guide
    • Subject-Expert Guide
  2. To create directories/bibliographies
    • Staff Directory
    • Customize bibliographies for the user
  3. To create the list of Subscribed and open-source resources/databases
    • A to Z list of library resources.
    • A to Z list of database.
  4. To create a content management system (CMS)

    Due to its nature, we can customise this according to the needs of our users and staff by providing an excellent graphical user interface (GUI).

    How to install it?

    Before installing the SubjectsPlus, first, you will need any one of the following stack:-

    LAMP

      • L - Linux (Operating System)
      • A - Apache (Web Server)
      • M - MySQL/ MariaDB (Relational Database Management System)
      • P - PHP (Hypertext Preprocessor)

    WAMP

      • W - Windows (Operating System)
      • A - Apache (Web Server)
      • M - MySQL/ MariaDB (Relational Database Management System)
      • P- PHP (Hypertext Preprocessor)

    MAMP

      • M - macOS (Operating System)
      • A - Apache (Web Server)
      • M - MySQL/ MariaDB (Relational Database Management System)
      • P - PHP (Hypertext Preprocessor)

    So, we will install the SubjectsPlus 4.6 version using the LAMP stack.


    Prerequisites (for version 4.6)

    Before diving into the installation process, make sure you have the following prerequisites in place:-
    • LAMP
      • L - Linux (Operating System)
        • Ubuntu 22.04
      • A - Apache (Web Server)
        • Apache2
      • M - MySQL/ MariaDB (Relational Database Management System)
        • MySQL 5.6/5.7 or
        • MariaDB 10.x
      • P - PHP (Hypertext Preprocessor)
        • PHP 7.4

    Step 1: Update and upgrade the Ubuntu OS

    sudo apt update && sudo apt upgrade -y

    Step 2: Installation of apache2 web server

    sudo apt install apache2

    Step 3: Install PHP and Required Extensions

    • Dependencies Installation
    Required few dependencies while installing in Ubuntu 22.04

    sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
    • Add Ondrej PPA to the sytem
    LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php

    • Update Package Manager Cache

    sudo apt update

    • Install PHP 7.4
    sudo apt install php7.4 php7.4-cli php7.4-fpm php7.4-mysql php7.4-json php7.4-curl php7.4-mbstring php7.4-xml php7.4-zip php7.4-gd php7.4-intl php7.4-gettext

    Step 4: Install and Configure MariaDB


    Install MariaDB and set up a database by executing these commands:

    This command install the MariaDB server package installs on your system
    sudo apt install mariadb-server
    This script will prompt you to perform actions such as setting the root password, removing anonymous users, disallowing remote root login, and removing test databases.
    sudo mysql_secure_installation


    This command opens MariaDB server console using the root user and prompts you for the root password. 
    After entering the password, you'll be in the MariaDB command-line interface.
    sudo mysql -u root -p

    This command creates a new database named subjectsplus.
    ***Replace subjectsplus with the actual database name you want to set for the installation of subjectsplus
    CREATE DATABASE subjectsplus;

    This command creates a new user named spuser who can connect from the localhost (the same machine) and specifies the user's password.
    ***Replace 'your_password', spuser and localhost with the actual user, host and password you want to set for this user.
    CREATE USER 'spuser'@'localhost' IDENTIFIED BY 'your_password';

    This command grants all privileges on the subjectsplus database to the spuser user, allowing them to perform various operations on the database.
    ***Replace subjectsplusspuser and localhost with the actual name of your installation that you mentioned earlier
    GRANT ALL PRIVILEGES ON subjectsplus.* TO 'spuser'@'localhost';

    This command reloads the privileges to apply the changes you've made.
    FLUSH PRIVILEGES;

    then exit the SQL console
    EXIT;


    Step 4: Download the required files from the GitHub page and Install SubjectsPlus

    cd /var/www/html
    sudo wget https://github.com/subjectsplus/SubjectsPlus/archive/refs/tags/v4.6.tar.gz
    sudo tar -xvf v4.6.tar.gz
    sudo mv SubjectsPlus-4.6 guide
    cd guide


    Step 5: Change Folder Ownership

    www-data: user and 
    :www-data group are often used by web servers to access and serve web content, including files and scripts.
    sudo chown -R www-data:www-data /var/www/html/guide

    Step 6: Folder permission

    • For /guide/control/includes/config-default.php:
    chmod 644 /var/www/html/guide/control/includes/config-default.php
    • For /guide/control/includes/ (and files within it):

    chmod 755 /var/www/html/guide/control/includes/

    • For /guide/subjects/.htaccess:

    chmod 664 /var/www/html/guide/subjects/.htaccess

    • For /guide/api/.htaccess:

    chmod 664 /var/www/html/guide/api/.htaccess

    • For /guide/assests/users/ (and files within it):

    chmod 755 /var/www/html/guide/assets/users/

    • For /guide/assests/cache/ 

    chmod 755 /var/www/html/guide/assets/cache/

    • For /guide/assets/images/video_thumbs

    chmod 755 /var/www/html/guide/assets/images/video_thumbs