Differences
This shows you the differences between two versions of the page.
sodelovalnice:bask [2023/07/07 15:40] – created g1smo | sodelovalnice:bask [2023/09/17 22:44] (current) – g1smo | ||
---|---|---|---|
Line 12: | Line 12: | ||
There is an option to generate a new key. | There is an option to generate a new key. | ||
- | @TODO | + | @TODO more documentation |
+ | |||
+ | ## Guerilla infrastructure | ||
+ | |||
+ | We are installing mobile infrastructure on a [Raspberry PI model 3](https:// | ||
+ | |||
+ | [Yunohost](https:// | ||
+ | |||
+ | ## Installation | ||
+ | |||
+ | First we flash the install image on microsd card. | ||
+ | |||
+ | sudo dd if=2022-12-06-yunohost-lite.img of=/dev/sdc bs=1M && sudo sync | ||
+ | |||
+ | Careful that you get the `of=` part right; if you miss a letter you could break your operating system' | ||
+ | |||
+ | Then we put the card in the raspberry. | ||
+ | |||
+ | Find the raspberry' | ||
+ | We connected it via a switch to a computer that runs a DHCP server (on 192.168.1.0/ | ||
+ | |||
+ | A nmap scan revealed the raspberry' | ||
+ | |||
+ | g1smo@dbn ~ » sudo nmap -sP 192.168.1.0/ | ||
+ | Starting Nmap 7.93 ( https:// | ||
+ | Nmap scan report for 192.168.1.109 | ||
+ | Host is up (0.00047s latency). | ||
+ | MAC Address: B8: | ||
+ | Nmap scan report for dbn (192.168.1.100) | ||
+ | Host is up. | ||
+ | Nmap done: 256 IP addresses (2 hosts up) scanned in 4.27 seconds | ||
+ | |||
+ | So we put the IP address in a web browser to finish setting up yunohost with the configuration wizard. | ||
+ | |||
+ | ### set main domain | ||
+ | |||
+ | We registered a domain name bask.kompot.si for this occasion. | ||
+ | |||
+ | Next we set an admin password (`letmein`). | ||
+ | |||
+ | When the installation finishes, we go back to the IP address `192.168.1.109`, | ||
+ | |||
+ | We use the nice web UI to create a users, `bask`, and set a password for it, `properteaistheft`. | ||
+ | |||
+ | Next, we click on " | ||
+ | |||
+ | We `su` to root and add our `bask` user to the `sudo group`, giving it administration privileges: `gpasswd -a bask sudo`. | ||
+ | |||
+ | Then we close the terminal and login via ssh again. | ||
+ | |||
+ | ### Unblock wifi | ||
+ | |||
+ | We unblock the wifi, running `sudo raspi-config`. | ||
+ | |||
+ | First we set the geographical zone for wireless compliance with regulation: `1. System options > S1 Wireless LAN > SI (Slovenia)`. Or we do not do that ;) (You can also choose a random country really) | ||
+ | |||
+ | Then we enter the SSID and password for a hotspot with internet access. | ||
+ | |||
+ | @TODO continue documenting |