How to set up since the launch of Raspberry Pi -Zero WIFI connection

1. First, we need a computer that can read the file system with the Raspberry Pi Linux virtual machine (such as Ubuntu)

The Raspberry Pi SD card into the computer system to identify and open rootfs folder, switch to under `rootfs / etc / wpa_supplicant` catalog:

cd /rootfs/etc/wpa_supplicant

2. Modify the files in subdirectories `wpa_supplicant.conf`:

vim wpa_supplicant.conf

Add the following to the file wpa_supplicant.conf them:

1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
2 update_config=1
3 country=CN
4 network={
5   ssid=""
6   psk=""
7 }

The above-mentioned document ssid name of the WIFI, PSK for the WIFI password.

3. Check the status wlan devices connected:

. A network interface using ifconfig to view the status of the device:

 These results can only obtain the IP address of the current wlan0 connected to 192.168.0.105.

b. Use wlan0 scanning reading device surrounding all the WIFI network is available, using commands refer specifically iw see Reference.

sudo iw wlan0 scan | grep SSID

4. Reference:

. a WIFI configured to Raspberry Pi SD card: https://www.jianshu.com/p/3f4f97a86b1c

. b  Raspberry Pi wifi connection Tutorial: https://blog.csdn.net/u011055198/article/details/87951583

. c iw command: https://www.cnblogs.com/liuliu-word/p/9646060.html

appendix:

iw is a new wireless device-based CLI for nl80211 configuration utility. It has recently been added to the kernel supports all new drivers. Wireless extension interface iwconfig old tools has been abandoned, and iw is strongly recommended to switch to nl80211.

The rest of the Linux kernel, iw is still in the development stage. Features are added at any time. The only document iw is the output of this page and "iw help" the.

. 1  IW  Help # help
 2  IW  IBSS Leave # WiFi see if the open state
 . 3  IW  List  # obtain all equipment functions, such as bandwidth information (2.4GHz, and 5GHz), and 802.11n information
 . 4  IW  dev  wlan0 Scan # scan
 . 5  IW  event  # listen for events
 6  IW  dev  wlan0 link # obtain link state
 7  IW  wlan0 connect foo # connect to disable encryption of AP, the SSID is it here foo
 8  IW  wlan0  connect foo 2432  # suppose you have two AP SSID are foo, you know you want to connect in the 2432 channel
 9  IW  wlan0  connect foo Keys0 : ABCDE D: . 1 : 0,011,223,344 # using WEP is connected to the AP
 10  IW  dev  WLAN1 the dump station # station to retrieve statistics
 . 11  IW  dev  WLAN1 station GET # peer statistics to obtain the corresponding station
 12 is  IW  wlan0  SET Legacy- bitrates of 2.4  12 is  18 is  24 # modify the transmission bit rate
 13 is  IW  dev  wlan0 bitrates of the MCS-SET . 5  . 4 # tx HT MCS modified bit rate of
 14  IW  dev  wlan0 SET bitrates of the MCS- 2.4  10 
15  IW  dev  wlan0 bitrates of the MCS-SET . 5Clear All things # tx bit rate and to restore normal set
 16  IW  dev  SET TxPower [] # set the transmission power
 . 17  IW  PHY  SET TxPower [] # Set the power transmission
 18 is  IW  dev  wlan0 power_save ON SET # Set the power saving mode
 . 19  IW  dev  GET power_save wlan0 # query the current power-saving settings
 20  IW  PHY  phyO the Add moni0 of the type monitor interface # to add a monitor interfaces

On Editting...

Guess you like

Origin www.cnblogs.com/uestc-mm/p/11450570.html