I found that the MoodleBox should get smartphone tethering out of the box https://github.com/moodlebox/moodlebox/issues/285. For a lot of people the tethering is an usb cable between the smartphone and a computer. https://discuss.moodlebox.net/d/374-connexion-internet-par-smartphone-via-usb
I think that using an existing wifi should be the better idea.
In the french forum of moodle.org there is a thread https://moodle.org/mod/forum/discuss.php?d=365594 from 2018 where Daniel Méthot discusses the idea of an internet connection for the MoodleBox via a GSM telephone. For the use in Africa he wants to keep everything as simple as possible ... no special usb adapter, no special cable, and it must work with every smartphone. You need the internet connection to get a Moodle update or a new plugin. And when the MoodleBox starts up it will get the internet time.
Since MoodleBox-4.0.0 the AP+STA mode is activated out of the box https://github.com/moodlebox/moodlebox/releases/tag/v4.0.0. The MoodleBox is an AccessPoint for 20 clients. And the MoodleBox could be connected to another existing wifi network to get internet access. Can you please show us the way to do this for Bookworm? Is there a manual where we can read all the missing steps?
I installed MoodleBox-4.7.0 with the Raspberry Pi Imager and setup the wifi network to my smartphone hotspot. Yes, I get a connection with a correct ip address from my smartphone but I get no internet connection.
moodlebox@moodlebox:~ $ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether dc:a6:32:0f:a2:ae txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 578 bytes 1954889 (1.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 578 bytes 1954889 (1.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
uap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::b2a7:9b8e:18ea:512e prefixlen 64 scopeid 0x20<link>
ether de:a6:32:af:a2:b0 txqueuelen 1000 (Ethernet)
RX packets 279 bytes 37108 (36.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 338 bytes 60735 (59.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.20.10.3 netmask 255.255.255.240 broadcast 172.20.10.15
inet6 2a00:20:6047:c49c:d9c9:4a50:d843:8232 prefixlen 64 scopeid 0x0<global>
inet6 fe80::6c75:baf5:1e1b:60a2 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:0f:a2:b0 txqueuelen 1000 (Ethernet)
RX packets 19 bytes 2398 (2.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 61 bytes 10598 (10.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
moodlebox@moodlebox:~ $ ping moodlebox.net
PING moodlebox.net (46.38.232.227) 56(84) bytes of data.
From moodlebox (10.0.0.1) icmp_seq=1 Destination Host Unreachable
From moodlebox (10.0.0.1) icmp_seq=2 Destination Host Unreachable
From moodlebox (10.0.0.1) icmp_seq=3 Destination Host Unreachable
^C
--- moodlebox.net ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3073ms
pipe 3
moodlebox@moodlebox:~ $
The settings for the wifi networks can be found in /etc/NetworkManager/system-connections/ ... there is a file WifiAP.nmconnection and a file WifiSTA.nmconnection. The settings from the Raspberry Pi Imager are in the file preconfigured.nmconnection
Best regards,
Ralf