maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Prey antitheft for Jolla (https://talk.maemo.org/showthread.php?t=95940)

explit 2016-12-28 15:45

Re: Prey antitheft for Jolla
 
pkcon install make gcc gcc-c++

min0me 2017-03-19 11:32

Re: Prey antitheft for Jolla
 
Hi,

I have installed Prey, it shows up in my account correctly.
Afterwards in the control panel it tells me i am unable to reach the device.

Looking at the log

PREY 1.6.6 spreads its wings!
Current time: Sat Mar 18 2017 20:10:08 GMT+0800 (PHT)
Running with PID 3676 as prey over Node.js v4.2.2 on a arm linux system (undefined)

info Sat, 18 Mar 2017 12:10:08 GMT [actions] Starting action: geofencing
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Running: geofencing
info Sat, 18 Mar 2017 12:10:09 GMT Plugin loaded: control-panel
info Sat, 18 Mar 2017 12:10:09 GMT 1 plugins loaded with 0 errors.
info Sat, 18 Mar 2017 12:10:09 GMT Initialized.
info Sat, 18 Mar 2017 12:10:09 GMT [triggers] Watching: connection, network, power
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Starting trigger: connection
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Running: connection
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Starting trigger: network
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Starting trigger: power
error Sat, 18 Mar 2017 12:10:09 GMT Error: Network seems to be down. Check your connection and try again.
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Stopped: geofencing
warn Sat, 18 Mar 2017 12:10:09 GMT [control-panel] Unable to sync settings.
error Sat, 18 Mar 2017 12:10:09 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Failed: network -> ENOENT - Command not found: /usr/bin/dbus-monitor
error Sat, 18 Mar 2017 12:10:09 GMT Error: ENOENT - Command not found: /usr/bin/dbus-monitor
info Sat, 18 Mar 2017 12:10:09 GMT [control-panel] Posting response
info Sat, 18 Mar 2017 12:10:09 GMT [actions] Failed: power -> ENOENT - Command not found: /usr/bin/dbus-monitor
error Sat, 18 Mar 2017 12:10:09 GMT Error: ENOENT - Command not found: /usr/bin/dbus-monitor
info Sat, 18 Mar 2017 12:10:09 GMT [control-panel] Posting response
info Sat, 18 Mar 2017 12:10:09 GMT [control-panel] Got error: Network seems to be down. Check your connection and try again.
info Sat, 18 Mar 2017 12:10:09 GMT [control-panel] Got error: Network seems to be down. Check your connection and try again.
error Sat, 18 Mar 2017 12:10:24 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:10:40 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:10:55 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:11:10 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:11:25 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:11:40 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:11:55 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:12:10 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:12:25 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:12:40 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:12:55 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443
error Sat, 18 Mar 2017 12:13:10 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443


this is regardless if i use wlan or wan, If i visit solid.preyproject.com/test everything comes back green

Any thoughts would be appreciated.

nieldk 2017-03-19 12:47

Re: Prey antitheft for Jolla
 
Did you follow steps from here ?
http://talk.maemo.org/showpost.php?p...4&postcount=61

objectifnul 2017-03-20 07:53

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1520594)
Next, install new nodejs from http://repo.merproject.org/obs//home...la.armv7hl.rpm
Either download, and use rpm, pkcon install-local or, add my repository.

Not Found:

The requested URL /obs/home:/nielnielsen/sailfish_latest_armv7hl/armv7hl/nodejs-6.9.2-10.2.1.jolla.armv7hl.rpm was not found on this server.

nieldk 2017-03-20 11:40

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by objectifnul (Post 1525698)
Not Found:

The requested URL /obs/home:/nielnielsen/sailfish_latest_armv7hl/armv7hl/nodejs-6.9.2-10.2.1.jolla.armv7hl.rpm was not found on this server.

The current link is: http://repo.merproject.org/obs//home...la.armv7hl.rpm

objectifnul 2018-01-02 18:14

Re: Prey antitheft for Jolla
 
Not Found

