Pwireless-0.8.4
Posted: Mon 29 Oct 2007, 18:15
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.