Tell us your story
Tell us your story
How has offline Wikipedia affected you? The Wikimedia Foundation (the non-profit that supports Wikipedia) is looking for personal, diverse and inspiring stories about how offline Wikipedia affects the world. If you have a personal story that you would like to share, please contact: stories@kiwix.org. Thank you!

Hotspot Demo Configuration

From Kiwix
Revision as of 11:44, 12 June 2018 by Reg (talk | contribs) (Created page with "== TL;DR == * internet on: <code>enp0s20f0</code> (IP <code>51.15.11.29</code>) * domain (<code>*.demo.plug.kiwix.org</code>) * demo private network: <code>192.168.1.0/24</c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

TL;DR

  • internet on: enp0s20f0 (IP 51.15.11.29)
  • domain (*.demo.plug.kiwix.org)
  • demo private network: 192.168.1.0/24
  • dedicated user: qdemo
  • bridge iface: br0
  • bridge IP: 192.168.1.1

Available images

EDUPI-FR (0)

  • domain: edupi-fr.demo.plug.kiwix.org
  • tunnel: tap0
  • IP: 192.168.1.3
  • SSH port: 5022

EDUPI-EN (1)

  • domain: edupi-en.demo.plug.kiwix.org
  • tunnel: tap1
  • IP: 192.168.1.4
  • SSH port: 5122

Add new image

  • add new tap
  • add tap to bridge and enable it
  • Edit /root/host-setup.sh
  • Edit /etc/hosts: add private IP and corresponding hosts
  • Create /home/qdemo/plugdemo_XXX (change IP address)
  • Create /etc/nginx/sites-{available,enabled}/XXX.demo.plug.kiwix.org
  • Create /usr/local/bin/img_run_XXX (change last number with TAP number)
  • edit this document and add new image details

Setup image

# start QEMU
img_run_XXX /path/to/image.img

# wait until boot. log-in (pi/raspberry)
> sudo systemctl start ssh && exit

# once SSH is enabled (adjust suffix and SSH port)
scp ~/plugdemo_edupi-fr pi@localhost:/usr/local/bin/plugdemo -p 5022
scp ~/guest-setup.sh pi@localhost: -p 5022
ssh pi@localhost: -p 5022 "sh ~/guest-setup.sh"