raspberry 实验床搭建

Setup Wifi

  • First setup the Wifi location. Only after setting up Wifi location can we open the Wifi function of Raspberry Pi.
  • Then set up the SSID and password of Wifi.

There are two ways of these two steps.
The first one is to use the following command:

1
sudo raspi-config

The second way is using the config file. We need to add the following lines to file wpa_supplicant.conf

1
2
3
4
5
country=xx
network={
ssid="testing"
psk="testingPassword"
}

The command used is as follows:

1
2
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
wpa_cli -i wlan0 reconfigure // restart the wlan0