Raspberry Pi : install and configure Wifi in Raspbian

Today a small article to go back to the basics. There is not always fortunate to have an ethernet at hand Jack. Wifi is the solution.


First and foremost, It is necessary that your Rasperry is connected to Internet via Ethernet. If this is not the case, You can still download the packages on a USB key, connect the key on the Raspberry and install packages

  1. Ensure that the system is up-to-date
    sudo apt - get update sudo apt - get upgrade
  2. Install wpasupplicant
    sudo apt-get install wpasupplicant
  3. Search the identifier used by the interface. Generally, It's wlan0

    Recherche de l'identifiant de l'interface Wifi avec ifconfig

    Research of the identifier of the Wifi interface with ifconfig

  4. Build a PSK of your Wifi password version
    wpa_passphrase Mon_SSID

    It will ask you the password. The result will be something like :

  5. Copy the value of PSK
  6. Edit the file/etc/network/interfaces
     auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "My_SSID"
     wpa-psk 12345.....def
  7. Stop the Raspberry
  8. Unplug the ethernet cable
  9. Restart the Raspberry and don't forget to connect your Wifi dongle !

Wifi is in place !

You may also like...