Lint-wifi

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (Beta Testing)
(some more instructions)
Line 16: Line 16:
 
http://we.trekbeyond.org/~kd8ikt/moko/buildz/lint-wifi_0.1_armv4t.ipk <br>
 
http://we.trekbeyond.org/~kd8ikt/moko/buildz/lint-wifi_0.1_armv4t.ipk <br>
 
also added a few easter egg addons like wifiweasel ;) accelxranr.py, gta02.py and tree
 
also added a few easter egg addons like wifiweasel ;) accelxranr.py, gta02.py and tree
 +
 +
====wpa_supplicant.conf====
 +
lint-wifi requires /etc/wpa_supplicant/wpa_supplicant.conf to be present. This works for me (tm)
 +
 +
<pre>
 +
<code>
 +
update_config=1
 +
ctrl_interface=DIR=/var/run/wpa_supplicant
 +
ap_scan=1
 +
</code>
 +
</pre>
 +
 +
The first line is probably not necessary. It would allow lint-wifi to save its configuration back to wpa_supplicant.conf, which I believe it doesn't do ATM. I needed the third one to get scanning to work.
 +
 +
====compiling wpa_lint====
 +
lint-wifi is a python script, you can just copy lint-wifi.py to your phone and make it executable. It relies on wpa_lint however wich is written in C, so you need to compile it.
 +
 +
On Debian/Ubuntu grab openmoko-toolchain_0.20080521-ubuntu6_i386.deb (see [http://andreasdalsgaard.blogspot.com/2008/07/openmoko-development-in-5-minutes.html]). Edit the Makefile for wpa_lint, at the top comment out the line starting with gcc= and add the line
 +
gcc = arm-angstrom-linux-gnueabi-gcc
 +
 +
Now just do make and copy the resulting wpa_lint to your phone. Don't forget to make it executable. It has to go in /home/root (hardcoded in lint-wifi).
  
 
==Requirements==
 
==Requirements==

Revision as of 18:10, 23 February 2009

Contents

Introduction

Description

lint-wifi is a relatively simplistic application written in PyGTK for the Neo FreeRunner. It aims to create a GUI-based method for associating with wireless networks, and provide various bits of connection-related information and control. It is designed to work without a stylus, except when entering passwords (which are normally stored). It is at the moment intended to do nothing unless a button is pushed.

It will be released soon.

Beta Testing

lint-wifi now has a project page[1] (or [2]). Those who wish to beta test, please go to there and look at [svn]. Please submit all bug reports to the trac there.

svn help
http://projects.openmoko.org/scm/?group_id=167

There's also an unofficial [git repo].

i made a new pkg last i checked you need some things in the scaredycat repo like pygtk http://wiki.openmoko.org/wiki/Repositories
http://we.trekbeyond.org/~kd8ikt/moko/buildz/lint-wifi_0.1_armv4t.ipk
also added a few easter egg addons like wifiweasel ;) accelxranr.py, gta02.py and tree

wpa_supplicant.conf

lint-wifi requires /etc/wpa_supplicant/wpa_supplicant.conf to be present. This works for me (tm)

<code>
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant
ap_scan=1
</code>

The first line is probably not necessary. It would allow lint-wifi to save its configuration back to wpa_supplicant.conf, which I believe it doesn't do ATM. I needed the third one to get scanning to work.

compiling wpa_lint

lint-wifi is a python script, you can just copy lint-wifi.py to your phone and make it executable. It relies on wpa_lint however wich is written in C, so you need to compile it.

On Debian/Ubuntu grab openmoko-toolchain_0.20080521-ubuntu6_i386.deb (see [3]). Edit the Makefile for wpa_lint, at the top comment out the line starting with gcc= and add the line gcc = arm-angstrom-linux-gnueabi-gcc

Now just do make and copy the resulting wpa_lint to your phone. Don't forget to make it executable. It has to go in /home/root (hardcoded in lint-wifi).

Requirements

There are several requirements needed to run lint-wifi:

Known bug

If launching 'lint-wifi.py' fails with NameError: name 'init' is not defined, then edit the file /usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py, go to line 82 and add an underscore in front of the "init()" so that it reads "_init()". Reference [4].

Tour

Layout

lint-wifi is broken into pages, each page offering various bits of information or control. Below are the pages, as they exist at version .1A

AP List

Aplist.png (image outdated)

AP List will show APs that can currently be seen. They will initially be ordered by how wpa_supplicant feels are best. Columns include:

  • essid
  • Enc -- Consisting of "WPA", "WEP" and "off"
  • Signal
  • Chan
  • S -- indicating State or Status:
    • C: Connected
    • K: Known/configured (eg, password is stored) and enabled
    • D: Known/configured and disabled
    • -: Unknown
  • Mode -- At present is unused, will indicate Managed/Infrastructure vs Ad-Hoc

Buttons:

  • Scan
  • Edit -- Edits the settings of APs configured or visible
  • Exit

Status

Status.png (image outdated)

The Status page will primarily indicate the configured status of eth0.

The Renew DHCP button can be used to nudge udhcpc into renewing. An "Enable All APs" button enables all that APs set to disabled.

Conn

Conn.png

The Conn page shows information related to the associated AP.

Config

Config is at present empty, but will contain various lint-wifi configuration options, such as support for hiding certain columns in the AP List.



A couple other screenshots: (outdated)

Aplist pass.png Aplist disc.png

Personal tools

Introduction

Description

lint-wifi is a relatively simplistic application written in PyGTK for the Neo FreeRunner. It aims to create a GUI-based method for associating with wireless networks, and provide various bits of connection-related information and control. It is designed to work without a stylus, except when entering passwords (which are normally stored). It is at the moment intended to do nothing unless a button is pushed.

It will be released soon.

Beta Testing

lint-wifi now has a project page[1] (or [2]). Those who wish to beta test, please go to there and look at [svn]. Please submit all bug reports to the trac there.

svn help
http://projects.openmoko.org/scm/?group_id=167

There's also an unofficial [git repo].

i made a new pkg last i checked you need some things in the scaredycat repo like pygtk http://wiki.openmoko.org/wiki/Repositories
http://we.trekbeyond.org/~kd8ikt/moko/buildz/lint-wifi_0.1_armv4t.ipk
also added a few easter egg addons like wifiweasel ;) accelxranr.py, gta02.py and tree

