Configure Raspberry Pi WiFi automatic connection without screen

Connect the memory card of the burned system to the computer through a card reader , create a file under the boot drive letter, the name is wpa_supplicant.conf
If the WiFi to be connected is named myWiFi , and the password is 12345678

WiFi uses WPA/WPA2 encryption

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
      
      
ssid="myWiFi"
psk="12345678"
key_mgmt=WPA-PSK
priority=1
}

WiFi uses WEP encryption

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
 
network={
      
      
ssid="myWiFi"
key_mgmt=NONE
wep_key0="12345678"
}

WiFi without password

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
      
      
ssid="myWiFi"
key_mgmt=NONE
}

Then insert the memory card into the tree plum pie to start, and it will automatically connect within the WiFi range

Guess you like

Origin blog.csdn.net/weixin_45579994/article/details/112386410