![]() |
Re: [WIP] Prey - antitheft system
1 Attachment(s)
So, after the update to 1.12 Yliaavanlampi, prey stopped working. I uninstalled openssl 1j and installed 1h again, reinstalled prey and preyUI. Started the timer by using the command systemctl enable prey.timer, and tried the UI as well. But somehow the server does not receive any messages, and the UI status shows that prey is waiting since 23 hours. What can I do now?
|
Re: [WIP] Prey - antitheft system
To me wrote:
Mer 0.2011 Laptop, 0.0 GB RAM Prey: 0.6.4 OUTDATED CLIENT,You must upgrade Prey to the latest version in order to locate the device on this map |
Re: [WIP] Prey - antitheft system
That is correct. Prey no longer is functional (map) with this version.
I am working on the new (nodejs) version. There was an issue that Prey servers didnt recognize our Jolla. I have been in touch with them. And this should now be solved at their disgression :) So. Now I can continue were I was stopped. There still are some things to work on. But, I do have it running using nodejs. (Nodejs is on my merproject pages) Hooefully during this weekend I can get it working better. If you want to test you can install nodejs, then install prey using npm install -g prey For more information, until I finish this, look here https://github.com/prey/prey-node-cl...ster/README.md Nodejs is needed. You will find my build here: https://build.merproject.org/package...nielsen/nodejs |
Re: [WIP] Prey - antitheft system
Has established an nodejs-0.12.0-10.3.1.jolla.armv7hl.rpm, but still writes:
Prey: 0.6.4 OUTDATED CLIENT |
Re: [WIP] Prey - antitheft system
Hi.
Are there any chances to see this effort ported to Harmattan?. My client is a bit outdated and for instance doesn't work when device 'gprs0' is active... P.S: Sorry for the off-topic. Regards. |
Re: [WIP] Prey - antitheft system
Quote:
|
Re: [WIP] Prey - antitheft system
Quote:
Once i get it more functional on sailfish i can give it a try |
Re: [WIP] Prey - antitheft system
Help please
Code:
[nemo@Jolla ~]$ npm update -g prey |
Re: [WIP] Prey - antitheft system
Like said. This is still work in progress.
But .. try sudo npm install -g prey |
Re: [WIP] Prey - antitheft system
Quote:
nemo's password: nemo is not in the sudoers file. This incident will be reported. [nemo@Jolla ~]$ |
Re: [WIP] Prey - antitheft system
Quote:
Code:
$ devel-su |
Re: [WIP] Prey - antitheft system
Quote:
Code:
[nemo@Jolla ~]$ devel-su |
Re: [WIP] Prey - antitheft system
A bit more to do.
Here is a more complete guide. Please not last sentence in this. There is no systemd service at the moment. So, prey will need to be running in terminal until I have worked a bit more. Code:
$ sudo npm -g install prey your@email.com prey account password Code:
$ devel-su You will need to start prey (I didnt create a systemd service yet) Code:
$ sudo prey Until I create a full package, with a systemd service, prey will need to be running in terminal |
Re: [WIP] Prey - antitheft system
You are missing some of the steps i posted before. From
$ sudo prey config account setup -f And down Api and every other config is then made. No manual config to edit |
Re: [WIP] Prey - antitheft system
Quote:
"Mer 0.2011 Laptop, 1.404 GHz Prey: 1.3.6but Unknown location" I'm on the internet(A-GPS on) .. maps immediately find location the phone ... |
Re: [WIP] Prey - antitheft system
Is prey running in terminal?
Like i said. At the moment it needs to be running in terminal, as no service is created. |
Re: [WIP] Prey - antitheft system
@Victorious i appreciate you trying at this stage. Testers are indeed needed to complete this as fast as possible.
|
Re: [WIP] Prey - antitheft system
Quote:
Code:
[nemo@Jolla ~]$ sudo prey |
Re: [WIP] Prey - antitheft system
Is location enabled for apps ?
SETTINGS->SYSTEM->location (There is also the setting for A-GPS) |
Re: [WIP] Prey - antitheft system
Quote:
Nokia maps is looking for 2 sec Strange thing ... I decided to restart the phone ... and the site showed my location .. |
Re: [WIP] Prey - antitheft system
Yes. It seems slow on updating.
you can see in terminal if it got posted. info Sat, 07 Mar 2015 18:49:13 GMT [reports] Report gathered: status info Sat, 07 Mar 2015 18:49:13 GMT [control-panel] Posting data info Sat, 07 Mar 2015 18:49:14 GMT [control-panel] Got 200 response: OK |
Re: [WIP] Prey - antitheft system
Now. Create a system service
$ devel-su # nano -w /etc/systemd/system/prey-agent.service [Unit] Description=The Prey daemon. After=network.target [Service] ExecStart=/usr/lib/node_modules/prey/bin/prey WorkingDirectory=/usr/lib/node_modules/prey Restart=always RestartSec=15 User=prey Environment="TERM=dumb" "USER=prey" KillMode=process TimeoutStopSec=20 KillSignal=QUIT [Install] WantedBy=multi-user.target And start it # systemctl start prey-agent Enable it on boot # systemctl enable prey-agent |
Re: [WIP] Prey - antitheft system
It works now :).
|
Re: [WIP] Prey - antitheft system
[nemo@Jolla ~]$ devel-su
Password: [root@Jolla nemo]# systemctl start prey-agent Warning: Unit file of prey-agent.service changed on disk, 'systemctl daemon-reload' recommended. [root@Jolla nemo]# systemctl enable prey-agent [root@Jolla nemo]# |
Re: [WIP] Prey - antitheft system
Wonderful!
A lot is missing still. But, most important is location tracking. So. I can move on and create a first Alpha package for openrepos :) Thanks again buddy for helping. Also. Thank prey guys for making the changes to recignize Jolla on their side. |
Re: [WIP] Prey - antitheft system
After rebooting the phone - 10 seconds Prey found my phone and accurately (+ - 5 meters) showed my location! Nothing in the terminal I typed ...
|
Re: [WIP] Prey - antitheft system
That was the purpose of creating the prey-agent.service ;)
Now. When you set it to missing, you should get a report by email. Containing Location Hardware info Ip adress Wifi networks around And timestamps |
Re: [WIP] Prey - antitheft system
Quote:
|
Re: [WIP] Prey - antitheft system
Not sure what you are asking ?
It definately is supposed to show you location. Set device to missing is for mailing the report, once the device is located. |
Re: [WIP] Prey - antitheft system
Quote:
|
Re: [WIP] Prey - antitheft system
Quote:
Code:
... |
Re: [WIP] Prey - antitheft system
Got past the issue. Went for:
$ devel-su $ prey config hooks post_install Now it's working. Not sure why, but it works ;-) |
Re: [WIP] Prey - antitheft system
Quote:
The systemd service was running right away. No further action required. Not sure if this was from finishing the post_install command error-free by the method quoted above instead of means by sudo. Or if for instance my previous attempts to get Prey to work with nodejs from the Warehouse repository were responsible. This time one of nieldk's builds of nodejs from the Mer repository was used: https://build.merproject.org/package...latest_armv7hl There seems to be an issue with Prey 1.3.9 reporting locations: https://github.com/prey/prey-node-client/issues/95 Installing Prey 1.3.6 worked however: Code:
$ sudo npm -g install prey@1.3.6 |
Re: [WIP] Prey - antitheft system
Part of why it works better now, is that the Prey guys made changes so that the Linux version reported by our device is no longer responded to as 'unknown'.
FYI: I know that Jolla guys have also been in touch with the prey guys, so perhaps something is coming along the side that will be more complete. Will look into the new version of Prey and what the problem is. |
Re: [WIP] Prey - antitheft system
Can we / I get a updated and new guide and maybe posted on the first page? :)
|
Re: [WIP] Prey - antitheft system
Quote:
|
Re: [WIP] Prey - antitheft system
Created new thread for nodejs based version http://talk.maemo.org/showthread.php?p=1481712
|
All times are GMT. The time now is 17:39. |
vBulletin® Version 3.8.8