Posts Tagged networkmanager

Ifnet updates for NetworkManager 0.9

NetworkManager 0.9 has changed a lot of stuff. Before NM 0.9, there are user connections and system connections. Ifnet plug-in is made to only take charge of system connections. But after NM 0.9, all connections become system connections and ifnet tries to manage all of them. Then some bad things might happen. The problem is reported by David Narvaez and he helped a lot on it. Bug #392409 is also caused by the problem. This is fixed in networkmanager-0.9.2.0-r2: if a user does not check “available to all users”, ifnet will not handle the connection any more and the default plug-in “keyfile” will do the job.

Another important change is that ifnet now supports openrc style. As bash arrays are not allowed by openrc, ifnet caused Bug #369711. After networkmanager-0.9.2.0-r2, ifnet can read both the old baselayout style (with bash arrays) and openrc style (without bash arrays), but it only writes to /etc/conf.d/net with openrc style.

Advertisements

,

7 Comments

Gentoo NetworkManager Plug-in now supports non-alnum SSID

For a long time, we can’t use non-alnum SSID for system connections when ifnet is enabled. For example, when you have an SSID named “foo bar”, ifnet plug-in will write this into /etc/conf.d/net:
config_foo bar=(…)
And this will break baselayout or openrc because space is not allowed in variable name.

But now you can specify any SSID you want, the plug-in will handle it transparently. Here’s how it works:
When an non-alnum SSID is specified, ifnet plug-in will transform it to the equivalent hex format. For example, you have the SSID “foo bar”, the following will be written to /etc/conf.dnet:
config_0x666F6F20626172=( “dhcp” )
enable_ipv6_0x666F6F20626172=”false”
auto_0x666F6F20626172=”false”
Meanwhile, the name displayed in nm-applet will be transformed to printable characters.

Thanks to  William L. Thomson Jr’s help in Bug #356337.

PS: What is non-alnum? man isalnum

,

2 Comments

Recent Updates for Gentoo NetworkManager Plugin

It’s been a long time since I wrote something about Gentoo NetworkManager Plug-in. But I never stopped my work. Here are some updates for it.

Enhancemant:

  1. Shared connection could work now.
  2. Support ad-hoc network
  3. Allow to use “default gw *.*.*.*” to configure routes

Bug fix:

  • Bug #353549 Fix tests
  • Bug #352638 Fix bug in parsing dhclient.conf
  • Bug #350476 Fix several small bugs, improved log output, support shared connection.
  • Bug #339215  Allow to use “default gw *.*.*.*” to configure routes

One small issue for shared ad-hoc system connection is that it doesn’t start the connection automatically when networkmanager is started the first time after boot (Bug #350476). But I notice that there’s the same problem with the default keyfile plug-in. So I think it may be an upstream bug but I don’t get any response from upstream :(.

All the updates are contained in networkmanager-0.8.2-r6. Some modification has been merged to upstream.

Thanks for your attention.

 

, ,

3 Comments

Gentoo NetworkManager Plug-in Final Report For GSoC

Hi

This is the last report for Gentoo NetworkManager plug-in during GSoC.

I’ll continue maintaining this project after GSoC and I’ll write new articles about the new life :).

I mentioned in last weekly report that I was going to merge our plug-in to NM upstream. Dan Williams gave me some great comments and I was working on them for the last two weeks. This includes code quality/format improvements, monitoring improvements, logic improvements and several bug fixes. Now all the problems are solved and we are agreed to merge our plug-in on Monday 23rd August.

Robert has helped me pushed the plug-in into portage and enabled it by default. We have got some great feedback. Right now, all the reported bugs were fixed and it’s looking good.

I want to maintain this project after GSoC and continue contributing myself to Gentoo community as a developer. Right now I’m working on Gentoo developer quiz.

This summer is really wonderful and thank Gentoo Community for giving such a great experience to me.

, ,

1 Comment

Pushing Gentoo NetworkManager Plug-in to upstream NetworkManager

Two weeks ago, I contacted Dan Williams who is the author of NetworkManager. We are talking about pushing our plug-in to upstream NetworkManager. Dan is really a kind guy and willing to accept our code. He made a long fix-up list and I’ve started working on them this week.

These requests would not only help make the code format compatible with NM’s, but also improve the quality of our plug-in. Thank Dan for his comments.

I’ll make all the necessary modification and I’m sure you will see it soon :-).

, ,

3 Comments

Progress of Gentoo NetworkManager Plug-in – Writing support finished

Hi everyone,

I’m glad to inform you that writing support has been implemented now. That means any change made via nm-applet will be written into /etc/conf.d/net and /etc/wpa_supplicant/wpa_supplicant.conf. You won’t have to modify these configuration files manually in most time.

Welcome you to join and test the plug-in if you are interested. Current stable version is networkmanager-0.8-r102. (Thanks to Robert)

layman -a dagger (or layman -S)
emerge -av networkmanager

Remember to make your connection available to all users if you want your changes to be written to configuration files. If you have difficulty doing it, hope this article could help you. Here is a demo for making wireless connection:

Read the rest of this entry »

, ,

8 Comments