mirror of
https://github.com/mayfrost/guides.git
synced 2024-11-28 02:11:46 +00:00
713 B
713 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").
-
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 wlan0 down
ip link set wlan0 up
wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf -Dwext
dhcpcd wlan0
You can save the last step in a script.
- Note: The name of a network is also called "SSID".