Reply
Thread Tools
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#111
Originally Posted by J4ZZ View Post
Brilliant, thanks a lot.

How about the prey service, do I need to make one myself?
It will add /etc/systemd/system/prey-agent.service

which should contain

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
and should be enabled by restart (systemctl enable prey-agent.service if not)
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#112
Originally Posted by CepiPerez View Post
Thanks for the info.
It was stolen, like my n9 and my old notebook. Yes, I have bad luck in excess.

I know what it does, but I'm wondering if what happen if I sent a signal to phone when it's disconnected from internet.
Does it get the signal when it's connected or I need to send signals til I get it?

I was planing to make an anti-thief app that checks in a web page if it's a stolen phone when active connection, and starts the magic by itself.
Of course, it was before I know there's already an app for this.
the phone checks every 15 seconds (and there is a 20 second timeout value), that is a total of 35 seconds pull from the phone to the server.
That is, in theory on Jolla. It may take longer.
But, the phone will push for actions when registering, and one action is to check if it is marked stolen, in which case a report will be send to the server.
You can see location (if locked), info on Hardware, Wifi/Net connection and available wlans.
 

The Following 2 Users Say Thank You to nieldk For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#113
Hi nieldk,

I'm a bit puzzled here. I installed prey in August 2014. On the preyproject website I can see the Jolla with all MAC addresses etc. Prey claims the version 0.6.3 is outdated. Also, there are no logs of recent contact.

I looked into the Jolly through SSH and found the folder /usr/share/prey nearly empty. Only a file config.rpmsave is to be found there.

I tried to reinstall through Warehouse, but get errors about perl-Net-SSLeay not being installed. That won't install as perl is missing. And I cannot find how to install perl right now.

Can you help me on this?

Thanks, Rob
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#114
Originally Posted by rob_kouw View Post
Hi nieldk,

I'm a bit puzzled here. I installed prey in August 2014. On the preyproject website I can see the Jolla with all MAC addresses etc. Prey claims the version 0.6.3 is outdated. Also, there are no logs of recent contact.

I looked into the Jolly through SSH and found the folder /usr/share/prey nearly empty. Only a file config.rpmsave is to be found there.

I tried to reinstall through Warehouse, but get errors about perl-Net-SSLeay not being installed. That won't install as perl is missing. And I cannot find how to install perl right now.

Can you help me on this?

Thanks, Rob
I suggest to do (as root) in terminal:

# pkcon install perl

Then you can install perl-Net-SSLeay. And perl-IO::Socket:SSL from my openrepos

Then, reinstall prey. (You should also install preu-UI by solbrit to more easy configure prey.
 

The Following User Says Thank You to nieldk For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#115
I think I found the culprit: version 1j of OpenSSL. I uninstalled it and installed your version 1h instead.

Code:
[root@Jolla Downloads]# pkcon get-depends openssl
More than one package matches:
1. openssl-1.0.1j-1.5.1.armv7hl [installed]
2. openssl-1.0.1h-1.armv7hl [openrepos-NielDK]
3. openssl-1.0.1j-1.5.1.source [jolla]
Please choose the correct package: pkcon install openssl-1.0.1h-1.armv7hl
Please enter a number from 1 to 3: 2
Getting dependencies
Waiting in queue
Starting
Querying
Resolving dependencies
Installed       bash-1:3.2.57-1.5.1.armv7hl                     The GNU Bourne Again shell
Installed       glibc-2.15-1.3.1.armv7hl                        Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC)
Installed       libgcc-4.6.4-1.1.4.armv7hl                      GCC version 4.6 shared support library
Available       openssl-1.0.1h-1.armv7hl                        Secure Sockets Layer and cryptography libraries and tools
Installed       perl-2:5.16.1-1.1.14.armv7hl                    Practical Extraction and Report Language
[root@Jolla Downloads]#
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following User Says Thank You to rob_kouw For This Useful Post:
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#116
Originally Posted by rob_kouw View Post
I think I found the culprit: version 1j of OpenSSL. I uninstalled it and installed your version 1h instead.

Code:
[root@Jolla Downloads]# pkcon get-depends openssl
More than one package matches:
1. openssl-1.0.1j-1.5.1.armv7hl [installed]
2. openssl-1.0.1h-1.armv7hl [openrepos-NielDK]
3. openssl-1.0.1j-1.5.1.source [jolla]
Please choose the correct package: pkcon install openssl-1.0.1h-1.armv7hl
Please enter a number from 1 to 3: 2
Getting dependencies
Waiting in queue
Starting
Querying
Resolving dependencies
Installed       bash-1:3.2.57-1.5.1.armv7hl                     The GNU Bourne Again shell
Installed       glibc-2.15-1.3.1.armv7hl                        Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC)
Installed       libgcc-4.6.4-1.1.4.armv7hl                      GCC version 4.6 shared support library
Available       openssl-1.0.1h-1.armv7hl                        Secure Sockets Layer and cryptography libraries and tools
Installed       perl-2:5.16.1-1.1.14.armv7hl                    Practical Extraction and Report Language
[root@Jolla Downloads]#
I see.
I will try to create a new build.

Bear in mind, iam also working on a more recent version.
Prey switched now to using nodejs.

I have it partly working. But at the moment it needs a change of mer-release or prey server wont recognize jolla.
 

The Following 2 Users Say Thank You to nieldk For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#117
Now what? preyUI crashes on me. Starting the service with the above code (or similar) results in:
Code:
[root@Jolla system]# systemctl enable prey.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#118
Originally Posted by rob_kouw View Post
Now what? preyUI crashes on me. Starting the service with the above code (or similar) results in:
Code:
[root@Jolla system]# systemctl enable prey.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
Please try

systemctl enable prey.timer
 
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#119
In preyUI I have to enter my root password. Normally I enable Remote connection - and root password - only when I want to SSH into the Jolla.
Do I have to have Remote connection enabled all the time?
Thanks!
EDIT: probably not, only when I wish to stop the timer from preyUI.
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it

Last edited by rob_kouw; 2015-03-01 at 17:21.
 
Posts: 1,290 | Thanked: 4,319 times | Joined on Oct 2014
#120
Originally Posted by rob_kouw View Post
In preyUI I have to enter my root password. Normally I enable Remote connection - and root password - only when I want to SSH into the Jolla.
Do I have to have Remote connection enabled all the time?
Thanks!
EDIT: probably not, only when I wish to stop the timer from preyUI.
Remote connection .... hmmm..... never tried with this disabled.
But, good point indeed. Should not be needed.
 
Reply


 
Forum Jump


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