Koha Initial Setup/Installation, Configuration on Ubuntu 20.04

Koha is an open source integrated library system (ILS), used world-wide by public, school and special libraries. The name comes from a Māori term for a gift or donation. ~ Wikipedia

In this blog post we will discuss how to Install the Latest Version of Koha (21.05.XX)

System Requirements

  • Ubuntu 18.04 + or Debian 9+
  • Maria DB 10.1 +
  • Perl 5.24 +

Installation of Koha is quite easy and simple you can install Koha on your Local Machine or a Virtual Machine / Cloud / Compute Engine, I recommend using a minimum of 4 Gb RAM based machine / virtual setup.

Pre-requisite

The System must have Ubuntu 18.04 + Operating System Installed.

Koha Installation Process

  • Update Operating System
    • sudo apt-get update
    • sudo apt-get upgrade
  • Add Koha Repositories
  • Install Database Server
    • sudo apt-get install -y mariadb-server
    • sudo mysqladmin -u root password <yourpassword>
  • Install Koha
    • sudo apt install -y koha-common

Configuration Considerations

Koha Provides 2 Services namely

  • Staff Portal : Portal Used by Staff for Library Services
  • Web OPAC : Portal Used by Patrons for OPAC Services

Both of these services are installed on a single system/server there are multiple ways to access these

  • Named Services
  • IP Port Based Services
    • Where you want to access both the Portals using Same IP but different Ports eg XX.XX.XX.XX (Web Opac), XX.XX.XX.XX:8080 (Staff Portal)

Generally the Staff Portal is restricted to your Local Network while Web OPAC is Publically available, in this tutorial we will be using IP Port Based Setup, Lets Start Configuring Koha

Basic Web Based Installation & Configuration

Change the Port No of Staff Portal to 8080

sudo vim /etc/koha/koha-sites.conf

Find the following line and edit

INTRAPORT="8080"

Create a Koha Instance

sudo koha-create --create-db library (you can change <library> to whatever name you want to give)

Add a Port to Apache

sudo vim /etc/apache2/ports.conf

Listen 8080

Enable Module & Sites

sudo a2dissite 000-default

sudo a2enmod deflate

sudo a2ensite library

sudo service apache2 restart

sudo service memcached restart

Web Installation

Detailed Guide available @ https://koha-community.org/manual/21.05/en/html/installation.html

Once you are done with the above you can Open the Koha Web Installer to Install & Configure Koha to start the Web Installer open the following URL on your Favourite Web Browser

http://127.0.0.1:8080 (Replace 127.0.0.1 with Actual IP of VM/External Machine if being used)

The Web Installer will require a username & password to continue your can get the same from the file /etc/koha/sites/library/koha-conf.xml

sudo vim /etc/koha/sites/library/koha-conf.xml

Find the Following to know the User & Password

<config>
 <db_scheme>mysql</db_scheme>
 <database>koha_library</database>
 <hostname>localhost</hostname>
 <port>3306</port>
 <user>koha_library</user>
 <pass>CoPKrCzmoh0G7bQ@</pass>

 

The Web Installer will ask for various inputs like branch, itemtype, super user info, defaults, MARC Flavor and much more select/enter as per your preference and enjoy Koha.

Once Installation is Complete you can access

If your System is Connected to Network and proper firewall rules are in place then both the Staff Portal & Web OPAC will be available in your Local Network instantly. If you configured the above on a Cloud VM/Compute replace 127.0.0.1 with the Public IP as available with you.

 

For Professional Koha Support do contact abhishek [a t] nagar [d o t] me

Linux turns 30

It was 25th August 1991, when Linux Torvalds while studying computer science in University of Helsinki, announced a system in Usenet  newsgroup "comp.os.minix"

Hello everybody out there using minix -

I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones. This has been brewing since april, and is starting to get ready. I'd like any feedback on things people like/dislike in minix, as my OS resembles it somewhat (same physical layout of the file-system (due to practical reasons) among other things).

