Setting up Wifi in Hypriot [solved]

When I try to connect via wifi I have the network cable disconnected and using a USB keyboard and monitor.

I’m a rookie at this so nothing is obvious to me. I just tried that and got

$ ifup wlan0
ifup: failed to open lockfile /run/network/.ifstate.lock: Permission denied

When I paste my device-init.yaml text into the tool at www.yamllint.com I get this:

(): mapping values are not allowed in this context at line 4 column 29

I cant seem to get rid of the error no matter what I do.

I’m tempted to reload NOOBS software to check on the wifi again. It would be a shame tho because I got everything else loaded, portainer and all.

I have no idea why your yaml file is not working. The linter is a good idea.

This is recognized as valid:

hostname: black-pearl

# optional wireless network settings
wifi:
  interfaces:
     wlan0:
       ssid: "talktothefridge"
       password: "123"

I don’t know what the difference is with what you have.

Ah! It is the space after the :

Damn!

Yea, I finally got rid of the error by wiping the whole thing and re-typing it. Checking it now…

Still same things show up in lsusb and its not showing up in Fing. ugh!

Your WiFi device will not show up in lsusb, because it is not a usb device.

Copy and paste my settings, yours didn’t have a space after ssid:, which I think caused all the issues.

I got a clean lint on my rewrite and even tried yours. Still doesn’t show up in Fing. My ssid has a space it in, I would assume that hypriot supports spaces in ssid names.

Well, it’s quite late here. I’m going to get some rest and see what I can do tomorrow. I may just reload NOOBS tomorrow to see if its still working there.

Thanks for all your help tonight (this morning for you).

Hope it works for you, I had the same issue of an errant space in the code. Copied from above and updated with my settings, all is good.

If you have spaces, be sure to keep the quotes from Elco’s code above.

Well, I finally got it working. I went to bed, woke up and pasted @Elco’s code and it works. I must have screwed something up when I pasted it last night. I blame it on the homebrew I was drinking at the time!

Thanks for all the help!

1 Like

Hi gonzo, this is interesting for me as i have exactly the same issues, however repasting elco’s code did not solve my problem. Could you tell me which hypriot image you downloaded as i am suspicious that the image has some important bits missing for a Raspberry 3.

thanks

Hi PJ,

I downloaded version 1.5.0 from Hypriot’s blog page. I also had issues pasting code as well. Try pasting it into http://www.yamllint.com and see if you get any errors back. I was getting some errors that I couldn’t seem to get rid of with just editing. I ended up deleting the whole thing and pasting Elco’s code clean.

Hi, I have a RPI 2 and I did all including repasting Elco’s code too unsuccessfully. When I run lsusb command I see
Bus 001 Device 006: ID 0bda:8176 RealTek Semiconductor Corp. RTL8188CUS.11n WLAN Adapter
Is this USB dongle the problem (old)?

Hi, I have big problems with wifi in hypriot. I have tryed out everything in this thread and still no connection by wifi to my RPI 3.
When I run sudo iwlist wlan0 scan it finds my neighbors wifi but not mine.
No problem with network cable.
Can someone please help me.

Hi Arnt, is your network 2.4 GHz or 5GHz? The RPi 3 doesn’t support 5 GHz and neither does the Spark.

Hi Elco. I am runing my network on both 2,4 and 5 GHz.

@elco Maybe the problem is that both frequences has the same ssid?

I just tested this, because my new home setup has the same config. It works fine here. I wouldn’t expect it to cause any problems either, because the 2.4Ghz antenna doesn’t even see the 5Ghz.

@Arnt did you get this going in the end?

I flashed v1.7.1 for my Rapsberry Pi 3 and edited devices-init.yaml but it won’t update the hostname or connect to my wifi. From my reading devices-init.yaml doesn’t exist in this version and people have suggested to edit user-data. I have tried this according to this thread https://github.com/hypriot/blog/issues/60 but still no luck.

@Dan No, I gave Hypriot up :slight_smile:

I am running Brewpi on a Jessie version and that works just fine considering WIFI and Bluetooth connection. Also this way is giving me a desktop output directly from the RPi.

as far as I know hypriot shouldn’t be necessary anymore.

docker (arm-hf) has been available in the standard sources for some time now. you can just install it on raspbian like this:

curl -sSL https://get.docker.com | s

see here:

2 Likes