Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Automated wifi 'scavenging', daemon recommendation?

Post

Automated wifi 'scavenging', daemon recommendation?

+0
−0

I have a RPi in the car that I need to act as a mobile AP.

I need it to provide a consistent, unchanging ESSID (in AP mode) using the onboard wlan0 for all devices that stay in my car. Dashcams, the car's nav computer, my laptop, for instance. The Pi will also interface with the car over ODB2 to do some logging and remote control.

But to provide internet connectivity TO the Pi itself, I need to use my smartphone when it is plugged in (it provides a "USB NIC"). Or if my phone is not connected by cable, then I need the pi to use a secondary, usb Wifi adapter (wlan1) as a wifi client (client mode), to search for common APs at home, work, family's house, and join the strongest one.

Obviously linux does this all the time. My Fedora/CentOS/Ubuntu laptops simply have a gui list of networks, and when it's on, it finds something on that list and joins it automatically.

I want to have that same capability, in the Pi via commandline-only scripting. Additionally I'd kind of like some way to auto-join any open network and check if it can route out to the internet (wouldn't we all....)

What's the best way to do that on a minimal, headless linux box?

I will probably also add an openvpn or openswan tunnel to this so that my car can have an unchanging "public ip" that I could use with IFTTT or other services to make incoming connections. But that's beyond the scope of what I'm asking here. Obviously I know I need to keep it secure too, but detailed security is beyond the scope of this question.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Does `nmcli device wifi list --rescan` give useful information? (1 comment)
Does `nmcli device wifi list --rescan` give useful information?
Canina‭ wrote over 2 years ago

It's not a daemon, but I suspect most Linux wireless network UIs these days are simply front-ends to Network Manager, in which case perhaps something like nmcli device wifi list --rescan and nmcli device wifi connect ... might prove useful. See nmcli(1).