what's the new way to set-up networking in an image?

Jan 02, 2024 Last reply: 2 years ago 9 Replies

formatting link
Previous versions of Raspberry Pi OS made use of a wpa_supplicant.conf file which could be placed into the boot folder to configure wireless network settings. This is no longer possible from Raspberry Pi OS Bookworm onwards.



I have a headless pi I want to pre-configure to have wireless networking. I can't ssh in until the wifi works. I can shut it down, pull the SD card, mount it somewhere else and place files in /etc/.



What file in what directory for wifi? I'm using the



2023-12-11-raspios-bookworm-armhf-lite image. The device has a screen and keyboard, but the image lacks the drivers for the screen and I need to apt-get install them. Which is tricky when I can't ssh in or trying to type blindly the needed commands to add a repo with the video drivers.

The pre-configured OS for this device is buildroot which has no compiler or build tools which is going to block me intalling the Perl modules I need. buildroot.org helpfuly says (paraphrased) "if you want a compiler, you want a different distro."



Elijah



------ can see where they are coming from, but still


Use the RPi Imager to burn your uSD card and set the WiFi there.

That's not an answer to my question, which you left below because you don't get that top-posting is evil.

I didn't use the imager because the imager wants a newer glibc than I have installed on the system I'm using. Downloading an image and copying it an SD card is trivial for someone well-acquainted with Unix tools, so I didn't worry much. But I realize the imager does a bit more than papering over the copy process. Unfortunately all of the networking guides I can find for this system assume you are configuring it from a running system, not in advance on the disk image. "What file, where" is probably all the help I need. I don't want to trace the start-up process by reading through /etc/ to figure it out from source if I don't have to.

Elijah

------ from old-school Unix

If you’re really using the RPi OS then: /etc/wpa_supplicant/wpa_supplicant.conf

So are you using the RPi OS or Buildroot?

Looks like it's NetworkManager that manages networking now, in the "Raspberry Pi OS". So the config file is /etc/NetworkManager/NetworkManager.conf and the setup, well, I guess I'll leave that as an exercise? See the man page.

I should have an example NetworkManager.conf on my Linux laptop which I can share later.

Bite me again.

You got what you asked for. Quit complaining because you left out some details.

You probably have considered running The Rpi Imager as a snap or flatpak, but just in case....

formatting link
formatting link

Whatever happened to the pride of helping to FIND THE ANSWER instead of petty s*it about top/bottom posting and personality issues and such ???

I should have just ignored him. Sorry about that.

Personality conflicts are easy ... staying with The Mission is more difficult.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required