Internet through WiFi

Getting internet through WiFi is possible by making use of wpa_supplicant. For example if I were to connect to a network called "Erle Robotics" with a password "erle-brain", then I'd do the following:

wpa_passphrase "Erle Robotics" erle-brain

That'll generate something like:

    ssid="Erle Robotics"

which you can copy in a file, e.g.: /etc/wpa_supplicant/example.conf. With this, you'll launched wpa_supplicant as:

wpa_supplicant -B -i interface -c /etc/wpa_supplicant/example.conf