Wednesday, 29 May 2019

Koha Backup Restoration

sudo su  

mysql -uroot -p

then enter mysql root password
 liblib
 
drop database koha_library;
 
create database koha_library;
quit;

keep the backup file in the home folder (sql format)


then,
  
1. sudo su

2. mysql -uroot -p koha_library < koha_library.sql
(where koha_library is the name of the database in new installation and koha_library.sql is the name of backup file.)

Enter Mysql Password:
3. liblib

Upgrade database Schema:
4. sudo koha-upgrade-schema library

Rebuild Zebra:
5. sudo koha-rebuild-zebra -v -f library

Koha Installation on Ubuntu 18.04LTS

   

   $sudo apt-get update

   $sudo apt-get upgrade

   $sudo su

  Add Koha Community Repository:

    1.  sudo echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list

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


    3.  sudo apt-get update

Koha Installation:
    4.  sudo apt-get install koha-common

Port Configuration: here find and replace the line INTRAPORT="80" to INTRAPORT="8080"
    5.  sudo gedit /etc/koha/koha-sites.conf 

Mysql Installation:
    6.  sudo apt-get install mysql-server

Root password for Mysql: we can change the password liblib)
    7.  sudo mysqladmin -u root password liblib            

    8.  sudo a2enmod rewrite

    9.  sudo a2enmod cgi

   10.  sudo service apache2 restart

Koha Instance Creation:
   11.  sudo koha-create --create-db library

Adding new Port: here add 'Listen 8080' below 'Listen 80'
   12.  sudo gedit /etc/apache2/ports.conf

Restart Apache:
   13.  sudo service apache2 restart

   14.  sudo a2dissite 000-default

   15.  sudo a2enmod deflate

   16.  sudo a2ensite library

   17.  sudo service apache2 restart

 Open the web browser and type http://localhost:8000                               
 Koha web installer will appears and prompt for username and password


Change the Koha Username and Password:

1. sudo gedit /etc/koha/sites/library/koha-conf.xml

it will open a text file and find the <pass>liblib<pass>  and change password here.

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


Change Mysql Privileges:
2. sudo mysql -uroot -p   

Then enter Mysql Password:
3. liblib

4. use mysql;

5. SET PASSWORD FOR 'koha_library'@'localhost' = PASSWORD('liblib');

6. flush privileges;

7. quit; 

8. restart apache2 and mysql 

9. sudo /etc/init.d/apache2 restart

10. sudo /etc/init.d/mysql restart 

Friday, 10 November 2017

Altmetrics

     In scholarly and scientific publishing, altmetrics are non-traditional metrics proposed as an alternative to more traditional citation impact metrics, such as impact factor and h-index. The term altmetrics was proposed in 2010, as a generalization of article level metrics, and has its roots in the altmetrics hashtag. Although altmetrics are often thought of as metrics about articles, they can be applied to people, journals, books, data sets, presentations, videos, source code repositories, web pages, etc. They are related to Webometrics, which had similar goals but evolved before the social web. Altmetrics did not originally cover citation counts. It also covers other aspects of the impact of a work, such as how many data and knowledge bases refer to it, article views, downloads, or mentions in social media and news media.

Friday, 3 November 2017

Basic Linux Commands

      Sudo
This SuperUserDo is the most important command Linux newbies will use. Every single command that needs root's permission, need this sudo command. You can use sudo before each command that requires root permissions.

ls - list
Just like the other, you often want to see anything in your directory. With list command, the terminal will show you all the files and folders of the directory that you're working in. Let's say I'm in the /home folder and I want to see the directories & files in /home. 
Cd
Changing directory (cd) is the main command that always be in use in terminal. It's one of the most Linux basic commands. Using this is easy. Just type the name of the folder you want to go in from your current directory. If you want to go up just do it by giving double dots (..) as the parameter.
​Let's say I'm in /home directory and I want to move in usr directory which is always in the /home. Here is how I can use cd commands.

mkdir
Just changing directory is still incomplete. Sometimes you want to create a new folder or subfolder. You can use mkdir command to do that. Just give your folder name after mkdir command in your terminal.

cp
Copy-and-paste is the important task we need to do to organize our files. Using cp will help you to copy-and-paste the file from terminal. First, you determine the file you want to copy and type the destination location to paste the file.

rm
rm is a command to remove your file or even your directory. You can use -f if the file need root permission to be removed. And also you can use -r to do recursive removal to remove your folder.

apt-get
This command differs distro-by-distro. In Debian based Linux distributions, to install, remove and upgrade any package we've Advanced Packaging Tool (APT) package manager. The apt-get command will help you installing the software you need to run in your Linux. It is a powerful command-line tool which can perform installation, upgrade, and even removing your software.
In other distributions, such as Fedora, Centos there are different package managers. Fedora used to have yum but now it has dnf.  

grep
You need to find a file but you don't remember its exact location or the path. grep will help you to solve this problem. You can use the grep command to help finding the file based on given keywords.

cat
As a user, you often need to view some of text or code from your script. Again, one of the Linux basic commands is cat command. It will show you the text inside your file.

poweroff
And the last one is poweroff. Sometimes you need to poweroff directly from your terminal. This command will do the task. Don't forget to add sudo at the beginning of the command since it needs root permission to execute poweroff. 


ref:http://www.linuxandubuntu.com/home/10-basic-linux-commands-that-every-linux-newbies-should-remember
 

Friday, 20 October 2017

Moodle

     Moodle [Modular Object-Oriented Dynamic Learning Environment] is a free and open-source software learning management system written in PHP and distributed under the GNU General Public License. Developed on pedagogical principles, Moodle is used for blended learning, distance education, flipped classroom and other e-learning projects in schools, universities, workplaces and other sectors. With customizable management features, it is used to create private websites with online courses for educators and trainers to achieve learning goals. Moodle allows for extending and tailoring learning environments using community sourced plugins.
  
https://moodle.org/

Open Journal Systems - OJS

     Open Journal Systems (OJS) is an open-source software for the management of peer-reviewed academic journals, and is created by the Public Knowledge Project, released under the GNU General Public License.Open Journal Systems (OJS) was designed to facilitate the development of open access, peer-reviewed publishing, providing the technical infrastructure not only for the online presentation of journal articles, but also an entire editorial management workflow, including: article submission, multiple rounds of peer-review, and indexing. OJS relies upon individuals fulfilling different roles, such as the Journal manager, editor, reviewer, author, reader, etc.