Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. duplicate entries in /etc/resolv.conf (Doron Behar)
   2. Re: Directly create settings to /var/lib/connmn to setup WiFi
      (Jonah Petri)


----------------------------------------------------------------------

Message: 1
Date: Mon, 22 Apr 2019 14:10:51 +0300
From: Doron Behar <[email protected]>
To: [email protected]
Subject: duplicate entries in /etc/resolv.conf
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Hello connman devs,

Last update was wonderful - real support for iwd as a WiFi backend is a
great improvement and as I always say when reporting issues here, it's a
real pleasure using connman.

The reason I'm posting this thread is because connman does weird things
with it's /var/run/connman/resolv.conf (which I linked to
/etc/resolv.conf).

I'm connected both with WiFi and Ethernet to my home network but since
I've set PreferredTechnologies=ethernet,wifi my default route is through
the Ethernet connection - exactly as I want it.

I have a few other settings in my /etc/connman/main.conf so perhaps
they are the reason I'm having trouble with /etc/resolv.conf. Here it
is:

        [General]
        AutoConnectRoamingServices=true
        PersistentTetheringMode=true
        SingleConnectedTechnology=true
        PreferredTechnologies=ethernet,wifi
        AllowDomainnameUpdates=false
        AllowHostnameUpdates=false

The problem I'm having is that I get duplicate entries in
/etc/resolv.conf, perhaps because I'm connected to the same network
twice. This is the /etc/resolv.conf connman comes up with whenever I
boot:

        search Home Home Home
        nameserver fdc9:8a32:cbfb:0:16ae:dbff:fe55:f320
        nameserver fdc9:8a32:cbfb:0:16ae:dbff:fe55:f320
        nameserver 192.168.14.1

Every once in a while (not only after boot), I need to change
/etc/resolv.conf to this when I feel the internet becomes slow:

        search Home
        nameserver fdc9:8a32:cbfb:0:16ae:dbff:fe55:f320
        nameserver 192.168.14.1

Since the `search` entry seems to be related to my domain, I've added
AllowDomainnameUpdates=false in order to mitigate that but it doesn't
help.

Perhaps I don't understand well the configuration file parameters,
although I've read the manpage thoroughly. Anyway, I think connman
should avoid writing a `resolv.conf` file with duplicate entries like it
does to mine.

Waiting for your reply, Thanks.

Doron.


------------------------------

Message: 2
Date: Mon, 22 Apr 2019 10:07:30 -0400
From: Jonah Petri <[email protected]>
To: JH <[email protected]>
Cc: connman <[email protected]>
Subject: Re: Directly create settings to /var/lib/connmn to setup WiFi
Message-ID: <[email protected]>
Content-Type: text/plain;       charset=us-ascii

Hello JH,

The standard way to configure connman non-interactiively is via a config file.

https://jlk.fjfi.cvut.cz/arch/manpages/man/connman-service.config.5

You write something like this into /var/lib/connman/wifi.config:

[service_YOUR_NAME_HERE]
Type=wifi
SSID=XXXX
Passphrase=XXXX

The SSID is hex-encoded, and the passphrase is based on the output of the 
wpa_passphrase utility.

That should be sufficient for simple cases, where you can let dhcp do the rest.

Jonah


> On Apr 21, 2019, at 12:46 AM, JH <[email protected]> wrote:
> 
> Hi Stephen,
> 
> Thanks for the response, unless I am missing things here, it did not
> work on my imx dev board, I copied pre-configured wifi settings to the
> /var/lib/connman, pull the Ethernet cable out, the WiFi interface did
> not come up in ifconfig command, doesn't look like that inotify could
> automatcially update the network interfaces, do I need to call some
> command in connmanctl manually to update the network interfaces?
> 
> Thank you.
> 
> Kind regards,
> 
> - jupiter
> 
> On 4/21/19, Stephen Dawson-Haggerty <[email protected]> wrote:
>> Pretty sure that works. It uses inotify to watch those files.
>> 
>> On Sat, Apr 20, 2019 at 4:21 AM JH <[email protected]> wrote:
>> 
>>> Hi,
>>> 
>>> In an embedded system, there is no interactive manual involvement to
>>> setup WiFi from the command line connmanctl, rather than calling
>>> connmanctl command line to set up WiFi manually, can it be done in a C
>>> program to create the WiFi service
>>> wifi_d4ca6e001bc0_5450472d4d434e46_managed_psk, and to create the
>>> settings file to
>>> /var/lib/connmn/wifi_d4ca6e001bc0_5450472d4d434e46_managed_psk/settings?
>>> 
>>> This is an essential requirement for almost every embedded system, but
>>> no one talked about it, how did you accomplish it? Are you all using
>>> command line connmanctl?
>>> 
>>> Thank you.
>>> 
>>> Kind regards,
>>> 
>>> - jupiter
>>> _______________________________________________
>>> connman mailing list
>>> [email protected]
>>> https://lists.01.org/mailman/listinfo/connman
>>> 
>> --
>> 
>> *Steve Dawson-Haggerty* | CTO and Co-Founder
>> 
>> (631) 741-3378
>> comfyapp.com <https://www.comfyapp.com/?home>
>> Have you heard about Comfy Insights <http://comfy.us/insights-ef> yet?
>> Follow us on:
>> <https://www.linkedin.com/company/comfy-by-building-robotics->
>> <https://twitter.com/comfyapp>  <https://www.facebook.com/comfyapp/>
>> <https://www.instagram.com/comfyapp/>
>> 
>> [image: Comfy Logo] <https://www.comfyapp.com/?home>
>> 
> _______________________________________________
> connman mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/connman



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 42, Issue 15
***************************************

Reply via email to