Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5381

Troubleshooting • Re: Wpa supplicant is totally broken on the Zero 2 W

$
0
0
I have just tried flashing an sd with a windows computer here at work (I can't test the sd now as I don't have the pi here).
I used rpi imager 1.8.5 and used the special ctrl shift x menu to configure wifi. Peeking at firstrun.sh it seems like it is still expecting wpa supplicant:

Code:

#!/bin/bashset +eFIRSTUSER=`getent passwd 1000 | cut -d: -f1`FIRSTUSERHOME=`getent passwd 1000 | cut -d: -f6`if [ -f /usr/lib/raspberrypi-sys-mods/imager_custom ]; then   /usr/lib/raspberrypi-sys-mods/imager_custom enable_sshelse   systemctl enable sshfiif [ -f /usr/lib/userconf-pi/userconf ]; then   /usr/lib/userconf-pi/userconf 'pi' '$5$0WnP9jnyQK$XNXWj3RkQDrkMKN33tjFUVg7x0qpnfGKth48ImjseNB'else   echo "$FIRSTUSER:"'$5$0WnP9jnyQK$XNXWj3RkQDrkMKN33tjFUVg7x0qpnfGKth48ImjseNB' | chpasswd -e   if [ "$FIRSTUSER" != "pi" ]; then      usermod -l "pi" "$FIRSTUSER"      usermod -m -d "/home/pi" "pi"      groupmod -n "pi" "$FIRSTUSER"      if grep -q "^autologin-user=" /etc/lightdm/lightdm.conf ; then         sed /etc/lightdm/lightdm.conf -i -e "s/^autologin-user=.*/autologin-user=pi/"      fi      if [ -f /etc/systemd/system/getty@tty1.service.d/autologin.conf ]; then         sed /etc/systemd/system/getty@tty1.service.d/autologin.conf -i -e "s/$FIRSTUSER/pi/"      fi      if [ -f /etc/sudoers.d/010_pi-nopasswd ]; then         sed -i "s/^$FIRSTUSER /pi /" /etc/sudoers.d/010_pi-nopasswd      fi   fifiif [ -f /usr/lib/raspberrypi-sys-mods/imager_custom ]; then   /usr/lib/raspberrypi-sys-mods/imager_custom set_wlan 'mindyourownbusinesshoney' 'eed769f838361764728fadf5225f25cda6c007451eea4bfaea6794eefd5b0d94' 'IT'elsecat >/etc/wpa_supplicant/wpa_supplicant.conf <<'WPAEOF'country=ITctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevap_scan=1update_config=1network={ssid="mindyourownbusiness"psk=eed769f838361764728fadf5225f25cda6c007451eea4bfaea6794eefd5b0d94}WPAEOF   chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf   rfkill unblock wifi   for filename in /var/lib/systemd/rfkill/*:wlan ; do       echo 0 > $filename   donefirm -f /boot/firstrun.shsed -i 's| systemd.run.*||g' /boot/cmdline.txtexit 0
I am asking you this as all the articles I found on the big net concerning whether or not you can still set up a headless pi with bookworm and a new version of rpi imager seem to contradict themselves.

I am also not entirely sure whether the serial console is actually enabled as there is no enable_uart=1 in config but there's this suspicious thing in cmdline.txt:

Code:

console=serial0,115200
Do I still need to put enable_uart=1 in config?

And hey, they really should have publicised the deprecation of wpa_supplicant more... People WILL go mad trying to figure out what went wrong...

At your service,
someone who is on the brink of collapse

Statistics: Posted by TTG — Fri Jun 28, 2024 10:26 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles