Deployment/howto

From Kiwix
Jump to: navigation, search

This Deployment HOWTO is an online documentation to help everyone wanting to provide deploy Kiwix. Feel free to make remarks or ask question in the talk page.

Kiwix 0.9 alpha1 screenshot en.png
0.9 alpha1 version screenshot (screencast)

Contents

Technical solutions

Article served via HTTP by kiwix-serve

Kiwix provides different technical solutions:

Define your target

Before starting to find a technical solution to deploy, you need to ask you a few essential questions:

Choose your content

Kiwix is a pure ZIM reader, that means that the content should be in the ZIM format. You may find ZIM files here:

If you search a content reviewed for Children, you may be interesting in the Wikipedia for School selection.

Build your package

Screenshot of the library in Kiwix

Before deploying the solution, you have to put your content (the ZIM file(s)) with Kiwix (the software itself). Maybe The Kiwix project already did it for you, so check here to see if we already provide what you need. Otherwise, you will have to do it by yourself and this part of the process is the most complicated.

To build packages, 3 different console tools are available:

Kiwix knows about the available contents and indexes (to allow the fulltext search) by reading one (or many) so called library file(s) which are XML files (more information about the XML format). In Kiwix itself, you have the "library" (see screenshot beside) which is the visual form of the information available in library XML files. Each time Kiwix starts, it tries to find the XML library files to know more about available content. So, library XML files should be located to specific predefinedd places and in general Kiwix data storage follow these rules.

So if you want for example to spread Kiwix for Windows with foobar.zim, you have to do:

At kiwix.org we have a PERL script to do that (and a few additional small things) quickly. If you are a PERL hacker you may have a look to it.

But, because kiwix-serve is less developed as kiwix, both still work a little bit differently. Kiwix-serve does not work with libraries, we still do not have implemented that. To run kiwix-serve, you simply need to have a ZIM file and a fulltext search index in option. To build the fulltext search index, you need the kiwix-index binary which is trivial to use. Currently, kiwix-serve only runs on GNU/Linux. If you have a permission issue, please open a port over 1024, otherwise, you will need root permission to run it.

Deploy

There are many ways to deploy kiwix: over a local network or using removable mass storage solution like DVDs or USB sticks. Although we won't provide a big list of trivial ways to do that, we want to share with you a few remarks:

Getting Support & Assistance

See also

Personal tools
Namespaces
Variants
Actions
Download(Sources)
Navigation
Toolbox
In other languages
Part of OpenZIM
Motorized by
Hosted by