maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Prey (anti-theft) for N900 (https://talk.maemo.org/showthread.php?t=73725)

Marcus 2011-06-03 19:11

[Announce] Prey (anti-theft) for N900
 
Read wiki site:
http://wiki.maemo.org/User:Marcus/Prey


I've lately messed with Prey to make it work at my N900 and it's basically working now.

It is recommended to manually install Prey, so look at the instructions on the wiki.

The INSTALLER.sh within the folder is an automated installer, which should hopefully work. If not, please help me fix it.
There are some dependencies that I've might left out, so report those as well.

If you got any questions or improvements to the INSTALLER.sh script etc., please do tell me.

EDIT: Haven't tried using it via cell phone connection, so I don't know at this point if that works.
EDIT2: Please note that all features aren't working at the moment. Haven't had time to fix them yet.

carlon 2011-06-03 19:38

Re: [Announce] Prey for N900
 
This is a great concept but can you be more detailed, some screen shots maybe? does it have a GUI? etc.
I read the wiki but it doesn't say how to manually install.

Thanks

Marcus 2011-06-03 19:41

Re: [Announce] Prey for N900
 
Quote:

Originally Posted by carlon (Post 1021846)
This is a great concept but can you be more detailed, some screen shots maybe? does it have a GUI? etc.
I read the wiki but it doesn't say how to manually install.

Thanks

This is Prey:
http://preyproject.com/

Basically an anti-theft solution.

For manual install all you need are the dependencies and all the contents from maemoprey (a bunch of folders called core, modules etc.) copied to /usr/share/prey/
Then you need to make it run under fcron.
That is all you need to do.

EDIT: Added guide for manual installation

sr00t 2011-06-03 19:43

Re: [Announce] Prey for N900
 
Hmmm...
What are its advantages in front of SMSCON? I know SMSCON is activated via SMS and Prey is activated via Internet, but... Any feature wich is better/ doesn't have SMSCON nowadays?

Marcus 2011-06-03 19:45

Re: [Announce] Prey for N900
 
Quote:

Originally Posted by sr00t (Post 1021848)
Hmmm...
What are its advantages in front of SMSCON? I know SMSCON is activated via SMS and Prey is activated via Internet, but... Any feature wich is better/ doesn't have SMSCON nowadays?

I've never used SMSCON since Prey does everything I need.
The awesome thing about Prey is that it's available for laptops, tablets and desktop PCs as well.
The control panel is therefore neat, since you can manage all of your profiles from one single site.

slaapliedje 2011-06-03 19:50

Re: [Announce] Prey for N900
 
Ha ha, you may want to change the topic to Prey (anti-theft) for N900. I thought you were talking about the game called Prey, and was like "what? the N900 can play that? Now I AM in pressed!"

This is still very cool. Will have to give it a try, I haven't ever used SMSCON either.

slaapliedje

sr00t 2011-06-03 19:51

Re: [Announce] Prey for N900
 
Quote:

Originally Posted by Marcus (Post 1021849)
I've never used SMSCON since Prey does everything I need.
The awesome thing about Prey is that it's available for laptops, tablets and desktop PCs as well.
The control panel is therefore neat, since you can manage all of your profiles from one single site.

Yep I use it on my netbook. It's a neat software, but it has several problems (at least with me) gathering certain data from my Ubuntu/XP installations.

I'll try it, marcus. I've been wondering why I didn't saw Prey in Maemo when the porting to Maemo shouldn't be so difficult basing it in the Linux one.
Thanks a lot!

Marcus 2011-06-06 09:24

Re: [Announce] Prey (anti-theft) for N900
 
Prey (anti-theft) for Maemo 5 is updated.

Download link
http://www.mediafire.com/?u4ytvcid49f8cmi

Added features
Alarm
Alert
Lock

Please read the wiki for more info.

TomJ 2011-06-06 19:04

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1023152)
Prey (anti-theft) for Maemo 5 is updated.

Download link
http://www.mediafire.com/?u4ytvcid49f8cmi

Added features
Alarm
Alert
Lock

Please read the wiki for more info.

