OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: BarrySamuels on November 21, 2005, 12:04:54 pm

Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: BarrySamuels on November 21, 2005, 12:04:54 pm
By properly I mean click on the Kismet-Qt icon and have the Kismet server start. I always get a message 'Cannot connect to server'.

The only way I can get things to work properly, and I've only tried it with my home network so far, is to start kismet_server from a console and then click the icon to start the Kismet Qt GUI.

I've tried Cresho's instructions and they don't work for me.

SL-C3100 with Sharp ROM.
kismet_2005.08.R1_arm.ipk
kismet-qt_2.0.0_arm.ipk
Ambicom WL1100C-CF

Anyone?
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: jfv on November 21, 2005, 01:19:18 pm
Maybe you need to have kismet-qt running as root. Tap and hold the icon and you'll get an option to enable it to run as root. I don't remember if I had to do that but kismet-qt works fine for me.

Felipe
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: BarrySamuels on November 21, 2005, 01:38:15 pm
Quote
Maybe you need to have kismet-qt running as root. Tap and hold the icon and you'll get an option to enable it to run as root. I don't remember if I had to do that but kismet-qt works fine for me.

Felipe
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104439\"][{POST_SNAPBACK}][/a][/div]

Yes I should have mentioned that. Kismet-qt is set to run with root priveleges. Still won't start the server though.
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: raybert on November 22, 2005, 02:40:00 pm
kismet_qt 2.0 uses external "card scheme scripts" to control the card (see: /etc/kismet_qt/card_schemes).  You may have to tweak the script or create a new one if your card doesn't use the prism2 driver (which is known to work).

2.0 shipped with a fairly-well-debugged script for prism2 and a second script called "Socket" which I don't know much about (I think it's related to the orinoco driver, IIRC).  I can't confirm that the "Socket" script works correctly.

These card scheme scripts get called at appropriate times with a command and optional arg(s). Commands are:The easiest way to debug these scripts is to echo stuff to a file (e.g. echo "yada yada yada" >> /tmp/myfile).

Good luck and let me know if you have any trouble and I'll try to help (but note that I'm not a wireless expert).

~ray
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: BarrySamuels on November 23, 2005, 05:18:36 am
Quote
kismet_qt 2.0 uses external "card scheme scripts" to control the card (see: /etc/kismet_qt/card_schemes).  You may have to tweak the script or create a new one if your card doesn't use the prism2 driver (which is known to work).
<snip>
Good luck and let me know if you have any trouble and I'll try to help (but note that I'm not a wireless expert).

~ray
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104566\"][{POST_SNAPBACK}][/a][/div]

Ray

I 'discovered' the scheme scripts a day or so ago and found that all of the schemes except the OpenZaurus one refered to eth0 whereas for me it should be wlan0. So I have changed all occurences of 'eth0' to 'wlan0' and have started kismet_qt from a console using each of the schemes in turn and these are the results from startup to closedown:
______________________________________________________________________________

SOCKET:

wlan0     no private ioctls.

SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Found an iwconfig hopper
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
wlan0     no private ioctls.
 
SIOCSIFFLAGS: Permission denied
wlan0     no private ioctls.
 
SIOCSIFFLAGS: Permission denied
____________________________________________________________________________

SHARP3X-PRISM2:

/etc/kismet_qt/card_schemes/Sharp3x-prism2: startup receivedchecking: wlan0 hda
message=lnxreq_ifstate
  ifstate=disable
  resultcode=success
Changing scheme from 'qpewlan2' to 'CardResume'...
IBSS mode started.: not found
ioctl(): Device or resource busy
killall: dhcpcd: no process killed
SIOCSIFFLAGS: Permission denied
wlanctl-ng: Operation not permitted
SIOCSIFFLAGS: Permission denied
wlanctl-ng: Operation not permitted
Found a script hopper
/etc/kismet_qt/card_schemes/Sharp3x-prism2: set_channel received (1)
wlanctl-ng: No such device
/etc/kismet_qt/card_schemes/Sharp3x-prism2: set_channel received (7)
wlanctl-ng: No such device
/etc/kismet_qt/card_schemes/Sharp3x-prism2: set_channel received (13)
wlanctl-ng: No such device
/etc/kismet_qt/card_schemes/Sharp3x-prism2: set_channel received (2)
wlanctl-ng: No such device
/etc/kismet_qt/card_schemes/Sharp3x-prism2: shutdown received
SIOCSIFFLAGS: Permission denied
wlanctl-ng: No such device
checking: wlan0 hda
message=lnxreq_ifstate
  ifstate=disable
  resultcode=success
