From 800fbfd6d43ebf9f98a4c6ae0c57811ac25b3eb9 Mon Sep 17 00:00:00 2001 From: mayfrost Date: Wed, 11 Jul 2018 10:49:24 +0000 Subject: [PATCH] Update NETWORKING.md --- NETWORKING.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/NETWORKING.md b/NETWORKING.md index 312c638..519edfc 100644 --- a/NETWORKING.md +++ b/NETWORKING.md @@ -3,7 +3,7 @@ ## WiFi Use WiFi without a separate network manager with this simple guide. Needs "_dhcpcd_" or "_dhcpclient_", "_net-tools_" or "_iproute2_", "_wpa\_supplicant_", and the WiFi drivers for your wireless card (like "_iwlwifi_" and its "_ucode_"), which in part can be installed from a package usually named "_linux-firmware_", but they may not be complete (this provides "_ucode_" but not "_iwlwifi_"). -__NOTE__: The "_\_" can be either "_wlp3s0_" or "_wlan0_". Change accordingly the following commands to suit your needs. +__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` @@ -12,16 +12,20 @@ __NOTE__: The "_\_" can be either "_wlp3s0_" or "_wlan0_". Change a 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 ` +``` +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 ` +``` +ip link set down +ip link set up +wpa_supplicant -B -i -c /etc/wpa_supplicant.conf -Dwext +dhclient +``` You can save either example in a script to activate the Wi-Fi whenever you want.