maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] Prey - antitheft system (https://talk.maemo.org/showthread.php?t=92829)

rob_kouw 2015-03-06 19:56

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?

Victorious 2015-03-06 21:58

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

nieldk 2015-03-07 05:55

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

Victorious 2015-03-07 12:48

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

pasko 2015-03-07 14:21

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.

nieldk 2015-03-07 15:01

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by Victorious (Post 1463328)
Has established an nodejs-0.12.0-10.3.1.jolla.armv7hl.rpm, but still writes:
Prey: 0.6.4 OUTDATED CLIENT

Uninstall old version. And try instructions on post before your post.

nieldk 2015-03-07 15:03

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by pasko (Post 1463332)
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.

Perhaps....
Once i get it more functional on sailfish i can give it a try

Victorious 2015-03-07 15:53

Re: [WIP] Prey - antitheft system
 
Help please
Code:

[nemo@Jolla ~]$ npm update -g prey
[nemo@Jolla ~]$ [sudo] npm install -g prey
-bash: [sudo]: command not found
[nemo@Jolla ~]$ npm install -g prey
|
> prey@1.3.6 preuninstall /usr/lib/node_modules/prey
> ./bin/prey config hooks pre_uninstall

===============================================================================
  Holy cow! Looks like you ran 'npm remove' but without the --unsafe-perm flag.
  This means the init scripts will remain installed, because they need root to be removed.

  To ensure a clean uninstall, please reinstall the package and then re-run this command,
  only this time with the --unsafe-perm flag, so everything gets wiped out:

  $ sudo npm -g remove prey --unsafe-perm
===============================================================================
npm WARN continuing anyway prey@1.3.6 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1
npm ERR! Linux 3.4.98.20141219.1.1
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "prey"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! path /usr/bin/prey
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, unlink '/usr/bin/prey'
npm ERR!    at Error (native)
npm ERR!  { [Error: EACCES, unlink '/usr/bin/prey'] errno: -13, code: 'EACCES', path: '/usr/bin/prey' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

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

===============================================================================
  Holy cow! Looks like you ran 'npm remove' but without the --unsafe-perm flag.
  This means the init scripts will remain installed, because they need root to be removed.

  To ensure a clean uninstall, please reinstall the package and then re-run this command,
  only this time with the --unsafe-perm flag, so everything gets wiped out:

  $ sudo npm -g remove prey --unsafe-perm
===============================================================================
npm WARN continuing anyway prey@1.3.6 preuninstall: `./bin/prey config hooks pre_uninstall`
npm WARN continuing anyway Exit status 1
npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/prey'
npm ERR! error rolling back    at Error (native)
npm ERR! error rolling back  { [Error: EACCES, unlink '/usr/bin/prey'] errno: -13, code: 'EACCES', path: '/usr/bin/prey' }

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


nieldk 2015-03-07 16:08

Re: [WIP] Prey - antitheft system
 
Like said. This is still work in progress.

But .. try

sudo npm install -g prey

Victorious 2015-03-07 16:13

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1463343)
Like said. This is still work in progress.

But .. try

sudo npm install -g prey

[nemo@Jolla ~]$ sudo npm install -g prey
nemo's password:
nemo is not in the sudoers file. This incident will be reported.
[nemo@Jolla ~]$


All times are GMT. The time now is 17:41.

vBulletin® Version 3.8.8