Update WIFI.md

This commit is contained in:
mayfrost 2018-03-12 22:19:34 +00:00 committed by GitHub
parent cf6b6b442c
commit ee6d88c26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ __NOTE__: The "_\<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change a
* Create the configuration file (as "_root_", not "_sudo_"): * Create the configuration file (as "_root_", not "_sudo_"):
`wpa_passphrase <NETWORK_NAME> <PASSWORD> > /etc/wpa_supplicant.conf` `wpa_passphrase <NETWORK_NAME> <PASSWORD> > /etc/wpa_supplicant.conf`
* Delete non hashed password from /etc/wpa_supplicant.conf * Delete non hashed password from "_/etc/wpa_supplicant.conf_", but not the hashed one.
Each time you need to connect type the following command (as "_root_" or with "_sudo_"): Each time you need to connect type the following command (as "_root_" or with "_sudo_"):
@ -21,6 +21,6 @@ Each time you need to connect type the following command (as "_root_" or with "_
`wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext` `wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext`
`dhclient <DEVICE_NAME>` `dhclient <DEVICE_NAME>`
You can save either example in a script to activate Wi-Fi. You can save either example in a script to activate the Wi-Fi whenever you want.
* Note: As an educational tip, the name of a network is also called "_SSID_" in other places. * Note: As an educational tip, the name of a network is also called "_SSID_" in other places.