# Using a wifi adapter

**URL:** <https://forum.critterandguitari.com/t/using-a-wifi-adapter/158>\
**Category:** Organelle\
**Created:** [February 18, 2016, 11:09pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158 "2016-02-18T23:09:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/emp/32/89_2.png) [@emp](https://forum.critterandguitari.com/u/emp)\
**Post date:** [February 18, 2016, 11:09pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/1 "2016-02-18T23:09:04Z")

</div>

I read somewhere that it should be possible to add wifi to the Organelle by using an USB-adapter. I tried to insert one (in my powered usb hub attached to the Organelle) that works on my Beaglebone Black but it seems dead here. Do i need to activate wifi somehow? And how do i do that?

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [February 19, 2016, 1:49am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/2 "2016-02-19T01:49:48Z")

</div>

We’ve used a couple USB WiFi adapters successfully with the Organelle. I’ve been meaning to investigate further with other devices, so at this stage it is a little experimental. These are the two commands to bring up the WiFi adapter:

```
ip link set wlan0 up
wpa_supplicant -D nl80211,wext -i wlan0 -c <(wpa_passphrase "name" "pass") &

```

Where “name” and “pass” are for your wireless network. But this assumes the adapter was recognized. How did you try it? what commands did you use?

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 19, 2016, 2:36am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/3 "2016-02-19T02:36:53Z")

</div>

I haven’t had a chance to dive into the Linux side of the Organelle - what flavor is it running?

I have a ton of Raspberry Pi WiFi dongles I can check tonight to see if they work out of the box or need drivers.

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [February 19, 2016, 2:47am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/4 "2016-02-19T02:47:13Z")

</div>

It is Arch linux, kernel version 3.14. The adapters I tried were originally from Raspberry Pi that I had laying around, and they worked strait away. If you try any out please post your findings, It’d be good to get a list going of ones that work.

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 19, 2016, 2:52am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/5 "2016-02-19T02:52:29Z")

</div>

Cool, figured it was Arch since it was so stripped down. I’ll poke around tonight or tomorrow and report my findings.

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 19, 2016, 6:18pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/6 "2016-02-19T18:18:43Z")

</div>

So I was able to confirm that the drivers loaded for all three adapters (using `dmesg | grep usbcore`) but I got some errors when trying to modify the `wpa_supplicant.conf` file (via nano and vim) - it’s giving me a `Read-only file system` alert.

Tried a `chmod` with no luck either even though we’re root. Is there a form of `chroot` jailing going on with the underlying OS that would prevent a normal user from modifying files (even though it shows we’re `root`)?

Tried using your previous `ip link set wlan0 up` and `wpa_supplicant` commands with and without the driver flags to no avail, tried to just pass the creds via `wpa_passphrase` too. It says that it initializes properly but when I try to do anything with it I get a `Failed to read or parse configuration 'etc/wpa_supplicant/wpa_supplicant.conf'`. Tried to create a dummy .conf too but ran into the `Read-only file system` alert again.

I’d be happy to dump some logs up here if that helps. I’m a network guy by trade and no stranger to Linux (though this is my first time in Arch in a long time) so I’d be happy to troubleshoot with you.

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [February 19, 2016, 6:49pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/7 "2016-02-19T18:49:41Z")

</div>

The root file system is mounted read only for extra protection against power failure. It sorta ensures the Organelle boots up exactly the same way every time. It can be remounted for reading and writing with:

```
mount / -o remount,rw

```

This will solve most of the issues you are having with editing files.

As you noticed you are logged in automatically as root … so I probably don’t need to mention to be careful!

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 19, 2016, 6:59pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/8 "2016-02-19T18:59:27Z")

</div>

Fantastic, I’ll give that a shot. Thought that may have be the case.  
I’ll give the adapters another shot here in a bit. Thanks!

I promise not to nuke anything.

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 19, 2016, 8:22pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/9 "2016-02-19T20:22:04Z")

</div>

So after a little tinkering, I figured out that the dongles only worked when trying to hop onto a 2.4 Ghz channel, my 5 Ghz channel gave a error with `sched scan`. I think this has to do with setting the freq ranges by country but I didn’t experiment with that.

At any rate, I got all three adapters to work with Owen’s commands and without having to remount the root directory in read/write mode.

To get the party started, follow the directions below:

