Difference between revisions of "Kiwix: Download & Instal"

From OnnoWiki
Jump to navigation Jump to search
Line 16: Line 16:
 
==Install==
 
==Install==
  
 +
sudo su
 
  cd /usr/local/src
 
  cd /usr/local/src
  tar xvfj kiwix-server-arm.tar.bz2
+
  tar zxvf kiwix-tools_linux-armhf-3.1.1-3.tar.gz
  mv kiwix* /usr/local/bin
+
  mv kiwix-tools_linux-armhf-3.1.1-3/kiwix-* /usr/local/bin/
 
  chmod -Rf 777 /usr/local/bin
 
  chmod -Rf 777 /usr/local/bin
 
  chown -Rf nobody: /usr/local/bin
 
  chown -Rf nobody: /usr/local/bin
 
atau
 
 
cp kiwix-server-0.9-linux-armv5tejl.tar.bz2 /usr/local/src
 
tar xvfj kiwix-server-0.9-linux-armv5tejl.tar.bz2
 
 
  
 
==Copy source wikipedia==
 
==Copy source wikipedia==

Revision as of 08:24, 13 June 2020

Download

Download file

sudo su
cd /usr/local/src/
# wget http://download.kiwix.org/bin/kiwix-server-arm.tar.bz2
wget https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf.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

cp wikipedia_id_all_nopic_2018-07.zim /usr/local/src
cp wikipedia_id_all_novid_2018-07.zim /usr/local/src

Jalankan

cd /usr/local/bin/
./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

Akses melalui alamat

http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/A/Onno_W._Purbo.html

Pranala Menarik