tag:blogger.com,1999:blog-34112729.post2285532587951903703..comments2024-01-27T10:21:16.573+01:00Comments on Martin Vidner: cnetworkmanager 0.21Martin Vidnerhttp://www.blogger.com/profile/08755880808140601974noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-34112729.post-6158046428692858962011-04-28T22:27:42.667+02:002011-04-28T22:27:42.667+02:00for the record, martin announced last year that he...for the record, martin <a href="http://mail.gnome.org/archives/networkmanager-list/2010-August/msg00145.html" rel="nofollow">announced last year</a> that he's stopped development on cnetworkmanager in favor of Jirka Klimes's <a href="http://fedoraproject.org/wiki/Features/NetworkManagerCmdline" rel="nofollow">nmcli</a>.Ryanhttps://www.blogger.com/profile/09088492341819589797noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-35576887332079557672010-07-07T13:22:11.498+02:002010-07-07T13:22:11.498+02:00Can cnetworkmanager be used to disconnect a connec...Can cnetworkmanager be used to disconnect a connection. <br />I plan to disconnect my internet connection at a particular time. Then connect it after half an hour. Check every half an hour if the connection is up upto say 8 in the morning. If it is down reconnect it. Then finally disconnect it at 8.Unknownhttps://www.blogger.com/profile/02407041143156408370noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-18304352420343530682010-06-22T04:39:35.725+02:002010-06-22T04:39:35.725+02:00hey martin, thanks for a great piece of software!
...hey martin, thanks for a great piece of software!<br /><br />i have to +1 peter's request for more info about --activate-connection. it's the main reason i looked for something like cnetworkmanager in the first place, but i haven't gotten it to work yet.<br /><br />if i try to use it with a user connection, i get:<br /><br />purgatory:~> cnetworkmanager --activate-connection=user,0,wlan0,01:23:45:67:89:AB<br />Traceback (most recent call last):<br /> File "/usr/local/bin/cnetworkmanager", line 319, in <br /> conn = get_connection(svc, conpath)<br /> File "/usr/local/bin/cnetworkmanager", line 211, in get_connection<br /> applet = NetworkManagerSettings(get_service_name(svc))<br /> File "/usr/local/lib/python2.6/dist-packages/networkmanager/applet/__init__.py", line 37, in __init__<br /> super(NetworkManagerSettings, self).__init__(dbus.SystemBus(), service, self.OPATH, default_interface = self.IFACE)<br /> File "/usr/local/lib/python2.6/dist-packages/dbusclient/__init__.py", line 40, in __init__<br /> super(DBusMio, self).__init__(conn, bus_name, object_path, introspect, follow_name_owner_changes, **kwargs)<br /> File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__<br /> self._named_service = conn.activate_name_owner(bus_name)<br /> File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner<br /> self.start_service_by_name(bus_name)<br /> File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name<br /> 'su', (bus_name, flags)))<br /> File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking<br /> message, timeout)<br />dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManagerUserSettings was not provided by any .service files<br />purgatory:~><br /><br /><br />if i try with system, i get:<br /><br />purgatory:~> cnetworkmanager --activate-connection=system,0,wlan0,01:23:45:67:89:AB<br />Connection '0' not found<br />Traceback (most recent call last):<br /> File "/usr/local/bin/cnetworkmanager", line 320, in <br /> hint = get_connection_devtype(conn)<br /> File "/usr/local/bin/cnetworkmanager", line 220, in get_connection_devtype<br /> cs = conn.GetSettings()<br />AttributeError: 'NoneType' object has no attribute 'GetSettings'<br />purgatory:~><br /><br />i get the same errors regardless of the values i pass for ID, DEV, and APMAC, in all three versions: 0.21.1, repo.or.cz head, and github head.<br /><br />it looks like the last cnetworkmanager change was over 8 months ago. is it still under development?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34112729.post-63173641517518543852010-01-19T14:54:13.243+01:002010-01-19T14:54:13.243+01:00Just started using it but very new to linux and py...Just started using it but very new to linux and python so please excuse what might be a dumb question. There was a query earlier about starting a 3G/HSDPA adapter and a follow-up comment giving a solution of cnetworkmanager --activate-connection user,Simyo,ttyACM0,<br /><br />A couple of questions.<br />1) I couldn't find any documentation where the --activate-connection featured. Is there a doc that contains all the commands<br />2) What is user in this command. My device is wlan0 in network manager and is device ttyhs0 but I receive an error of "Invalid bus name"<br />3) Is there a deactivate command<br /><br />My device is ttyhs0 and wlan0 in network managerPeter Jnoreply@blogger.comtag:blogger.com,1999:blog-34112729.post-66641369122949295742010-01-04T14:54:15.627+01:002010-01-04T14:54:15.627+01:00Hi there
Man, this is really a great piece of sof...Hi there<br /><br />Man, this is really a great piece of software. The only thing I am missing is an easy way to change the default route from one interface to another. For example from the eth0 to the wlan0 interface. This is the only thing I am missing and unfortunately I am not skilled enough to write a patch of my own. Therefore I wanted to know whether an implementation might be possible<br /><br />Thanks<br /><br />BenediktAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34112729.post-9745702733354173892009-12-31T08:56:45.920+01:002009-12-31T08:56:45.920+01:00Great software. thanksGreat software. thanksXG-網頁設計http://webdesign.zoapcon.comnoreply@blogger.comtag:blogger.com,1999:blog-34112729.post-35465066152497115422009-10-29T11:23:01.549+01:002009-10-29T11:23:01.549+01:00"cnetworkmanager -C" won't find my k..."cnetworkmanager -C" won't find my knetworkmanagerrc.<br />I could correct the path in the code to ./kde4/config/share/networkmanagementrc but this did not help:<br /><br />"quentin@linux-d6um:~> cnetworkmanager -C<br />cnetworkmanager 0.8 - Command Line Interface for NetworkManager<br />Usage: cnetworkmanager [options]<br /><br />cnetworkmanager: error: -C option requires an argument"<br /><br />You should implement the recognition of the new knetworkmanagementrc path.Quentinhttps://www.blogger.com/profile/04273699076730914733noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-71054958965687184442009-10-05T06:48:18.961+02:002009-10-05T06:48:18.961+02:00Mokawi, thanks for the report, I have fixed it in ...Mokawi, thanks for the report, I have fixed it in <a href="http://github.com/mvidner/cnetworkmanager/commit/a67ed11be6d29f189ff3b434e2e0378e9d74589b" rel="nofollow">a67ed11b</a> (a release should follow soon).<br /><br />gbin's issue is already fixed in 0.21.1 (and tracked as <a href="http://bugs.gentoo.org/show_bug.cgi?id=281099" rel="nofollow">Gentoo bug 281099</a>.Martin Vidnerhttps://www.blogger.com/profile/08755880808140601974noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-4110124973962328822009-10-03T09:21:30.837+02:002009-10-03T09:21:30.837+02:00btw, "module" is between "<"...btw, "module" is between "<" and ">". Blogger thinks it's a html tag, so I tried the &lt/gt + semicolon tag, but apparently it won't work either.Louis Chartrandhttps://www.blogger.com/profile/02273862171816691623noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-50417692887655732702009-10-03T09:18:59.823+02:002009-10-03T09:18:59.823+02:00I have a small bug report. When I do a "cnetw...I have a small bug report. When I do a "cnetworkmanager -u", get this:<br /><br />Traceback (most recent call last):<br /> File "/usr/bin/cnetworkmanager", line 240, in <module><br /> list_connections(USER_SERVICE)<br /> File "/usr/bin/cnetworkmanager", line 236, in list_connections<br /> t.row(active, cs["connection"]["id"], cs["connection"]["type"])<br /> File "/usr/lib/python2.5/site-packages/networkmanager/util.py", line 125, in row<br /> self.rows.append(map(str,args))<br />UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 8: ordinal not in range(128)<br /><br />I suspected it was a SSID named "Café du monde En vrac" (note the accent on Café), and I was right. I deleted it with nm-connection-editor, and the output was alright.Louis Chartrandhttps://www.blogger.com/profile/02273862171816691623noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-89188686636036456402009-08-27T13:48:00.715+02:002009-08-27T13:48:00.715+02:00To setup a 3G connection (it works great for me)
c...To setup a 3G connection (it works great for me)<br />cnetwrokmanager --activate-connection user,Simyo,ttyACM0,<br /><br />1st param=user<br />2nd param=name of the connection in NetworkManager<br />3rd param=devicemuimotahttps://www.blogger.com/profile/10709892972431680158noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-22411300318925491632009-08-25T19:39:46.669+02:002009-08-25T19:39:46.669+02:00This comment has been removed by the author.muimotahttps://www.blogger.com/profile/10709892972431680158noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-77847465880258023152009-08-17T12:59:38.178+02:002009-08-17T12:59:38.178+02:00Hi there. Great software. Was wondering if you cou...Hi there. Great software. Was wondering if you could advise me how I would use cnetworkmanager to restart a 3G/HSDPA adapter.<br /><br />The adapter is assigned ppp0<br />It has a profile already created to do the dialling and such. It's also set to automatically dial up. <br /><br />I just wondered if there is an easy to way to achieve this?Teslas_codpiecehttps://www.blogger.com/profile/16149022039919382108noreply@blogger.comtag:blogger.com,1999:blog-34112729.post-34508601766575408552009-08-12T22:46:50.437+02:002009-08-12T22:46:50.437+02:00Trying to use the 0.21 in gentoo I have this error...Trying to use the 0.21 in gentoo I have this error trying to connect to a wpa AP :<br /><br />Traceback (most recent call last):<br /> File "/usr/bin/cnetworkmanager", line 294, in module<br /> c = settings.WpaPsk(ssid, "", options.wpa_psk_hex) <br /> File "/usr/lib64/python2.6/site-packages/networkmanager/applet/settings.py", line 130, in __init__<br /> self["802-11-wireless"]["security"] = "802-11-wireless-security" <br /> File "/usr/lib64/python2.6/site-packages/networkmanager/applet/settings.py", line 15, in __getitem__<br /> return self.conmap.__getitem__(key) <br />TypeError: string indices must be integers, not str<br /><br />I tried guessing the error and made the modification below, it corrects it but it doesn't connect.<br /><br />Guillaume.<br /><br />--- /root/cnetworkmanager/networkmanager/applet/settings.py 2009-08-12 22:10:45.000000000 +0200<br />+++ /usr/lib64/python2.6/site-packages/networkmanager/applet/settings.py 2009-08-12 21:23:09.000000000 +0200<br />@@ -126,7 +127,7 @@<br /> def __init__(self, ssid, key, hashed_key=""):<br /> "One of key, hashed_key must be present"<br /><br />- super(WiFi, self).__init__(ssid)<br />+ super(WpaPsk, self).__init__(ssid)<br /> self["802-11-wireless"]["security"] = "802-11-wireless-security"<br /> self["802-11-wireless-security"] = {}<br /> self["802-11-wireless-security"]["group"] = ["tkip", "cselfp"]Guillaume BINEThttps://www.blogger.com/profile/12688619251907262709noreply@blogger.com