![]() |
Prey Project on Maemo (Updated to 0.5.9)
2 Attachment(s)
Updated to Prey 0.5.9
I've updated Prey to 0.5.9 on my N900 after seeing it was released and finding the geo module was no longer working on 0.5.3 due to Google changing their API. I've also gotten the rest of prey working, including the gateway IP address and the webcam (using gst-launch). The webcam on the N900 takes rather dim pictures, so you'll just have to hope that any would-be thief uses it in a well lit area. I've changed this post quite a bit, so I've uploaded the old one here if anyone still wants to take a look at 0.5.3: http://sprunge.us/RMFF I've also made quite a few more changes this time around to get everything working, so to make it easier, I've just made a .tar.gz file of my working version to download. I'll go ahead and list out the changes at the bottom of this for those who are curious. Installation First, download my tar file (attached to this post). A note here: I've remove the GPL license file and the pixmaps image folder from the archive to get it under the 488KB upload limit on this forum. I've attached the license in a separate file so as to not break the terms of the GPL. Once you download it, you will need to place it on your phone with whatever method you what (I used sftp). Then, untar the file to /home/opt/prey: Code:
cd /home/opt Next we'll need to get curl working. Install curl from extras-devel. Note that curl will not work right away. Maemo holds back the update to libcurl3 for some reason (no idea why here, but I haven't found any negative effects from updating it). Code:
apt-get install curl Next we will need bash4 (the regular bash package will not work correctly), wireless-tools, gstreamer-tools and imagemagick. Code:
apt-get install bash4 wireless-tools gstreamer-tools imagemagick Last we need to set up cron. You may be able to use fcron here, but I used cron since the prey script tries to call `crontab` several times. Code:
apt-get install cron /etc/event.d/cron: Code:
start on started hildon-desktop Code:
EDITOR=nano crontab -e Code:
*/10 * * * * bash4 /home/opt/prey/prey.sh > /var/log/prey.log 2>&1 Code:
nano -w /home/opt/prey/config Code:
cd /home/opt/prey Once that is done, it should be ready to test. Mark the device as missing in the control panel and set the frequency to whatever you want (I use 10). Note that it will update your crontab entry based on this. I also set it to recieve every bit of data that it can. Everything should be working at this point, but note that I've hardcoded the modified files time to 1 hour and the path to /home/user/MyDocs. If you would like to change this, look at the manual changes section below to see where to edit it. After that, wait and make sure you recieve a report after 10 minutes, or you can run prey.sh manually to check as well. I'd also reboot and test it as well just to make sure cron was set up correctly. If you've gotten several reports and everything looks good, then congrats, you're done! Manual Changes This section is for anyone who is interested in the changes I made to the stock Linux Prey version (Download here: http://preyproject.com/download) to get everything working. I've you've downloaded my version and followed the directions above, you do not need to make these changes. Applied this bug fix affecting Prey 0.5.9. Geolocation results came back incorrect, based on IP address only instead of nearby WIFI points, without this fix: https://github.com/TAWood/prey-bash-...ae7e0a2b90e57a config: Prey switched to using SSL to submit reports and curl on Maemo fails when trying to verify the certificate, so the --insecure option needs to be added (if anyone can figure out a better way, let me know). Code:
curl_options='--insecure --compress --connect-timeout 60' Update the crontab line to use bash4. Code:
update_execution_delay(){ Change the whoami line to check for root instead of $logged_user: Code:
if [ "`whoami`" != "root" ]; then Code:
get_ip_address(){ Code:
get_gateway_ip(){ Remove -p option and redirect errors to /dev/null. Code:
get_active_connections() { Busybox find doesn't support -mmin, so I've changed this to -mtime. Also used /home/user/MyDocs as the directory to search and removed the regex hiding hidden files since most of Maemo's files in MyDocs are in hidden directories (.images, .sounds, .documents, etc). Code:
get_modified_files() { Changed streamer to gst-launch here. Also just emptied the capture_video() function since it was using streamer doesn't seem to be needed. Code:
take_picture() { |
Re: Prey Project on Maemo
Can you create a deb?
|
Re: Prey Project on Maemo
Quote:
You really quote this long and thorough explanation, making the thread a pain to scroll, just for your one-liner to beg for a deb??? You even received a 'Thanks' for that!!! EDIT: THANKS for removing the quote, ...and letting me look like a dumb troll! :D |
Re: Prey Project on Maemo
Quote:
All the work the OP has done and you ask for a ****ing deb file. Be happy he already figured this out. @Presence Thanks, going to try it out when I get home :) |
Re: Prey Project on Maemo
Quote:
fixed the too long quote |
Re: Prey Project on Maemo
Quote:
|
Re: Prey Project on Maemo
Hi to all and Happy New Year,first congratulations for these tools,but i have a several problems about configuration files.
1. Quote:
Quote:
under if [ -n "$wifi_points" ]; then 2.That line no exist in prey/core/functions Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
regards |
Re: Prey Project on Maemo
Quote:
|
Re: Prey Project on Maemo
Quote:
http://preyproject.com/releases/0.5.....5.3-linux.zip |
Re: Prey Project on Maemo
I've updated the first post with directions for version 0.5.9.
Quote:
|
All times are GMT. The time now is 12:58. |
vBulletin® Version 3.8.8