Pi-set wireless

  Burn 64-bit debian, edit the /boot/wpa_supplicant.conf file to set the out-of-box Wi-Fi failure, search it, and modify the configuration after entering the system. The record is as follows. Reference link: https://www.ucloud.cn/yun/60945.html

1. Write the ssid and password to the configuration file: wpa_passphrase your SSID >> /etc/wpa_supplicant/wpa_supplicant.conf your password

2.  Add content to the wpa_supplicant.conf configuration file (red content is required to be filled in manually):

network = { 
        ssid = "your SSID" 
        proto = RSN 
        key_mgmt = WPA-PSK 
        pairwise = CCMP 
        auth_alg = OPEN
         #psk = "your password" 
        psk = ba4e9c8c83de0c1531accf56d7156409da7653161fb871a85c252c88bdf3d 
}

3. Start by executing the command: wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

4. Obtain the IP through dhcp and run dhcpcd wlan0. Of course, you can also run dhcpcd on eth0

5. Set up automatic IP acquisition and modify the / etc / network / interfaces file:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

6. The iw command can operate wifi

Guess you like

Origin www.cnblogs.com/badwood316/p/12676762.html