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

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

Thursday, July 28, 2016

3 Days Professional Developemt Program on DSpace@SP Univerisity

UGC-HRDC at Sardar Patel University is going to organize 3days Professional Development Program on Design and Development of Institutional Repository Using DSpace on 8th to 10th August, 2016 at SP University, Anand, Gujarat
Please do encourage or depute your library/IT professionals working in your organizations by paying registration fee of Rs. 1000.00 per person to the program.


Date: 3rd September, 2016 to 5th September, 2016


Vanue:
UGC - HRDC, Sardar Patel University, Vallabh Vidyanagar
 



Contant Person
Ms. Kinjal S. Parekh, Librarian 
UGC - HRDC, Sardar Patel University, Vallabh Vidyanagar

Friday, July 22, 2016

DSpace 5.5 Security and Bug Fixes Release

The 5.5 Release provides security fixes to both the XMLUI and JSPUI, along with bug fixes to the 5.x platform in general. Download 5.5 release 

Major bug fixes include:
  • XMLUI security fix
    • [HIGH SEVERITY] Directory traversal vulnerability in all XMLUI themes
  • JSPUI security fix
    • [MEDIUM SEVERITY] Directory traversal vulnerability in the JSPUI "Edit News" feature
  • REST fixes
    • Fixed the "/handle" endpoint (DS-2936)
    • REST webapp wasn't registering itself on startup (DS-2946)
  • OAI fixes
    • Fixed a few incorrect URL encoding issue (DS-3050)
    • Fixed the broken "NOT" filter (DS-2820)
  • Configuration Fixes
    • Fixed misspelling in dcterms registry (conformsTo) (DS-2998
    • Updated our default DataCite configurations to point at the updated DataCite test server (DS-2923)
  • Other minor fixes
    • Broken SQL query in Item.findByMetadataFieldAuthority API method (DS-2517)
    • Mirage2: Ensured printing the item page from doesn't include bitstream URLs (DS-2893)
For much more information on each of these and other fixes, please visit our DSpace 5.x Release Notes.

Thursday, January 7, 2016

Gmail Configiration in Koha

1. Installation of postfix mail server package. 

Open a a terminal and apply following command,

sudo su     [Enter Linux password]
apt-get install postfix

Use TABUP and DOWN ARROW buttons to move between various selections.


Select no configuration in the post installation screen.

2. Copy the configuration file.

cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf

3. Install following packages too

apt-get install libsasl2-2
apt-get install libsasl2-modules
apt-get install ca-certificates

4. Open the following file and add some lines.

gedit /etc/postfix/main.cf

Add the following lines at the bottom of the file.

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

5. Create a new file to save the gmail password.

gedit /etc/postfix/sasl_passwd

Add the following line in the opened file.

[smtp.gmail.com]:587    urgmailid@gmail.com:yourpassword

Add your gmail user name and password.

6. Change the permission of following file.

chmod 400 /etc/postfix/sasl_passwd

7.  Translate the /etc/postfix/sasl_passwd to Postfix lookup tables.

postmap /etc/postfix/sasl_passwd

8. Create the /etc/aliases.db

postalias hash:/etc/aliases

9. Create the /etc/postfix/cacert.pem.

cat /etc/ssl/certs/Equifax_Secure_CA.pem >> /etc/postfix/cacert.pem

10.  Restart Postfix.

/etc/init.d/postfix restart

Check the following settings in Koha to start email notices,

Administration > Patron categories > Overdue notice required > Yes

Koha Administration > Patrons > Enhancedmessagingpreferences > Allow
Set Koha >  Tools > Overdue Notice/status triggers

Enable email service in Koha

koha-email-enable library

Visit following link to check commands to enable email for Koha,

Information courtesy
These instructions blindly borrowed from Eureka blog. & Kohageek

Dspace Demo