How to Install Wi-Fi Adapter on Raspberry Pi’s 2 / 1. Belkin N300 Micro Wireless USB Adapter. To connect the Belkin N300 on raspberry Pi it’s easy.
Follow learn share Amazon Today’s Deals and Coupons Try Amazon Prime 30 days Free.
How to Install Wi-Fi Adapter on Raspberry Pi 2
Find your ➦ Amazon List.
First, on terminal from the Raspberry Pi, type this command to install the required package.dpkg -l firmaware-realtek
Next the dongle should be recognized by raspbian. lsmod
lsusb
Next, the usb wi-fi adapter can be utilized to scan for a wireless network, and take note of the ESSID you want to connect.iwlist wlan0 scan
If you using a network with WPA encryption, you’ll have to generate the passphrase with the following command, replace the SSID and the PASSWORD parameters from the network you want to connect. This will generate the hash, that you’ll need in the next step.wpa-passphrase [ESSID] [PASSWORD]
Next, Edit the /etc/network/interfaces
file for your network.
- And add the following content for a WPA network with DHCP protocol.
auto wlan0
iface wlan0 inet dhcp
wpa-ssid [ESSID]
wpa-psk [PASSWORD] - or enter this settings for a WEP network.
auto wlan0
iface wlan0 inet dhcp
wireless-ssid [ESSID]
wireless-key [PASSWORD]
Next, you can restart your network interfaces with the following command.
If using the Legacy init.d way:
sudo /etc/init.d/networking restart
In the Legacy Upstart way:sudo service network-manager restart
Or If using SystemD:sudo systemctl start networking
Next, Make sure you are connected executing the iwconfig command.iwconfig
And the Belkin N300 should now access the internet, and of course the always useful connections, the SSH and the remote desktop via VNC.
if you find some difficulties to connect. Try to use DHC client to get dynamic IP.dhclient
Or try bringing the device down and up again using this command’s.sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
Or update your distro.sudo apt-get update
Thanks for watching and stay connected subscribing the Newsletter if you haven’t already.