"Prey helps you locate your missing laptop by sending timed reports with a bunch of information of its whereabouts."
Although I haven't installed it yet, the installation seems pretty simple: just unpack everything at the /usr/share/prey, then add a cronjob.
From the README file, these are the requirements:
o curl / wget
o scrot or imagemagick (for screenshot capture)
o streamer (for webcam capture) --> in Fedora the xawtv package includes it
o Perl libs IO::Socket::SSL and NET::SSLeay
Looking through the sources, it requires bash.
There is a configure.py that requires pygtk, but you can write your config file manually.
It seems that the webcam module always write to the /tmp/imagen.jpeg file, which might be a security issue (it should use a random, non-existent tmp file, instead).
Created attachment 238835 [details]
I've had a shot at writing an ebuild for this - I make no guarantees but this seems to be working for me (some $FILESDIR content to follow in a second). Hopefully someone finds this useful or will improve on it.
* The option to not install individual modules is provided (perhaps unnecessarily, but I feel the option to disable webcam at least is necessary).
* I have used /etc/cron.d for scheduling instead of root's user crontab, with corresponding change in the re-scheduling code (should work with frequency change via control.preyproject.com control panel).
* Config is in /etc/prey rather than mixed with core/modules in /usr/share/prey, set fairly restrictive permissions on these.
* LINGUAS removes unwanted core/module language files.
* Main prey.sh launcher script in /usr/bin (perhaps should be sbin?)
One outstanding issue for me is the mentioned 'streamer' binary gets stuck in an infinite loop after opening the webcam:
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 ;field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): Invalid argument
I can only assume this is to do with my kernel V4L settings, perhaps others will have better luck (or we can patch it to use an alternative application). In either case USE=-webcam will ensure it can't get into trouble.
Created attachment 238837 [details]
Created attachment 238839 [details, diff]
Replacement functions to adjust timing in /etc/cron.d/prey.cron rather than root's crontab
I see .05 is out. I'd like to help make this pretty as well :)
needs version bump to 0.5.1
zip package: http://preyproject.com/releases/0.5.1/prey-0.5.1-linux.zip
I will take it
If someone (user or dev) is willing to co-maintain this ebuild with me please say so
I have some newer stuff you can use here(although still not current)...
They don't release very often so I don't think the maintenance will be much. I'd be willing to help when possible. I'm not sure about the latest release, but 5.1 has deps on hal which hopefully has been ripped out in the latest releases.
(In reply to comment #8)
I committed an ebuild based on the original one posted here by Thomas and on the one from your git repository. I added you as co-maintainer. Please test the ebuild in portage and let me know if that works for you. It will remain masked for now. contact me by email or open bugs if you need to talk to me about the prey ebuild. Thank you all