mirror of
https://github.com/mayfrost/guides.git
synced 2024-10-31 23:16:06 +00:00
Update NETWORKING.md
This commit is contained in:
parent
b75f5b1222
commit
800fbfd6d4
@ -3,7 +3,7 @@
|
|||||||
## WiFi
|
## 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_").
|
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 "_\<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change accordingly the following commands to suit your needs.
|
__NOTE__: The "_<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change accordingly the following commands to suit your needs.
|
||||||
|
|
||||||
* 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`
|
||||||
@ -12,16 +12,20 @@ __NOTE__: The "_\<DEVICE_NAME>_" can be either "_wlp3s0_" or "_wlan0_". Change a
|
|||||||
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_"):
|
||||||
|
|
||||||
* __EXAMPLE 1__: With "_net-tools_" and "_dhcpcd_":
|
* __EXAMPLE 1__: With "_net-tools_" and "_dhcpcd_":
|
||||||
`ifconfig <DEVICE_NAME> down`
|
```
|
||||||
`ifconfig <DEVICE_NAME> up`
|
ifconfig <DEVICE_NAME> down
|
||||||
`wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext`
|
ifconfig <DEVICE_NAME> up
|
||||||
`dhcpcd <DEVICE_NAME>`
|
wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext
|
||||||
|
dhcpcd <DEVICE_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
* __EXAMPLE 2__: With "_iproute2_" and "_dhclient_":
|
* __EXAMPLE 2__: With "_iproute2_" and "_dhclient_":
|
||||||
`ip link set <DEVICE_NAME> down`
|
```
|
||||||
`ip link set <DEVICE_NAME> up`
|
ip link set <DEVICE_NAME> down
|
||||||
`wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext`
|
ip link set <DEVICE_NAME> up
|
||||||
`dhclient <DEVICE_NAME>`
|
wpa_supplicant -B -i<DEVICE_NAME> -c /etc/wpa_supplicant.conf -Dwext
|
||||||
|
dhclient <DEVICE_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
You can save either example in a script to activate the Wi-Fi whenever you want.
|
You can save either example in a script to activate the Wi-Fi whenever you want.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user