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
- Ensure that the system is up-to-date
sudo apt - get update sudo apt - get upgrade
- Install wpasupplicant
sudo apt-get install wpasupplicant
- Search the identifier used by the interface. Generally, It's wlan0
- Build a PSK of your Wifi password version
wpa_passphrase Mon_SSID
It will ask you the password. The result will be something like :
network={ ssid="My_SSID" #psk="my_password" psk=12345.....def }
- Copy the value of PSK
- Edit the file/etc/network/interfaces
Auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "My_SSID" wpa-psk 12345.....def
- Stop the Raspberry
- Unplug the ethernet cable
- Restart the Raspberry and don't forget to connect your Wifi dongle !
Wifi is in place !