Hotspot Demo Configuration
TL;DR
- internet on:
enp1s0f0
(IP195.154.82.158
) - 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
TESTS (2)
- reserved
WIKIFUNDI-FR (3)
- domain:
wikifundi-fr.demo.plug.kiwix.org
- tunnel:
tap3
- IP:
192.168.1.5
- SSH port:
5322
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 enable ssh && sudo systemctl start ssh && exit
# once SSH is enabled (adjust suffix and SSH port)
scp -P 5022 ~/plugdemo_edupi-fr pi@localhost:plugdemo
scp -P 5022 ~/guest-setup.sh pi@localhost: # make sure the name in guest-setup.sh if OK before
ssh pi@localhost -p 5022 "sudo mv ~/plugdemo /usr/local/bin/plugdemo && sh ~/guest-setup.sh"