Re: Wireless - properties popup after a few failed retries

2011-08-03 Thread Alex Pyattaev
Yeah, thats pretty annoying thing when you are in a city looking for a 
hotspot. Instead of popping up settings it should probably just show 
notification which would pop up settings page.
On Tuesday 02 August 2011 14:47:09 Maverick wrote:
 For example, I've got my laptop connect to the wireless network, and then I
 have to stop my radius server for maintenance for 1h,when NetworkManager
 detects that the connection is dropped it tries to reconnect a few times
 and then fails as obvious.
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Newbie question

2011-07-08 Thread Alex Pyattaev
They used to be there, indeed. Try to look through older versions in the 
repository. I have no idea if it will give any results though. And anyway, 0.8 
will probably be dropped quite soon, and new api is alot better.
On Friday 08 July 2011 13:12:36 David Lambert wrote:
 Alternatively are there any examples/tutorials for version 0.8?
 
 Dave.
 
 On 07/07/2011 12:21 PM, Alex Pyattaev wrote:
  The problem is that the examples in GIT are for networkmanager version
  0.9, and you probably have version 0.8. Check if 0.9 is available for
  your distro, or try to locate old examples.
  
  If the 0.9 is not available for your distro, you could try to build it
  yourself, its not very hard to do, but you'll need to build
  wpa-supplicant's dev version as well, otherwise you will get some nasty
  bugs with WPA. If you just want to test the wired interfaces you don't
  need to bother though.
  
  Alex
 
 ___
 networkmanager-list mailing list
 networkmanager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Newbie question

2011-07-07 Thread Alex Pyattaev
The problem is that the examples in GIT are for networkmanager version 0.9, 
and you probably have version 0.8. Check if 0.9 is available for your distro, 
or try to locate old examples. 

If the 0.9 is not available for your distro, you could try to build it 
yourself, its not very hard to do, but you'll need to build wpa-supplicant's 
dev version as well, otherwise you will get some nasty bugs with WPA. If you 
just want to test the wired interfaces you don't need to bother though. 

Alex

On Thursday 07 July 2011 09:53:04 David Lambert wrote:
 I am a newbie to NetworkManager/dbus and in order to learn the interface
 am attempting to run the python script:
 
 http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/pyth
 on/nm-state.py
 
 I get the error:
 
 dlambert@development:~/Desktop$ python nm-state.py
 Device eth0 is activated
 Traceback (most recent call last):
File nm-state.py, line 58, in module
  con_details = con_iface.GetSettings()
File /usr/lib/pymodules/python2.6/dbus/proxies.py, line 68, in __call__
 return self._proxy_method(*args, **keywords)
File /usr/lib/pymodules/python2.6/dbus/proxies.py, line 140, in
 __call__
  **keywords)
File /usr/lib/pymodules/python2.6/dbus/connection.py, line 620, in
 call_blocking
  message, timeout)
 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
 Method GetSettings with signature  on interface
 org.freedesktop.NetworkManager.Settings.Connection doesn't exist
 
 
 Any pointers as to where I can get details of the Python API or a
 tutorial would be appreciated.
 
 
 Regards,
 
 Dave.
 
 ___
 networkmanager-list mailing list
 networkmanager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NM utils in Python?

2011-06-22 Thread Alex Pyattaev
You can use any C function in python natively with CDLL module. No need for 
rewriting anything.  Hope it helps.
On Wednesday 22 June 2011 09:28:23 Vratislav Podzimek wrote:
 Hi everyone,
 is there any way how to use NM utils in Python? This time I need
 something like 'nm_utils_ip4_netmask_to_prefix()', but there is are many
 other very useful functions in libnm-util-nm-utils.
 If there's no way how to use them in Python it might be great to change
 it. Have a nm-utils Python module written in C? I could do something for
 it but I have no experience with writing Python modules in C so it would
 take quite a long time.
 
 Thanks a lot in advance for any advice.
 Vratislav Podzimek
 
 ___
 networkmanager-list mailing list
 networkmanager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list
-- 
Alex Pyattaev,
Researcher,
Tampere University of Technology,
Finland
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: How to Test NetworkManager 0.9

2011-06-20 Thread Alex Pyattaev
David,
 I'm a gentoo user too, and I was thinking maybe we could cooperate on this 
thing. For example, I have 2 nice ebuilds that compile NM and applet from the 
source tree unpacked somewhere in your system. This way you do not have to 
bother with dangling files and you can always see what's installed. Both are 
attached.
Don't forget to run ebuild ... digest before installing.
And do not put those to portage tree directly, just run ebuild, this way they 
will not get erased upon next emerge --sync. 
If you have any preliminary data on supplicant interface, I'd be happy to try 
it too ASAP!
Thank you,
Alex

