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:

network={
    ssid="Erle Robotics"
    #psk="erle-brain"
    psk=59e0d07fa4c7741797a4e394f38a5c321e3bed51d54ad5fcbd3f84bc7415d73d
}

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