The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Minimal/Networking

From Mer Wiki
< Minimal
Revision as of 09:53, 18 June 2013 by Xavinux (Talk | contribs)

Jump to: navigation, search

It's possible to setup Connman based networking without a full-blown GUI tool.

All required tools are in connman-test package, so be sure to include it in your image.


Basic usage

First enable WiFi:

 /usr/lib/connman/test/test-connman enable wifi

Wait a moment for scan to settle and list available networks:

 /usr/lib/connman/test/test-connman services

Connecting with plain names should work if you do not have unusual characters in the network SSID. If you do, you need to use service identifier like wifi_...


Connecting using Passphrase agent

On one console (Ctrl-Alt-Fn) or xterm launch simple agent:

 /usr/lib/connman/test/simple-agent

and leave it there for now.

On second console/xterm trigger the connection process:

 /usr/lib/connman/test/test-connman connect wifi_...

Next switch back to simple-agent console/xterm and type Passphrase=yourpassword at the Answer: prompt, like:

 Service credentials requested, type cancel to cancel
 Answer: Passphrase=yourpassword

In a moment you should have the WiFi network up.

Pre Provisioned connection

  NOTE: more info here: http://git.kernel.org/cgit/network/connman/connman.git/tree/doc/config-format.txt

You can also configure any connection, so you won't have to use simple-agent method above.

Create a .conf file in /var/lib/connman for instance -

   vim /var/lib/connman/home-wifi.config

and add an entry such as this:

   [service_home_wifi]
   Type = wifi
   Name = my_home_wifi
   Passphrase = secret


or

   [service_tls]
   Type = wifi
   SSID = 746c735f73736964
   EAP = tls
   CACertFile = /home/user/.certs/ca.pem
   ClientCertFile = /home/user/devlp/.certs/client.pem
   PrivateKeyFile = /home/user/.certs/client.fsid.pem
   PrivateKeyPassphraseType = fsid
   Identity = user

Please note that the SSID entry is for hexadecimal encoded SSID

and then restart connman sudo systemctl stop connman.service sudo systemctl start connman.service


Now you can use test-connman like above, but without the need of the simple-agent part.

Personal tools