![]() |
2008-07-09
, 17:40
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#12
|
#ifdef HAVE_HILDON fprintf(stderr, "Waiting for Hildon gps to enable...\n"); int wpstat = 0; int pid = fork(); if (!pid ) { setuid(29999); int gbret = gpsbt_start(NULL, 0, 0, 0 /* default port */, status, STATUS_MAX, 0, &gpsbt_ctx); printf("Hildon BT %d: %s\n", gbret, status); exit(gbret); } else waitpid(pid, &wpstat, 0 ); sleep(3); #endif
![]() |
2008-07-10
, 01:35
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#13
|
diff -Bburw kismet-2008-05-R1/kismet_server.cc ../kismet-2008-05-R1/kismet_server.cc --- kismet-2008-05-R1/kismet_server.cc 2008-04-08 02:39:47.000000000 -0500 +++ ../kismet-2008-05-R1/kismet_server.cc 2008-07-09 19:48:08.000000000 -0500 @@ -2533,12 +2533,12 @@ #ifdef HAVE_HILDON fprintf(stderr, "Waiting for Hildon gps to enable...\n"); - if (gpsbt_start(NULL, 0, 0, 0 /* default port */, - status, STATUS_MAX, - 0, &gpsbt_ctx) < 0) { - printf("Hildon BT failed: %s\n", status); - } - sleep(1); + seteuid(suid_id); + int gbret = gpsbt_start(NULL, 0, 0, 0 /* default port */, + status, STATUS_MAX, 0, &gpsbt_ctx); + seteuid(0); + printf("Hildon BT %d: %s\n", gbret, status); + sleep(1); // for gpsd to start and open everything #endif } else {
The Following User Says Thank You to tz1 For This Useful Post: | ||
![]() |
2008-07-12
, 03:43
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#14
|
I ran the server in one xterm, the client in a second xterm (the base kismet program didn't work for some reason) and it just worked. Like when I wardrove with my Zaurus. Over 30 minutes, with GPS.
I had to reboot once to get wifi back, but most times just disconnect and reconnect worked.
Only conf file changes from stock (deb) install were gpson and pointing at /media/mmc1/Kismet for log files and the revised kismet_server.
![]() |
2008-07-13
, 00:52
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#15
|
The Following User Says Thank You to tz1 For This Useful Post: | ||
![]() |
2008-07-18
, 02:56
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#16
|
kismet_server &
![]() |
2008-07-22
, 19:35
|
|
Posts: 226 |
Thanked: 38 times |
Joined on May 2008
@ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
|
#18
|
![]() |
2008-07-23
, 18:21
|
Posts: 30 |
Thanked: 7 times |
Joined on Sep 2007
|
#19
|
![]() |
2008-07-23
, 18:26
|
|
Posts: 64 |
Thanked: 12 times |
Joined on May 2008
|
#20
|
1. If I wasn't running any other programs kismet ran for 50 minutes. When something else was going, after about 10 minutes I saw a dmesg indication it couldn't access the card. This is probably something simple.
2. kismet.conf has GPS off by default. This version wants to use hildon to enable it when you turn it on, but it fails because kismet tries to do so as root, not user. Even if it is already up (map) it will try to enable it (and fail). Kismet stops when this happens. If I run my minigpsd, it does get GPS, but something was wrong with the wifi, so no packets (kismet_server in one xterm, kismet_client in another).
I compiled libpcap.0.9.8 from the main archive sources to produce the .a file, and it will work statically linked (if a bit bigger). The earlier ones have a deb, so it shoudln't be that hard to make one for kismet.
Anyone want to start a maemo garage project for this?