WIKIPEDIA SERVER:
A nice touch is to treat your customers with Wikipedia served on wifi.
wget https://www.kiwix.org/en/downloads/kiwix-serve/Webserver
tar -zxvf kiwix-tools_linux-armhf.tar.gz
sudo mv kiwix-tools_linux-armhf-3.0.3/* /usr/local/bin/
Download zim files from:
https://wiki.kiwix.org/wiki/Content_in_all_languages
sudo mv wikipedia_en_simple_all_nopic_2020-02.zim /var/local/
sudo nano /etc/systemd/system/kiwix.service
[Unit]
Description=Kiwix Service
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/kiwix-serve /var/local/wikipedia_en_simple_all_nopic_2020-02.zim -p 80
Restart=always
RestartSec=3
[Install]
*: for multiple libraries the above line should be like:
ExecStart=/usr/local/bin/kiwix-serve -mb
/var/… for local library,
/media/pi/… for usb-stored one.
sudo systemctl enable kiwix
sudo systemctl start kiwix
To make it available to wifi server, include a link to ip:port of the kiwix.service as a link in the php file as follows:
<?php
header(“Location: http://10.1.1.1:9090”);
exit;
?>
source: https://www.rickmakes.com/offline-wikipedia-on-wired-raspberry-pi-using-kiwix/