:: [DNG] wpa-roam [was Re: Systemd Shi…
Top Page
Delete this message
Reply to this message
Author: Didier Kryn
Date:  
To: dng
Old-Topics: Re: [DNG] Systemd Shims
Subject: [DNG] wpa-roam [was Re: Systemd Shims]
Le 16/08/2015 21:44, Steve Litt a écrit :
> On Sun, 16 Aug 2015 18:48:44 +0100
> Edward Bartolo <edbarx@???> wrote:
>
>> I would like to humbly add my little contribution to this thread.
>>
>> I am posting using Devuan 64 bit connected to a home WIFI without any
>> network managers. I connect by using separate /etc/network/interfaces
>> files. The one for my home wifi is in /etc/network/interfaces while
>> the rest are saved under my home directory.
>>
>> To connect, I use the command as root:
>> ifup wlan0 -i an-interfaces-file
> I, too, am a big fan of command based network connections rather than
> data based. My only question is this: What is life like when you walk
> from Macdonalds to Burger King and change hotspots?
>
> I think for the travelling guy, there must be a quick facility to see
> available hotspots with their strengths and security status, choose
> one, input a password if that ESSID hasn't been encountered already,
> and log in.
>
> What was in your "an-interfaces-file"? (obviously change the
> passwords). Did you use wpa-supplicant at all?
>
>
> [snip]
>
>> My point is, what I do manually, can be done through code resulting in
>> a simple application. The advantage I see is, it would be standalone.
> Pre-cisely!
>
>> I am tempted to create this application to automate my connection, but
>> most probably, as I am more prolific in Delphi Pascal, the language of
>> choice will be Lazarus Pascal. I can write C++ GUI applications but
>> that requires more effort on my part. As long as logic programming in
>> C/C++ that is on the same level if not easier.
> Show me the way you do it manually, and I'll make something into which
> you can plug in your Lazarus front end. Somebody else can plug in their
> Dialog front end.
>
>> The hardest part seem to be allowing the ifup command to run with root
>> privileges.
> Well, if the user doesn't mind having sudo with a sudoers file, easiest
> way to do that is to allow sudo nopassword. Is there a non-root group
> that would allow ifup to do its thing?
>
> What does your ifup command look like, and what does the
> "an-interfaces-file" look like? Does one interfaces file contain lots
> of ESSIDs, or one ESSID per interface file? What do you do about making
> the password secure from prying, non-root eyes? As far as you know, do
> you use wpa_supplicant in any way?
>
> Thanks,
>
> SteveT
>


     Guys, I don't understand why you insist to do by hand (with the 
help of wpa_supplicant) what wpa_supplicant can do by itself just with a 
proper /etc/network/interfaces. I've already posted a link to a 
debian/ubuntu howto. It just works, with two dozens of wifi stations in 
my wpa_supplicant.conf.


     The only missing tool is a *lightweight* UI to hold the hand of the 
user to fill wpa_supplicant.conf. wpa_gui just does that, but is not 
lightweight, and AFAIU, wicd is the like.


     The thing I am not sure how it works is, when wifi and Ethernet are 
both connected, how my laptop choses one of them for routing, wether it 
is done by ifplugd or something else.


     Didier