FreedomBox for Communities/Offline Wikipedia

Offline availability of Wikipedia pages, Project Gutenberg, Stack Exchange and other content can be useful for education, especially in situations where Internet connectivity is intermittent or when the bandwidth is congested or metered. It could also be suitable for a class room that might otherwise not have Internet access.

Kiwix is an application that can serve a web interface on which users can browse pages and search them.

Installing Kiwix
Install Kiwix on the FreedomBox server machine by following these instructions.



Download and install kiwix-tools from Kiwix website. Do this as the root user.

Explanation: Kiwix used to be available in Debian package repositories, but isn't anymore. The workaround is to install via tarball, as described above. However, the tarball method may make it hard to update or uninstall Kiwix, should this become necessary. Alternatively, it may be possible to use a flatpack, but this is untested. The potential benefits would be the usual ones gained from using a Package manager. 

Create a folder for holding Kiwix library in the /srv folder (this can be separate disk so that it can hold larger volumes of data). 

Download files from Kiwix content download page. 

Create and add the .zim files to a library file. Add as many .zim file as you wish in a similar way. 

Setup kiwix web service to run on the system as soon as the system starts. 

Create Apache configuration to forward requests on /kiwix to kiwix. 



Adding new content repositories


Login as root user and download files from Kiwix content download page. </li>

<li>Add the .zim files to a library file. </li>

</ol>

Accessing Kiwix
Visit the URL http://<myfreedombox.domain>/kiwix/. You should see an interface showing a entry for each of the .zim file added. Select the entry to start browsing the content of the .zim file. There is also a search interface available to allow you to search within all of the offline content available.