On Sunday 19 June 2011 10:59:27 David Narvaez wrote:
 On Mon, Jun 13, 2011 at 10:11 AM, David Narvaez
 
 david.narv...@computer.org wrote:
  I'll find that out today about that patch and fix the D-Bus issue
  which should get me up and running with NM 0.9.
 
 Hi all, now posting from my laptop with NM 0.9 finally!
 
 Thanks Dan for pointing me in the direction of the new DBus interface
 for wpa_supplicant.
 
 Lamarque, I'd like to know if I could reach you through private e-mail
 to clarify some stuff before documenting this process as I think I did
 some extra work that was not needed (at least not in Gentoo-based
 distros).
 
 Thanks again.
 
 David E. Narvaez
 ___
 networkmanager-list mailing list
 networkmanager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list
-- 
Alex Pyattaev,
Researcher,
Tampere University of Technology,
Finland# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.8.4.0-r1.ebuild,v
 1.2 2011/06/09 01:41:03 sping Exp $

EAPI=2

inherit autotools eutils gnome.org linux-info
MY_SRC_DIR=/opt/net-misc/networkmanager/NetworkManager

DESCRIPTION=Network configuration and management in an easy way. Desktop 
environment independent.
HOMEPAGE=http://www.gnome.org/projects/NetworkManager/;
SRC_URI=

LICENSE=GPL-2
SLOT=0
KEYWORDS=~amd64 ~arm ~ppc ~ppc64 ~x86

RDEPEND==sys-apps/dbus-1.2

DEPEND=${RDEPEND}

#S=${WORKDIR}/${MY_P}



src_prepare() {
# backported ifnet patches
#epatch ${FILESDIR}/${P}-shared-connection.patch
#epatch ${FILESDIR}/${P}-fix-tests.patch
#epatch ${FILESDIR}/${P}-ifnet-smarter-write.patch
cp -r ${MY_SRC_DIR} ${S}
eautoreconf
}

src_configure() {
ECONF=--disable-more-warnings
--localstatedir=/var
--with-distro=gentoo
--with-dbus-sys-dir=/etc/dbus-1/system.d
--with-udev-dir=/lib/udev
--with-iptables=/sbin/iptables
$(use_enable doc gtk-doc)
$(use_with doc docs)
$(use_with resolvconf)

# default is dhcpcd (if none or both are specified), ISC dchclient 
otherwise
if use dhclient ; then
if use dhcpcd ; then
ECONF=${ECONF} --with-dhcpcd --without-dhclient
else
ECONF=${ECONF} --with-dhclient --without-dhcpcd
fi
else
ECONF=${ECONF} --with-dhcpcd --without-dhclient
fi

econf ${ECONF}
}

src_install() {
emake DESTDIR=${D} install || die emake install failed

# Need to keep the /var/run/NetworkManager directory
keepdir /var/run/NetworkManager

# Need to keep the /etc/NetworkManager/dispatched.d for dispatcher 
scripts
keepdir /etc/NetworkManager/dispatcher.d

#dodoc AUTHORS ChangeLog NEWS README TODO || die dodoc failed

# Add keyfile plugin support
keepdir /etc/NetworkManager/system-connections
insinto /etc/NetworkManager
#newins ${FILESDIR}/nm-system-settings.conf-ifnet 
nm-system-settings.conf \
#   || die newins failed
}

pkg_postinst() {
elog You will need to reload DBus if this is your first time 
installing
elog NetworkManager, or if you're upgrading from 0.7 or older.
elog 
}
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/gnome-extra/nm-applet/nm-applet-0.8.4.ebuild,v 1.2 
2011/05/18 16:38:28 ssuominen Exp $

EAPI=2
inherit gnome2

MY_SRC_DIR=/opt/net-misc/nm-applet/network-manager-applet

DESCRIPTION=Gnome applet for NetworkManager.
HOMEPAGE=http://projects.gnome.org/NetworkManager/;
SRC_URI=

LICENSE=GPL-2
SLOT=0
KEYWORDS=~amd64 ~ppc ~x86
IUSE=bluetooth

# FIXME: bluetooth is automagic
RDEPEND==dev-libs/glib-2.16:2
=dev-libs/dbus-glib-0.88
=sys-apps/dbus-1.4.1
=x11-libs/gtk+-2.18:2
=gnome-base/gconf-2.20:2
=x11-libs/libnotify-0.4.3
=gnome-base/libglade-2:2.0
=gnome-base/gnome-keyring-2.20

