Commit bb4284f1 authored by rgaudin's avatar rgaudin

Changed default URL from framagit-ideacube to github-kiwix

parent 27d2f482
......@@ -2,6 +2,6 @@
Kiwix Hotspot (formerly pibox installer) is owned and maintained by Guillaume Thiolliere
and published under the terms of GPLv3 license or (at your option) any later version
(see [LICENSE](https://framagit.org/ideascube/pibox-installer/blob/master/LICENSE)).
(see [LICENSE](https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/LICENSE)).
See also contributors on [Framagit repository](https://framagit.org/ideascube/pibox-installer/graphs/master).
See also contributors on [Framagit repository](https://github.com/kiwix/kiwix-hotspot/graphs/contributors).
......@@ -6,17 +6,15 @@ Ideascube is a solution to serve offline content from the web such as Wikipedia,
Kiwix Hotspot configure the RaspberryPi into a hotspot WiFi with Ideascube server and offline contents.
## Download
## Issues
[**repos.ideascube.org/pibox/**](http://repos.ideascube.org/pibox/)
note: binaries for windows are not signed, to open on windows just click for more information and you are able to run it.
Please report issues [on framagit](https://framagit.org/ideascube/pibox-installer/issues).
## Principle
The installer emulate the rasbperrypi architecture armhf in QEMU.
Inside the emulator it builds [Ideascube](https://framagit.org/ideascube/ideascube) with [Ansiblecube](https://github.com/ideascube/ansiblecube).
Inside the emulator it builds [ideascube](https://framagit.org/ideascube/ideascube) with [ansiblecube](https://github.com/kiwix/kiwix-hotspot/tree/master/ansiblecube).
presentation of the projet at Potsdam [Slides](http://wiki.kiwix.org/w/images/4/43/Pibox_installer_potsdam_2017_presentation.pdf)
......@@ -114,21 +112,18 @@ insert_id_to_class_glade.py is a python3 script that insert id to class in glade
how the application is packaged:
* on windows:
we use a self extracting archive 7zS.sfx because pyinstaller in onefile on windows
fails to give admin rights and also there was an issue if we set no console.
**On Windows**
assets are in windows_bundle
we use a self extracting archive 7zS.sfx because pyinstaller in onefile on windows fails to give admin rights and also there was an issue if we set no console. assets are in `/windows_bundle`.
* on linux:
**On Linux**
qemu is build statically
`qemu` is built statically
* on macos:
**On macOS**
qemu is build dynamically and bundling is made with macdylibbundler
`qemu` is build dynamically and bundle is made with `macdylibbundler`
## License
GPLv3 or (at your option) any later version, see [LICENSE](https://framagit.org/ideascube/pibox-installer/blob/master/LICENSE) for more details.
GPLv3 or (at your option) any later version, see [LICENSE](https://github.com/kiwix/kiwix-hotspot/blob/master/LICENSE) for more details.
# AnsibleCube
This is a **very distant** fork of [ideascube/ansiblecube](https://github.com/ideascube/ansiblecube/) dedicated to [kiwix-hotspot](https://framagit.org/ideascube/pibox-installer)'s use case.
This is a **very distant** fork of [ideascube/ansiblecube](https://github.com/ideascube/ansiblecube/) dedicated to [kiwix-hotspot](https://github.com/kiwix/kiwix-hotspot)'s use case.
## Goal
......@@ -43,7 +43,7 @@ This is achieved by using a three steps scenario:
This playbook is not meant to be run standalone on any system.
Please check [make-base-image](https://framagit.org/ideascube/pibox-installer/tree/master/make-vexpress-boot) and more generally [kiwix-hotspot](https://framagit.org/ideascube/pibox-installer) to see it in action.
Please check [make-base-image](https://github.com/kiwix/kiwix-hotspot/tree/master/make-vexpress-boot) and more generally [kiwix-hotspot](https://github.com/kiwix/kiwix-hotspot) to see it in action.
## Tests
......
......@@ -8,8 +8,13 @@ import pytest
def test_ansible_playbook_syntax(tmpdir, role):
hosts = os.path.join(os.getcwd(), "hosts")
roles = os.path.join(os.getcwd(), "roles")
for fname in ("clean_apt.yml", "disable_service.yml",
"enable_service.yml", "enable_vhost.yml", "mark_role.yml"):
for fname in (
"clean_apt.yml",
"disable_service.yml",
"enable_service.yml",
"enable_vhost.yml",
"mark_role.yml",
):
shutil.copy(os.path.join(os.getcwd(), fname), os.path.join(tmpdir, fname))
config = tmpdir.join("ansible.cfg")
......
......@@ -9,9 +9,7 @@ from backend.mount import system_has_exfat
if sys.platform == "linux":
from backend.mount import udisksctl_exe
requirements_url = (
"https://framagit.org/ideascube/pibox-installer/wikis/System-Requirements"
)
requirements_url = "https://github.com/kiwix/kiwix-hotspot/wiki/System-Requirements"
def host_matches_requirements(build_dir):
......
......@@ -42,7 +42,7 @@ ideascube_languages = [
("sw", u"Kiswahili"),
]
help_url = "https://framagit.org/ideascube/pibox-installer/wikis/faq"
help_url = "https://github.com/kiwix/kiwix-hotspot/wiki/FAQ"
etcher_url = "https://etcher.io/"
VERSION = "devel"
......@@ -123,7 +123,7 @@ os.chdir("..")
with open("{}/README.txt".format(boot_dir), "w+") as readme:
readme.write(
"""This is the kernel used by kiwix-hotspot to boot the vexpress machine in QEMU
It has been generated by make-vexpress-boot script at https://framagit.org/ideascube/pibox-installer"""
It has been generated by make-vexpress-boot script at https://github.com/kiwix/kiwix-hotspot"""
)
readme.flush()
......
......@@ -48,18 +48,18 @@ useradd -g www-data -l -m -N -s /bin/bash qdemo
echo "192.168.1.3 ideascube.hotspot demo.hotspot.kiwix.org kiwix.demo.hotspot.kiwix.org khanacademy.demo.hotspot.kiwix.org aflatoun.demo.hotspot.kiwix.org edupi.demo.hotspot.kiwix.org wikifundi.demo.hotspot.kiwix.org sites.demo.hotspot.kiwix.org" >> /etc/hosts
# download and execute at-boot script
wget https://framagit.org/ideascube/pibox-installer/raw/master/online-demo/host-setup.sh -O /root/host-setup.sh && chmod +x /root/host-setup.sh && /root/host-setup.sh
wget https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/online-demo/host-setup.sh -O /root/host-setup.sh && chmod +x /root/host-setup.sh && /root/host-setup.sh
# add cron task for this script
echo "@reboot /root/host-setup.sh" >> /etc/crontab
# download and install nginx vhost
wget https://framagit.org/ideascube/pibox-installer/raw/master/online-demo/nginx-vhost -O /etc/nginx/sites-available/demo.hotspot.kiwix.org
wget https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/online-demo/nginx-vhost -O /etc/nginx/sites-available/demo.hotspot.kiwix.org
ln -s /etc/nginx/sites-available/nginx-vhost /etc/nginx/sites-enabled/demo.hotspot.kiwix.org
nginx -s reload
# download and install qemu-shortcut
wget https://framagit.org/ideascube/pibox-installer/raw/master/online-demo/img_run -O /usr/local/bin/img_run
wget https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/online-demo/img_run -O /usr/local/bin/img_run
chmod +x /usr/local/bin/img_run
```
......@@ -76,7 +76,7 @@ img_run https://kiwix.ml/images/pibox-kiwix_2018-05-04.img.zip
sudo systemctl start ssh
# setup the VM (only once). SSH password is `raspberry`
ssh pi@locahost -p 5022 "sudo ifconfig eth0 192.168.1.3 up && sudo route add default gw 192.168.1.1 && wget https://framagit.org/ideascube/pibox-installer/raw/image/online-demo/guest-setup.sh -O /tmp/guest-setup.sh && sudo sh /tmp/guest-setup.sh"
ssh pi@locahost -p 5022 "sudo ifconfig eth0 192.168.1.3 up && sudo route add default gw 192.168.1.1 && wget https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/online-demo/guest-setup.sh -O /tmp/guest-setup.sh && sudo sh /tmp/guest-setup.sh"
```
Now host can talk to guest:
......
......@@ -11,7 +11,7 @@
echo "remove cron task clearing-up accepted IP list"
sudo sh -c 'crontab -u root -l |grep -v clean_iptables.sh |crontab -u root -'
/usr/bin/wget https://framagit.org/ideascube/pibox-installer/raw/master/online-demo/hotspot-demo -O /usr/local/bin/hotspot-demo
/usr/bin/wget https://raw.githubusercontent.com/kiwix/kiwix-hotspot/master/online-demo/hotspot-demo -O /usr/local/bin/hotspot-demo
chmod +x /usr/local/bin/hotspot-demo
/usr/local/bin/hotspot-demo
......
......@@ -1490,7 +1490,7 @@ In File mode the image is created at build path, you can choose the size
<property name="transient_for">window</property>
<property name="program_name">Kiwix Hotspot</property>
<property name="version">devel</property>
<property name="website">https://framagit.org/ideascube/pibox-installer</property>
<property name="website">https://github.com/kiwix/kiwix-hotspot</property>
<property name="logo_icon_name">image-missing</property>
<property name="license_type">gpl-3-0</property>
<child internal-child="vbox">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment