Skip to content

Instantly share code, notes, and snippets.

@ackerleytng
Created August 14, 2019 03:30
Show Gist options
  • Select an option

  • Save ackerleytng/e12285e950ffeebc9ae22c49ae46a283 to your computer and use it in GitHub Desktop.

Select an option

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 user@m1net.com.sg>"'
'password="<password>"'
)
@ackerleytng

ackerleytng commented Sep 1, 2019

Copy link
Copy Markdown
Author

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="<username@m1net.com.sg>"
        password="<password>"
}

Then, trigger this to take effect by restarting wpa_supplicant:

sudo systemctl restart wpa_supplicant@wlp2s0.service

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