Difference between revisions of "Kiwix: Download & Instal"

From OnnoWiki
Jump to navigation Jump to search
Line 56: Line 56:
 
==Client==
 
==Client==
  
Akses melalui alamat
+
Contoh2 Akses melalui alamat
  
 
  http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/A/Onno_W._Purbo.html
 
  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
 +
http://moodlebox.home:8080/wikipedia_id_all_mini_2020-06/A/Joko_Widodo
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[Internet Offline]]
 
* [[Internet Offline]]

Revision as of 08:34, 13 June 2020

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=8080 /usr/local/bin/wikipedia_id_all_novid_2018-07.zim &
./kiwix-serve --port=8081 /usr/local/bin/wiktionary_id_all_novid_2018-07.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/src/kiwix-0.10-x86_84/bin/
/usr/local/bin/kiwix-serve --port=8080 /usr/local/bin/wikipedia_id_all_novid_2018-07.zim &
/usr/local/bin/kiwix-serve --port=8081 /usr/local//bin/wiktionary_id_all_novid_2018-07.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