Ref https://discuss.moodlebox.net/d/451-connecting-the-moodlebox-to-a-wifi-network
Ultimately I want to be able to connect a RPi Zero W MoodleBox to a wireless LAN as well, since it doesn't have an Ethernet interface. I am going with MoodleBox 4.5.1: Moodle 4.1 LTS, the last "bullseye" and the last 32 bit OS . That part is from memory, please correct if I'm wrong. I made it with a RPi Zero 2 W, since I don't have a RPi Zero W right now.
I made the SD card, logged in though SSH and edited the two lines in /etc/wpa_supplicant/wpa_supplicant.conf:
ssid="MYSSID"
psk="ITSPASSPHRASE"
and rebooted. Logged in again. But still no route to the Internet.
# route -n
10.0.0.0 0.0.0.0 255.255.255.0 U 303 0 0 uap0
wpa_supplicant needs to be started manually, I guess. So ran:
# wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
But getting
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
(repeats)
ctrl_iface exists and seems to be in use - cannot override it.
Delete /var/run/wpa_supplicant/wlan0 manually..
Failed to initialize control interface 'DIR=/var/run/wpa_suuplicant GROUP=netdev'
You may have another wpa_supplicant process already running.. you will need
to manually remove this file before starting wpa_supplicant again.
# wpa_supplicant (same thing)
(same thing with p2p-dev-wlan0, deleted the lock)
Failed to create interface p2-dev-wlan0: -16 (Device or resource busy)
...
wlan0: Failed to initiate sched scan
What am I doing wrong?