The requested URL /obs/home:/nielnielsen/sailfish_latest_armv7hl/armv7hl/nodejs-6.9.2-10.3.1.jolla.armv7hl.rpm was not found on this server.

=> http://repo.merproject.org/obs//home...la.armv7hl.rpm

(not working, by the way: npm command is missing)

jayki 2018-02-13 14:13

Re: Prey antitheft for Jolla
 
Hi :)
On Sailfish X i get
Code:

    info Tue, 13 Feb 2018 14:09:27 GMT [reports] Report gathered: specs
    error Tue, 13 Feb 2018 14:09:28 GMT [control-panel] Unable to register device: Invalid os:  does not exist.
    error Tue, 13 Feb 2018 14:09:28 GMT Error: Invalid os:  does not exist.
    info Tue, 13 Feb 2018 14:09:28 GMT 1 plugins loaded with 1 errors.
 critical Tue, 13 Feb 2018 14:09:28 GMT UNCAUGHT EXCEPTION: Invalid os:  does not exist.
Gracefully shutting down. Will self-destruct in 5 secs.

I hope someone has a solution. Prey won't work with this an shuts down..

nieldk 2018-02-13 15:42

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by jayki (Post 1541106)
Hi :)
On Sailfish X i get
Code:

    info Tue, 13 Feb 2018 14:09:27 GMT [reports] Report gathered: specs
    error Tue, 13 Feb 2018 14:09:28 GMT [control-panel] Unable to register device: Invalid os:  does not exist.
    error Tue, 13 Feb 2018 14:09:28 GMT Error: Invalid os:  does not exist.
    info Tue, 13 Feb 2018 14:09:28 GMT 1 plugins loaded with 1 errors.
 critical Tue, 13 Feb 2018 14:09:28 GMT UNCAUGHT EXCEPTION: Invalid os:  does not exist.
Gracefully shutting down. Will self-destruct in 5 secs.

I hope someone has a solution. Prey won't work with this an shuts down..

See: http://talk.maemo.org/showpost.php?p...9&postcount=56

nieldk 2018-02-13 15:44

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by objectifnul (Post 1539887)
Not Found

The requested URL /obs/home:/nielnielsen/sailfish_latest_armv7hl/armv7hl/nodejs-6.9.2-10.3.1.jolla.armv7hl.rpm was not found on this server.

=> http://repo.merproject.org/obs//home...la.armv7hl.rpm

(not working, by the way: npm command is missing)

Link is fine, for npm you need to install that ;)
http://talk.maemo.org/showpost.php?p...4&postcount=61

jayki 2018-02-13 16:55

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by min0me (Post 1525667)
Hi,

I have installed Prey, it shows up in my account correctly.
Afterwards in the control panel it tells me i am unable to reach the device.

error Sat, 18 Mar 2017 12:13:10 GMT [network] Connection error: Error: getaddrinfo ENOTFOUND solid.preyproject.com solid.preyproject.com:443


this is regardless if i use wlan or wan, If i visit solid.preyproject.com/test everything comes back green

Any thoughts would be appreciated.

So after installing prey i come to the same problem.
Running it as root user works, but is not what is intended.
Running as prey user via systemd or manuall will result in no network.
The user prey doesn't have network access as testet with ping as user prey:
Code:

bash-4.4$ ping 8.8.8.8                                                                                                                               
socket: Permission denied

Any idea how to give this user network access?


EDIT:
added user prey to group inet via:
gpasswd -a prey inet
and now user prey has network connection.. Testing again ;)
Edit:
Tested: devie is now conneted in Webinterface.. seems to work..
But location is just plain wrong. I have GPS activated an poormaps open which has right Location, but Prey always thinks im in Kassel, germany..
Adding user prey to group gps didn't fixed this.. sad :(
Prey console with : get location doesn't output anything.. so it can't set the location.. ..

BTW: tested sudo with user prey and it still requests me to type a password for iwlist, but i created the file under sudoers.d as you said. :(


All times are GMT. The time now is 14:44.

vBulletin® Version 3.8.8