From cf6b6b442ce32ba5cd3604e0f0da19bd47d8694c Mon Sep 17 00:00:00 2001 From: mayfrost Date: Mon, 12 Mar 2018 22:17:37 +0000 Subject: [PATCH] Update WIFI.md --- WIFI.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/WIFI.md b/WIFI.md index e7ddf4f..6c78f37 100644 --- a/WIFI.md +++ b/WIFI.md @@ -1,19 +1,26 @@ # WiFi -Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" (or "_dhcpclient_"), "_wpa\_supplicant_", "_iproute2_" and wifi firmware (like "_iwlwifi_"). +Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" or "_dhcpclient_", "_net-tools_" or "_iproute2_", "_wpa\_supplicant_", and the WiFi firmware for your wireless card (like "_iwlwifi_" and its "_ucode_"). __NOTE__: The "_\_" 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 > /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 down` -`ip link set up` +Each time you need to connect type the following command (as "_root_" or with "_sudo_"): + +* __EXAMPLE 1__: With "_net-tools_" and "_dhcpcd_": +`ifconfig down` +`ifconfig up` `wpa_supplicant -B -i -c /etc/wpa_supplicant.conf -Dwext` `dhcpcd ` +* __EXAMPLE 2__: With "_iproute2_" and "_dhclient_": +`ip link set down` +`ip link set up` +`wpa_supplicant -B -i -c /etc/wpa_supplicant.conf -Dwext` +`dhclient ` -You can save the last step in a script. +You can save either example in a script to activate Wi-Fi. -* Note: The name of a network is also called "_SSID_". +* Note: As an educational tip, the name of a network is also called "_SSID_" in other places.