Difference between revisions of "USB OFFLINE: Ubuntu 22.04 Install KIWIX"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Install== | ==Install== | ||
− | sudo | + | sudo su |
− | + | apt -y install kiwix-tools | |
− | |||
− | |||
==Download zim backup wikipedia dan wikitionary== | ==Download zim backup wikipedia dan wikitionary== | ||
sudo | sudo | ||
− | + | mkdir -p /var/www/html/kiwix | |
− | wget https://download.kiwix.org/zim/wikipedia/ | + | chmod -Rf 777 /var/www/html/kiwix/ |
− | wget https://download.kiwix.org/zim/wikipedia/ | + | chown -Rf nobody: /var/www/html/kiwix/ |
+ | cd /var/www/html/kiwix | ||
+ | wget https://download.kiwix.org/zim/wikipedia/wikipedia_id_top_maxi_2024-04.zim | ||
+ | |||
+ | Atau | ||
+ | |||
+ | # wget https://download.kiwix.org/zim/wikipedia/wikipedia_id_top_nopic_2024-04.zim | ||
==Run== | ==Run== | ||
sudo | sudo | ||
− | cd / | + | cd /var/www/html/kiwix |
− | + | /usr/bin/kiwix-serve --port=8081 wikipedia_id_top_maxi_2024-04.zim & | |
− | |||
atau | atau | ||
sudo | sudo | ||
− | /usr/ | + | /usr/bin/kiwix-serve --port=8081 /var/www/html/kiwix/wikipedia_id_top_maxi_2024-04.zim & |
− | /usr/local/src/kiwix- | + | |
+ | ==Script start-kiwix.sh== | ||
+ | |||
+ | vi /home/offline/start-kiwix.sh | ||
+ | |||
+ | Isi dengan, | ||
+ | |||
+ | /usr/bin/kiwix-serve --port=8080 /var/www/html/kiwix/wikipedia_id_top_maxi_2024-04.zim & | ||
+ | |||
+ | |||
+ | Save, dan chmod, | ||
+ | |||
+ | chmod 777 /home/offline/start-kiwix.sh | ||
+ | |||
+ | |||
+ | Contoh Lain: | ||
+ | |||
+ | /usr/bin/kiwix-serve --port=8081 /usr/local/src/kiwix/wikipedia_id_all_nopic_2022-12.zim & | ||
+ | /usr/bin/kiwix-serve --port=8082 /usr/local/src/kiwix/wikipedia_en_computer_maxi_2022-08.zim & | ||
+ | /usr/bin/kiwix-serve --port=8083 /usr/local/src/kiwix/wikipedia_id_all_maxi_2022-05.zim & | ||
+ | /usr/bin/kiwix-serve --port=8084 /usr/local/src/kiwix/wikipedia_id_top_maxi_2022-07.zim & | ||
+ | /usr/bin/kiwix-serve --port=8085 /usr/local/src/kiwix/wikipedia_id_all_nopic_2022-05.zim & | ||
+ | /usr/bin/kiwix-serve --port=8086 /usr/local/src/kiwix/wikipedia_id_top_mini_2022-09.zim & | ||
+ | /usr/bin/kiwix-serve --port=8087 /usr/local/src/kiwix/wiktionary_id_all_maxi_2021-08.zim & | ||
+ | |||
+ | ==Edit /etc/rc.local== | ||
+ | |||
+ | vi /etc/rc.local | ||
+ | |||
+ | Isi dengan, | ||
+ | |||
+ | #!/bin/sh -e | ||
+ | |||
+ | /home/offline/start-kiwix.sh | ||
+ | |||
+ | exit 0 | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[Kiwix]] | * [[Kiwix]] |
Latest revision as of 10:08, 8 April 2024
Install
sudo su apt -y install kiwix-tools
Download zim backup wikipedia dan wikitionary
sudo mkdir -p /var/www/html/kiwix chmod -Rf 777 /var/www/html/kiwix/ chown -Rf nobody: /var/www/html/kiwix/ cd /var/www/html/kiwix wget https://download.kiwix.org/zim/wikipedia/wikipedia_id_top_maxi_2024-04.zim
Atau
# wget https://download.kiwix.org/zim/wikipedia/wikipedia_id_top_nopic_2024-04.zim
Run
sudo cd /var/www/html/kiwix /usr/bin/kiwix-serve --port=8081 wikipedia_id_top_maxi_2024-04.zim &
atau
sudo /usr/bin/kiwix-serve --port=8081 /var/www/html/kiwix/wikipedia_id_top_maxi_2024-04.zim &
Script start-kiwix.sh
vi /home/offline/start-kiwix.sh
Isi dengan,
/usr/bin/kiwix-serve --port=8080 /var/www/html/kiwix/wikipedia_id_top_maxi_2024-04.zim &
Save, dan chmod,
chmod 777 /home/offline/start-kiwix.sh
Contoh Lain:
/usr/bin/kiwix-serve --port=8081 /usr/local/src/kiwix/wikipedia_id_all_nopic_2022-12.zim & /usr/bin/kiwix-serve --port=8082 /usr/local/src/kiwix/wikipedia_en_computer_maxi_2022-08.zim & /usr/bin/kiwix-serve --port=8083 /usr/local/src/kiwix/wikipedia_id_all_maxi_2022-05.zim & /usr/bin/kiwix-serve --port=8084 /usr/local/src/kiwix/wikipedia_id_top_maxi_2022-07.zim & /usr/bin/kiwix-serve --port=8085 /usr/local/src/kiwix/wikipedia_id_all_nopic_2022-05.zim & /usr/bin/kiwix-serve --port=8086 /usr/local/src/kiwix/wikipedia_id_top_mini_2022-09.zim & /usr/bin/kiwix-serve --port=8087 /usr/local/src/kiwix/wiktionary_id_all_maxi_2021-08.zim &
Edit /etc/rc.local
vi /etc/rc.local
Isi dengan,
#!/bin/sh -e /home/offline/start-kiwix.sh exit 0