Friday, February 10, 2012

CrunchBang 10 “Statler” released


CrunchBang is a light weight Debian based Linux.
"CrunchBang is a Debian GNU/Linux based distribution offering a great blend of speed, style and substance. Using the nimble Openbox window manager, it is highly customisable and provides a modern, full-featured GNU/Linux system without sacrificing performance."

Monday, January 9, 2012

Koha installation on Ubuntu 10.04

Koha Version- 3.06.02

To install Koha latest version, visit this link.

Installation of Ubuntu 10.04 LTS

Visit the link for installation steps with screen shots http://techhamlet.com/2010/05/how-to-install-ubuntu-10-04/

Installation of Koha

Type the following command in a terminal to  get super user privilege.
To open terminal, Application > Accessories > Terminal
All Linux commands should execute through Terminal.

sudo su

Update your system,

sudo apt-get update

Creating Koha system user

Open a Command Terminal and type following commands,

groupadd koha
useradd -g koha koha

sudo mkdir /build
sudo chmod -R 777 /build

Download Koha

Download koha-3.06.02 package from http://download.koha-community.org/koha-3.06.02.tar.gz
Extract the package by right click and select "Extract to".

Copy Koha package to the folder /build

mv koha-3.06.02 /build

Installation of dependencies

Following command will install MySQL, and Apache.

sudo apt-get install lamp-server^ yaz idzebra-2.0 dselect  

On the way, give root password for MySQL Root user when it ask.

cd /build/koha-3.06.02
sudo dpkg --set-selections <install_misc/ubuntu.packages   [Select Install from the list and Press Enter button]
 sudo dselect

Select "Install" option.
It began download packages from Internet. The length of this  process depend on speed of your Internet connection.
Nullmailer will ask for  email parameters. Accept the default values.

dselect menu will appear after the completion of the process. Select and press Quit to exit from the deselect.

Configuration of  UTF-8 in MySQL and Apache
Enable UTF-8 at MySQL
Open a Terminal and type following command,

sudo gedit /etc/mysql/my.cnf  
[Under the Basic settings section, add the following,]

# UTF-8 Defaults for Koha
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci

Save the file [ File > Save ] and close the editor.
UTF-8 encoding in Apache
Open a terminal and type the following command,

gedit  /etc/apache2/conf.d/charset
[Add the following two lines in]

AddCharset UTF-8 .utf8
AddDefaultCharset UTF-8

Save the file and close the editor.

Enter following command to set locale on Ubuntu

sudo update-locale LANG=en_IN.UTF-8

Creation of MySQL Database for KOHA
Open a terminal and login as root and enter following commands,

mysql -u root -p
[enter mysql root password here]

Then type,

create database koha;
grant all privileges on koha.* to 'kohaadmin'@'localhost' identified by 'katikoan';
flush privileges;
quit;

Test to make sure the SAX Parser is setup correctly

Enter the following commands,

cd /build/koha-3.06.02
sudo gedit /etc/perl/XML/SAX/ParserDetails.ini

Copy and paste the following command to the bottom of the file and save it.

