We have moved to a new Sailfish OS Forum. Please start new discussions there.
24

[request] Provide connmanctl with connman [answered]

asked 2014-02-06 12:27:36 +0300

PyroDevil gravatar image

updated 2014-02-07 12:52:15 +0300

chemist gravatar image

Could you please update connman to 1.7, because connman 1.7 provides connmanctl that makes setting up custom network configurations on the terminal/ssh much easier an less error prone.

I tried for example to setup the eduroam wifi connection with creating those *.config files, but I was not successful. My WPA2-Personal network at home uses a 64 character long key, and the timeout on the interface prevented me from successfully typing the password. Creating *.config files was not successful either. And simple-agent always had difficulties connecting to the system bus.

So having an additional way to setup the network directly with connmanctl would help, until the GUI settings work correctly.

UPDATE

I checked the current version of connman, it's 1.15. So it seems they have removed connmanctl from the package...

Apparently connmanctl isn't part of the connman package in the mer repository.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by r0kk3rz
close date 2015-09-01 18:00:55.824801

Comments

1

64char password? You might want to reconsider https://xkcd.com/936/

chemist ( 2014-02-06 12:34:31 +0300 )edit

Normally I don't care, because I have text files with the password, and copy&paste them, but that was not allowed in the GUI. Luckly connman supports WPS.

PyroDevil ( 2014-02-06 12:43:34 +0300 )edit

@chemist But XKCD style passwords can be even longer :-)

Nux ( 2014-02-06 12:47:18 +0300 )edit

@Nux That's what I thought too, and was a little irritated by this ;)

PyroDevil ( 2014-02-06 12:51:23 +0300 )edit

I am more about the kind of password... I stroke keys for 30char sane passwords much faster than ASF%42rfHros§ and do not crash into timeouts

chemist ( 2014-02-06 13:20:10 +0300 )edit

2 Answers

Sort by » oldest newest most voted
8

answered 2014-02-06 17:13:12 +0300

PyroDevil gravatar image

updated 2014-02-06 18:12:10 +0300

I now simply compiled it myself on the jolla phone:

$ devel-su
$ pkcon install gcc gcc-c++ make automake autoconf libtool 
$ pkcon install glib2-devel dbus-devel iptables-devel gnutls-devel readline-devel 
$ cd /home/nemo/Downloads
$ git clone https://git.kernel.org/pub/scm/network/connman/connman.git connman
$ cd connman
$ git checkout 1.15
$ ./bootstrap
$ ./configure
$ make
$ cp client/connmanctl /usr/local/bin/

after this you can remove the stuff you just installed:

$ pkcon remove kernel-headers glibc-headers binutils gcc gcc-c++ make automake autoconf 
$ pkcon remove glibc-devel pcre-devel glib2-devel gnutls-devel libgcrypt-devel 
$ pkcon remove libgpg-error-devel libtasn1-devel zlib-devel ncurses-devel readline-devel
$ pkcon remove iptables-devel dbus-devel
$ cd /home/nemo
$ rm -rf Downloads/connman

(I wish rpm would support automatic removal of unneeded dependencies)

If you wish to setup a new protected network with connmanctl, you have to stop the current connectionagent and run connmanctl as agent:

$ systemctl --user stop connectionagent.service
$ connmanctl
connmanctl> agent on
connmanctl> scan wifi
connmanctl> services
connmanctl> connect wifi_xxxxx
...
connmanctl> quit
$ systemctl --user start connectionagent.service
edit flag offensive delete publish link more

Comments

I strongly suggest not doing that in 1.0.3.8. There are some dependencies issues, and problems with pkg-conf.

plaristote ( 2014-02-19 19:06:01 +0300 )edit
5

answered 2015-04-12 00:39:02 +0300

tigeli gravatar image

connmanctl has been packaged in connman-tools since the beginning. No need to compile it separately.

edit flag offensive delete publish link more

Comments

Thanks for the info. Didn't saw it there.

For reference, you can find it in:

$ /usr/lib/conmann/tools/connmannctl

after installation of connman-tools.

PyroDevil ( 2015-04-13 11:17:58 +0300 )edit

Question tools

Follow
3 followers

Stats

Asked: 2014-02-06 12:27:36 +0300

Seen: 1,882 times

Last updated: Apr 12 '15