mayfrost-guides/WIFI.md

20 lines
879 B
Markdown
Raw Normal View History

2018-03-01 02:58:41 +00:00
# WiFi
2018-03-01 03:13:42 +00:00
Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" (or "_dhcpclient_"), "_wpa\_supplicant_", "_iproute2_" and wifi firmware (like "_iwlwifi_").
2018-03-08 06:23:39 +00:00
__NOTE__: The "_\<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change accordingly the following commands to suit your needs.
2018-03-01 02:58:41 +00:00
2018-03-01 03:13:42 +00:00
* Create the configuration file (as "_root_", not "_sudo_"):
2018-03-01 03:09:49 +00:00
`wpa_passphrase <NETWORK_NAME> <PASSWORD> > /etc/wpa_supplicant.conf`
2018-03-01 03:00:06 +00:00
* Delete non hashed password from /etc/wpa_supplicant.conf
2018-03-01 02:58:41 +00:00
2018-03-01 03:13:42 +00:00
* Each time you need to connect type the following command (as "_root_" or with "_sudo_"):
2018-03-08 06:22:22 +00:00
`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>`
2018-03-01 02:58:41 +00:00
2018-03-01 03:13:42 +00:00
You can save the last step in a script.
* Note: The name of a network is also called "_SSID_".