![]() |
Prey antitheft for Jolla
Started this new thread, to replace the old one as it is out of date. The information below is in that old thread, but spread around, so here is a recollection to sum up the install procedure for new prey version:
To install recent nodejs build of Prey for SailfishOS: Add my merproject repository Code:
$ devel-su Code:
# pkcon install nodejs https://build.merproject.org/package...latest_armv7hl https://build.merproject.org/package...latest_armv7hl If you do not want to add my repository. Then, install prey: You NEED to do this using devel-su! Code:
$ devel-su The device is added, and you are ready to track it on panel.preyproject.com service to start prey on boot is installed and enabled automatically |
Re: Prey antitheft for Jolla
So far, this is what is working:
* Get location of device * Get device hardware information (CPU/memory) * Get network information (IP, neighbour wlans) * logged in user (usually nemo or root) Features missing: * Screenshot * Camera * Sound alerts on device * Message alerts on device * Lock device * Erase device Allthough the missing features are nice to have (especially the lock device) I believe it is at this point usefull that we can get location reports for a stolen device. Prey have added the distro 'mer' to the recognized distributions, so, any updates that will be done to enable the missing features should be pushable to them, and as such that will make it much more easy to install, as everything will be part of Prey's 'native' eco system. A certain well-known developer ;) may look at the Prey sources and hopefully, in a near future we can have a more SailfiishOS-native client, and hopefully Jolla can make this a part of 'standard firmware'. What needs to be considered, is how to protect de-installation of Prey. Prefferable Prey as service can be protected from de-installation, and any GUI part that would be de-installed would be for status information only. |
Re: Prey antitheft for Jolla
Installed prey this morning, and couldn't get it to locate where my Jolla is. Went to terminal and typed Prey and it came up with this. Is there suppose to be that many errors and critical?
http://i.imgur.com/qLw5zm3.jpg |
Re: Prey antitheft for Jolla
no.
Did you fllow instructions? Not sure if it matters. But do try to install sudo. |
Re: Prey antitheft for Jolla
only i see dbus-monitor not found error in this image?
|
Re: Prey antitheft for Jolla
So after installing Sudo everything seems to be working. It still reports errors, some the same and some new. However it seems to be working : 'Prey' after installing sudo,
http://i.imgur.com/0NLjyqZ.jpg After typing prey it would not let me type any other commands so I had to close the session. When I reconnected and typed prey it was happy :) http://i.imgur.com/CuaTHYU.jpg |
Re: Prey antitheft for Jolla
also i decided to try prey myself, but:
Code:
Running "config activate" as prey |
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
works after running with devel-su, not root :)
|
Re: Prey antitheft for Jolla
Yes, it works again! :)
At the end of the installation I got a message that I should fire up a GUI. I lost the exact message, but nothing was fired up when I ran the command. So I got it working with: Code:
prey config settings update api_key aa9999999999 In the meantime I tried the PreyGUI from Warehouse, but that did not do the trick. So I uninstalled it again. |
Re: Prey antitheft for Jolla
Not everything is configurated now, it seems. Looking up the location from the Prey website provides the following log:
Code:
notice Mon, 14 Sep 2015 15:22:36 GMT [control-panel] Got valid push request! Code:
[root@Jolla nemo]# prey config check |
Re: Prey antitheft for Jolla
install sudo ;)
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
I suggest you follow them. Better to start with removing prey, removing any registered device in control panel (prey site) Then, start from beginning on 1st post Btw. No. There is no GUI, yet. Except prey website. |
Re: Prey antitheft for Jolla
Got this when trying to install Prey on Sailfish OS 2.0.0.10. :(
Code:
[root@Jolla Downloads]# devel-su Password: |
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Quote:
|
Re: Prey antitheft for Jolla
Any change in Saimaa 2.0.0.10 with GPS/Location data retrieval?
Since I upgraded, Prey seems to be unable to locate my device. |
Re: Prey antitheft for Jolla
Quote:
But, perhaps the upgrade process removed some of what prey needs. I cant really tell. I installed 2.0.0.10 from clean phone. |
Re: Prey antitheft for Jolla
I also installed 2.0.0.10 after factory reset. Then installed Prey according to your instructions. Investigating.
Anyway «prey -r "get location"» returns a correct answer (locally). But panel.preyproject.com couldn't display it. Maybe an issue on server side (device only briefly seen by Prey service when Prey app is started, then shown as unreachable). In prey.conf, 'auto_connect' is set to 'false' (which is surprisingly the default setting). Forcing it to 'true' doesn't fix the issue. In prey-agent.service, 'TimeoutStopSec' is set to '20'. Should I increase it? |
Re: Prey antitheft for Jolla
Anyone tried it for the tablet and if so did it work?
|
Re: Prey antitheft for Jolla
Get this at the end of installation.
Credentials verified. Linking device... Error! Invalid os: does not exist. [root@Jolla Downloads]# Fixable or? |
Re: Prey antitheft for Jolla
@nieldk What language was the old version of prey (not based on nodejs) written in and can I have a look at the source?
I'm primarily interested in python code to get gps location. |
Re: Prey antitheft for Jolla
Quote:
They need info to add OS - sailfish - to the known platform types Believe it shows in /etc/mer-release what they need (not sure if mer-release is correct for tablet) |
Re: Prey antitheft for Jolla
Quote:
https://github.com/prey/prey-bash-client?files=1 |
Re: Prey antitheft for Jolla
That seems to have no GPS functions, but thanks anyway.
|
Re: Prey antitheft for Jolla
Quote:
https://github.com/prey/prey-bash-cl...odules?files=1 |
Re: Prey antitheft for Jolla
If I understand that correctly, they do just get approximate position from wifi AP using googleapis - no GPS coordinates from a built in gps receiver.
|
Re: Prey antitheft for Jolla
Quote:
Defined here https://github.com/prey/prey-bash-cl...core/functions |
Re: Prey antitheft for Jolla
Quote:
Mer release 0.2011 (Mer) BUILD: Jolla-2.0.0.10-tbj-i486 or this? [nemo@Jolla ~]$ lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch Distributor ID: #Thisfileiscopiedashw-release(analogoustoos-release) Description: # This file is copied as hw-release (analogous to os-release) Release: n/a Codename: analogoustoos-release or maybe this? [nemo@Jolla ~]$ lsb_release -ri Distributor ID: #Thisfileiscopiedashw-release(analogoustoos-release) Release: n/a |
Re: Prey antitheft for Jolla
Hi.
I have a conflict with the packages: When I run prey -r "get location" I get a message saying that iwlist command is not found. When I try to install "wireless-tools" the answer is that "iw" is installed already And if I try to uninstall "iw" then "crda" is about to be uninstalled as well. Any clues? Regards. |
Re: Prey antitheft for Jolla
Quote:
Quote:
Hello Niel. I have the same prob. on Jolla tablet. Any chance, that i can fix it by myself? THX |
Re: Prey antitheft for Jolla
Quote:
Have you found some fix? THX |
Re: Prey antitheft for Jolla
Quote:
have a look @ https://together.jolla.com/question/...201taalojarvi/ Quote:
maybe checkout https://www.npmjs.com/package/wit nodejs wrapper for iw command |
Re: Prey antitheft for Jolla
Quote:
|
All times are GMT. The time now is 21:03. |
vBulletin® Version 3.8.8