Updating Kiwix and Zim File on Raspberry Pi Offline Wikipedia Kiosk

Locked Down Offline Wikipedia Kiosk on Raspberry Pi 4: https://youtu.be/gtlydT6Lumg

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
US: https://amzn.to/3azJgrW
UK: https://amzn.to/2JdMq9o
CA: https://amzn.to/3bwiRvY
ES: https://amzn.to/2T06LnM (similar)
FR: https://amzn.to/3cvIZrs (similaire)
IT: https://amzn.to/2Ar74Sj (simile)
DE: https://amzn.to/2AqfWHQ (ähnlich)
IN: https://amzn.to/3ey6fWj
AU: https://amzn.to/2VTUt1C
NL: https://amzn.to/3f5NdsD (vergelijkbaar)

Download Kiwix Server

https://www.kiwix.org/en/downloads/kiwix-serve/

Download Kiwix Content (Zim File)

https://wiki.kiwix.org/wiki/Content_in_all_languages

Login to Raspberry Pi (use your kiosk’s hostname, username and password)
ssh pi@raspberrypi.local
Disable OverlayFS (disable read-only system)
sudo raspi-config

Advanced Options > Overlay FS

Send Kiwix Server and Zim File to Raspberry Pi (run on local computer)
scp ~/Downloads/kiwix-tools_linux-armhf*.tar.gz pi@raspberrypi.local:~/
scp ~/Downloads/*.zim pi@raspberrypi.local:~/
Stop Kiwix Server
sudo systemctl stop kiwix
Open Kiwix Service Configuration
sudo nano /etc/systemd/system/kiwix.service

Update the zim filename. Control-o to save. Control-x to exit.

Move Zim File to Directory
sudo mv wikipedia*.zim /var/local/
Change zim file user/group to pi
sudo chown pi:pi /var/local/wikipedia*.zim
Decompress Kiwix Server
tar -zxvf kiwix-tools_linux-armhf*.tar.gz
Move Binaries to Executable Directory
sudo mv kiwix-tools_linux-armhf-*/* /usr/local/bin/
Reload systemd Manager Configuration
sudo systemctl daemon-reload
Start Kiwix Service
sudo systemctl start kiwix
Check Status of Kiwix Service
sudo systemctl status kiwix

Re-enable OverlayFS using instructions above and reboot Raspberry Pi.

Leave a comment

Your email address will not be published. Required fields are marked *