How to – Raspberry – Setting the WiFi USB adapter

Meccanismo Complesso - Raspberry How To

How to connect my Raspberry to a WiFi network (Wireless)?

Raspberry Pi boards (except the new version 3) have not WiFi system (Wireless), but only Ethernet connectors (Cable connection). So if you want to connect your board to a WiFi network you will need to buy a USB WiFi adapter.

Meccanismo Complesso - WiFi adapter
A Wifi USB adapter

How to configure Raspberry Pi for WiFi networking using the USB adapter.

Plug the WiFi adapter to any USB port on your Raspberry. Now, you have to check if Raspberry found the WLAN adapter among the connected devices.

Run the lsusb command. Now you can see all devices currently connected to USB ports, which are recognized by Raspbian.

$ lsusb
Raspberry - how to - wifi usb adapter 01

Once you have found the WLAN adapter in the device list, you can start to configure the WiFi network.

$ sudo nano /etc/network/interfaces

Add or change the current configuration setting the DHCP mode for the wlan0. Then insert the ID and password of your WiFi network in order to access it. My Raspberry configuration is set as shown in the following picture. You interfaces setting file can be different, depending on many wireless network are set and on previous settings made on the networking configuration.

Raspberry - how to - wifi usb adapter 02

Now, the new network configuration have to be load by the system. So, you can do it by reloading the networking service.

$ sudo service networking reload

Finally, check the WiFi connection status for being sure that all is OK.

$ ifconfig

Now an IP address should be shown for the wlan. An IP address assigned to WiFi by DHCP.

Raspberry - how to - wifi usb adapter 03


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.