Changing scheme from 'CardSuspend' to 'default'...
ioctl(): Device or resource busy
/etc/kismet_qt/card_schemes/Sharp3x-prism2: shutdown received
SIOCSIFFLAGS: Permission denied
wlanctl-ng: No such device
Scheme unchanged.
_____________________________________________________________________________

SHARP-PRISM2:

IOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
wlanctl-ng: Operation not permitted
Found a script hopper
wlanctl-ng: Operation not permitted
wlanctl-ng: Operation not permitted
wlanctl-ng: Operation not permitted
wlanctl-ng: Operation not permitted
wlanctl-ng: Operation not permitted
SIOCSIFFLAGS: Permission denied
wlanctl-ng: Operation not permitted
SIOCSIFFLAGS: Permission denied
wlanctl-ng: Operation not permitted
_____________________________________________________________________________

OPENZAURUS-PRISM2:

wlan0     no private ioctls.

SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Found an external hopper
kismet_hopper: not found
killall: kismet_hopper: no process killed
wlan0     no private ioctls.
 
SIOCSIFFLAGS: Permission denied
killall: kismet_hopper: no process killed
wlan0     no private ioctls.
 
SIOCSIFFLAGS: Permission denied
____________________________________________________________________________

An interesting number of 'Permission denied' and 'Operation not permitted' lines.

Thank you so much for your offer of help. I hope the above might give you some clues.
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: GadgetGuy on November 23, 2005, 08:47:00 am
I have done the following ( using the advice from several people) to get Kismet and Kismet_QT working with both an Ambicom and Symbol wifi card on the official Cacko rom for C3100.

- Get Kismet 2005-08-R1  from the Kismet website http://www.kismetwireless.net/download.shtml (http://www.kismetwireless.net/download.shtml)

- Get Kismet_QT ( I got it from the Cacko feed)

- Get all necessary libraries for Kismet ( as described in other posts)

- Install libraries, then Kismet and Kismet_QT

- Change the kismet.conf file to

Code: [Select]
source=hostap,wlan0,whatever_name_you_like
Note: BOTH cards need the hostap driver! Orinoco does not work with Kismet for Symbol cards!

- In console
Code: [Select]
su

cardctl scheme qpewlan0
cardctl reset       # the card should start blinking

kismet_server    # you should see no error message. If you do, you try kismet_server again

If all looks ok, leave console with kismet messages open

3. In Qtopia start Kismet_QT
   - click restart within Kismet_QT

-> and it works! ( at least for me!)

Good luck...
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: BarrySamuels on November 23, 2005, 01:23:32 pm
Quote
I have done the following ( using the advice from several people) to get Kismet and Kismet_QT working with both an Ambicom and Symbol wifi card on the official Cacko rom for C3100.

<snip>

- In console
Code: [Select]
su

cardctl scheme qpewlan0
cardctl reset       # the card should start blinking

kismet_server    # you should see no error message. If you do, you try kismet_server again

If all looks ok, leave console with kismet messages open

3. In Qtopia start Kismet_QT
   - click restart within Kismet_QT

-> and it works! ( at least for me!)

[div align=\"right\"][a href=\"index.php?act=findpost&pid=104680\"][{POST_SNAPBACK}][/a][/div]

Thanks GadgetGuy but I had already tried a similar process:

Type 'kismet_server' as root in a console then, when the server stops displaying messages, leave the console open and go to the desktop and click the kismet_qt icon.

That wouldn't work initially although I eventually did get it to work but I was after a 'single click' process. I was eventually able to attain that and I'll make a seperate post about what I did in case it is of help to others.

Thanks also to Ray who also tried to help. It does all now appear to be working properly.
Title: Has Anyone Got Kismet-qt To Work Properly?
Post by: GadgetGuy on November 23, 2005, 02:36:04 pm
Quote
That wouldn't work initially although I eventually did get it to work but I was after a 'single click' process. I was eventually able to attain that and I'll make a seperate post about what I did in case it is of help to others.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104702\"][{POST_SNAPBACK}][/a][/div]

Great! I am looking forward to reading about the 'single-click' solution!