[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces=1

Run the command again,
misc/sax_parser_print.pl

Setting environment variables

gedit /etc/bash.bashrc
Add the following lines at the bottom and save the file

export KOHA_CONF=/etc/koha/koha-conf.xml
export PERL5LIB=/usr/share/koha/lib

Save and close the file.

Koha Installation

Now KOHA can be installed by following commands:
Enter into Koha folder

cd /build/koha-3.06.02
perl Makefile.PL

Answer all questions  without any change. You can accepted the default values.
At the end you can see missing perl modules list. You have to install missing perl modules before proceed installation process.

Installation of remaining perl modules
Open a terminal from Applications > Accessories > Terminal,
Enter the following command, it will give a CPAN command prompt.
sudo cpan
Accept all default settings. 
Following is the example of CPAN command for installing a module.


install modulename

e.g.
install Business::ISBN


It ask for many confirmation on the way. Press Enter button for all questions.
In the same way install remaining perl modules.

Type quit to Exit from the CPAN mode.

Type the following commands,
cd /build/koha-3.06.02
perl Makefile.PL make
make test
sudo make install

Add the following lines to /etc/apache2/ports.conf, just below the following line Listen 80
Open a Command Terminal and type following commands


sudo gedit /etc/apache2/ports.conf

Listen 8000
Listen 8001

save the file and close.

Open a terminal and login as root
sudo su
ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha
sudo a2enmod rewrite
sudo a2ensite koha
/etc/init.d/apache2 restart

 
Zebra configuration
Open a terminal copy paste the following commands.
sudo su
sudo ln -s /usr/share/koha/bin/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon
sudo update-rc.d koha-zebra-daemon defaults
sudo ln -s /usr/share/koha/bin/koha-zebraqueue-ctl.sh /etc/init.d/koha-zebraqueue-daemon
sudo update-rc.d koha-zebraqueue-daemon defaults

Open following files one by one and change the USER and GROUP parameters. And save the files.

sudo gedit /usr/share/koha/bin/koha-zebra-ctl.sh
sudo gedit /usr/share/koha/bin/koha-zebraqueue-ctl.sh

Change USER and GROUP to root.
#!/bin/bash
USER=root
GROUP=root

Set following folders ownership to Koha user

sudo chmod -R 777 /var/lock/koha
sudo chown -R koha:koha /var/lock/koha
sudo chmod -R 777 /var/lib/koha/
sudo chown -R koha:koha /var/lib/koha

Cronjob Settings
sudo su
cd /usr/share/koha/bin/cronjobs
crontab -u root crontab.example
crontab -u username crontab.example  [Username denotes name of your home user]
export EDITOR=gedit
crontab -e
Crontab will open in geditor.
You can change the timing of various automated activities like fine calculation, zebra etc.

Save and close the file.

Some settings for Apache,

sudo gedit /etc/koha/koha-httpd.conf

Find the following line,

## OPAC
<VirtualHost 127.0.1.1:80>

Change the port number

## OPAC
<VirtualHost *:8001>

Find this line too,

## Intranet
<VirtualHost 127.0.1.1:8080>

Change to

## Intranet
<VirtualHost 127.0.1.1:8000>

Save the file.

Goto command terminal and restart the Apaches server,

sudo /etc/init.d/apache2 restart

Run the Web installer

http://127.0.1.1:8000

It will open the Koha installer in you browser. To see the screen shots of Koha installer visit http://openlib.org/home/krichel/courses/lis508/koha/installer_screens/
Login the installer, User name: kohaadmin Password: katikoan

Read the installer instructions carefully and proceed the post installation settings.
You can login to Koha after finishing this process

URL of OPAC is http://127.0.1.1:8001



Zebra Management
These command are useful for rebuilding Zebra index while cataloging records.

Starting Zebra Server

Copy paste the  following commands in a terminal and press enter button.

sudo su
sudo /etc/init.d/koha-zebra-daemon start
sudo /etc/init.d/koha-zebraqueue-daemon start

Rebuilding Zebra Index
sudo KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v

Quick Indexing
sudo KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -w


Sunday, December 18, 2011

Pear OS - The complete Mac OS clone for Ubuntu lovers.


This Linux distribution based on Ubuntu give you Apple Mac experience.

Descritpion from the home page of Pear OS.


Pear OS Linux is a French distribution. It was created by David Tavares, Deux-Sèvres (79), France.
The purpose of Pear OS is to create an operating system (64 bit) based on linux (ubuntu mini remix) and propose a simple but powerful interface.

Pear OS is free (thanks to your donations) and we hope you enjoy it.

It is operating out of the box, with a complete multimedia experienceand is extremely easy to use.
Users are encouraged to send their comments to the project so that their ideas can be used to improve Pear OS.
Based on Ubuntu (debian), it provides an impressive repository.


http://pear-os-linux.fr

Thursday, December 1, 2011

Installing Dspace 1.8 on Ubuntu 10.04

Installation of prerequisite applications

Open  Applications > Accessories > Terminal and execute following commands. Text in italics are commands to be executed.

sudo apt-get install openjdk-6-jdk

sudo apt-get install tasksel
sudo tasksel


Select the following packages.
Use space bar for select applications from list.
[*] LAMP server
[*] PostgreSQL database
[*] Tomcat Java server
  use tab to select OK button and enter

sudo apt-get install ant maven2 

Create the database user (dspace)

sudo su postgres

createuser -U postgres -d -A -P dspace

enter password for new role (select a password like dspace)
Shall the new role be allowed to create more new roles? (y/n) n

Exit from the promp, type

exit

Allow the database user (dspace) to connect to the database

sudo gedit /etc/postgresql/8.4/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      enter,

then paste the following line and enter

/etc/init.d/postgresql-8.4 restart

Create the Unix 'dspace' user, update the passwd, create the directory in which you will install dspace, and ensure that the Unix 'dspace' user has write privileges on that directory:

sudo useradd -m dspace

sudo passwd dspace (enter any password like dspace 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 

Configure Tomcat to know about the DSpace webapps.


sudo gedit /etc/tomcat6/server.xml


 Insert the following chunk of text just above the closing </Host>
<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>
save and close  the file a

This following  step downloads the compressed archive from SourceForge, and unpacks it in your current directory. The dspace-1.x.x-src-release directory is typically referred to as [dspace-src].

sudo mkdir /build
sudo chmod -R 777 /build
cd /build
wget http://sourceforge.net/projects/dspace/fil&nbsp;es/DSpace%20Stable/1.8.0/dspace-1.8.0-src-release.tar.bz2
tar -xvjf dspace-1.8.0-src-release.tar.bz2

cd /build/dspace-1.8.0-src-release
mvn -U package
cd dspace/target/dspace-1.8.0-build
sudo ant fresh_install

Fix Tomcat permissions, and restart the Tomcat server


sudo chown tomcat6:tomcat6 /dspace -R
Restart Tomcat

/etc/init.d/tomcat6 restart

 Make an initial administrator account (an e-person) in DSpace:

/dspace/bin/dspace create-administrator

Test it out 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
http://localhost:8080/jspui

Reference

Sunday, November 13, 2011

How to update Grub ?

In certain cases while Linux installation, other operating system (e.g. Windows) not detected and listed in star up.  In such cases you can update grub from Linux. Open a terminal and execute the following commands,

sudo su
update-grub

Restart your system

Sunday, October 23, 2011

How to change Ubuntu 10.04 login screen image

Execute the following command in a terminal,

sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow

Copy an image to /usr/share/backgrounds

cp yourimage.jpg /usr/share/backgrounds

Logout Ubuntu.
You can see a window will pop up, select "Wallpaper" and locate the desired image. You can change the image from there.

Login to system and open a terminal and execute following command,

sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-appearance-properties.desktop

Friday, October 21, 2011

Switch from Unity to Gnome in Ubuntu 11.10

Enter the following command in Terminal,


sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
 
Reboot PC.