````auto
wpa_supplicant -D nl80211 -i wlan0 -c <(wpa_passphrase "Wifi name" "Wifi password") &```

After that is running, you may need to barter a DHCP lease from your router with:

 `dhcpcd wlan0`  

But, you should only need this once if you use the same wireless adapter.

Confirmed wireless adapters that work:

- [Official Raspberry Pi Wifi Adapter](https://www.adafruit.com/products/2638?gclid=COWunsHQhMsCFQsDaQodrIcI-A)
- [Edimax EW-7811Un](http://www.amazon.com/Edimax-EW-7811Un-150Mbps-Raspberry-Supports/dp/B003MTTJOY)
- [Tenda W311M](http://www.amazon.com/Tenda-W311M-150Mbps-Wireless-Adapter/dp/B006GCYAOS)

Hope this helps!
````

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [February 20, 2016, 2:16am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/10 "2016-02-20T02:16:51Z")

</div>

This is great info! Thanks! I have the Edimax, and also have used the original [WiPi](http://www.newark.com/element14/wipi/wlan-module-for-the-raspberry/dp/07W8938) successfully.

---

<div class="post-metadata">

**Author:** ![emp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/emp/32/89_2.png) [@emp](https://forum.critterandguitari.com/u/emp)\
**Post date:** [February 20, 2016, 10:21am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/11 "2016-02-20T10:21:36Z")

</div>

Thanks for all this info! Works fine here now.

---

<div class="post-metadata">

**Author:** ![SCHWARZONATOR](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@SCHWARZONATOR](https://forum.critterandguitari.com/u/SCHWARZONATOR)\
**Post date:** [February 24, 2016, 10:29am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/12 "2016-02-24T10:29:23Z")

</div>

> [@joshuaguild](#):
>
> ip link set wlan0 up  
> wpa\_supplicant -D nl80211 -i wlan0 -c \<(wpa\_passphrase “Wifi name” “Wifi password”) &

I tried your setup help and could easily get everything to work with my Edimax adapter. However when I restart Organelle nothing happens and the Wifi adapter doesn’t get recognized. What am I doing wrong?  
Or do I have to type all the setup in again after each restart?

---

<div class="post-metadata">

**Author:** ![joshuaguild](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/joshuaguild/32/73_2.png) [@joshuaguild](https://forum.critterandguitari.com/u/joshuaguild)\
**Post date:** [February 24, 2016, 1:22pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/13 "2016-02-24T13:22:43Z")

</div>

Yep, I believe you’ll have to bring the interface up each time you reboot, modidy the wpa\_supplicant.conf, or write a quick script that brings it up on boot.

I could probably cobble together a quick bash script that does this when I have some free time.

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [December 22, 2016, 7:58pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/14 "2016-12-22T19:58:41Z")

</div>

If anyone is interested in scripting this, you can do the following:

wifi.conf

```
ctrl_interface=/var/run/wpa_supplicant
network={
    ssid="your-network"
    scan_ssid=1
    key_mgmt=WPA-PSK
    psk="your-network-password"
}

```

[wifi.sh](http://wifi.sh)

```
#!/bin/sh
ip link set wlan0 up
wpa_supplicant -D nl80211 -i wlan0 -c wifi.conf &
dhcpcd wlan0

```

Then, just run `./wifi.sh`, or make it run automatically on boot if you wish.

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [December 22, 2016, 8:20pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/15 "2016-12-22T20:20:04Z")

</div>

This is great, thanks for sharing.

I’ve been experimenting a bit with WiFi and testing out various WiFi adapters. I’ve found this one works really well:

> **[Raspberry Pi WiFi Adapter](https://www.canakit.com/raspberry-pi-wifi.html)**
>
> Raspberry Pi WiFi Adapter

It is the same as the WiPi adapter which also works well

> **[Amazon.com: Wi-Pi Raspberry Pi 802.11n Wireless Adapter: Computers &amp;...](https://www.amazon.com/Wi-Pi-Raspberry-802-11n-Wireless-Adapter/dp/B00BDW6D7I)**
>
> Buy Wi-Pi Raspberry Pi 802.11n Wireless Adapter: USB Network Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases

It uses a common Ralink 5370 chip. Not all adapters are created equal, and some are very cheap… but these two have worked well.

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [June 25, 2017, 2:58pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/16 "2017-06-25T14:58:55Z")

</div>

hi folks

i am about to embark on a linux project with my 2nd organelle~ and i was wondering what if/any wifi adapters may work from somehwere like Ye olde Best Buy Shoppe.

[http://www.bestbuy.com/site/searchpage.jsp?id=pcat17071&st=usb+wifi+adapter](http://www.bestbuy.com/site/searchpage.jsp?id=pcat17071&st=usb+wifi+adapter)

---

<div class="post-metadata">

**Author:** ![quilime](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/quilime/32/338_2.png) [@quilime](https://forum.critterandguitari.com/u/quilime)\
**Post date:** [June 28, 2017, 5:36am UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/17 "2017-06-28T05:36:27Z")

</div>

Ye Ol’ BestBuyShack actually has a way of sorting USB WiFi adapters that work on linux. I bet you’ll find something here that works:

[http://www.bestbuy.com/site/shop/wireless-adapters-for-linux](http://www.bestbuy.com/site/shop/wireless-adapters-for-linux)

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [June 28, 2017, 3:24pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/18 "2017-06-28T15:24:52Z")

</div>

actually i didn’t i found an OLD netgear 54Mbs WIFI adapter and it works  
I am new to arch linux though, how do i update my repositories without a full system upgrade?  
I do not want to break anything

---

<div class="post-metadata">

**Author:** ![Bassick](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/bassick/32/316_2.png) [@Bassick](https://forum.critterandguitari.com/u/Bassick)\
**Post date:** [June 30, 2017, 10:21pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/19 "2017-06-30T22:21:14Z")

</div>

Have you guys synced up tempo with Ableton Link with any of these wifi adapters?

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [July 1, 2017, 1:25pm UTC](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158/20 "2017-07-01T13:25:38Z")

</div>

not yet but there’s an external for it that i am going to toll out soon, WIFI works so it should not be a big deal

[Next page](https://forum.critterandguitari.com/t/using-a-wifi-adapter/158.md?page=2)
