💾 Archived View for darknesscode.xyz › notes › setup-wifi-wpa-supplicant-file.gmi captured on 2022-06-03 at 22:46:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Setup wifi with wpa_supplicant

Open the wpa-supplicant configuration with your text editor of choice:

sudo vim /etc/wpa_supplicant/wpa_supplicant.conf

Go to the bottom of the file and add the following:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="WIFI_NAME"
psk="WIFI_PASS"
key_mgmt=WPA-PSK
}

It is possible to set up multiple configurations for wireless networking. For example, you could set up one for home and one for school.

network={
ssid="SchoolNetworkSSID"
psk="passwordSchool"
id_str="school" }

network={
ssid="HomeNetworkSSID"
psk="passwordHome"
id_str="home"
}

If are two o more networks in range, you can add the priority option to choose between them. The network in range, with the highest priority, will be the one that is connected.

network={
ssid="HomeOneSSID"
psk="passwordOne"
priority=1
id_str="homeOne"
}

network={
ssid="HomeTwoSSID"
psk="passwordTwo"
priority=2
id_str="homeTwo"
}

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode