Live data from Hacker News

Raspberry Pi WLAN setup

berrylan.org

31–40 of 86 posts

Re: Raspberry Pi WLAN setup

#31
https://github.com/jasbur/RaspiWiFi fairly stable light weight system that does the same thing, also comes as an etchable .img one advantage here is that if the Pi goes offline for extended period it will flip on its AP broadcast mode allowing wifi to be setup again.

Code is highly modular and maintainable.

Re: Raspberry Pi WLAN setup

#32

I'm building a gift for someone else that uses a RasPi internally, and thus needed a user friendly way for them to configure its WiFi connection. It's been ... quite the adventure (mostly because I'm dumb). My first idea was to put an OLED and a rotary encoder on the box. That way they can do a special dance on the button to enter setup mode, scroll through a list of wifi networks, and then tediously scroll through l…

Raspbian defaults to being discoverable by bonjour so you can just `ssh pi@raspberrypi.local` and then modify the wifi config file (`/etc/network/interfaces`). You can script this bootstrap process pretty easily using Ansible etc. Downside is you do have to have a machine on the same ethernet network as the rpi for a short time. So fewer "cool project" points but ends up being quite simple.

[deleted]

Re: Raspberry Pi WLAN setup

#33

https://github.com/jasbur/RaspiWiFi fairly stable light weight system that does the same thing, also comes as an etchable .img one advantage here is that if the Pi goes offline for extended period it will flip on its AP broadcast mode allowing wifi to be setup again. Code is highly modular and maintainable.

Just out of curiosity, but why doesn't Raspberry Pi 3B support simultaneous broadcasting and receiving of Wi-Fi? I've seen multiple apps that swap between these modes (e.g. using broadcast mode to set up a captive portal) and then swapping to receiver mode, but never both at the same time. I've tried many times to configure this, all unsuccessfully. Is there some fundamental limitation with the underlying hardware that prevents this?

Re: Raspberry Pi WLAN setup

#34
This looks very cool but you should think twice before you use it. If a hacker wanted to infiltrate your LAN, there would be no better way to do it than to provide a tool like this.

Re: Raspberry Pi WLAN setup

#35
post #28

Earlier quoted context omitted.

My hassle is usually: Where do I dig up that keyboard and spare HDMI video source to bootstrap the Pi. Currently the MAME cabinet does that well, but not everyone has a MAME cabinet.

You don’t. You just enable ssh and connect it to network. Essentially ‘touch /boot/ssh’

But you can’t do that from a raspbian image, and if you want me to mod my file system post install that only works assuming I can mount it (eg I have another Linux box with keyboard).

I’ve had this problem multiple times and find this approach really nice (and wish it shipped with raspbian!)

Re: Raspberry Pi WLAN setup

#36

I'm building a gift for someone else that uses a RasPi internally, and thus needed a user friendly way for them to configure its WiFi connection. It's been ... quite the adventure (mostly because I'm dumb). My first idea was to put an OLED and a rotary encoder on the box. That way they can do a special dance on the button to enter setup mode, scroll through a list of wifi networks, and then tediously scroll through l…

Raspbian defaults to being discoverable by bonjour so you can just `ssh pi@raspberrypi.local` and then modify the wifi config file (`/etc/network/interfaces`). You can script this bootstrap process pretty easily using Ansible etc. Downside is you do have to have a machine on the same ethernet network as the rpi for a short time. So fewer "cool project" points but ends up being quite simple.

>Raspbian defaults to being discoverable by bonjour so you can just `ssh pi@raspberrypi.local` and then modify the wifi config file

Why would you do that when you can just drop a wpa_supplicant.conf on /boot?

Re: Raspberry Pi WLAN setup

#37
post #28

Earlier quoted context omitted.

You don’t. You just enable ssh and connect it to network. Essentially ‘touch /boot/ssh’

But you can’t do that from a raspbian image, and if you want me to mod my file system post install that only works assuming I can mount it (eg I have another Linux box with keyboard). I’ve had this problem multiple times and find this approach really nice (and wish it shipped with raspbian!)

/boot is a fat partition. You can mount that from most OSs.

Edit: forgive me, I see that's not what you meant at all. Or maybe it was? Either way, the point is valid.

Re: Raspberry Pi WLAN setup

#38
post #28

Earlier quoted context omitted.

You don’t. You just enable ssh and connect it to network. Essentially ‘touch /boot/ssh’

But you can’t do that from a raspbian image, and if you want me to mod my file system post install that only works assuming I can mount it (eg I have another Linux box with keyboard). I’ve had this problem multiple times and find this approach really nice (and wish it shipped with raspbian!)

But where was the SD card flashed? I think the idea is to enable ssh right after flashing the image.

Re: Raspberry Pi WLAN setup

#39
post #9

Earlier quoted context omitted.

Can you seriously put wpa_supplicant.conf in /boot and it’ll work? I have honestly never heard this in 2 years of doing Raspberry Pi, after looking at tons of documentation and web sites. This wouldn’t surprise me, but I feel like it should be much better documented, given that it’s pretty much the first and biggest hurdle to getting things to work on a new image.

Not in /boot, but the boot partition of the device named "boot".

That is mounted at /boot....

Re: Raspberry Pi WLAN setup

#40

I'm building a gift for someone else that uses a RasPi internally, and thus needed a user friendly way for them to configure its WiFi connection. It's been ... quite the adventure (mostly because I'm dumb). My first idea was to put an OLED and a rotary encoder on the box. That way they can do a special dance on the button to enter setup mode, scroll through a list of wifi networks, and then tediously scroll through l…

I wrote this to configure my Raspberry and connect to WiFi right after burning an OS: https://github.com/afdezl/rpi-headless
Post reply on HN