Pwireless-0.8.4
Pwireless-0.8.4
Here's a little app I wrote in gtkdialog that scans and connects to selected wifi networks. I know there's already rutilt but I was bored last night at work and wrote this just for something to do. Feel free to modify it anyway you see fit.
0.2 - added a Profile tab so you can save and edit specified wifi hotspots. Also added signal and noise rates to the main gui. I also added the tweaks that maddox mentioned.
0.2.2 - squashed a couple of bugs
0.3 - renamed to Pwireless and repackaged
0.3.1 - fixed a potential bug incase a colon is placed after Channel in "iwlist scanning".
0.3.2 - another fix for maddox
0.3.3 - more bug squashing
0.3.4 - cleaned up a little code
0.4 - found and fixed a bug that may print multiple lines of output by mistake & changed how the progress bar is run (it will restart if you don't connect the first time and need to try again).
0.5 - cleaned up a little more code, found a fixed a couple of potential problems, & added AP MAC address to the gui.
0.6 - more bug fixing
0.6.1 - added "mode" to the iwconfig options
0.7 - some more code modifications thanks to maddox sending me his iwlist and iwconfig outputs.
0.7.1 - another bug squashing attempt for maddox
0.7.2 - more potential problems should be fixed thanks to maddox sending me his iwconfig & iwlist scanning outputs.
0.8 - fixed a bug when x'ing to close the app, thanks to John Doe.
0.8.2 - forum member "urban soul" has made some updates mentioned below:
- all edits marked with #urban
- line numbers likely to have changed..
[421ff, 657ff] during testing I found fixes for ralink rt73, orinoco_cs and prism2.5/host_ap. (these drivers don't support all iwconfig commands and get 'out of business' sometimes)
[line 8ff] make save script. note: It was impossible to have gtkdialog echo a literal backslash \. Otherwise I would have preferred to use the command: ed -s /etc/WAG/profile-conf <<< $'/$SSID/+4s/ESSID*.*/ESSID=\"$ESSID\"/g\nw' #change the essid eg.but the \n is the big problem here. It connot be echoed. No way.
[line 400 & 499] exec save script (use profile-conf)
[line 469ff] add key field to 'new profile' dialog
[line 375+568ff] rearranged iwconfig commands for buggy NICS + break the commandline into pieces (applies only for 'connect' button)
[line 99 ff] read /etc/WAG/profile-conf into combobox
[line 81] added $DEVICE to file: /tmp/Pwireless-dhcp
[line 341] rudimentary support for fix IP configuration. added "IP" field. "auto" means dhcpcd. todo:gateway etc.
[line 364] add support for static IP - reuse /tmp/Pwireless- for IP configuration
[line 6] Version Statement (in titlebar - was wrong.)
known issues:
- click cancel in DHCP wait loop does not kill DHCP; should return to scan window immediately.
- delete profile && return back to profiles tab (not possible with gtkdialog)
- Text in Combobox (Profile-Name) can be edited but is not accounted for due to wag-save-funktion. (on my TODO list)
----------------------------------------------------------------------------
0.8.3 - bugfix
----------------------------------------------------------------------------
0.8.4
Went back to 0.8.1 and applied my 0.8.3 bugfix and some of urban's fixes for 0.8.2. I wanted to go back to my original way for saving profiles since the 0.8.2 & 0.8.3 versions were broken. You'll probably want to delete the files inside /root/.config/pwireless/ before you run this version.
0.2 - added a Profile tab so you can save and edit specified wifi hotspots. Also added signal and noise rates to the main gui. I also added the tweaks that maddox mentioned.
0.2.2 - squashed a couple of bugs
0.3 - renamed to Pwireless and repackaged
0.3.1 - fixed a potential bug incase a colon is placed after Channel in "iwlist scanning".
0.3.2 - another fix for maddox
0.3.3 - more bug squashing
0.3.4 - cleaned up a little code
0.4 - found and fixed a bug that may print multiple lines of output by mistake & changed how the progress bar is run (it will restart if you don't connect the first time and need to try again).
0.5 - cleaned up a little more code, found a fixed a couple of potential problems, & added AP MAC address to the gui.
0.6 - more bug fixing
0.6.1 - added "mode" to the iwconfig options
0.7 - some more code modifications thanks to maddox sending me his iwlist and iwconfig outputs.
0.7.1 - another bug squashing attempt for maddox
0.7.2 - more potential problems should be fixed thanks to maddox sending me his iwconfig & iwlist scanning outputs.
0.8 - fixed a bug when x'ing to close the app, thanks to John Doe.
0.8.2 - forum member "urban soul" has made some updates mentioned below:
- all edits marked with #urban
- line numbers likely to have changed..
[421ff, 657ff] during testing I found fixes for ralink rt73, orinoco_cs and prism2.5/host_ap. (these drivers don't support all iwconfig commands and get 'out of business' sometimes)
[line 8ff] make save script. note: It was impossible to have gtkdialog echo a literal backslash \. Otherwise I would have preferred to use the command: ed -s /etc/WAG/profile-conf <<< $'/$SSID/+4s/ESSID*.*/ESSID=\"$ESSID\"/g\nw' #change the essid eg.but the \n is the big problem here. It connot be echoed. No way.
[line 400 & 499] exec save script (use profile-conf)
[line 469ff] add key field to 'new profile' dialog
[line 375+568ff] rearranged iwconfig commands for buggy NICS + break the commandline into pieces (applies only for 'connect' button)
[line 99 ff] read /etc/WAG/profile-conf into combobox
[line 81] added $DEVICE to file: /tmp/Pwireless-dhcp
[line 341] rudimentary support for fix IP configuration. added "IP" field. "auto" means dhcpcd. todo:gateway etc.
[line 364] add support for static IP - reuse /tmp/Pwireless- for IP configuration
[line 6] Version Statement (in titlebar - was wrong.)
known issues:
- click cancel in DHCP wait loop does not kill DHCP; should return to scan window immediately.
- delete profile && return back to profiles tab (not possible with gtkdialog)
- Text in Combobox (Profile-Name) can be edited but is not accounted for due to wag-save-funktion. (on my TODO list)
----------------------------------------------------------------------------
0.8.3 - bugfix
----------------------------------------------------------------------------
0.8.4
Went back to 0.8.1 and applied my 0.8.3 bugfix and some of urban's fixes for 0.8.2. I wanted to go back to my original way for saving profiles since the 0.8.2 & 0.8.3 versions were broken. You'll probably want to delete the files inside /root/.config/pwireless/ before you run this version.
- Attachments
-
- pwireless-0.8.4.pet
- (4.99 KiB) Downloaded 2769 times
Last edited by plinej on Thu 01 Jan 2009, 23:05, edited 20 times in total.
Here's a pic of the wireless-gtkdialog-0.2
- Attachments
-
- wireless-gtkdialog-0.2.jpg
- (80.77 KiB) Downloaded 3899 times
Last edited by plinej on Thu 01 Nov 2007, 19:28, edited 1 time in total.
hello plinej,
here's my mods for it to work in Toutou 217+X (french puppy)
output of wireless-gtkdialog:
wlan0 Scan completed :
Cell 01 - Address: xx:xx:xx:xx:xx:xx
ESSID:" "
Mode:Master
Channel:6
Bit Rates:1 Mb/s
Bit Rates:2 Mb/s
Bit Rates:5.5 Mb/s
Bit Rates:11 Mb/s
Encryption key:off
Quality=60/128 Signal level=-76 dBm Noise level=-97 dBm
is there a way to input a hidden ESSID, because at home it's hidden for a reason.
thanks for the gui
maddox
here's my mods for it to work in Toutou 217+X (french puppy)
Code: Select all
line 126 Channel: | sed 's/^[ ^t]*//' | sed 's/Channel://g' (my channel ends with :)
line 127 quality Cell $NUM" -A 9 (my output is longer than 5 lines)
line 128 encryption Cell $NUM" -A 9 (my output is longer than 5 lines)
line 291 sleep 2 (complained about the 8.5 and sleep 8 was toooo long)
wlan0 Scan completed :
Cell 01 - Address: xx:xx:xx:xx:xx:xx
ESSID:" "
Mode:Master
Channel:6
Bit Rates:1 Mb/s
Bit Rates:2 Mb/s
Bit Rates:5.5 Mb/s
Bit Rates:11 Mb/s
Encryption key:off
Quality=60/128 Signal level=-76 dBm Noise level=-97 dBm
is there a way to input a hidden ESSID, because at home it's hidden for a reason.
thanks for the gui
maddox
Cool thanks, I'll work on putting in your modifications. I am working on a profiles tab so you can add a selected ESSID to your profiles and then edit whatever needs editing from inside the gui. That should work just fine for hidden ESSID's. I know the sleep is long at 8.5 for the progress bar, I just threw that in there so you'll know the program is trying to connect. I will change it to a whole number though. Just out of curiousity could you post your output of "iwlist scanning"? I would like to see how yours compares with what I get here in the U.S.
0kay, 0.2.2 has a couple of bug fixes. Everything seems to be working the way I believe it should. So please give some feedback if you use this program.
Once again, I've never used WPA but with the new profiles tab you'll be able to edit and save configurations for saved profiles. I would imagine you could make WPA work from within the profiles tab after some editing.
Once again, I've never used WPA but with the new profiles tab you'll be able to edit and save configurations for saved profiles. I would imagine you could make WPA work from within the profiles tab after some editing.
Alright, I somehow thought I fixed that issue but I see I didn't. I modified the line a little so it should work just fine incase there's a colon or not after Channel. I'll post a 0.3.1 version in a few minutes. Here's how I changed the line:
Code: Select all
CHANNEL=`cat /tmp/Pwireless | grep " Cell $NUM" -A 9 | grep "(Channel" | tail -c 4 | sed 's/)//g' | sed 's/ //g' | sed 's/://g'`
hello plinej,
did it bit by bit, echo ..
grep cell ->
this is where it breaks, as you're looking for a bracket that doesn't exist in my output.
thanks and hope it helps
maddox
did it bit by bit, echo ..
grep cell ->
Code: Select all
Channel:6
Code: Select all
grep "(Channel "
thanks and hope it helps
maddox
hello plinej,
now i get this as a channel -> lima 6
thats the tail part
maddox
now i get this as a channel -> lima 6
Code: Select all
Channel=l6
maddox
Last edited by maddox on Sun 04 Nov 2007, 03:59, edited 1 time in total.