Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-08 Thread Gregory Nowak
On Fri, Jan 06, 2017 at 10:44:34AM +0100, Tomasz Torcz wrote:
>   Does it shiw correctly with "iw dev"? That's iw from
> http://www.linuxwireless.org/en/users/Documentation/iw/

Yes, iw dev works nicely.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-07 Thread KatolaZ
On Fri, Jan 06, 2017 at 05:18:27PM +, KatolaZ wrote:
> On Fri, Jan 06, 2017 at 11:57:28AM -0500, Steve Litt wrote:
> 
> [cut]
> 
> > 
> > Oh Oh,
> > 
> > The new setnet.sh is more busted than the old. You fixed the part about
> > enps0 not being configurable, thank you, but now when I say configure
> > and it lists enps0 and I press Enter, instead of giving me a further
> > screen to fill out, it gives me a forever stdin with screen echo, and
> > no hope of getting out via Ctrl+C or Ctrl+Z. Also note that in this
> > condition, as I type in newlines, the color set by setnet.sh's nCurses
> > scrolls up the screen, and the terminal's native color replaces it.
> >
> 
> Hi Steve,
> 
> thanks for the feedback. Yes, that there are still a few quirks here
> and there (it's still unfinished). I can't reproduce your bug
> though. Maybe better to chat via IRC?
> 

Hi,

there was indeed a bug which showed up only with some shells. I have
corrected that one, fixed wifi detection (following Greg's
suggestion), added a conf variable to list wifi devices if automatic
detection fails, introduced a few more changes to improve
visualisation. and added a minimal manpage. I will put the new version
online within a few hours (and post a discrete email here, if it is
not a problem).

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-06 Thread Gregory Nowak
On Fri, Jan 06, 2017 at 10:44:34AM +0100, Tomasz Torcz wrote:
>   Does it shiw correctly with "iw dev"? That's iw from
> http://www.linuxwireless.org/en/users/Documentation/iw/

I'm currently running the armhf image testing another issue I'm
preparing to report. If someone doesn't answer before I write the
arm64 image back to my sd card, I'll let you know.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-06 Thread KatolaZ
On Fri, Jan 06, 2017 at 11:57:28AM -0500, Steve Litt wrote:

[cut]

> 
> Oh Oh,
> 
> The new setnet.sh is more busted than the old. You fixed the part about
> enps0 not being configurable, thank you, but now when I say configure
> and it lists enps0 and I press Enter, instead of giving me a further
> screen to fill out, it gives me a forever stdin with screen echo, and
> no hope of getting out via Ctrl+C or Ctrl+Z. Also note that in this
> condition, as I type in newlines, the color set by setnet.sh's nCurses
> scrolls up the screen, and the terminal's native color replaces it.
>

Hi Steve,

thanks for the feedback. Yes, that there are still a few quirks here
and there (it's still unfinished). I can't reproduce your bug
though. Maybe better to chat via IRC?

Thanks

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-06 Thread Steve Litt
On Fri, 6 Jan 2017 11:23:59 +
KatolaZ  wrote:

> On Fri, Jan 06, 2017 at 10:44:34AM +0100, Tomasz Torcz wrote:
> > On Thu, Jan 05, 2017 at 04:07:48PM -0700, Gregory Nowak wrote:  
> > > On Thu, Jan 05, 2017 at 10:08:52PM +, KatolaZ wrote:  
> > > > Steve, that's already been fixed. The detection of interface
> > > > type is implemented using iwconfig now, and is not based on
> > > > interface names any more.  
> > > 
> > > That isn't going to work everywhere unfortunately. As of now, the
> > > built-in wifi adapter on the raspberry pi 3 shows no wireless
> > > extensions when running as arm64.
> > > 
> > >   
> > 
> >   Does it shiw correctly with "iw dev"? That's iw from
> > http://www.linuxwireless.org/en/users/Documentation/iw/
> > 
> > iwconfig has been deprecated by it maintainers.
> >   
> 
> Using iw instead of iwconfig is actually a good suggestion, which I
> will try to implement. After all, iw is much smallet than
> wireless-tools as a dependency... :)
> 
> HND
> 
> KatolaZ
> 

Oh Oh,

The new setnet.sh is more busted than the old. You fixed the part about
enps0 not being configurable, thank you, but now when I say configure
and it lists enps0 and I press Enter, instead of giving me a further
screen to fill out, it gives me a forever stdin with screen echo, and
no hope of getting out via Ctrl+C or Ctrl+Z. Also note that in this
condition, as I type in newlines, the color set by setnet.sh's nCurses
scrolls up the screen, and the terminal's native color replaces it.

I'm finding it hard to debug because no error messages are thrown, so I
have limited ways of finding out exactly where I am when this thing
happens.

Thanks,

SteveT

Steve Litt 
December 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-06 Thread KatolaZ
On Fri, Jan 06, 2017 at 10:44:34AM +0100, Tomasz Torcz wrote:
> On Thu, Jan 05, 2017 at 04:07:48PM -0700, Gregory Nowak wrote:
> > On Thu, Jan 05, 2017 at 10:08:52PM +, KatolaZ wrote:
> > > Steve, that's already been fixed. The detection of interface type is
> > > implemented using iwconfig now, and is not based on interface names
> > > any more.
> > 
> > That isn't going to work everywhere unfortunately. As of now, the
> > built-in wifi adapter on the raspberry pi 3 shows no wireless
> > extensions when running as arm64.
> > 
> > 
> 
>   Does it shiw correctly with "iw dev"? That's iw from
> http://www.linuxwireless.org/en/users/Documentation/iw/
> 
> iwconfig has been deprecated by it maintainers.
> 

Using iw instead of iwconfig is actually a good suggestion, which I
will try to implement. After all, iw is much smallet than
wireless-tools as a dependency... :)

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-06 Thread Tomasz Torcz
On Thu, Jan 05, 2017 at 04:07:48PM -0700, Gregory Nowak wrote:
> On Thu, Jan 05, 2017 at 10:08:52PM +, KatolaZ wrote:
> > Steve, that's already been fixed. The detection of interface type is
> > implemented using iwconfig now, and is not based on interface names
> > any more.
> 
> That isn't going to work everywhere unfortunately. As of now, the
> built-in wifi adapter on the raspberry pi 3 shows no wireless
> extensions when running as arm64.
> 
> 

  Does it shiw correctly with "iw dev"? That's iw from