What's the "Secure feature" listed as not yet working? And is there any reason it's being hosted at mediafire rather than added to the Extras repos?

Anyway, good work with this; I will probably get hold of it once i have some more time (and get into next month's data quota!)

Marcus 2011-06-06 19:35

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by TomJ (Post 1023548)
What's the "Secure feature" listed as not yet working? And is there any reason it's being hosted at mediafire rather than added to the Extras repos?

Anyway, good work with this; I will probably get hold of it once i have some more time (and get into next month's data quota!)

Secure feature
Hides emails and deletes browser cookies and stored passwords for all acounts on your computer, preventing access from unauthorized users. Do not enable unless you REALLY want to.

Since I've never messed with .deb packages (I'm using Arch Linux), I've never learned how to do it.
When I get the time I'll figure out how to do it.

tHMZ 2011-08-12 00:28

Re: [Announce] Prey (anti-theft) for N900
 
Is this program still alive?

peterch405 2011-08-12 01:11

Re: [Announce] Prey (anti-theft) for N900
 
Had anyone tested this yet, I would like to read some feedback, see screencaps or even better a video of how it works.

Ancelot 2011-09-03 12:54

Re: [Announce] Prey (anti-theft) for N900
 
Nice, but I wonder why isn't it in repos already, at least in extras-devel. It probably makes no difference, but I'm wary of downloading and installing an app that has access to my personal data, gps coordinates, camera and internet all the time from anything else than repositories.

towhatend 2011-09-03 19:12

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Ancelot (Post 1081129)
Nice, but I wonder why isn't it in repos already, at least in extras-devel. It probably makes no difference, but I'm wary of downloading and installing an app that has access to my personal data, gps coordinates, camera and internet all the time from anything else than repositories.

http://talk.maemo.org/showpost.php?p...3&postcount=10

Ancelot 2011-09-04 17:45

Re: [Announce] Prey (anti-theft) for N900
 
Oops, thanks!

Marcus 2011-09-09 08:42

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Ancelot (Post 1081129)
Nice, but I wonder why isn't it in repos already, at least in extras-devel. It probably makes no difference, but I'm wary of downloading and installing an app that has access to my personal data, gps coordinates, camera and internet all the time from anything else than repositories.

Sorry I haven't been active. Haven't checked the forums for atleast a month.

The beauty of open source, is that you're completely able to check the source code for any malware. I don't understand why you'd rather download a .deb from the repository, as it could just as likely have malware as this could (unless somebody is checking the source code of every piece of application in the repositories)

I'll look into creating a .deb.

gohan2091 2011-09-11 18:16

Re: [Announce] Prey (anti-theft) for N900
 
So if someone steals my n900, I can contact Prey who would let me know where my phone is located? How far is this from being finished?

EDIT: Just downloaded it and extracted the zip folder to my documents folder. Now what do I do? I see numerous folders but am clueless as to what to do :(

Marcus 2011-09-12 06:37

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by gohan2091 (Post 1086331)
So if someone steals my n900, I can contact Prey who would let me know where my phone is located? How far is this from being finished?

EDIT: Just downloaded it and extracted the zip folder to my documents folder. Now what do I do? I see numerous folders but am clueless as to what to do :(

Did you even follow the wiki?

Prey provides a control panel on their website, which gives you control of your stolen device, if internet is available of course.

gohan2091 2011-09-12 12:01

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1086639)
Did you even follow the wiki?

Prey provides a control panel on their website, which gives you control of your stolen device, if internet is available of course.

No, I didn't read the wiki, my bad. Will do that now. Thanks!

Mitrigol 2011-09-14 14:17

Re: [Announce] Prey (anti-theft) for N900
 
Thanks for the app, but i have some trouble to make it work.

I was able to install all dependencies without much trouble and followed the wiki for fcron.

I configured the prey config with id both of device and account
I configured the fcrontab: */10 * * * * /usr/share/prey/prey.sh > /var/log/prey.log

now, i created an account on Prey website and set my device as missing to check if everything went fine.

Here is my problem, it seems that fcron does not start the prey script as it should. i do not receive any report.
If i manually start the prey.sh (using bash because i am getting error using sh), everything is fine and i receive the report.

I checked in top and have the fcron -b running

Did i miss something about fcron or do you have any idea why the report is not automatically generated?

Thanks in advance

Marcus 2011-09-16 13:07

Re: [Announce] Prey (anti-theft) for N900
 
What does your crontab -l return?

Mitrigol 2011-09-16 13:30

Re: [Announce] Prey (anti-theft) for N900
 
fcrontab -l gives:

*/20 * * * * /usr/share/prey/prey.sh > /var/log/prey.log

But i have a question. Does it should send a report even when the phone is idle? Or does it need the phone to be used for at least 20 minutes before it will send a report?

Because yesterday in evening, while i was going home, it created a report by itself... I was not able to reproduce that so i don't understand.

thanks for your help

Marcus 2011-09-19 08:03

Re: [Announce] Prey (anti-theft) for N900
 
Do you have an active internet connection?

I have not tried it with 3G etc., so that might be a problem.

Mitrigol 2011-09-19 08:17

Re: [Announce] Prey (anti-theft) for N900
 
Yes i have an active connection, but i never use wifi, i am always connected via 2/3g.

My connection stays up as long as i don't disconnect it manually.

Lovsan 2011-12-30 13:07

Re: [Announce] Prey (anti-theft) for N900
 
hmm, im trying to get this to run in N9

are any of the required Dependencies in n9 By Default?

im getting these errors when trying to run the prey.sh

line161, shopt not found /opt/share/prey/core/setup

Code:

set_aliases(){
        shopt -s expand_aliases
        alias getter="curl $curl_options -s \"$user_agent\""
        alias mailsender="sendEmail"
}

so i suppose that some curl stuff is missing.

line78, Syntax error: Bad Substitution /opt/share/prey/core/functions

Code:

]get_var(){
        HASH="$1[*]"
        local ${!HASH} - line78
        eval 'echo ${'"${2}"'}'
}


Marcus 2011-12-31 11:09

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Lovsan (Post 1143460)
hmm, im trying to get this to run in N9

are any of the required Dependencies in n9 By Default?

im getting these errors when trying to run the prey.sh

line161, shopt not found /opt/share/prey/core/setup

Code:

set_aliases(){
        shopt -s expand_aliases
        alias getter="curl $curl_options -s \"$user_agent\""
        alias mailsender="sendEmail"
}

so i suppose that some curl stuff is missing.

line78, Syntax error: Bad Substitution /opt/share/prey/core/functions

Code:

]get_var(){
        HASH="$1[*]"
        local ${!HASH} - line78
        eval 'echo ${'"${2}"'}'
}


