Kiwix: Download & Instal

From OnnoWiki
Revision as of 17:13, 13 June 2020 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Download

Download file

sudo su
cd /usr/local/src/
wget https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf.tar.gz
wget https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf-3.1.1-3.tar.gz


Download zim file

https://download.kiwix.org/zim/wikipedia/
https://download.kiwix.org/zim/wikipedia//wikipedia_id_all_mini_2020-06.zim
https://download.kiwix.org/zim/wikipedia//wikipedia_id_all_nopic_2020-06.zim

Install

sudo su
cd /usr/local/src
tar zxvf kiwix-tools_linux-armhf-3.1.1-3.tar.gz
mv kiwix-tools_linux-armhf-3.1.1-3/kiwix-* /usr/local/bin/
chmod -Rf 777 /usr/local/bin
chown -Rf nobody: /usr/local/bin

Copy source wikipedia

mv wikipedia_id_all_mini_2020-06.zim /usr/local/src/

Jalankan

cd /usr/local/bin/
./kiwix-serve --port=8080 /usr/local/src/wikipedia_id_all_mini_2020-06.zim &
./kiwix-serve --port=8081 /usr/local/src/wikipedia_id_all_nopic_2020-06.zim &


Script kiwixi-on.sh

echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve
cd /usr/local/bin/
./kiwix-serve --port=8080 /usr/local/src/wikipedia_id_all_mini_2020-06.zim &
./kiwix-serve --port=8081 /usr/local/src/wikipedia_id_all_nopic_2020-06.zim &

Script kiwix-off.sh

echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve
echo 123456 | sudo -S killall kiwix-serve

Client

Contoh2 Akses melalui alamat

http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/A/Onno_W._Purbo.html
http://moodlebox.home:8080
http://moodlebox.home:8080/wikipedia_id_all_mini_2020-06/A/Joko_Widodo

Pranala Menarik