Stretch WIFI client: Difference between revisions
From embeddedTS Manuals
No edit summary |
(Switch to allow-hotplug for wlan0) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Wireless interfaces are also managed with /etc/network/interfaces.d/. For example, to connect as a client to a WPA network with DHCP. | Wireless interfaces are also managed with configuration files in "/etc/network/interfaces.d/". For example, to connect as a client to a WPA network with DHCP. Note some or all of this software may already be installed on the target SBC. | ||
Install wpa_supplicant: | Install wpa_supplicant: | ||
Line 11: | Line 11: | ||
</source> | </source> | ||
This will output | This command will output information similar to: | ||
network={ | network={ | ||
ssid="youressid" | ssid="youressid" | ||
Line 18: | Line 18: | ||
} | } | ||
Use the PSK in | Use the hashed PSK in the specific network interfaces file for added security. Create the file: | ||
<source | |||
/etc/network/interfaces.d/wlan0 | |||
<source> | |||
allow-hotplug wlan0 | |||
iface wlan0 inet dhcp | iface wlan0 inet dhcp | ||
wpa-ssid youressid | wpa-ssid youressid | ||
wpa-psk 151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b | wpa-psk 151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b | ||
</source> | </source> | ||
To | To have this take effect immediately: | ||
<source lang=bash> | <source lang=bash> | ||
service networking restart | service networking restart | ||
</source> | </source> | ||
For more information on configuring | For more information on configuring Wi-Fi, see Debian's guide [https://wiki.debian.org/WiFi/HowToUse#wpa_supplicant here]. |
Latest revision as of 14:53, 7 December 2023
Wireless interfaces are also managed with configuration files in "/etc/network/interfaces.d/". For example, to connect as a client to a WPA network with DHCP. Note some or all of this software may already be installed on the target SBC.
Install wpa_supplicant:
apt-get update && apt-get install wpasupplicant -y
Run:
wpa_passphrase youressid yourpassword
This command will output information similar to:
network={ ssid="youressid" #psk="yourpassword" psk=151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b }
Use the hashed PSK in the specific network interfaces file for added security. Create the file:
/etc/network/interfaces.d/wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid youressid
wpa-psk 151790fab3bf3a1751a269618491b54984e192aa19319fc667397d45ec8dee5b
To have this take effect immediately:
service networking restart
For more information on configuring Wi-Fi, see Debian's guide here.