+-------------------------------------------------------------------+ | | | WIKI - WiFi connection with wpa_supplicant | | | +-------------------------------------------------------------------+ PREREQUISITES - Make sure your interface shows up in 'ip link'. See: - https://k1ss.org/install - https://k1ss.org/wiki/Loading-a-module-at-boot * Bring your interface up. $ ip link set up * Create a configuration file for the wireless access point. $ wpa_passphrase SSID password > \ /etc/wpa_supplicant/wpa_supplicant-.conf NOTE: A complete documentation of all the possible options can be found here: wpa_supplicant.conf USING A SCRIPT * Start wpa_supplicant in the foreground to make sure the connection succeeds. $ wpa_supplicant \ -i \ -c /etc/wpa_supplicant/wpa_supplicant-.conf * If all is well, run it as a daemon in the background by adding the -B option. $ wpa_supplicant -B \ -i \ -c /etc/wpa_supplicant/wpa_supplicant-.conf * Start the interface with dhcpcd. $ dhcpcd * Check your connection. $ ping k1ss.org * A way of automation could be to put this in a shell script. #!/bin/sh wpa_supplicant -B \ -i \ -c /etc/wpa_supplicant/wpa_supplicant-.conf dhcpcd USING DHCPCD HOOKS * Create the necessary symbolic link. ln -s /usr/share/dhcpcd/hooks/10-wpa_supplicant \ /usr/libexec/dhcpcd-hooks/ * Start the dhcpcd service. See https://k1ss.org/wiki/Managing-Services * Check your connection. $ ping k1ss.org