I'm afraid that I do not have any access to a N9, so I can't help you out there buddy - but yes, seems that shopt is missing.

After new years eve, I'll most likely optimize all of this, to see what I can do better.

Lovsan 2011-12-31 11:51

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1143833)
I'm afraid that I do not have any access to a N9, so I can't help you out there buddy - but yes, seems that shopt is missing.

After new years eve, I'll most likely optimize all of this, to see what I can do better.

cheers, it would be great if this was ported to n9 and well, working version for n900 also.

maybe great simple gui for the Settings so its easier for novices like me :D

1 of Prey devs said that if this project gets started they are willing to help, will see about it but hopefully.

:cool:

nicholes 2011-12-31 13:52

Re: [Announce] Prey (anti-theft) for N900
 
can i use both SMSCON and prey??? can they confilct each other?

Marcus 2012-01-01 18:06

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by nicholes (Post 1143898)
can i use both SMSCON and prey??? can they confilct each other?

I don't see how they would conflict, so yes you can.

isfr21 2012-01-03 19:14

Re: [Announce] Prey (anti-theft) for N900
 
+1 for porting this to the N9.

Yeshua 2012-01-14 22:01

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by isfr21 (Post 1145255)
+1 for porting this to the N9.

+2! :)

I would love to see this on the N9.

