How to connect Raspberry Pi’s to Wifi

Attention! Please change the keyboard setup to the one suits you. For example, most of you need to change it to American 101key. The method is sudo raspi-config -> Localisation Options -> Change Keyboard Layout -> 101 key -> US

There are two methods to add the known wifi AP to your Pi. Choose one based on your preference

in sudo raspi-config -> Network Option -> Wi-fi Then add the known SSID, say duckietown, then type in the password Reboot your device.

Cd to /etc/wpa_supplicant. Modify the file wpa_supplicant.conf using sudo privilege and with any editor you like. Suggest nano because it’s built-in.

Add your AP info using the following format:

network={
  ssid="[your ssid]"
  psk="[password]"
}

you should have something like

network={
  ssid="duckietown"
  psk="1234567890"
}

Then reboot.