http://www.linuxwireless.org/en/users/Documentation/iw/

iwconfig has been deprecated by it maintainers.

-- 
Tomasz Torcz   72->|   80->|
xmpp: zdzich...@chrome.pl  72->|   80->|

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-05 Thread Gregory Nowak
On Thu, Jan 05, 2017 at 10:08:52PM +, KatolaZ wrote:
> Steve, that's already been fixed. The detection of interface type is
> implemented using iwconfig now, and is not based on interface names
> any more.

That isn't going to work everywhere unfortunately. As of now, the
built-in wifi adapter on the raspberry pi 3 shows no wireless
extensions when running as arm64.



Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-05 Thread KatolaZ
On Thu, Jan 05, 2017 at 03:26:00PM -0500, Steve Litt wrote:

[cut]

> 
> Do you have it yet so it doesn't deduce the connection type
> (wired/wifi) by the device name? I'd love to use it, but it refuses to
> work, and before I go in and change your code to make devicenames
> starting with 'e' wired and 'w' wifi, are you going to fix that in the
> next couple days?

Steve, that's already been fixed. The detection of interface type is
implemented using iwconfig now, and is not based on interface names
any more.

HH

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-05 Thread Steve Litt
On Thu, 5 Jan 2017 00:45:08 +
KatolaZ  wrote:

> On Thu, Jan 05, 2017 at 12:32:57AM +, KatolaZ wrote:
> > Hi all,
> > 
> > sorry for the OT. I just wanted to let you know that I have released
> > the new version of setnet, that simple shell+dialog script for
> > network configuration we talked about earlier this week. You can
> > find the deb package here:
> > 
> >   http://kalos.mine.nu/setnet/
> > 
> > Please feel free to give it a try, if you like, and report
> > bugs/issues here:
> > 
> >   https://git.devuan.org/KatolaZ/setnet
> >   
> 
> I forgot to say that the project is also available on github:
> 
>   https://github.com/KatolaZ/setnet

Do you have it yet so it doesn't deduce the connection type
(wired/wifi) by the device name? I'd love to use it, but it refuses to
work, and before I go in and change your code to make devicenames
starting with 'e' wired and 'w' wifi, are you going to fix that in the
next couple days?

Thanks,

SteveT

Steve Litt 
December 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] setnet v0.2: a shell script for network config

2017-01-04 Thread KatolaZ
On Thu, Jan 05, 2017 at 12:32:57AM +, KatolaZ wrote:
> Hi all,
> 
> sorry for the OT. I just wanted to let you know that I have released
> the new version of setnet, that simple shell+dialog script for network
> configuration we talked about earlier this week. You can find the deb
> package here:
> 
>   http://kalos.mine.nu/setnet/
> 
> Please feel free to give it a try, if you like, and report bugs/issues
> here:
> 
>   https://git.devuan.org/KatolaZ/setnet
> 

I forgot to say that the project is also available on github:

  https://github.com/KatolaZ/setnet

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] [OT] setnet v0.2: a shell script for network config

2017-01-04 Thread KatolaZ
Hi all,

sorry for the OT. I just wanted to let you know that I have released
the new version of setnet, that simple shell+dialog script for network
configuration we talked about earlier this week. You can find the deb
package here:

  http://kalos.mine.nu/setnet/

Please feel free to give it a try, if you like, and report bugs/issues
here:

  https://git.devuan.org/KatolaZ/setnet


This is a list of main changes wrt the first version:

  + Polished code to make it posix-shell compliant

  + Tested with bash, busybox, dash, ksh, mksh, posh, yash

  + Added support and checks for hard, soft, and optional
dependencies

  + Added submenu "Info" with basic network testing tools

  + Added submenu "Dump" to dump network information to a file

The good news is that this version works unmodified on some 7/8
different shells, including busybox and ash/dash, which are quite
common on embeded systems. I am currently using setnet on my own
laptop, and I am testing it on the Devuan minimal live images (both on
qemu and on real laptops). The next step will probably be the addition
of some rudimentary support for EAP-PEAP and EAP-TLS authentication. I
will keep you posted, if this is not too much noise for your
mailboxes.

HH

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[ "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[   @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[ @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng