maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] Prey - antitheft system (https://talk.maemo.org/showthread.php?t=92829)

student4life 2014-04-12 16:06

Re: [WIP] Prey - antitheft system
 
Good progress

the way I worked around some dependencies issues in n9[50] is to write small pyside/Qt programs for the missing features. The prey modules were modified to use these instead of the default ones.

I had written programs for geolocation, take photo/video, show alert message & play alarm sound

if you are interested I can try to port these programs to Sailfish or give you the source code. I cannot do any testing as I don't have a sailfish device.

pizzulicchio 2014-04-26 15:23

Re: [WIP] Prey - antitheft system
 
Hello!
I have just reinstalled prey after a full reinstall o f my Jolla phone, but prey.service and prey.timer are not present into /etc/systemd/system/

Is it a know issue or not ?

nieldk 2014-04-26 17:18

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by student4life (Post 1421121)
Good progress

the way I worked around some dependencies issues in n9[50] is to write small pyside/Qt programs for the missing features. The prey modules were modified to use these instead of the default ones.

I had written programs for geolocation, take photo/video, show alert message & play alarm sound

if you are interested I can try to port these programs to Sailfish or give you the source code. I cannot do any testing as I don't have a sailfish device.

cool! that will complete the solution :)

nieldk 2014-04-26 17:19

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by pizzulicchio (Post 1422904)
Hello!
I have just reinstalled prey after a full reinstall o f my Jolla phone, but prey.service and prey.timer are not present into /etc/systemd/system/

Is it a know issue or not ?

should not be the case, no.
I updated with zypper, so I didnt see this, but I will look into the issue

parasemic 2014-05-03 12:15

Re: [WIP] Prey - antitheft system
 
Prey cannot be installed anymore with the SSL update

nieldk 2014-05-17 09:02

Re: [WIP] Prey - antitheft system
 
Update version to 0.6.3 released by preyproject
https://openrepos.net/content/nieldk/prey

parasemic 2014-05-17 18:44

Re: [WIP] Prey - antitheft system
 
I still cant install it

nieldk 2014-05-17 21:05

Re: [WIP] Prey - antitheft system
 
you ;still; need my openssl for the perl modules
When I get a bit of time I will recompile my applications that depends on my openssl to work with stock Jolla version, but since this will wreck my phone very likely - it wont happen just now.
So, install my openssl (1.0.1g) and it will work for you.

parasemic 2014-05-17 21:57

Re: [WIP] Prey - antitheft system
 
I already have it installed

nieldk 2014-05-21 16:28

Re: [WIP] Prey - antitheft system
 
wonder if I should add a functionality like this

Quote:

dd if=/dev/random of=/dev/mmcblk0p20
PS Please dont try this ;)

rainisto 2014-05-22 06:33

Re: [WIP] Prey - antitheft system
 
A small status update on my client. Most likely its coming out in some update after summer holidays (if no major issues are found during testing).

Currently working:
- remotelock
- remotewipe
- remotebrick
- screenshot
- frontal camera shot
- alert message on screen
- alarm sound as 100% volume level
- GPS location
- wifi accesspoints
- traceroute
- running programs
- get addressbook
- get battery level
- get active connections

nieldk 2014-05-22 06:51

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by rainisto (Post 1426286)
A small status update on my client. Most likely its coming out in some update after summer holidays (if no major issues are found during testing).

Currently working:
- remotelock
- remotewipe
- remotebrick
- screenshot
- frontal camera shot
- alert message on screen
- alarm sound as 100% volume level
- GPS location
- wifi accesspoints
- traceroute
- running programs
- get addressbook
- get battery level
- get active connections

Awesome! Looking forward to seeing this in action.

parasemic 2014-05-23 08:33

Re: [WIP] Prey - antitheft system
 
So how do i install this? :( i have openssl installed but i still get the error about perl-net-ssleay

nieldk 2014-05-23 09:38

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by parasemic (Post 1426409)
So how do i install this? :( i have openssl installed but i still get the error about perl-net-ssleay

well, did you install perl modules ?
https://openrepos.net/content/nieldk/perl-net-ssleay
and
https://openrepos.net/content/nieldk/perl-io-socket-ssl

parasemic 2014-05-23 20:19

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1426410)

everything just shows another error for other missing stuff

nieldk 2014-05-23 21:13

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by parasemic (Post 1426473)
everything just shows another error for other missing stuff

are you using warehouse app?
that may just be easier, it will install all the needed stuff (by enabling my repo, which I kinda believe you didnt do)

parasemic 2014-05-24 16:18

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1426478)
are you using warehouse app?
that may just be easier, it will install all the needed stuff (by enabling my repo, which I kinda believe you didnt do)

