Jump to content

Photo

NetworkManager module

NetworkManager

  • Please log in to reply
18 replies to this topic

#1 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 12:35 PM

Hi all !

Substantiel a French company have recently developed a NetworkManager widget for e17.
I think you would may be interested by this. You could find it here https://github.com/eyoz/oconnection.
It's far to be perfect, but it's a good start instead of using nm-applet.
This module monitor the states of wired and wifi connection and allow you to setup a wifi connection. I think it's 95% percent of the usage of NetworkManager.

 

any comments or contribution are welcome.

 





A big thank you to everyone who contributes to Bodhi Linux


#2 The waiter

The waiter

    Module Master

  • Developer
  • 1457 posts
  • LocationBanska Bystrica, Slovakia

Posted 21 February 2017 - 12:49 PM

Interesting information. Thanx. I will give it a try...



#3 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 21 February 2017 - 01:58 PM

Very interesting. Any idea if it supports connecting to VPNs?



#4 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 02:30 PM

No as I say, only wifi connections could be configured.
We could add this to a TODO.
The main problem is we need to provide a more complex config panel. Users of substantiel 'ordissimo' are beginners in computer. So a complex config panel isn't a thing for them and VPN connection even less.



#5 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 21 February 2017 - 02:34 PM

Hrm, compiled this under Bodhi's latest release and loaded the module + added the gadget to a shelf, but clicking on the module doesn't seem to do anything currently.



#6 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 02:36 PM

Which version of NetworkManager did you have ?

I don't test it with bodhi, only with e17 :P



#7 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 21 February 2017 - 02:41 PM

Network manager version looks to be 1.2.2



#8 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 02:42 PM

Ho your shelf is at the top of your screen ? or left right ?



#9 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 21 February 2017 - 02:46 PM

Top of the screen.



#10 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 02:48 PM

Hehe, try with a bottom one :).

I will fix it quickly



#11 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 21 February 2017 - 03:03 PM

Doesn't seem to do anything on the bottom either here. Left and right click both do nothing.

EDIT: Also - my system in question has two wireless cards and a wired connection if that matters at all.



#12 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 03:13 PM

Hum ... I'm currently dowloading bodhi to test. Will see



#13 The waiter

The waiter

    Module Master

  • Developer
  • 1457 posts
  • LocationBanska Bystrica, Slovakia

Posted 21 February 2017 - 03:55 PM

Yoz: can you tell me more about Substantiel company? What is the company profile and why they aimed to e17?

#14 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 21 February 2017 - 04:42 PM

Here you can find their website http://www.ordissimo.eu/en/
The aim of Ordissimo is to provide an easy to use computer for your grandpa and grandma.
Ordissimo use e17 since long times now. (https://sourceforge....ssage/26515709/). Maybe you will notice e wasn't released at this times :P.
I introduced Substantiel 'Ordissimo' too in my post on samsung osg blog (https://blogs.s-osg....chael-bouchaud/).
They have about 70 000 computers already sold and currently used who use e17 and the park still grow. Can be the most used linux desktop by the elderly.
This module is a rewrite from an old one. Instead of using a proprietary daemon to set the network, they want to switch to NetworkManager. So the module is still young and not in production yet.



#15 ylee

ylee

    King of the Software Page

  • Moderators
  • 1489 posts
  • LocationSouth Carolina, USA

Posted 21 February 2017 - 06:07 PM

Wow a cool idea. I installed in my test environment. Super simple and works as far as I can tell, Ethernet connection. Hmm it is lacking the right click settings dialog. No way to disconnect network or edit connections as far as I can tell. For now I lack time to install and test on my netbook (wifi connection). I would say at this point needs some work to be usable as an nm-applet replacement in Bodhi. Certainly like the idea tho.

 

I also don't like compiler warnings. I would say the below warnings need fixed. 

e_mod_main.c: In function ‘_oconnection_conf_timer’:
e_mod_main.c:570:4: warning: format not a string literal and no format arguments [-Wformat-security]
    e_util_dialog_show( D_("Oconnection Configuration Updated"), data);
    ^
e_mod_main.c:570:4: warning: format not a string literal and no format arguments [-Wformat-security]
  CC       e_mod_config.lo
  CC       oconnection_network_manager.lo
In file included from oconnection_network_manager.c:1:0:
oconnection_network_manager.c: In function ‘_oconnection_nm_setting_wifi_update_property’:
oconnection_network_manager.c:945:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘void *’ [-Wformat=]
              ODBG("Add %s setting for ssid %s to spool\n", data, ssid);
                   ^
e_mod_main.h:22:31: note: in definition of macro ‘ODBG’
 #define ODBG(f, x ...) printf(f, ##x)
                               ^
oconnection_network_manager.c: In function ‘_oconnection_nm_setting_remove_from_spool’:
oconnection_network_manager.c:1257:14: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘const void *’ [-Wformat=]
         ODBG("Setting %s remove from spool\n", key);
              ^
e_mod_main.h:22:31: note: in definition of macro ‘ODBG’
 #define ODBG(f, x ...) printf(f, ##x)
                               ^
oconnection_network_manager.c: In function ‘_oconnection_nm_setting_save_cb’:
oconnection_network_manager.c:1356:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘void *’ [-Wformat=]
    ODBG("Setting update %s\n", data);
         ^
e_mod_main.h:22:31: note: in definition of macro ‘ODBG’
 #define ODBG(f, x ...) printf(f, ##x)
                               ^

Causal inspection indicates they are most likely harmless warnings and I know some of Bodhi's stuff might throw some compiler warnings also. That doesn't imply I approve.


"No technology can ever be too arcane or complicated for the black t-shirt crowd."


#16 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 22 February 2017 - 12:04 AM

Warnings are fixed, more than you spotted ;)
Jeff I have tested the module on bodhi and it works fine in a vm.
I can't test the wifi now I have no usb dongle here, next week I will.
Meanwhile I will fix the popup placement.



#17 Jeff

Jeff

    Lead Developer

  • Developer
  • 12333 posts
  • LocationBloomington, IL

Posted 22 February 2017 - 03:05 AM

Just updated the source and recompiled. Still not getting any menus when clicking here - right or left click.



#18 The waiter

The waiter

    Module Master

  • Developer
  • 1457 posts
  • LocationBanska Bystrica, Slovakia

Posted 22 February 2017 - 05:29 AM

I am able to see menu under bodhi 3.2.1. But no success with wifi. I can see all devices around. It also pop up paswd entry but then connection in progress appeared and nothing more happened.

#19 yoz

yoz

    Member

  • Members
  • 18 posts

Posted 23 February 2017 - 10:19 PM

Hi,

I've fixed the popup position now. Jeff please retry !

The waiter could you paste somewhere the content of your xsession-error log.

I think the module use some property who aren't implemented in the NetworkManager you use.







Also tagged with one or more of these keywords: NetworkManager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users