I've currently ported bash(1.08) and gcc(1.40), and things seem to work. This implies that I'll get something practical within a few months, and I'd like to know what features most people would want. Any suggestions are welcome, but I won't promise I'll implement them :-)

Linus (torvalds@kruuna.helsinki.fi)

PS. Yes - it's free of any minix code, and it has a multi-threaded fs. It is NOT portable (uses 386 task switching etc), and it probably never will support anything other than AT-harddisks, as that's all I have :-(.

— Linus Torvalds

Linus never thought that this hobby will change the way people think in future. The name Linux was given to he project Code Base by Ari Lemmke at the University of Helsinki, the name was given without consulting Linus, later however Linus Torvalds consented to "Linux".

TuxThe current mascot "penguin" was announced by Torvalds in 1996, Torvalds mentioned that he was bitten by a penguin when he visited a Zoo in Australia. Larry Ewing drafted the wellknown mascot, the name Tux was suggested by James Hughes as short of tuxedo.

Super ComputersIn 1992, Andrew Tanenbaum a well recognized computer science scientist wrote on the same newsgroup with title "Lixux is obsolete". which started the great debate about the Linux Kernal and today Linux runs 100% of all Top 500 Super Computers.

My Story

My first interaction with Personal Computers dates back to 1993, when i used to use Disk Less Systems in and around 1997-98 i was using 286, 386 Systems in our labs. The fear of Y2K delayed our first purchase of Personal Computer and finally in the year 2000 we bought a Celeron 633 Mhz, 32 Mb RAM, 2 Gb HDD based Personal Computer, those days there were Magazines like CHIP, DiGiT, PC Magazine which started supplying Software Utilities Compact Disks along with them, and some where in 2000-2001 one of these magazines supplied Mandriva Linux Compact Disks.

First PresentationAs usual the habit was of trying all the software available with the magazines, i tried installing Mandriva Linux without any past experience of non FAT filesystems and Oh HO resulted in wiping out of all my existing data, none of the software i had in Floppies or Compact Disks worked as they were all DOS/Windows compliant software. The situation was fearsome as without any knowledge a school going kid had lost his running software.

It took me whole day to bring back Windows 98 mostly at that time which ended by First Journey to Linux :)

 

 

Well once i completed my schooling in Kashipur, i went to Banaras Hindu University and then to Symbiosis Institute of Computer Studies & Research Pune in 2007 where the never ending journey to the Linux World restarted.

I am very lucky to have some of the great teachers behind me always that the journey which restarted is still continuing and today i not only use Linux based Operating Systems but also contribute back to the community in various forms code, translations, teaching and many more.

In the college days we used various flavors of Linux some of them have now even reached end of life, which taught me resolution of issues ,writing Howtos and referring various guides to explore and innovate things.

I generally don't speak much but the Open Source / Linux World taught me to be open and now i am able to speak up my views openly.

In present day i continue to be a loyal user, contributor, teacher. On my linux journey i have built servers, radio stations, AI Applications, Bots and much more...

 

30 Yrs

Shared Web Hosting Review Dreamhost

The ++++++++++

Save $50

  • 97-Day Money-Back Guarantee
  • Free Domain with annual plan
  • Unlimited Websites
  • PHP 7.4 +
  • Lets Encrypt SSL for all Websites hosted
  • Unlimited SSD Storage
  • Unlimited Bandwidth
  • Unlimited Email @ domain
  • Unlimited SSH Accounts
  • Unlimited Databases MySQL 5.7+
  • Drupal 9 Works :)
  • Word Press Quick Installs
  • IPV6 Support
  • Automatic Backups with facility to restore on the fly
  • Great Support Yes you can chat with them anytime
  • Each Subdomain can have a separate SSH User Account
  • You can provide access to individual domain to others as well

all this @ just USD 4.95 using annual plans

Using there services since 2007, this blog is hosted on DreamHost :)

Recommended Web Host : Get a $50 Discount using this link @ Dreamhost

