On 11/4/23 7:04 AM, Bob Latham wrote:
> In article <
NbednWsKQtdaXNj4...@earthlink.com>,
> 56d.1152 <
56d....@ztq9.net> wrote:
>
>> I've installed Raspian/Bookworm on FOUR boards in the
>> past couple weeks. Yep, it does all the usual. ONE
>> very annoying aspect with Bookworm though is the
>> pointless demise of dhcpcd.conf and WPA_Supplicant.conf
>> in favor of "network manager'. If you use the 'lite'
>> version, no GUI, this becomes a PROBLEM if you want
>> to do static IPs. For the GUI versions just install
>> the Gnome network manager GUI thingie and use that
>> to set everything.
>
> I didn't know there was a problem until I read this but you're right
> there is. I have managed a static IP on an ethernet connection by
> creating a file
> /etc/network/interfaces.d/eth0 which contains:
>
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.1.3
> network 192.168.1.0
> netmask 255.255.255.0
> gateway 192.168.1.1
>
> I *presume* it would be similar for a Wi-Fi connection but that the
> file name would not be eth0 but whatever the Wi-fi interface is
> called. I don't know what that is at the moment.
>
> So I tried to get a Wi-Fi dongle to work using the usual the old
> method, copying a file wpa_supplicant.conf to the boot partition of
> the sd card before it is transferred to the pi. This worked great
> with bullseye but fails with bookworm.
>
> I've done some googling and found something I thought was the answer,
> I had to create a file at /etc/wpa_supplicant.conf and then run it
> with: wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d
>
> With only two steps I half expected it to work but of course it gave
> me miles of text and failed to work.
>
> Has anyone discovered how to make a Wi-Fi dongle work with bookworm
> lite? If so, could you enlighten me please.
Nothing beats a static IP. DHCP can, and eventually WILL,
move stuff around - and then you get weird annoying failures.
Modern Deb-derivatives have completely abandoned /etc/networking.
I guess it worked too well, was too-well documented. You actually
have do do some DAMAGE to force /etc/networking to take control.
Raspbian used /etc/dhcpcd.conf for quite awhile. Bookworm
broke that - again for NO sane reason.
With Bookworm it's all hidden away in /etc/NetworkManager/
system-connections. Alas if you NEVER had a GUI then it's
all DHCP from SOME yet-unknown source. Fortunately I'd
made some with and without GUI ... and the ones WITH GUI
provided the necessary pattern. You need to use "nmcli add con"
to create the skeleton of a new networking device ... can be
the wired or wireless. Then you EDIT it and insert the
needed names and numbers. This works.
And it's also VERY VERY unnecessarily complex/obscure.
Raspbian IS the best-tuned to PIs. However these unneeded
and vexing changes are getting to be TOO MUCH. There are
now a number of Lini that can run pretty well on PIs -
including MX and Arch-derivs. I'm really gonna look into
the Arch branch ... not that I love Arch, but there are
just SOME things that should be convenient, comprehensible
and consistent for people who do PRACTICAL stuff.
I'll provide a skeleton for a /system-connections template
on Monday ... there ARE a very few example on the web, but
VERY few and hard to find. They look nothing like anything
from before.