No description, website, or topics provided.
Shell HTML CSS Nginx JavaScript
Latest commit f6af84a Feb 21, 2017 @kelson42 kelson42 committed on GitHub Merge pull request #5 from thiolliere/master
change sh to bash because use of some echo option
Failed to load latest commit information.
bin + stub 'bin' directory Jun 8, 2014
conf Kiwix-plug for RaspberryPi is OK for PROD Jan 9, 2016
data + stub data directory Mar 30, 2013
kiwix.old + small reorg Jun 29, 2012
landing.afrilibre new landing pages Apr 20, 2015
landing.afripedia + fix index.html page (better randering if long url) Jun 19, 2013
landing.legacy New landing May 14, 2015
scripts Kiwix-plug for RaspberryPi is OK for PROD Jan 9, 2016
README SF -> Github URLs Sep 17, 2016
README_RASPBERRYPI Kiwix-plug for RaspberryPi is OK for PROD Jan 9, 2016 Kiwix-plug for RaspberryPi is OK for PROD Jan 9, 2016 change sh to bash because use of some echo option Feb 21, 2017 Kiwix-plug for RaspberryPi is OK for PROD Jan 9, 2016 chmod 777 on usb drive May 10, 2015


*                                                                   *
*                      KIWIX-PLUG                                   *
*                                                                   *

This is the documentation about Kiwix-plug. Kiwix-plug is a solution
allowing everyone to set up an open Wifi kiosk to deliver contents
available in the ZIM format. The solution is adapated for the
Globalscape Dreamplug, use the Kiwix-serve technology and many open
source softwares. This documentation explains how to setup Kiwix-plug.

If you want to install kiwix-plug on a RaspberryPi, please read

== Requirements ==
* A Dreamplug
* An empty USB key or SDcard (with enough space, be careful) to store
  the ZIM files an a few other things
* ZIM files you want to spread
* A wireline LAN allowing access to Internet with a free RJ45 port
* A DHCP on the LAN able to automaticaly deliver IPs to new devices
* A computer with a UNIX and a root access, GNU/Linux is perfect. This
  computer needs a free USB/SDcard port to put the flash drive to
  setup. You need free space on your hard-disk: at least 3x the size
  of the ZIM files you want to copy on the USB key.
* Preparing the "master" (mainly downloading the ZIM files and computing
  the full-text search engine indexes) can take hours, depending of
  the size of the contents and the power of your computer. Do not wait
  the last minute!

The setup process has 3 steps, based on 3 scripts:

0 Get the code to do all the stuff

1 Run "" to prepare everything on your computer. It
  especialy downloads the binaries to install on the plug, compute
  indexes, etc.

2 Run "" to configure your plug.

3 Run "" to copy everything necessary on your usb key

4 OPTIONAL: Add a router to the plug to increase the wireless coverage

== Retrieving the code ==

The code to setup the Dreamplug and the flash drive is available on
Internet here:

To retrieve it you need to have git (code version control system)
client installed on your computer. If you use a Debian based GNU/Linux
distribution you can type (like Ubuntu): "apt-get install git"
in the console.

To download the code, type:
git clone

You will get a "kiwix-other/plug" directory. Go inside.

== Setup the master ==

This will do all preparatory work before setting up the Dreamplug and
the flash drive.

You need to know at this moment what for contents (ZIM files) you want
to install on the plug computer. Copy thus file in "./data/content/"

Run "./", this will take many minutes to downloads
binaries for the plug and also compute fulltext indexes for each ZIM
files. Be patient...

Run "./ clean" to clean everything (but not the ZIM
files) was downloaded before re-preparing the master.

== Setup the plug ==

We will now do a minimal configuration of the plug computer. You need
to plug it to the power and link it (using the "external" RJ45 LAN
port on the side) with a RJ45 on the same LAN switch as your master

The plug should be automaticaly detected, but to avoid any conflicts
and problem put always only one plug at the same time to the LAN. If
everything goes right the plug should get an IP and the blue LED
should blink.

Run "./", this should find the plug, connect per ssh to it
and do a few things. This will be fast, because this only install if
necessary a few packages, add an init.d script and initiate the clock.

== Setup the flash storage ==

You need to put a free USB key to your computer and run the script
"./". This will copy many things to the USB key, so
this can take many minutes, be patient...

== Optional: Add a router ==

This could be useful to increase the wifi coverage of the whole setup.
To achieve to do that, you can add a new wifi hotspot which is linked
per RJ45 to the plug. the router you add acts like a new wifi hotspot
providing exactly the same as the original hotspot... So it's like
having two plugs.

So, you need an additional router. This tutorial works with the
Netgear N300 but you can use any router providing similar

To configure the router, connect to its web user interface (default IP
should be and:
* Change its ip to
* Shutdown its DHCP daemon
* Remove any password from the WIFI configuration
* Change the SSID to "KIWIX"

We provide a pre-configured file you can already play in the Netgear N300:

After that you need to plug the router with a RJ45 cable to the
*external* (they are two) RJ45 plug of the dreamplug. You should get
in addition a new "KIWIX" hotspot.

== Conclusion ==

You should have now a perfectly working kiwix-plug. Remove the RJ45
cable from the plug computer, put the flash drive to the plug computer
and restart it. You should see now a new Wifi network called
"KIWIX_PLUG" appearing. Connect to it using your
laptop/smartophone/tablet and open a new Web browser windows. You
should land to the Kiwix-plug Welcome page.

Enjoy! To any problem: