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-07-07 16:26

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by Eminem (Post 1509167)
Nope, gonna ask them to add the Tablet. :)

I asked them alredy, and this is the answer:

Quote:

Hi, Pawel.

Unfortunately, Prey is not compatible with mobile OS other than Android and iOS, and to be honest we don't think we will have any time soon, NOT because we don't want to or hate other OS or for actual technical reasons, but we are a very small team at the moment (not more than 15 people) and we are unable to develop a new version for a different operative system than the ones we already have. I hope you understand, we would be honored if you thought we were a big company. I am sorry for having to give you this answer!

You may be able to install Prey on some versions that support Android apks, but Prey will still not work.

Cheers,

--
Beatriz H.
Customer Happiness Agent
support@preyproject.com
This was a guy from support, i thing we need ask somebody more technical at prey....

My Jolla Phone JP-1301 with Sailfish 2.0.2.45 runs well with Prey, but the same OS Version on the Tablet don't.....
It must be something very small to change....

nieldk 2016-07-07 17:39

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by explit (Post 1509176)
I asked them alredy, and this is the answer:



This was a guy from support, i thing we need ask somebody more technical at prey....

My Jolla Phone JP-1301 with Sailfish 2.0.2.45 runs well with Prey, but the same OS Version on the Tablet don't.....
It must be something very small to change....

They only need info from, I believe, the file mer-release
I had them add this for Jolla 1, by submitting on their github pages.

explit 2016-07-07 18:59

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1509180)
They only need info from, I believe, the file mer-release
I had them add this for Jolla 1, by submitting on their github pages.

I submitted them all the info (including mer-release) but i think, to the wrong guy.

Maybe you can be our hero again, Niel?

Thank you!

nieldk 2016-07-07 20:57

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by explit (Post 1509188)
I submitted them all the info (including mer-release) but i think, to the wrong guy.

Maybe you can be our hero again, Niel?

Thank you!

A workaround is to temporarly change /etc/mer-release to something they recognize.
After registration, restore to original.

explit 2016-07-07 22:08

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1509197)
A workaround is to temporarly change /etc/mer-release to something they recognize.
After registration, restore to original.

Seems, they check not only /etc/mer-release
I replaced /etc/mer-release on My Tablet with /etc/mer-release from my Jolla Phone (where the installation run fine) - but get the same error:
Invalid os.... does not exist.....

explit 2016-07-09 18:55

Re: Prey antitheft for Jolla
 
The girl from the prey customer support answered, that she would forward my request to the development team. I don't know if the help us and how long it would take, but its at least better as nothing....

explit 2016-08-07 23:35

Re: Prey antitheft for Jolla
 
Some news here? Somebody activated prey on Jolla C / Tablet / FP2 or other devices ?


I can confirm:
Installation not working on:
Jolla Tablet / SF 2.0.2.48 i486
Fairphone 2 / SF 2.0.2.48 armv7hl

So the problem is NOT the i486 Architecture, its a mer or Sailfish Version, which is not supported....

Error! Invalid os: does not exist.

explit 2016-08-08 00:09

Re: Prey antitheft for Jolla
 
Found on a prey forum, that the command lsb_release can have something to do with our problem. I made an request on github, no idea, if it is the right place, and if some prey developer will see it there....

nieldk 2016-08-08 06:09

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by explit (Post 1511976)
Found on a prey forum, that the command lsb_release can have something to do with our problem. I made an request on github, no idea, if it is the right place, and if some prey developer will see it there....

That's the right place. This is how I got it working on our J1. Then, they saw and fixed.

explit 2016-08-10 16:45

Re: Prey antitheft for Jolla
 
https://github.com/prey/prey-node-client/issues/224

I made a new issue on prey github here.

Feel free to edit or change it, if this is needed.
Lets hope, they will react...

rob_kouw 2016-08-14 15:29

Re: Prey antitheft for Jolla
 
I installed prey last week on a Jolla phone, recently cleared and reinstalled. The installation of Prey worked like a charm.

But today it appeared Prey did not see my Jolla for 4 days. I opened the terminal, and entered "prey". Unknown command. So I did the installation process again (and it worked like a charm again). But strange it is...

