Re: hitspot automatic connect

2014-10-28 Thread Andreas Müller
On Mon, Oct 27, 2014 at 3:39 PM, Dan Williams d...@redhat.com wrote:
 On Fri, 2014-10-24 at 11:18 +0200, Andreas Müller wrote:
 On Fri, Oct 24, 2014 at 10:43 AM, Thomas Haller thal...@redhat.com wrote:
  On Fri, 2014-10-24 at 10:19 +0200, Andreas Müller wrote:
  Hi,
 
  Now my question:
 
  What does it need to start hotspot automatically after boot? If there
  is no setting available I could create a script/app using
  Networkmanager's dbus
 
  I would be very happy if somebody could help me because for me this is
  the last part of the puzzle and solving would make me run in happy
  mode :)
 
 
  you certainly could use the DBUS interface.
  But maybe it's easier to use nmcli connection up?
 
 
  Thomas
 Thomas, you are my hero of the day - thanks a lot.

 If there are no other WiFi connections defined on the system (nmcli con
 | grep wireless) and the AP connection is the only one, and set
 autoconnect=true, then NM will always bring that connection up when
 starting.  If you do have other wifi connections that you periodically
 use, you could set all of them autoconnect=no, and NM will ignore them
 and always start the AP connection.

 Dan

Sorry for late response - but autoconnect=true did not work - that's
why I asked here. Have a 'fresh' embedded system not connected to
other access points before.

I am using networkmanager 0.9.8.10 - other (eth0 / wlan connections to
other hotspots) autoconnections seem to work...

Andreas
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: hitspot automatic connect

2014-10-27 Thread Dan Williams
On Fri, 2014-10-24 at 11:18 +0200, Andreas Müller wrote:
 On Fri, Oct 24, 2014 at 10:43 AM, Thomas Haller thal...@redhat.com wrote:
  On Fri, 2014-10-24 at 10:19 +0200, Andreas Müller wrote:
  Hi,
 
  Now my question:
 
  What does it need to start hotspot automatically after boot? If there
  is no setting available I could create a script/app using
  Networkmanager's dbus
 
  I would be very happy if somebody could help me because for me this is
  the last part of the puzzle and solving would make me run in happy
  mode :)
 
 
  you certainly could use the DBUS interface.
  But maybe it's easier to use nmcli connection up?
 
 
  Thomas
 Thomas, you are my hero of the day - thanks a lot.

If there are no other WiFi connections defined on the system (nmcli con
| grep wireless) and the AP connection is the only one, and set
autoconnect=true, then NM will always bring that connection up when
starting.  If you do have other wifi connections that you periodically
use, you could set all of them autoconnect=no, and NM will ignore them
and always start the AP connection.

Dan

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: hitspot automatic connect

2014-10-27 Thread poma
On 27.10.2014 15:39, Dan Williams wrote:
 On Fri, 2014-10-24 at 11:18 +0200, Andreas Müller wrote:
 On Fri, Oct 24, 2014 at 10:43 AM, Thomas Haller thal...@redhat.com wrote:
 On Fri, 2014-10-24 at 10:19 +0200, Andreas Müller wrote:
 Hi,

 Now my question:

 What does it need to start hotspot automatically after boot? If there
 is no setting available I could create a script/app using
 Networkmanager's dbus

 I would be very happy if somebody could help me because for me this is
 the last part of the puzzle and solving would make me run in happy
 mode :)


 you certainly could use the DBUS interface.
 But maybe it's easier to use nmcli connection up?


 Thomas
 Thomas, you are my hero of the day - thanks a lot.
 
 If there are no other WiFi connections defined on the system (nmcli con
 | grep wireless) and the AP connection is the only one, and set
 autoconnect=true, then NM will always bring that connection up when
 starting.  If you do have other wifi connections that you periodically
 use, you could set all of them autoconnect=no, and NM will ignore them
 and always start the AP connection.
 
 Dan
 


What actually means *Default* *Value* - *TRUE*  
if this value must be explicitly set?

Whether the manual is precise enough.
man 5 nm-settings(Table 8. connection setting)


poma


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


hitspot automatic connect

2014-10-24 Thread Andreas Müller
Hi,

