How to configure Wi-Fi on your Raspberry Pi


Raspberry Pi – How to configure Wi-Fi on your Raspberry Pi

For configuring Wi-Fi over Raspberry Pi, you will have to use different methods over different Raspberry Pi models. There are some steps that are to be followed to configure Wi-Fi which is detailed below.

To configure Raspberry Pi Model B can be used by simply connecting USB dongle, as Model B comes with 100 Mbps wired Ethernet cable. On the other hand, Model A comes with no Ethernet at all in that case you can use a Wi-Fi adapter to get networking on the model. Simply plugging and an easy configuration will give wireless access over your Raspberry Pi model. The thing that has to be kept in mind is that USB adapter should be the one that supports Raspberry Pi and Linux.

Raspberry Pi – Dongle Based Configuration

For dongle based configuration used a dongle based chipset, the chipset should also support Raspberry Pi and no additional configuration will be required for its recognition during the time of boot. After you will have to plug in the USB adapter and then boot the Raspberry Pi, there are ample of ways to recognize the adapter.
Connecting to a wireless network is an easy task if Raspbian is used on a desktop, for that you have to double click the “WiFi config”, an icon on the desktop to initiate a wireless configuration program. The Adapter field will demonstrate your USB dongle and Network field will be clear till you configure a network that is wireless. Click Start and then on the scan results window you will have to click scan, there will be a list of wireless networks in addition to these signal strength would appear, then click on SSID to connect one of the listed networks.

Wifi Scan in progress

Then you have to confirm Encryption and Authentication fields and then enter the password in the PSK field, then click ADD after that you will be closing the scan results windows, later then newly configured network will be automatically connected.

Wifi Configuration

Raspberry Pi – Adding Ample Of Network With Network Drop Down List

You can add an ample number of networks as well by the network drop down list by using the relevant buttons you can also connect and disconnect and to edit and remove networks manage networks are to be used.
In any case, if you are not using a desktop, in that case command line can be utilized and Wi-Fi can be configured, and in that scenario there will be preinstalled correct packages in the Raspbian. If anyhow these commands are not mentioned then run the following commands to install them.
The universal network sites are configured in “/etc/network/interfaces” while the Wi-Fi details are set in the “/etc/wpa_supplicant/wpa_supplicant.conf” file. First edit the “interfaces” file:
Make certain that the segment concerning wlan0 (typically found at the end of the file) interprets as follows:

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

If there is distinction, then modify them consequently. Don’t modify any of the outlines about the low adapter or theeth0 adapter.
Press “CTRL + X” to depart nano (press Y and then push ENTER when impelled).
To obtain a list of the presently accessible wireless networks, employ the iwlist command:
sudo iwlist wlan0 scan
If there is a lot of information, use grep to discover the field you require. For example to observe just the ESSIDs, employ:
sudo iwlist wlan0 scan | grep ESSID
Choose a network and insert the network verification in the array of the “wpa_supplicant.conf” file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
The first two lines be supposed to previously read:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Raspberry Pi – Insert the following:


Raspberry Pi – Network:

If your router is now configured using WEP for encryption, then information in the network will look like this:


Raspberry Pi – Wifi Configuration:

For those of you recognizable with sophisticated WiFi configurations, the network in sequence can also comprise the following fields:
• proto – Protocol perhaps be : RSN (for WP2) and WPA (for WPA1).
• pairwise – CCMP or TKIP (for WPA2 or WPA1).
• auth_alg – authentication algorithm, can be OPEN for both WPA1/WPA2 and less commonly SHARED or LEAP.
Press “CTRL + X” to abscond nano and save the file, press Y and then press ENTER when impelled. Lastly reboots your Pi:
sudo reboot


About Author

Leave A Reply