# How to consultar y crear una versión local de Wikipedia

## **KIWIX: ¿Qué información necesitamos guardar en local?**

**[![kiwixlogo.png](https://altranet.org/uploads/images/gallery/2026-03/scaled-1680-/kiwixlogo.png)](https://altranet.org/uploads/images/gallery/2026-03/kiwixlogo.png)**

## Con un smartphone

Instalar [Kiwix application on Android ](https://play.google.com/store/apps/details?id=org.kiwix.kiwixmobile)

Instaler [Kiwix application on iOS](https://apps.apple.com/fr/app/kiwix/id997079563)

[![kiwix.jpeg](https://altranet.org/uploads/images/gallery/2026-03/scaled-1680-/kiwix.jpeg)](https://altranet.org/uploads/images/gallery/2026-03/kiwix.jpeg)

**Kiwix es un lector offline de contenidos web (Wikipedia, archivos, bibliotecas...) que funciona sin conexión a internet.**   
**Es el lector offline oficial de la Fundación Wikimedia.**

**Instrucciones:**

1. Instalad la aplicación Kiwix en el teléfono
2. Explorad el catálogo de libros y contenidos disponibles para leer sin conexión
3. Reflexionad juntas:   
    ¿Si internet fuera a desaparecer en 10 minutos, qué descargaríais primero?   
    ¿Qué echaríais de menos?
4. Apuntad vuestras respuestas y construid vuestra frase colectiva con este formato:   
    *¡Hey! Contamos con estos conocimientos en local: \_\_\_\_\_\_\_\_\_\_ y buscamos estos conocimientos para copiar: \_\_\_\_\_\_\_\_\_\_*
5. Copiad vuestra frase en el pad compartido de la intranet local: [https://etherpad.calafou.org/p/Perfo\_Altranet ](https://etherpad.calafou.org/p/Perfo_Altranet)  
    También la podeis compartir luego en el grupo compartido por Bluetooth Altranet

---

## With a web browser and a (mini) server

Install Kiwix on a Raspberry Pi !  
  
If you change the hostname of the server (here altranet), then you can consult wikipedia (and what you add to kiwx library) with a web browser at [http://local.altranet.org](http://local.altranet.org)

[![kiwix-altranet_local.png](https://altranet.org/uploads/images/gallery/2026-03/scaled-1680-/kiwix-altranet-local.png)](https://altranet.org/uploads/images/gallery/2026-03/kiwix-altranet-local.png)

### Prerequisites

<div class="markdown-heading" dir="auto" id="bkmrk--4">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#prerequisites)</div>Before starting, make sure:

1. You have a Raspberry Pi with Raspberry Pi OS installed.
2. You have an active internet connection.
3. You are logged in as a user with `sudo` privileges.
4. My user is `admin`, if yours is different please change it in the below scrips.

---

### Installation Steps

<div class="markdown-heading" dir="auto" id="bkmrk--7">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#installation-steps)</div>#### Step 1: Update and Upgrade Your System

<div class="markdown-heading" dir="auto" id="bkmrk--9">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#step-1-update-and-upgrade-your-system)</div>First, ensure your system is up to date:

```
sudo apt update -y && sudo apt upgrade -y
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--11"><div class="zeroclipboard-container">  
</div></div>#### Step 2: Install Kiwix Tools

<div class="markdown-heading" dir="auto" id="bkmrk--12">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#step-2-install-kiwix-tools)</div>Install the Kiwix Tools package:

```
sudo apt install kiwix-tools -y
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--14"><div class="zeroclipboard-container">  
</div></div>---

### Setting Up the Kiwix Library

<div class="markdown-heading" dir="auto" id="bkmrk--16">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#setting-up-the-kiwix-library)</div>#### Step 3: Create a Library File

<div class="markdown-heading" dir="auto" id="bkmrk--18">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#step-3-create-a-library-file)</div>- Create a directory to store your library:
    
    ```
    sudo mkdir /home/admin/kiwix-library
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

Create an empty `library.xml` file:

```
sudo touch /home/admin/kiwix-library/library.xml
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--20"><div class="zeroclipboard-container">  
</div></div>Open the file for editing:

```
sudo nano /home/admin/kiwix-library/library.xml
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--21"><div class="zeroclipboard-container">  
</div></div>Add the following content and save the file:

```
<?xml version="1.0" encoding="UTF-8"?>
<library xmlns="http://www.kiwix.org/">
</library>
```

<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" id="bkmrk--22"><div class="zeroclipboard-container">  
</div></div>#### Step 4: Download a Sample Book

<div class="markdown-heading" dir="auto" id="bkmrk--23">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#step-4-download-a-sample-book)</div>Download a sample ZIM file to your library directory:

```
sudo wget -O /home/admin/kiwix-library/archlinux_en_all_nopic_2022-12.zim https://download.kiwix.org/zim/other/archlinux_en_all_nopic_2022-12.zim
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--25"><div class="zeroclipboard-container">  
</div></div>#### Step 5: Add the Book to Your Library

<div class="markdown-heading" dir="auto" id="bkmrk--26">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#step-5-add-the-book-to-your-library)</div>Add the downloaded ZIM file to your `library.xml` file:

```
sudo kiwix-manage /home/admin/kiwix-library/library.xml add /home/admin/kiwix-library/archlinux_en_all_nopic_2022-12.zim -u https://download.kiwix.org/zim/other/archlinux_en_all_nopic_2022-12.zim
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--28"><div class="zeroclipboard-container">  
</div></div>---

### Starting the Kiwix Server

<div class="markdown-heading" dir="auto" id="bkmrk--30">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#starting-the-kiwix-server)</div>Start the Kiwix server on port 80 using your library file:

```
sudo kiwix-serve --port=80 --library /home/admin/kiwix-library/library.xml
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--32"><div class="zeroclipboard-container">  
</div></div>You can now access the Kiwix server by navigating to your Raspberry Pi's IP address in a web browser.

---

### Optional

<div class="markdown-heading" dir="auto" id="bkmrk--34">[](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi#optional)</div>To start Kiwix on port 80 after boot up:

```
sudo nano /etc/systemd/system/kiwix.service
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--36"><div class="zeroclipboard-container">  
</div></div>Add the following:

```
[Unit]
Description=Kiwix Serve
After=network.target

[Service]
ExecStart=sudo /usr/bin/kiwix-serve --port=80 --library /home/admin/kiwix-library/library.xml
WorkingDirectory=/home/admin/kiwix-library
User=admin
Group=admin
Environment=DISPLAY=:0
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--37"><div class="zeroclipboard-container">  
</div></div><div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--38"><div class="zeroclipboard-container">  
</div></div>Finally, run the following:

```
sudo systemctl daemon-reload
sudo systemctl enable kiwix.service
sudo systemctl start kiwix.service
sudo systemctl status kiwix.service
```

## Crear sus propios .zim / archivos

- [On line con zimit](https://zimit.kiwix.org)
- [Con un script y wget](https://github.com/ballerburg9005/wget-2-zim/blob/main/wget-2-zim.sh)
- [Mas recursos en el wiki del projecto](https://wiki.openzim.org/wiki/Build_your_ZIM_file)

## Ressources on-line

- [Kiwix main web site](https://kiwix.org)
- [Kiwix library](https://library.kiwix.org/)
- [Kiwix-Raspberry-Pi how to install](https://github.com/RaynerMDZ/Kiwix-Raspberry-Pi)