This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
products:sbc:common:configurations:wifi [2022/07/06 00:00] nick created |
products:sbc:common:configurations:wifi [2022/07/08 05:10] (current) frank |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Wi-Fi ====== | ====== Wi-Fi ====== | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | This document is mainly about Wi-Fi. The first part of the document covers how to use Wi-Fi under Ubuntu, and the second part of the document covers how to use Wi-Fi under Android. | ||
| + | |||
| + | ===== Ubuntu ===== | ||
| + | |||
| + | <tabbox Desktop OS> | ||
| + | |||
| + | Wi-Fi settings are in the upper-right corner, click on the lower triangle to see the Wi-Fi settings options. | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | Choose a Wi-Fi network that you want to connect to. | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | After entering the password, you can use Wi-Fi normally. | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | <tabbox Server OS> | ||
| + | |||
| + | <WRAP info > | ||
| + | Ubuntu/ | ||
| + | </ | ||
| + | |||
| + | 1. Scan for Wi-Fi Networks: | ||
| + | |||
| + | ```shell | ||
| + | $ nmcli d wifi list | ||
| + | IN-USE | ||
| + | VIM | ||
| + | Wesion | ||
| + | VIM_5G | ||
| + | HP-HOTSPOT-48-LaserJet M1218 Infra 7 54 Mbit/ | ||
| + | ChinaNet-xjCH | ||
| + | BRGCN_GUEST | ||
| + | BRGCN | ||
| + | ``` | ||
| + | |||
| + | 2. Create a hashed pre-computed PSK-key with wpa_passphrase: | ||
| + | * To avoid storing plain-text passwords, there is an handy tool called '' | ||
| + | * Input the command '' | ||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | network={ | ||
| + | ssid=" | ||
| + | # | ||
| + | psk=6d5324610d3627ab4f97b80cf22b742996d82c022b283a874e88d083a299734c | ||
| + | } | ||
| + | ``` | ||
| + | The new password is now a hashed passphrase: '' | ||
| + | |||
| + | <WRAP info > | ||
| + | Replace the your_ssid & your_password with your SSID and password. | ||
| + | </ | ||
| + | |||
| + | 3. Connect to a Wi-Fi Network: | ||
| + | ```shell | ||
| + | $ sudo nmcli d wifi connect your_ssid password 6d5324610d3627ab4f97b80cf22b742996d82c022b283a874e88d083a299734c wep-key-type key | ||
| + | Device ' | ||
| + | ``` | ||
| + | <WRAP info > | ||
| + | Replace '' | ||
| + | </ | ||
| + | |||
| + | 4. Disconnect from a Wi-Fi Network: | ||
| + | |||
| + | ```shell | ||
| + | $ sudo nmcli d disconnect wlan0 | ||
| + | Device ' | ||
| + | ``` | ||
| + | </ | ||
| + | |||