How to connect a wireless adapter to a Raspberry Pi running Ubuntu Trusty 14.04?

I am running Ubuntu Trusty 14.04 on a Raspberry Pi 2 Model B. The image for installing Ubuntu can be found here .

According to the image, after installing linux-firmware, it should be able to connect to Wi-Fi. However, the image is quite bare and does not come with a lot. I installed wpa-supplicant and placed this code in the wpa-supplicant.conf file.

ctrl_interface=DIR=/ver/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="RECUV-VICON" scan_ssid=1 psk="fluffyapple617" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN } 

And put this code in / etc / network / interfaces

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

When I do ifup wlan0 followed by ifdown wlan0 and another ifup wlan0 displays

 wpa_supplicant: /sbin/wpa_supplicant daemon failed to start run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1 Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory 

There is a very similar thread that I found in this release here . According to the solutions, it just requires the right driver for the adapter. Typing lsusb enumerates the device as such

 Bus 001 Device 008: ID 148f:3572 Ralink Technology, Corp. RT3572 Wireless Adapter. 

I searched for exact linux drivers for Ralink wifi adapters and ended up here .

I added the components to my .list source, and it didn’t install right away, because some of the files conflict with the initial version of linux firmware, so I had to force them to be redefined. However, it is correctly installed after that.

I know that the Wi-Fi adapter works, works with ubuntu and works with the Pi itself. I tested it on my laptop running Ubuntu 14.04 and it was able to connect. I also tried the Ubuntu Mate image on the Pi, and the wifi adapter was also able to connect.

What am I missing or is there another mistake preventing this?

+5
source share

All Articles