Reply
Thread Tools
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#141
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
 
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#142
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
 
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#143
It works now .
 

The Following 2 Users Say Thank You to Victorious For This Useful Post:
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#144
[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]#
 

The Following User Says Thank You to Victorious For This Useful Post:
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#145
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.
 

The Following 3 Users Say Thank You to nieldk For This Useful Post:
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#146
After rebooting the phone - 10 seconds Prey found my phone and accurately (+ - 5 meters) showed my location! Nothing in the terminal I typed ...
 

The Following User Says Thank You to Victorious For This Useful Post:
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#147
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
 
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#148
Originally Posted by nieldk View Post
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
Yes, I got all this information! But I disabled "Set device to messing" and after a reboot it immediately shows the location. Five times restarts. I just cant find setting "Report frequency".

Last edited by Victorious; 2015-03-08 at 16:01.
 
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#149
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.
 
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#150
Originally Posted by nieldk View Post
This should show on panel.preyproject.com now
Until I create a full package, with a systemd service, prey will need to be running in terminal
It is not mandatory - and all so perfectly works!
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:56.