Requirements

There are several requirements needed to run lint-wifi:

Known bug

If launching 'lint-wifi.py' fails with NameError: name 'init' is not defined, then edit the file /usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py, go to line 82 and add an underscore in front of the "init()" so that it reads "_init()". Reference [3].

Tour

Layout

lint-wifi is broken into pages, each page offering various bits of information or control. Below are the pages, as they exist at version .1A

AP List

Aplist.png (image outdated)

AP List will show APs that can currently be seen. They will initially be ordered by how wpa_supplicant feels are best. Columns include:

  • essid
  • Enc -- Consisting of "WPA", "WEP" and "off"
  • Signal
  • Chan
  • S -- indicating State or Status:
    • C: Connected
    • K: Known/configured (eg, password is stored) and enabled
    • D: Known/configured and disabled
    • -: Unknown
  • Mode -- At present is unused, will indicate Managed/Infrastructure vs Ad-Hoc

Buttons:

  • Scan
  • Edit -- Edits the settings of APs configured or visible
  • Exit

Status

Status.png (image outdated)

The Status page will primarily indicate the configured status of eth0.

The Renew DHCP button can be used to nudge udhcpc into renewing. An "Enable All APs" button enables all that APs set to disabled.

Conn

Conn.png

The Conn page shows information related to the associated AP.

Config

Config is at present empty, but will contain various lint-wifi configuration options, such as support for hiding certain columns in the AP List.



A couple other screenshots: (outdated)

Aplist pass.png Aplist disc.png