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)

rob_kouw 2015-09-14 15:10

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
prey config account setup

The API-key is found on the Settings page on the Prey website, left bottom corner.

In the meantime I tried the PreyGUI from Warehouse, but that did not do the trick. So I uninstalled it again.

rob_kouw 2015-09-14 15:28

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!
    warn Mon, 14 Sep 2015 15:22:38 GMT [control-panel] Got 1 commands.
    info Mon, 14 Sep 2015 15:22:45 GMT [reports] Gathering status report.
    error Mon, 14 Sep 2015 15:22:45 GMT [reports] Unable to get battery_status: Unable to read battery info.
    error Mon, 14 Sep 2015 15:22:45 GMT [reports] Unable to get logged_user: No logged user detected.
    info Mon, 14 Sep 2015 15:22:52 GMT [reports] Report gathered: status
    info Mon, 14 Sep 2015 15:22:52 GMT [control-panel] Posting data
    info Mon, 14 Sep 2015 15:22:53 GMT [control-panel] Got 200 response: OK

So the user is not detected or registered? I'm also puzzled by the following:
Code:

[root@Jolla nemo]# prey config check
Checking installation.
Installation seems to be clean as a bean. Good job!
Voila! All good.
[root@Jolla nemo]# prey config activate
Error! This command should be run as the prey user.


coderus 2015-09-14 18:04

Re: Prey antitheft for Jolla
 
install sudo ;)

rob_kouw 2015-09-14 19:44

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by coderus (Post 1482500)
install sudo ;)

I did. Followed the instructions by nieldk.

nieldk 2015-09-14 20:24

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by rob_kouw (Post 1482512)
I did. Followed the instructions by nieldk.

Well, not completely folloew instructions ;)

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.

Eminem 2015-10-24 22:58

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:
[root@Jolla Downloads]# npm install -g prey
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/tomas/node-campfire.git /root/.npm/_git-remotes/git-github-com-tomas-node-campfire-git-82e0df35: undefined
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/tomas/node-campfire.git /root/.npm/_git-remotes/git-github-com-tomas-node-campfire-git-82e0df35: undefined
npm ERR! Linux 3.4.108.20150901.1
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "prey"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ENOGIT

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

> prey@1.3.9 preuninstall /usr/lib/node_modules/prey
> ./bin/prey config hooks pre_uninstall

module.js:338
    throw err;
          ^
Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/lib/node_modules/prey/lib/common.js:12:27)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
npm WARN continuing anyway prey@1.3.9 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1

npm ERR! Please include the following file with any support request:
npm ERR!    /home/nemo/Downloads/npm-debug.log
[root@Jolla Downloads]# [root@Jolla Downloads]# devel-su                                                Password:
bash: [root@Jolla: command not found
[root@Jolla Downloads]# [root@Jolla Downloads]# npm install -g prey
bash: [root@Jolla: command not found
[root@Jolla Downloads]# npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/tomas/node-campfire.git /root/.npm/_git-remotes/git-github-com-tomas-node-campfire-git-82e0df35: undefined
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
npm WARN continuing anyway prey@1.3.9 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1

npm ERR! Please include the following file with any support request:
npm ERR!    /home/nemo/Downloads/npm-debug.log
[root@Jolla Downloads]#


nieldk 2015-10-25 05:30

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by Eminem (Post 1486656)
Got this when trying to install Prey on Sailfish OS 2.0.0.10. :(

Code:

npm ERR! Please check if you have git installed and in your PATH.

Solution in your terminal session ;)

coderus 2015-10-25 09:03

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1486665)
Solution in your terminal session ;)

OMG! If you think i need to read all these output AND understand it - you REALLY wrong here!! You need to make it work for everybody and without any problems! And i do not need to understand how it works, i just need to click INSTALL button and everything should be done automatically! You should fix it ASAP!

nieldk 2015-10-25 10:02

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by coderus (Post 1486671)
OMG! If you think i need to read all these output AND understand it - you REALLY wrong here!! You need to make it work for everybody and without any problems! And i do not need to understand how it works, i just need to click INSTALL button and everything should be done automatically! You should fix it ASAP!

I will add a preinstall script that will prevent installation if you don't entré the correct last 4 ciphers of pi.

pichlo 2015-10-25 10:16

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1486675)
I will add a preinstall script that will prevent installation if you don't entré the correct last 4 ciphers of pi.

THAT has made me ROTFLMAO. Thanks for giving my day a good start! :D:D:D


All times are GMT. The time now is 06:37.

vBulletin® Version 3.8.8