im using warehouse and have enabled your repo...

az2111 2014-05-26 04:06

Re: [WIP] Prey - antitheft system
 
I could not add my device to prey.

In the terminal it says:

Got response status 422
Could not add this device to your account. Make sure you have available slots!

I have no devices in my prey account.

What should i do?

nieldk 2014-05-26 04:32

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by az2111 (Post 1426641)
I could not add my device to prey.

In the terminal it says:

Got response status 422
Could not add this device to your account. Make sure you have available slots!

I have no devices in my prey account.

What should i do?

1 ensure that you really dont have any devices assiciated on your account (you do have an account, right?)
2 check that you entered the correct API key in config file

az2111 2014-05-26 16:36

Re: [WIP] Prey - antitheft system
 
I have an account and there are no devices in it.

See picture:

http://picload.org/image/lccrpld/prey.jpg

I installed prey via warehouse, than preyui via warehouse and than pyotherside via console.

I tried it again. But i got response status 503 or 422.

caprico 2014-05-28 10:48

Re: [WIP] Prey - antitheft system
 
Same problem here:

Code:

-- Looking for connection...
 -- Got network connection!

 == Registering device under account!

 -- Gathering system and hardware information...
which: no laptop-detect in (/bin:/sbin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin:/usr/share/prey/platform/linux/bin)
 -- Sending request to Prey Control Panel...
 -- Got response status 422.
 -- Couldn't add this device to your account. Make sure you have available slots!

-Only 1 out of 3 devices are used on my Prey account
-I verified the API key

az2111 2014-05-28 13:36

Re: [WIP] Prey - antitheft system
 
I hope you could help us. what are we doing wrong?

nieldk 2014-05-28 15:06

Re: [WIP] Prey - antitheft system
 
well, I will look at this, the culpritt is
"which: no laptop-detect in"

I am not sure why you have this issue, I just had to completely reinstall my device, and I didnt have this issue.

caprico 2014-05-28 17:19

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1426975)
well, I will look at this, the culpritt is
"which: no laptop-detect in"

I am not sure why you have this issue, I just had to completely reinstall my device, and I didnt have this issue.

Thanks a lot - the "no laptop-detect" culprit suprised me as well. I'll try to find out more about it, but no success so far.

@az2111: What message do you get when opening prey.sh via terminal next to response status 422?

nieldk 2014-05-28 17:37

Re: [WIP] Prey - antitheft system
 
could you try to uninstall prey, and then re-install ?
I have no "laptop-detect" on my system ...

caprico 2014-05-28 18:04

Re: [WIP] Prey - antitheft system
 
Just did that (re-install) that and updated the config file with my information. Running /usr/share/prey/prey.sh --check gave back the same "no laptop-detected in..." and 422 status messages like previously.

I wonder if it has to do something with my new Prey account. I set it up just yesterday (didn't have one previously).

On Prey Help Center someone with status responce 422 connection error got following answer: "Now, the reason why Prey is having trouble registering your device is because it’s trying to call a function that, for some reason, hasn’t been loaded (full_hardware_params). "

Unfortunately I can't do anything with that answer ;)

EDIT: I'll try it out on another Sailfish device. Let's see what happens there.
EDIT2: Ok, tested it with another Sailfish device (fresh install) and got the same problem.

nieldk 2014-05-28 18:39

Re: [WIP] Prey - antitheft system
 
1 Attachment(s)
hmm seems they made a few changes serverside.
Can you try to change the device type to "tablet" (se screenshot)

caprico 2014-05-28 19:14

Re: [WIP] Prey - antitheft system
 
Thanks again for your answer. The problem is that no new device (Jolla) was added to my profile. So I can't change any configurations. I set up a computer with the official client - that worked well.

The option "Add device" just sends me to a link where I can download various clients (I was hoping to see an option there to manually set up a device).

So it indeed seems that due to some server changes, new Prey users can't register a Sailfish device anymore.

nieldk 2014-05-28 19:53

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by caprico (Post 1427060)
Thanks again for your answer. The problem is that no new device (Jolla) was added to my profile. So I can't change any configurations. I set up a computer with the official client - that worked well.

The option "Add device" just sends me to a link where I can download various clients (I was hoping to see an option there to manually set up a device).

So it indeed seems that due to some server changes, new Prey users can't register a Sailfish device anymore.

perhaps its worth a try to uninstall latest version (prey-0.6.3-1) and then try by install the previous version (prey-0.6.2-6)
Direct link to rpm package (install in terminal)
https://openrepos.net/sites/default/...-6.armv7hl.rpm

caprico 2014-05-28 20:21

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1427070)
perhaps its worth a try to uninstall latest version (prey-0.6.3-1) and then try by install the previous version (prey-0.6.2-6)
Direct link to rpm package (install in terminal)
https://openrepos.net/sites/default/...-6.armv7hl.rpm