mattkawa 2012-01-24 17:39

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1143833)
I'm afraid that I do not have any access to a N9, so I can't help you out there buddy - but yes, seems that shopt is missing.

After new years eve, I'll most likely optimize all of this, to see what I can do better.

It seems that curl is no longer available in the repositories (maemo extra, testing, etc).

Any ideas where to obtain copy pls?

Marcus - are you still looking to optimise your installer further?

Thanks

nobile 2012-02-23 20:05

Re: [Announce] Prey (anti-theft) for N900
 
Just like mattkawa, I'm stuck without cURL... everywhere I've searched it appears it's not supported by maemo5 or it won't work because libssl0.9.7 is missing, which I can't seem to find anywhere for the n900, only for the n8* tablets.

Any updates on this?

EDIT: It appears I'm not allowed to post links because I'm a new member, so if anyone's interested on the "research" I made, here's the stuff:

No support for cURL on maemo5: http ://maemo.org/community/maemo-users/read/0f203ec4b9a611df8451c367b12f7e337e33
Guy that claims he was able to install cURL and libcurl: http ://talk.maemo.org/showpost.php?p=504198&postcount=8 but after trying to install it from his links, I get the libssl0.9.7 missing
People saying which catalgoues have the libssl0.9.7 http ://talk.maemo.org/showpost.php?p=245716&postcount=7 and http ://talk.maemo.org/showpost.php?p=245816&postcount=8 but the catalogues seem to be only for the tablets and not the n900
EDIT 2: A kind soul on another mentioned that cURL is available from the SDK repositories, after installing it, the Prey installer detected all my dependencies installed :D

peterleinchen 2012-02-24 11:58

Re: [Announce] Prey (anti-theft) for N900
 
http://lmgtfy.com/?q=maemo.org+package+libssl0.9.7
second entry

or as simple as possible
http://lmgtfy.com/?q=maemo.org+packa...ew+libssl0.9.7

mattkawa 2012-05-08 15:34

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by nobile (Post 1168888)
Just like mattkawa, I'm stuck without cURL... everywhere I've searched it appears it's not supported by maemo5 or it won't work because libssl0.9.7 is missing, which I can't seem to find anywhere for the n900, only for the n8* tablets.

Any updates on this?

EDIT: It appears I'm not allowed to post links because I'm a new member, so if anyone's interested on the "research" I made, here's the stuff:

No support for cURL on maemo5: http ://maemo.org/community/maemo-users/read/0f203ec4b9a611df8451c367b12f7e337e33
Guy that claims he was able to install cURL and libcurl: http ://talk.maemo.org/showpost.php?p=504198&postcount=8 but after trying to install it from his links, I get the libssl0.9.7 missing
People saying which catalgoues have the libssl0.9.7 http ://talk.maemo.org/showpost.php?p=245716&postcount=7 and http ://talk.maemo.org/showpost.php?p=245816&postcount=8 but the catalogues seem to be only for the tablets and not the n900
EDIT 2: A kind soul on another mentioned that cURL is available from the SDK repositories, after installing it, the Prey installer detected all my dependencies installed :D

Nobile - can I ask what version of cURL you used from the SDK repositories to successfully install Prey?

Presence 2012-10-10 20:06

Re: [Announce] Prey (anti-theft) for N900
 
I was able to get Prey working as detailed here:
http://talk.maemo.org/showthread.php?p=1271984

Somehow I missed this thread when I installed Prey originally. I was not able to get the webcam working, as I couldn't find a package for Maemo that contains `streamer`. Marcus claims he got it working on the wiki page. Would anyone happen to have a copy of his modifed version of Prey that I could look at?

robkof97 2014-05-14 18:24

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1023152)
Prey (anti-theft) for Maemo 5 is updated.

Download link
http://www.mediafire.com/?u4ytvcid49f8cmi

Added features
Alarm
Alert
Lock

Please read the wiki for more info.


link off http://www.mediafire.com/?u4ytvcid49f8cmi

send for me >>> robsonalvesdelima1@hotmail.com

from Brasil


All times are GMT. The time now is 11:45.

vBulletin® Version 3.8.8