explit 2016-08-14 23:36

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by rob_kouw (Post 1512537)
I installed prey last week on a Jolla phone, recently cleared and reinstalled. The installation of Prey worked like a charm.

But today it appeared Prey did not see my Jolla for 4 days. I opened the terminal, and entered "prey". Unknown command. So I did the installation process again (and it worked like a charm again). But strange it is...

What SailfishOS Version you are on?
2.0.1.11 worked for me
2.0.2.4x and 2.0.3.1x - not working

nieldk 2016-08-15 05:22

Re: Prey antitheft for Jolla
 
On 2.0.3.14 here it's working

explit 2016-08-16 00:11

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1512608)
On 2.0.3.14 here it's working

yes, if it was activated before update on 2.0.2.xx or 2.03.xx
On my Jolla 1 it also working on 2.0.3.14

but if you try to install it on fresh device with 2.0.2 or 2.0.3 it will fail.

rob_kouw 2016-08-17 21:29

Re: Prey antitheft for Jolla
 
Well, I'm still on Taalojarvi 2.01.11. It is working now.

nieldk 2016-09-29 07:22

Re: Prey antitheft for Jolla
 
I figured a workaround out. The issue is really not with Prey, but with Jolla lsb_release files are not correct

specifically, we need to change the file

Code:

/etc/hw-release
by adding this line to the top of the file

Code:

Mer release 02011 Jolla
This will allow to setup the account and activate it on Prey servers

coderus 2016-09-29 08:38

Re: Prey antitheft for Jolla
 
btw, what the status of missing features? i am interested in implementing em.

nieldk 2016-09-29 08:44

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by coderus (Post 1515803)
btw, what the status of missing features? i am interested in implementing em.

Same :/ basically we can get location of device, other than that, we get info on the hardware and so (not so usefull)
Should also return oinfo on connected networks (wlan).

explit 2016-09-29 09:04

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1515799)
I figured a workaround out. The issue is really not with Prey, but with Jolla lsb_release files are not correct

specifically, we need to change the file

Code:

/etc/hw-release
by adding this line to the top of the file

Code:

Mer release 02011 Jolla
This will allow to setup the account and activate it on Prey servers



Thank you very much, Niel!
The solution was only one line away....

nieldk 2016-09-29 09:06

Re: Prey antitheft for Jolla
 
1 Attachment(s)
Quote:

Originally Posted by explit (Post 1515805)
Thank you very much, Niel!
The solution was only one line away....

Yep, but this is something that I need to report to Jolla as a bug I believe ;)

Added a screenshot of a report that is send when device is set as missing

nieldk 2016-12-15 10:32

Re: Prey antitheft for Jolla
 
1 Attachment(s)
I have updated nodejs.
And, Prey have updated their nodejs version.

There are some small things to be aware of, when trying to update Prey to the latest version thru npm with the new version.
Primarily, they now are using Sqlite for some things.

So, in order to get new version of Prey installed, here is a smmall how-to:

First, uninstall prey.

Code:

sudo npm remove prey -g --unsafe-perm
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.

Update npm to latest version:

Code:

sudo npm install npm@latest -g
nan, and node-gyp (needed to compile sqlite) seems to be missing, and not installed by prey, so do that

Code:

sudo npm install nan -g --unsafe-perm
sudo npm install node-pre-gyp -g --unsafe-perm

Now, install prey

Code:

sudo npm install prey -g --unsafe-perm

Add systemd services, if you want to enable it by default

Code:

sudo nano /etc/systemd/system/prey-agent.service
Code:

