Offline Wikipedia or any zim file
- Kiwix
- Podman with systemd
- jq for reading configuration file
- curl for downloading files
- Makefile as a bash runner
- cron for regular auto-update
- rsyslog for container systemd logging
- Configurable zim files sources
- Auto-update kiwix and zim files
- Run as a dedicated user (run rootless, needs sudo to install)
Edit Makefile
- Change the value of
RUN_USERto customize the system user running kiwix-server - Change the value of
RUN_DIRto customize the directory where application files are stored (config, zim files, logs)
Or keep the default values
Edit config.json
The auto-update process get the listing of available files from base_url, download the most recent file beginning with base_file and make it available to the kiwix server.
- On a Debian-based Linux (Debian, Ubuntu, Linux Mint, ...)
sudo apt-get install git make
git clone https://github.com/gautiers/kiwix-server.git .
make install
make uninstall
- Downloaded zim files will be deleted