mayfrost-guides/WIFI.md
2018-03-08 06:23:39 +00:00

879 B

WiFi

Use WiFi without a separate network manager with this simple guide. Needs "dhcpcd" (or "dhcpclient"), "wpa_supplicant", "iproute2" and wifi firmware (like "iwlwifi").
NOTE: The "<DEVICE_NAME>" can be either "wlp3s0" or "wlan0". Change accordingly the following commands to suit your needs.

  • Create the configuration file (as "root", not "sudo"):
    wpa_passphrase <NETWORK_NAME> <PASSWORD> > /etc/wpa_supplicant.conf

  • Delete non hashed password from /etc/wpa_supplicant.conf

  • Each time you need to connect type the following command (as "root" or with "sudo"):
    ip link set <DEVICE_NAME> down
    ip link set <DEVICE_NAME> up
    wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext
    dhcpcd <DEVICE_NAME>

You can save the last step in a script.

  • Note: The name of a network is also called "SSID".