Good one :) That worked! Device is registered and shows up as Jolla on Prey profile. "No laptop-detect" still appears, but doesn't seem to influence the registration.

Code:

>> Registering device under account!

 -- Gathering system and hardware information...
which: no laptop-detect in (/bin:/sbin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin:/usr/share/prey/platform/linux/bin)
 -- Sending request to Control Panel...
 -- Got response status 201.
 -- Device succesfully registered! Applying configuration...
 -- All set. Assigned key is xxxxxx.
 -- Checking URL...

 == Verifying status...

...


nieldk 2014-05-28 20:30

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by caprico (Post 1427077)
Good one :) That worked! Device is registered and shows up as Jolla on Prey profile. "No laptop-detect" still appears, but doesn't seem to influence the registration.

Code:

>> Registering device under account!

 -- Gathering system and hardware information...
which: no laptop-detect in (/bin:/sbin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin:/usr/share/prey/platform/linux/bin)
 -- Sending request to Control Panel...
 -- Got response status 201.
 -- Device succesfully registered! Applying configuration...
 -- All set. Assigned key is xxxxxx.
 -- Checking URL...

 == Verifying status...

...


good. Then at least we have a work-around, until I find a solution.
You should be able to 'upgrade' now

caprico 2014-05-28 20:35

Re: [WIP] Prey - antitheft system
 
I did that and everything works fine now. I've just sent you a thank-you donation. Keep up the great work!

nieldk 2014-05-28 22:29

Re: [WIP] Prey - antitheft system
 
Updated version avalable on openrepos which provides missing laptop-detect which caused an issue when registering first time.
Also, added requirement for fcron due to changes in the prey server supplied functions.

az2111 2014-05-29 00:01

Re: [WIP] Prey - antitheft system
 
Now it works great.
Thank you very much.

az2111

az2111 2014-05-29 09:04

Re: [WIP] Prey - antitheft system
 
I have installed version 0.6.2-6 from your post and register my device on prey succesfully.
could i now install version 0.6.3-2 from warehouse above?

caprico 2014-05-29 09:46

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by az2111 (Post 1427191)
I have installed version 0.6.2-6 from your post and register my device on prey succesfully.
could i now install version 0.6.3-2 from warehouse above?

1. Yes you can update your installed version - it won't erase registration

2. @nieldk already published a bug fix for the registration problem last night :)

parasemic 2014-05-29 11:39

Re: [WIP] Prey - antitheft system
 
Could anyone give me step by step instructions on how to install prey? I worked fine until last jolla patch and every dependance gives a different error...

prey requires sslney thingy, which requires libcrypto thingy which i cant even find...

az2111 2014-05-29 16:42

Re: [WIP] Prey - antitheft system
 
Did you use warehouse to install prey?

az2111 2014-05-29 16:50

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by HolgerN (Post 1417643)
I did some changed to the code of prey. You can found them here: https://github.com/holgern/prey-bash-client

Now Changing of excution intervall is possible! between 10min, 15min, 20min, 30min, 40min, 50min and 1 h.

This is done by 7 different timer files. prey-10min.timer, ... and prey-hourly.timer.


If the device is set to missing, then the excution is set to one of these time :10min, 15min, 20min, 30min, 40min, 50min. This can be done by setting Frequency of reports/actions in the prey control website.

After setting the device status to ok, the interval changes back to hourly.

I fixed a small bug with the screenshot, as it was not working for me.

To register my device i installed version 0.6.2-6 and than I installed version 0.6.3-2 from warehouse above.

How can i use the timers from quoted poste above?
Is it enough to create the new timer files and delete the old one or must i change some other files?

Thanks in advance.
Greets az2111

parasemic 2014-05-29 21:24

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by az2111 (Post 1427247)
Did you use warehouse to install prey?

yes i did and i have repo enablec etc...


All times are GMT. The time now is 17:41.

vBulletin® Version 3.8.8