Skip to content

Instantly share code, notes, and snippets.

@ackerleytng
Created August 14, 2019 03:30
Show Gist options
  • Save ackerleytng/e12285e950ffeebc9ae22c49ae46a283 to your computer and use it in GitHub Desktop.
Save ackerleytng/e12285e950ffeebc9ae22c49ae46a283 to your computer and use it in GitHub Desktop.
Description='Sample netctl config for Wireless@SGx'
Interface=wlp2s0
Connection=wireless
Security=wpa-configsection
ESSID=Wireless@SGx
IP=dhcp
WPAConfigSection=(
'ssid="Wireless@SGx"'
'key_mgmt=WPA-EAP'
'eap=PEAP'
'identity="<username, like [email protected]>"'
'password="<password>"'
)
@ackerleytng
Copy link
Author

ackerleytng commented Sep 1, 2019

If you're just using wpa_supplicant with systemd-networkd for example, just use the part from WPAConfigSection, like - insert this block into /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf.

network={
        ssid="Wireless@SGx"
        key_mgmt=WPA-EAP
        eap=PEAP
        identity="<[email protected]>"
        password="<password>"
}

Then, trigger this to take effect by restarting wpa_supplicant:

sudo systemctl restart [email protected]

Check for errors with

journalctl -xe

wpa_supplicant-<interface>.conf only allows the use of double quotes for strings (not single quotes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment