wpa_supplicant systemd

I still don't prefer systemd, but sometimes you can't avoid demandware. Below is my preferred way to get systemdd on wifi. This method now works with all flavours, including debian.

Identify wifi device(s)

$ iw dev
phy#0
        Interface wlp3s0
                ifindex 3
                wdev 0x1
                addr 00:00:00:00:00:00
                type managed
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz

Config wifi device

# vi /etc/systemd/network/wlp3s0.network 
[Match]
Name=wlp3s0

[Network]
DHCP=ipv4
IPv6PrivacyExtensions=true

[DHCP]
RouteMetric=20

Config wpa_supplicant

# vi /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf 
[sudo] password for superuser: 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

Add wifi network(s)

# wpa-passphrase wlan passphrase >> /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf

Enable relevant systemd services

# systemctl enable wpa_supplicant@wlp3s0
# systemctl enable systemd-networkd

Reboot to test connectivity :)

If this worked, use wpa_gui for a SysTray icon to help manage wifi networks. No need for NetworkManager/Gnome all-singing all-dancing bloatware!

No comments:

Post a Comment

most viewed