Saturday, September 9, 2017

How to Install SubjectPlus 4.6 on Ubuntu 22.04 LTS

SubjectPlus is an open-source tool for creating subject guides and managing library content. This guide walks you through the installation of SubjectPlus version 4.6 on Ubuntu 22.04 LTS.


Step 1: Upgrade Ubuntu Packages

sudo apt update

sudo apt upgrade


Step 2: Install PHP 7.4

sudo apt -y install software-properties-common

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt -y install php7.4

Install the required PHP extensions:

sudo apt-get install -y php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath

Check the PHP version:

php -v


Step 3: Install Apache Web Server

sudo apt install apache2

sudo systemctl restart apache2


Step 4: Install Database Server (MariaDB)

sudo apt install mariadb-server

sudo mysqladmin -u root password 'your_password'

Log into MySQL to create the SubjectPlus database:

sudo mysql

In the MySQL shell:

CREATE DATABASE subjectsplus;

exit;

Restart services:

sudo service apache2 restart

sudo service mysql restart


Step 5: Download and Configure SubjectPlus

Create working directories:

sudo mkdir /sp

cd /sp/

sudo apt-get install unzip

sudo mkdir -p /var/www/html/sp

Download SubjectPlus 4.6:

sudo wget https://github.com/subjectsplus/SubjectsPlus/archive/refs/tags/v4.6.zip

sudo ls  # to verify the downloaded file name

Unzip the archive:

sudo unzip -q /sp/v4.6.zip -d /var/www/html/

sudo mv /var/www/html/SubjectsPlus-4.6/ /var/www/html/sp/


Step 6: Set Permissions

sudo chown -R www-data:www-data /var/www/html/sp/

sudo chmod -R 755 /var/www/html/sp/


Step 7: Proceed with Web Installation

Open a web browser and go to:

http://your_server_ip/sp/control

Follow the on-screen instructions to complete the installation.

Admin interface page:

http://your_server_ip/sp/control/


Optional: Install phpMyAdmin (for DB Management)

sudo apt install phpmyadmin


 You're All Set!

SubjectPlus 4.6 is now installed on your Ubuntu 22.04 server. You can start customizing and adding content through the web interface.

 

Tuesday, August 8, 2017

Setting Default Password for PostgreSQL in Ubuntu

# sudo -u postgres psql
could not change directory to "/root"
psql (9.1.11)
Type "help" for help.

postgres=# \password
Enter new password:
Enter it again:
postgres=# \q

There is no default password.  on most unix and linux distributions, the 
default authentication mode is set to 'ident' which means a given unix 
user X can only connect as the postgres user X.   initially, the only 
postgres user is 'postgres', so...

(assuming you're on the typical unix/linux system, you didn't say)

     $ sudo -u postgres psql

     postgres=> alter user postgres password 'apassword';
     postgres=> create user yerusername createdb createuser password 'somepass';
     postgres=> create database yerusername owner yerusername;
     postgres=> \q

Thursday, May 11, 2017

Inclusive Librarianship: from limited Identity to limitless possibilities

By Bharat M. Chaudhari (MLS)

Abstract: 

Inclusion mean or are at the very core of what libraries are all about and libraries and librarians have an essential, catalytic role to play in facilitating the full participation with people and Inclusive librarians ensure that their library’s facilities, services, programs, collections, and technology are designed in ways in which all people, regardless of their ability, have an opportunity to participate in and use them.

Wednesday, March 8, 2017

Installing DSpace 6.0 on Ubuntu 14.04 LTS

Open terminal and put the command
sudo apt-get update

Install Java on your Ubuntu:
sudo apt-get install openjdk-7-jdk

Install ant on your Ubuntu:
sudo apt-get install ant

Install maven on your Ubuntu:
sudo apt-get install maven

Install Apache Tomcat 7:
sudo apt-get install tasksel

sudo tasksel

Select the following packages tomcat java server only by putting (*)

Add DSpace User to system
useradd -m dspace
https://github.com/DSpace/DSpace/releases/download/dspace-6.0/dspace-6.0-src-release.tar.gz

Install PostgreSQL 9.6 
Add PostgreSQL Apt Repository

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -

