First boot and WiFi setup

We need to connect our Raspberry to the internet in order to install packages and updates. In my home I have three access points (old home with thick walls) so I need to setup more known networks at once. From the terminal:

 sudo nano  /etc/wpa_supplicant/wpa_supplicant.conf   

Here we can edit the known networks where our robot will connect. The file should be written like this:

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

network={ ssid="ACCESS POINT NAME"
  psk="ACCESS POINT PASSWORD"
  id_str="NETWORK NAME"
}

Ssid is the name of the access point (ex: Smith_Home), psk is the password required to grant a connection. Id_str is just a name we give to this connection; in my case I use Home South, Home North, and Garden.

Obviously I need to duplicate the ‘network’ entry once for each access point:

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

network={ ssid="ap_south"
  psk="ap_south_password"
  id_str="Home south"
}


network={ ssid="ap_north"
  psk="ap_north_password"
  id_str="Home nord"
}


network={ ssid="ap_garden"
  psk="ap_garden_password"
  id_str="Garden"
}

Save this file with CTRL+X and reboot the system.

Torna in alto