=dev-libs/libnl-1.1
=net-misc/networkmanager-${PV}
=net-wireless

Re: Automagically restart wifi connection

2011-06-20 Thread Alex Pyattaev
What kind of connection loss do you have? Can you still ping the access point 
for example? Is there any error in system log or dmesg? I have encountered 
similar problems with some AP's, and sometimes it was a bug in AP.
On Monday 20 June 2011 10:51:11 Mauricio Tavares wrote:
   I have here a machine that is connected to the internet through
 wireless. Every so often it will loose connection to the router. And
 to get it back I have to maually go into Network Manager, disable the
 connection, and then re-enable it. Is there a way to tell network
 manager if it loses its connection it should do something like that?
 ___
 networkmanager-list mailing list
 networkmanager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list
-- 
Alex Pyattaev,
Researcher,
Tampere University of Technology,
Finland
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Trouble with privileges on dev version of NM

2011-06-18 Thread Alex Pyattaev
Sorry to bring it up again, 
but I had to go through the whole code of NM to find the root of this problem, 
and it seems that it has nothing to do with NM itself, but rather with 
interaction between NM and wpa-supplicant. Can anyone recall any trouble like 
that in there? My knowlege of WPA supplicant code is very limited, therefore I 
can not really debug this problem
Thank you, 
Alex.
On Wednesday 15 June 2011 11:32:00 Jos Collin wrote:
 Alex,
 
 In gentoo the same is replaced by /etc/conf.d/net file. The possibility is
 that the NM conflicts with the network settings stored in your system. You
 can try the same with /etc/conf.d/net
 
  3. Maybe it is relevant that the connections you configure disappear
  after logout completely...
 
 There is no such thing. The connections that is created by a user will be
 stored as a user setting and will not be visible to other users. You can
 select Available to all users otherwise. The connections created as a
 system setting will be available to all users but can be modified only by
 the root.
 
 Happy Hacking,
 Jos Collin
 
  Well,
  There are two problems with your proposal:
  1. There is no  /etc/networks/interfaces file in gentoo (why would that
  be?). There is /etc/networks though, and it looked like this:
  # /etc/networks
  #
  # This file describes a number of netname-to-adress
  # mappings for the TCP/IP subsytem. It is mostly
  # used at boot time, when no name servers are running.
  #
  loopback127.0.0.0
  link-local  169.254.0.0
  But it has no effect on NM whatsoever.
  2. It appears to be unable to scan networks only, but if I would supply
  the ESSID it will connect.
  3. Maybe it is relevant that the connections you configure disappear
  after logout completely...
  
  I think there is some breakage in privileges associated with what NM
  can and can not do, but I can not find anything...
  
  Alex.
  
  On Wednesday 15 June 2011 10:29:26 you wrote:
   For some reason it does not scan wireless
   networks
  
  Please edit /etc/networks/interfaces, comment everything except
  
  the
  
  loopback network interface and do a #/etc/init.d/network-manager
  
  restart.
  
  This may solve the problem.
  
   it requires root password to change connection settings.
  
  That connection was created using
  
  NetworkManagerSystemSettings and it is
  
  not a user setting.
  
   Hello!
   I'm testing the new NM DBus API, and for this I have installed git
  
  version
  
   of
   NM (19019a8e0be66fc4121a3885392f904025b86231). It seems
  
  to work
  
   and compile,
   but there is one issue. For some reason it does not scan wireless
   networks (although it used to in 0.8), and also it requires root
   password to
  
  change
  
   connection settings. I'm confused why it would behave this way. Is
  
  there
  
  any
  
   documentation on how to set up the privileges for NM and nm-
  
  applet?
  
  Thank you,
  
   Alex.
   ___
   networkmanager-list mailing list
   networkmanager-list@gnome.org
   http://mail.gnome.org/mailman/listinfo/networkmanager-list
  
  --
  Alex Pyattaev,
  Researcher,
  Tampere University of Technology,
  Finland
-- 
Alex Pyattaev,
Researcher,
Tampere University of Technology,
Finland
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Trouble with privileges on dev version of NM

2011-06-15 Thread Alex Pyattaev
Hello!
I'm testing the new NM DBus API, and for this I have installed git version of 
NM (19019a8e0be66fc4121a3885392f904025b86231). It seems to work 
and compile, 
but there is one issue. For some reason it does not scan wireless 
networks 
(although it used to in 0.8), and also it requires root password to change 
connection settings. I'm confused why it would behave this way. Is there 
any 
documentation on how to set up the privileges for NM and nm-applet?

Thank you, 
Alex.
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list