[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

Ensure, that prey have permissions to use sudo, when needed (to access sqlite db, iwlist, and su

Code:

sudo nano /etc/sudoers.d/50_prey_switcher
Code:

prey ALL = NOPASSWD: /bin/su [A-z]*, !/bin/su root*, !/bin/su -*, /usr/sbin/iwlist
start prey (first reload systemd daemons)

Code:

sudo systemctl daemon-reload
sudo systemctl start prey-agent

Now, it should be working, and if you want to enable auto on reboot:

Code:

sudo systemctl enable prey-agent

rob_kouw 2016-12-15 14:56

Re: Prey antitheft for Jolla
 
Hi Neil,

I've got so much trust in the stuff you make for us, I'm happy to install things unsafe. :)

Things worked well up to the point of installing prey itself:

Code:

[root@Sailfish nemo]# sudo npm install prey -g --unsafe-perm
/usr/bin/prey -> /usr/lib/node_modules/prey/bin/prey

> sqlite3@3.1.8 install /usr/lib/node_modules/prey/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.8/node-v46-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.8 and node@4.4.0 (node-v46 ABI) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack    at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack    at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack    at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack    at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack    at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack    at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack    at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Linux 3.4.108.20161101.1
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm"
gyp ERR! cwd /usr/lib/node_modules/prey/node_modules/sqlite3
gyp ERR! node -v v4.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm' (1)
node-pre-gyp ERR! stack    at ChildProcess.<anonymous> (/usr/lib/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack    at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack    at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack    at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 3.4.108.20161101.1
node-pre-gyp ERR! command "/usr/bin/node" "/usr/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/prey/node_modules/sqlite3
node-pre-gyp ERR! node -v v4.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/lib/node_modules/prey/node_modules/sqlite3/lib/binding/node-v46-linux-arm' (1)
/usr/lib
`-- (empty)

npm ERR! Linux 3.4.108.20161101.1
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "prey" "-g" "--unsafe-perm"
npm ERR! node v4.4.0
npm ERR! npm  v4.0.3
npm ERR! code ELIFECYCLE

npm ERR! sqlite3@3.1.8 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.8 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!    node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!    npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!    npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!    /home/nemo/npm-debug.log


nieldk 2016-12-15 17:03

Re: Prey antitheft for Jolla
 
Rob: its trying to build the binaries.
you need to install
make, gcc and g++

Eminem 2016-12-18 17:08

Re: Prey antitheft for Jolla
 
So pkcon install make, pkcon install gcc, pkcon install g++?

nieldk 2016-12-18 18:43

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by Eminem (Post 1520710)
So pkcon install make, pkcon install gcc, pkcon install g++?

pkcon install


make
gcc
gcc-c++

objectifnul 2016-12-23 09:52

Re: Prey antitheft for Jolla
 
Perhaps time has come to gather all updated instructions for installation in one, clear and accurate document.

Eminem 2016-12-24 11:11

Re: Prey antitheft for Jolla
 
Or a installation file that does/have everything in it/gets it and installs it. :)

explit 2016-12-25 21:20

Re: Prey antitheft for Jolla
 
I'm asking, how to do this on Jolla Tablet...

The new Nodejs Version is only armv7hl

nieldk 2016-12-26 08:15

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by explit (Post 1521043)
I'm asking, how to do this on Jolla Tablet...

The new Nodejs Version is only armv7hl

yes, there is an older version on my merproject, but that is too old i believe.
After holidays i will try to get this to build on i486.
Posibly i will make an rpm package of prey.

rob_kouw 2016-12-27 16:52

Re: Prey antitheft for Jolla
 
Quote:

Originally Posted by nieldk (Post 1520717)
pkcon install


make
gcc
gcc-c++

Took me a while to try again. pkcon install make worked. This is my result for gcc:

Code:

[root@Sailfish nemo]# pkcon install gcc
Installing
Waiting in queue
Starting
Refreshing software list
Querying
Resolving dependencies
Fatal error: gcc-4.8.3-1.2.4.armv7hl requires glibc-devel, but this requirement cannot be provided
[root@Sailfish nemo]# pkcon install glibc-devel
Installing
Waiting in queue
Starting
Refreshing software list
Querying
Resolving dependencies
Fatal error: glibc-devel-2.19+6.7-1.8.1.armv7hl requires glibc = 2.19+6.7-1.8.1, but this requirement cannot be provided
[root@Sailfish nemo]#

What to do now?
Thanks, Rob

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 11:39.

vBulletin® Version 3.8.8