Install PostgreSQL

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

sudo su - postgre
createuser --username=postgres --no-superuser --pwprompt dspace
createdb --username=postgres --owner=dspace --encoding=UNICODE dspace
psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"


sudo mkdir /build
sudo chmod -R 777 /build
cd /build 

Install DSpace repository

wget https://github.com/DSpace/DSpace/releases/download/dspace-6.0/dspace-6.0-src-release.tar.gz
tar -zxf dspace-6.0-src-release.tar.gz
cd /dspace-6.0-src-release
mvn -U package

cd dspace/target/dspace-installer 
(if target is not available in /dspace, then try try cd /dsapce/dspace-6.0-src-release/dspace/target/dspace-installer)

sudo ant fresh_install

Create ADMINISTRATOR for DSpace
/dspace/bin/dspace create-administrator

sudo service tomcat7 stop

udo cp -r /dspace/webapps/xmlui/ /var/lib/tomcat7/webapps
sudo cp -r /dspace/webapps/oai/ /var/lib/tomcat7/webapps
sudo cp -r /dspace/webapps/solr/ /var/lib/tomcat7/webapps

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat7:tomcat7 /dspace -R
sudo service tomcat7 start


Test DSpace xmlui  in your browser
That is all that is required to install DSpace on Ubuntu.
There are two main webapps that provide a
similar turn-key repository interface
http://localhost:8080/xmlui



Monday, August 22, 2016

Installation of Dspace 5.5 on Ubuntu 14.04 LTS


Open terminal by using [Ctrl+Alt] keys (like a command-cmd prompt in window)

(I assume that your system is 64bit and not under the proxy server)

sudo apt-get update

sudo apt-get install openjdk-7-jdk ant maven

sudo apt-get install tasksel

sudo tasksel

Select the following packages
[*] LAMP server
[*] PostgreSQL database
[*] Tomcat Java server

Create the database user

sudo su postgres
createuser -U postgres -d -A -P dspace


Enter password for new role: [Enter a password e.g. dspace]
Shall the new role be allowed to create more new roles? (y/n) n
[Enter n and press enter button]

Type exit

Allow the database user (dspace) to connect to the database
[If the following command not open, check the postgresql version number and apply in the command]

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

Add this line to the configuration file at the end:

local all dspace md5

save and close the file

Restart PostgreSQL :

sudo su
/etc/init.d/postgresql restart


Create Dspace user

sudo useradd -m dspace
sudo passwd dspace
[enter a password for the new user dspace] 

sudo mkdir /dspace
sudo chown dspace /dspace


Create the PostgreSQL 'dspace' database


sudo -u dspace createdb -U dspace -E UNICODE dspace

save and close the file.
Create Dspace directory

sudo mkdir /build
sudo chmod -R 777 /build
cd /build


Download Dsapce to /build directory
Copy paste following line in the terminal,

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


Extracting Dspace package

tar -zxf dspace-5.5-src-release.tar.gz
cd /build/dspace-5.5-src-release
mvn -U package


Enter into Dspace package folder to download packages.

cd dspace/target/dspace-installer
sudo ant fresh_install

Create ADMINISTRATOR for DSpace

/dspace/bin/dspace create-administrator

Stop tomcat service
sudo service tomcat7 stop

Copy webapps xmlui, oai, solr to tomcat

sudo cp -r /dspace/webapps/xmlui/ /var/lib/tomcat7/webapps
sudo cp -r /dspace/webapps/oai/ /var/lib/tomcat7/webapps
sudo cp -r /dspace/webapps/solr/ /var/lib/tomcat7/webapps

Fix Tomcat permissions, and restart the Tomcat server


sudo chown tomcat7:tomcat7 /dspace -R
sudo service tomcat7 start

Test DSpace xmlui  in your browser

That is all that is required to install DSpace on Ubuntu. There are two main webapps that provide a similar turn-key repository interface
http://localhost:8080/xmlui

Schedule Restart ​PM2 Service for DSpace 9.2 on Ubuntu

Start Manually pm2 start /home/dspace/dspace-angular-dspace-9.2/dspace- ui.json   Find PM2 binary path which pm2 Add DAILY resta...