You are not logged in.
Connecting to wireless networks is a bit of a hassle at the moment with netcfg.
First, you have to run iwlist scan, then analyze its output, copy one of the /etc/network.d/examples/wireless-* files into /etc/network.d and then modify it to fit your connection.
This becomes cumbersome when you've done it a couple of times, so I've written a fairly simple Perl script that does all the heavy lifting for you.
It even shows a pretty list of all available networks, with signal level and authentication type.
No dependencies apart from perl and iwlist (and netcfg to do the connecting).
See the source at https://github.com/Jonhoo/netcfg-wifi-scan
It still needs some testing and probably some interface love.
Feedback is greatly appreciated!
Cheers,
Jon
Last edited by Jonhoo (2012-04-09 15:09:57)
Offline
Gave it a try, I like it! Works as advertised. Particularly useful when you use with the option to edit the profile after the script has filled things in.
Though I do like the system you created for displaying signal strength - [+] over 80%, [=] between 80 and 30% and [-] for less than 30% - I do think that displaying the percentage could be a good option to have, too.
Nice work, Jon. It'll be useful for me, will save me some time whenever I have to connect somewhere new
Offline
Sounds like wifi-select...perhaps some collaboration?
Scott
Offline
And wic...
Offline
I've never seen those before, but they do seem to do much of the same thing. The biggest difference is that they aim to manage wireless networks, whereas mine only aims to simplify first time connects. Connecting to the networks is the job of netcfg-wireless-auto and other such daemons. This allows me to simplify the code quite a bit. I also believe the code is quite a lot more readable since it is all written in pretty straightforward Perl.
@Onyros Displaying the percentage as well might be a good idea, I'll look into it next time I've got some spare time.
Offline
...straightforward Perl...
Heh.
Offline
I'd say I've used quite straightforward Perl. If you look around the web you can find a lot worst. Most of it doesn't even look like the same language...
Offline
@Onyro: Percentage is now printed
Offline
I'd say I've used quite straightforward Perl. If you look around the web you can find a lot worst. Most of it doesn't even look like the same language...
Haha, no worries.
I guess that's why they use Perl for code obfuscation contests.
Offline
@Onyro: Percentage is now printed
Perfect As I said before, useful for me, too, so... thanks!
Offline