Connect the Raspberry Pi to the Internet
There are two methods to help get the Raspberry Pi connected to the network: the first one is using a
network cable, the other way is using WIFI. We will talk in detail about how to connect via WIFI as below.
If you want to use the WIFI function, you need to modify a WIFI configuration file wpa-supplicant.conf in
the Micro SD card by your PC that is located in the directory /etc/wpa-supplicant/.
If your personal computer is working on a linux system, you can access the directory directly to modify the
configuration file; however, if your PC use Windows system, then you can't access the directory and what
you need next is to go to the directory,
/boot/
to create a new file with the same name, wpa-supplicant.
conf.
Input the following content in the file.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="WiFi-A"
psk="Sunfounder"
key_mgmt=WPA-PSK
priority=1
}