<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 11/02/10 11:27, PasiK wrote:<br>
<blockquote cite="mid:27539192.post@talk.nabble.com" type="cite">
<pre wrap="">How can we make the switch to Zebra? Besides changing the system parameter
what else needs to be done?
</pre>
</blockquote>
You need to setup and start the Zebra daemons, index all your current
inventory, and set up a cron job to automatically update the index.<br>
<br>
What OS and install type(dev/standard) are you on?<br>
<br>
For an Ubuntu standard install, do the following. Adjust to your system
if different.<br>
<br>
Setup the Daemons:<br>
<pre class="de1"><span class="kw2">sudo aptitude update
sudo aptitude install </span>idzebra-<span class="nu0">2.0
</span><span class="kw2">sudo</span> <span class="kw2">ln</span> <span
class="re5">-s</span> <span class="sy0">/</span>usr<span class="sy0">/</span>share<span
class="sy0">/</span>koha<span class="sy0">/</span>bin<span class="sy0">/</span>koha-zebra-ctl.sh <span
class="sy0">/</span>etc<span class="sy0">/</span>init.d<span
class="sy0">/</span>koha-zebra-daemon
<span class="kw2">sudo</span> update-rc.d koha-zebra-daemon defaults
<span class="kw2">sudo</span> <span class="sy0">/</span>etc<span
class="sy0">/</span>init.d<span class="sy0">/</span>koha-zebra-daemon start
<span class="kw2">sudo</span> <span class="kw2">ln</span> <span
class="re5">-s</span> <span class="sy0">/</span>usr<span class="sy0">/</span>share<span
class="sy0">/</span>koha<span class="sy0">/</span>bin<span class="sy0">/</span>koha-zebraqueue-ctl.sh <span
class="sy0">/</span>etc<span class="sy0">/</span>init.d<span
class="sy0">/</span>koha-zebraqueue-daemon
<span class="kw2">sudo</span> update-rc.d koha-zebraqueue-daemon defaults
<span class="kw2">sudo</span> <span class="sy0">/</span>etc<span
class="sy0">/</span>init.d<span class="sy0">/</span>koha-zebraqueue-daemon start
</pre>
Make sure you have set the following environmental variables so you can
run the scripts:<br>
<pre class="de1"><span class="st0">export KOHA_CONF=/etc/koha/koha-conf.xmlexport
PERL5LIB=/usr/share/koha/lib</span></pre>
I put them in /etc/enviroment, but there are a few other options also.<br>
<br>
This command should do the initial index:<br>
<pre class="code">perl -I /usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -v -b -w
</pre>
The cron job to do regular index updates should be set up for the koha
user, assuming you have. To open a crontab editor for the koha user:<br>
<div dir="ltr" class="mw-geshi" style="text-align: left;">
<div class="bash source-bash">
<pre class="de1"><span class="kw2">sudo</span> <span class="re5">-u</span> koha crontab <span
class="re5">-e</span></pre>
</div>
</div>
The following lines are what I have in my crontab:<br>
<pre># ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day
# for both authorities and bibs
*/10 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z > /dev/null
</pre>
Once you have done all that, you should be able to switch the
preference over in Koha.<br>
<br>
Note that I have only tested this on Ubuntu standard install of 3.00.05.<br>
<br>
Hope that helps,<br>
<br>
Braedon Vickers<br>
<pre class="moz-signature" cols="72">--
TechnologyWise Ltd, Tauranga, NZ
<a class="moz-txt-link-abbreviated" href="mailto:braedon@tw.co.nz">braedon@tw.co.nz</a>
<a class="moz-txt-link-abbreviated" href="http://www.technologywise.co.nz">www.technologywise.co.nz</a>
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061 </pre>
</body>
</html>