Amazon Fire TV Stick Vs Google Chromecast

You might have already read lots of reviews about Amazon Fire TV Stick and Google Chromecast  so here is my bit of it, I Currently use both of them using Google Chromecase since 3-4 Years and Amazon Fire TV Stick  since a year now so these are based on my usage

  Chrome Cast
Product Amazon Fire TV Stick Google Chromecast 
Interface HDMI & Micro USB HDMI & Micro USB
Remote Yes No
Android App Yes Yes
Power Adaptor Included Not Included
Proxy Support Yes No
Cast Mobile Screen Yes Yes
Mobile Required No Yes
Amazon Prime Support Yes No
Youtube via Browser via Mobile Cast
Ability to Install Apps Yes No
Resolution 720p and 1080p up to 60fps Up to 1080p 60fps
Network

Wireless + Ethernet with Adaptor

Dual-band, dual-antenna Wi-Fi

supports 2x2 MIMO 802.11a/b/g/n/ac

Wireless

802.11a/b/g/n/ac (2.4GHz/5GHz)

Storage 8 Gb NA
RAM 1 Gb NA

Verdict : After using both the devices for more than a year i strongly recommend Amazon Fire TV Stick over Google Chromecast as it comes with Remote (Voice Search) and ability to install apps you do not need Mobile phone each time to use Amazon Fire TV Stick,

Utilizing Off Time in Internet Radio

Airtime Image from Wikipedia

No one likes a silence when tuning to a radio station, and for a radio manager its tough to have 24*7 programmes, in case you are running an Internet Radio Station using Airtime you probably would be programming your shows and in Offtime your radio is always silent i would suggest you to play some random tracks in this Offtime and also include a track which tells when your station plays live so here is how to achieve this

  1. Put some MP3 files in a folder of your server, please also record a message with the showtimings etc or what ever you want this folder may contain any number of files which you want to play in off time (Folder used in the below script /store00/rand)
  2. Edit /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq (below is the patch) the modified lines are in bold

@@ -150,14 +150,14 @@
 #                "read_stop_all",
 #                fun (s) -> begin log("dynamic_source.read_stop") destroy_dynamic_source_all() end)

-default = amplify(id="silence_src", 0.00001, noise())
+#default = amplify(id="silence_src", 0.00001, noise())
 ref_off_air_meta = ref off_air_meta
 if !ref_off_air_meta == "" then
     ref_off_air_meta := "Airtime - offline"
 end
-default = rewrite_metadata([("title", !ref_off_air_meta)], default)
-ignore(output.dummy(default, fallible=true))
-
+#default = rewrite_metadata([("title", !ref_off_air_meta)], default)
+#ignore(output.dummy(default, fallible=true))
+default = playlist(mode='random', "/store00/rand/")
 master_dj_enabled = ref false
 live_dj_enabled = ref false
 scheduled_play_enabled = ref false

Once you have modifed you are good to go restart the services, upon restarting you will listem random tracks in offtime from the folder you have set in the script.

Tested on Airtime 2.5.1, do listem to VMOU's stream @ http://vmou.ac.in/stream

Resize Multiple Images

ImageMagick

I am sure you would have come to a situation when you would have to resize multiple images say you copied 200 images from your Digital Camera and now need to upload them and need to resize them all, now doing this using GIMP would take ages here is a easy way.

Step 1) Install ImageMagick

sudo apt-get install imagemagick

Step 2) Change to the Directory where all Images are Present

Step 3)

a) If you need to reduce images to a specific Percentage

mogrify -resize 20% -format jpg *

b) If you need to reduce to Specific Width & Height

mogrify -resize 800x600 -format jpg *

c) If you need to reduce to Specific Width

mogrify -resize 1024x -format jpg *

Further Reading Click Here !!!

Upgrade to Latest Version