I finally managed to get a hotspot working with

/etc/Networkmanager/system-connections/hotspot:

[connection]
id=hotspot
uuid=uuid
type=802-11-wireless
autoconnect=true

[802-11-wireless]
ssid=gumstix
mode=ap
mac-address=00:19:88:43:43:CA
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=some-psk...

[ipv4]
method=manual
address1=192.168.80.1/24,0.0.0.0

[ipv6]
method=auto

and /etc/dnsmasq.conf

domain-needed
bogus-priv
bind-dynamic
interface=wlan0
dhcp-range=interface:wlan0,192.168.80.10,192.168.80.20

Now my question:

What does it need to start hotspot automatically after boot? If there
is no setting available I could create a script/app using
Networkmanager's dbus

I would be very happy if somebody could help me because for me this is
the last part of the puzzle and solving would make me run in happy
mode :)

Andreas
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: hitspot automatic connect

2014-10-24 Thread Thomas Haller
On Fri, 2014-10-24 at 10:19 +0200, Andreas Müller wrote:
 Hi,

 Now my question:
 
 What does it need to start hotspot automatically after boot? If there
 is no setting available I could create a script/app using
 Networkmanager's dbus
 
 I would be very happy if somebody could help me because for me this is
 the last part of the puzzle and solving would make me run in happy
 mode :)


you certainly could use the DBUS interface.
But maybe it's easier to use nmcli connection up?


Thomas


signature.asc
Description: This is a digitally signed message part
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: hitspot automatic connect

2014-10-24 Thread Andreas Müller
On Fri, Oct 24, 2014 at 10:43 AM, Thomas Haller thal...@redhat.com wrote:
 On Fri, 2014-10-24 at 10:19 +0200, Andreas Müller wrote:
 Hi,

 Now my question:

 What does it need to start hotspot automatically after boot? If there
 is no setting available I could create a script/app using
 Networkmanager's dbus

 I would be very happy if somebody could help me because for me this is
 the last part of the puzzle and solving would make me run in happy
 mode :)


 you certainly could use the DBUS interface.
 But maybe it's easier to use nmcli connection up?


 Thomas
Thomas, you are my hero of the day - thanks a lot.

Andreas
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: hitspot automatic connect

2014-10-24 Thread poma
On 24.10.2014 10:19, Andreas Müller wrote:
 Hi,
 
 I finally managed to get a hotspot working with
 
 /etc/Networkmanager/system-connections/hotspot:
 
 [connection]
 id=hotspot
 uuid=uuid
 type=802-11-wireless
 autoconnect=true
 
 [802-11-wireless]
 ssid=gumstix
 mode=ap
 mac-address=00:19:88:43:43:CA
 security=802-11-wireless-security
 
 [802-11-wireless-security]
 key-mgmt=wpa-psk
 psk=some-psk...
 
 [ipv4]
 method=manual
 address1=192.168.80.1/24,0.0.0.0
 
 [ipv6]
 method=auto
 
 and /etc/dnsmasq.conf
 
 domain-needed
 bogus-priv
 bind-dynamic
 interface=wlan0
 dhcp-range=interface:wlan0,192.168.80.10,192.168.80.20
 
 Now my question:
 
 What does it need to start hotspot automatically after boot? If there
 is no setting available I could create a script/app using
 Networkmanager's dbus
 
 I would be very happy if somebody could help me because for me this is
 the last part of the puzzle and solving would make me run in happy
 mode :)
 

You've already got it 
...
[connection]
autoconnect=true


man 5 nm-settings
...
   Table 8. connection setting
   
┌─┬─┬───┬┐
   │Key Name │ Value Type  │ Default Value │ Value 
Description  │
   
├─┼─┼───┼┤
   .
   .
   .
   
├─┼─┼───┼┤
   │autoconnect  │ boolean │ TRUE  │ If TRUE, 
NetworkManager will activate  │
   │ │ │   │ this 
connection when its network   │
   │ │ │   │ resources are 
available.  If FALSE,│
   │ │ │   │ the connection 
must be manually│
   │ │ │   │ activated by 
the user or some other│
   │ │ │   │ mechanism. 
│
   
├─┼─┼───┼┤
   ...


Not working!?


poma


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list