1. Start and connect wifi
After burning the image, you should create two new files in the boot disk, ssh and wpa_supplicant.conf. ssh is an empty file and is only used to "tell" the Raspberry Pi to start the SSH service (of course, if you have a monitor connected to the Raspberry Pi Both of these can be omitted). The wpa_supplicant.conf file should be filled in as follows:
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Your-WiFi-SSID"
psk="Your-WiFi-Password"
}
Fill in the two fields Your-WiFi-SSID and Your-WiFi-Password with your WIFI SSID and password.
The last step seems to be critical:
create a new wifi configuration file wpa_supplicant.conf in the root directory of the SD card. If you use a windows system to edit this file, you need to select line endings in Linux/Unix style format. For example, if you use Notepad++, you need to select "Edit" > "EOL Conversion" > "UNIX/OSX Format".