Its been a long time since i blogged, recently i logged in and found that this site was still using Drupal 6 fortunate enough that it was the Final Version of D6, which has already reached End of Life on On February 24th 2016, so as a first step thought of upgrading this site to the latest version fortunately was not using many modules so was able to upgrade the site to Drupal 8.5.3 in less than 10 mins using the guide available on Drupal Docs, Upgrade was smooth as Drupal Migrate & UI Module were used was able to migrate entire site barring the Theme as D8 version of Kanji Theme which was used in D6 was not available will work a bit on some theme to give site a new look till then using the Default Theme :).

Will try to restart blogging this Year atleast.

फेसबुक पर रहें सुरक्षित

सोशल नेटवर्किंग की दुनिया में आज सबसे बड़ा नाम फेसबुक है, मार्च २०१४ को फेसबुक की अधिकारिक घोषणा के अनुसार भारत में फेसबुक के १० करोड़ से ज्यादा सक्रीय उपभोगता हैं जो की फेसबुक का प्रयोग कंप्यूटर, लैपटॉप, मोबाइल एवं अन्य माध्यमो से करते हैं | आज के कंप्यूटर युग में सुरक्षा एक बड़ी चुनौती बन गई है, करीब करीब रोज़ ही फेसबुक से जुडी घटनाये चर्चा में आ जाती हैं आईये जानते है कुछ तरीके जिनसे आप फेसबुक पर सुरक्षित रह सकते है

  • अपनी लॉग इन से सम्बंधित जानकारी किसी को न दे चाहे वे आपके कितने ही करीबी क्यों न हों|
  • फेसबुक इस्तेमाल करने के लिए मोबाइल डिवाइस पर अधिकृत एप्लीकेशन का प्रयोग करें, अगर कंप्यूटर से इस्तेमाल कर रहे हो तो https://www.facebook.com पर ही लॉग इन करे |
  • फेसबुक अकाउंट का पासवर्ड नियमित रूप से बदलें
  • फेसबुक अकाउंट के साथ साथ अपने प्राथमिक ईमेल अकाउंट की सुरक्षा का ध्यान दें|
  • अगर आप कंप्यूटर पर फेसबुक का इस्तेमाल कर रहें हैं तो लॉगआउट करना न भूलें |
  • अगर आप मोबाइल पर फेसबुक का इस्तेमाल कर रहें हैं तो मोबाइल को लॉक करना न भूलें |
  • कंप्यूटर पर इन्टरनेट ब्राउज़र और मोबाइल पर एप्लीकेशन हमेशा अपडेट रखें |
  • अगर आपके पास मोबाइल फोन है तो फेसबुक पर कोड जनरेटर का जरूर इस्तेमाल करें
  • फेसबुक के सुरक्षा सेटिंग्स से विश्वसनीय संपर्क जरूर जोड़ ले |
  • अगर आप गलती से किसी कंप्यूटर से फेसबुक से लॉगआउट करना भूल गए तो तुरंत  सुरक्षा सेटिंग्स में जाकर उसे लॉगआउट कर दीजिये |
  • फेसबुक पर कुछ भी पोस्ट करने से पहले प्राइवेसी सेटिंग्स की जाच करलेना अच्छा रहता है |
  • डिफ़ॉल्ट प्राइवेसी सेटिंग जरूर करले जिससे आपके द्वारा किये गए पोस्ट केवल उन्हें दिखे जिन्हें आप दिखाना चाहते हैं
  • आप अगर चाहे की आपको कोई फेसबुक पर ना ढूँढ सके तो इससे सम्बंधित सेटिंग्स भी आप कर सकते हैं
  • अगर आपको कोई टैग करे तो उसे जरूर जाँच ले
  • फ्रेंड रिक्वेस्ट को जचने के पश्चात् की स्वीकार करें

मुझे उम्मीद है की अगर आप ऊपर दिए हुए बिन्दुओ पर गौर करेंगे तो आपका फेसबुक अकाउंट सुरक्षित रहेगा |

~ अभिषेक नागर

5 जून 2014 को अमर उजाला के अखिल भारतीय संस्करणॊ में प्रकाशित