Wpa_supplicant File Location

Is it possible to manually add wifi? Familiar with using this file but can’t find it on the sdcard.

I can see my network SSIDs (2.4 and 5ghz) in the UI but it’s very hit or miss trying to add there. Sometimes it takes in once try, sometimes after dozens of attempts and restarts it refuses to “stick”.

All this happening while connected to via ethernet.

I have tried disabling the hotspot but same symptoms - occurring on Pi4 and Pi5.

# sudo nano /boot/wpa_supplicant.conf

# copy this text in, changing your wifi country code and wifi ssid and password (psk)

# save and exit, then reboot

# After reboot it will set this up automatically in /etc/wpa_supplicant

/etc/wpa_supplicant

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

country=NL

# change NL to your 2 letter country code

network={

ssid="NAME OF YOUR WIFI SSID"

psk="YOUR WIFI PASSWORD"

key_mgmt=WPA-PSK

}

Is this the same as creating wpa_supplicant.conf in the “root” directory if the card is accessed in a reader on a computer? That’s where it normally was but I kept combining across instructions to only put edits into USERCONFIG.TXT and didn’t think that would work.

I’m gun-shy about “breaking” things once I get them working

This I got from the forum a long time back. It updates the wpa file in the right place. It’s always worked for me without any issues.

Thanks!