![]() |
Re: [WIP] Prey - antitheft system
Prey runs perfectly, but can't install fcron.
Warehouse and pkcon install / install-local gives error Installation aborted by user, even I didn't abort it manually. Any suggestions? |
Re: [WIP] Prey - antitheft system
Quote:
$ devel-su # zypper in fcron-3.0.6-3.armv7hl.rpm |
Re: [WIP] Prey - antitheft system
Quote:
I am going to ask anyway since it is important in an indirect way though... :D So, how can I make cron (fcron in this case) keep real time on Jolla? I have installed fcron-3.0.6-3 but I noted that it behaves in not so nice way; if my Jolla is sleeping (like, display off) and a crontab event should trigger it just doesn't wake up. The event is missed completely, not even deferred to when the device wakes up I believe. |
Re: [WIP] Prey - antitheft system
@juice Yes, that observation is true. fcron is an attempt to see if it would work better than systemd timers (which also have this issue).
Also, (f)cron would enable prey to change the run schedule. But.... the device (OS) seems to not adhere to running tasks needs. Even WLAN seems to still suffer from this sleep issue. Sadly, I have still to figure out how to fix this. |
Re: [WIP] Prey - antitheft system
Quote:
I remember there was some talk of this before, was it so that there are some special libs you need to link your code against to make it not to go to sleep when the device goes to low power mode? |
Re: [WIP] Prey - antitheft system
Quote:
Unfortunately its not that well documented, so you need to look into tests dir and read the sources. And its written in C. Easier C++ API has luckily been introduced that also allows periodic waking from suspend, so you can for example wake up every 15 or 30 mins: https://github.com/nemomobile/nemo-k...y_periodic.cpp |
Re: [WIP] Prey - antitheft system
Quote:
Which makes me wonder why people put packages in repos that are not tested/working as expected in the first place. |
Re: [WIP] Prey - antitheft system
Quote:
As for "not test/working as expected" Well, disable my repo, and do your sh.. yourself. |
Re: [WIP] Prey - antitheft system
Quote:
Quote:
I would not have mind to look into the issue for you, but given your agressive attitude, I think it is better not to. Nevertheless I hope you can fix the issue for people that did install your fcron. |
Re: [WIP] Prey - antitheft system
I know you contribute a great deal, as for my attitude, Apology - but I am a bit tired of certain (not you) ppl and their attitudes also.
As for testing. I do test, and when I feel it could have a certain amount of interrest, I publish, here, or in openrepos. fcron is an example, it works, but have problems with device goong to sleep. As so do most of apps and services already present in a released device OS! Therefore my opinion is, that this issue could be considered minor, considering the benefits of prey and enabling a usefull feature to track a stolen device, or ? |
Re: [WIP] Prey - antitheft system
[root@Jolla nemo]# crontab -l
21:25:12 listing root's fcrontab # m h dom mon dow command */10 * * * * /usr/share/prey/prey.sh > /var/log/prey.log 2>&1 any ideas why a heck that doesn't run prey automatically? |
Re: [WIP] Prey - antitheft system
Quote:
|
Re: [WIP] Prey - antitheft system
Hey, i got a screenshot from jolla to prey but it is black. Is it black because screen was black when it was taken?
Thanks in advance. Best regards az2111 |
Re: [WIP] Prey - antitheft system
i have just reinstalled Prey after a full reset of my jolla phone.
Now i'm on 1.0.8.19 I have started the script for the first time but this is the unhappy output: [root@Jolla ~]# /usr/share/prey/prey.sh ## PREY 0.6.3 spreads its wings! ## Linux Jolla 3.4.91.20140612.1 #1 SMP PREEMPT Mon Jun 16 17:24:16 UTC 2014 armv7l armv7l armv7l GNU/Linux ## Thu Jul 17 23:33:47 CEST 2014 -- Looking for connection... -- Got network connection! -- Checking URL... == Verifying status... No such schema 'org.gnome.system.proxy.http' !! Got invalid response! This probably means there is a connection issue. -- Please check your firewall settings, allowing Curl to connect to https://31668.control.preyproject.co...ces/0uj51r.xml through port 80. -- If you use a proxy server please check the try_proxy setting in the config file. -- The response we got was: curl: (51) SSL: no alternative certificate subject name matches target host name '31668.control.preyproject.com' !! Got invalid response! This probably means there is a connection issue. -- Please check your firewall settings, allowing Curl to connect to https://control.preyproject.com through port 80. -- If you use a proxy server please check the try_proxy setting in the config file. -- The response we got was: curl: (51) SSL: no alternative certificate subject name matches target host name '31668.control.preyproject.com' -- Cleaning up! No status update from Prey website.... is it a temporary problem? have tested with my home wifi connection and mobile operator too.... same result... |
Re: [WIP] Prey - antitheft system
no ideas ?
|
Re: [WIP] Prey - antitheft system
Quote:
Then, if that works, install v6.3 |
Re: [WIP] Prey - antitheft system
Wow! it works.
Installed 6.2, done the first registration, updated to 6.3 and now it's all fully working. Thank you |
Re: [WIP] Prey - antitheft system
Yes, I got it working! I installed v6.2 and did the first registration. That worked, the Linux Desktop showed up in my preyproject account. Then I checked the service running on my Jolla, and something seemed to be wrong. I updated to v6.3-2 and then 'systemctl status prey.service' works OK. Thanks!
|
Re: [WIP] Prey - antitheft system
Sorry if it seems out of place, but can I install a prey instance on my own server without relying on third-parties? If no, is there an anti-theft solution that allow me to do this?
|
Re: [WIP] Prey - antitheft system
Quote:
Actually, running the standalone version on own server opens more options. install standalone version on your server, have a look here: https://github.com/prey/prey-standal...ster/README.md |
Re: [WIP] Prey - antitheft system
Quote:
Thank you ! So basically the phone will only ping to my server and my server only to handle all Prey features ? I assume that you have to install the standalone version + the control panel for it to work correctly, am I right ? |
Re: [WIP] Prey - antitheft system
Quote:
But yes, install those on your server, and make the changes in prey config file on phone, so that it pings your server. Given the very positive reply to my fundraiser, I will definately look more into a more complete solution to enable all features, and possibly think of what else could be handy. I also would like to figure out a way to secure the phone - the services - so that it hopefully can be more 'tricky' for a thief to disable prey. |
Re: [WIP] Prey - antitheft system
@nieldk : at last, you made those anti-theft systems really interesting for Jolla users. Thanks !
|
Re: [WIP] Prey - antitheft system
Too bad I've missed this app when I had my jolla.
Can you tell me how does it works? How does it checks if the phone is missing? |
Re: [WIP] Prey - antitheft system
Quote:
I thought you were about to get one around this time. Was it that one? Quote:
By the way, rainisto has mentioned that Jolla plans to officially integrate it into SailfishOS. |
Re: [WIP] Prey - antitheft system
I have just build nodejs. https://build.merproject.org/package...nielsen/nodejs
So, You can now install the newest version (1.3.6) with npm as instructed here: https://github.com/prey/prey-node-cl...ster/README.md It still not 100% good, but you can track the device, get reports and more. |
Re: [WIP] Prey - antitheft system
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. |
Re: [WIP] Prey - antitheft system
Quote:
Am I missing something? Also no services were installed... Edit: found /etc/prey/prey.conf but there is no option to set email and smpt server... :( Any help would be nice... :) tia |
Re: [WIP] Prey - antitheft system
1 Attachment(s)
Quote:
Code:
[nemo@Jolla ~]$ prey config account Code:
[nemo@Jolla ~]$ prey prey console prey config account setup will ask you for your account credentials, and set up the configuration |
Re: [WIP] Prey - antitheft system
Brilliant, thanks a lot.
How about the prey service, do I need to make one myself? |
Re: [WIP] Prey - antitheft system
Quote:
which should contain Code:
[Unit] |
Re: [WIP] Prey - antitheft system
Quote:
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. |
Re: [WIP] Prey - antitheft system
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 |
Re: [WIP] Prey - antitheft system
Quote:
# 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. |
Re: [WIP] Prey - antitheft system
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 |
Re: [WIP] Prey - antitheft system
Quote:
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. |
Re: [WIP] Prey - antitheft system
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 |
Re: [WIP] Prey - antitheft system
Quote:
systemctl enable prey.timer |
Re: [WIP] Prey - antitheft system
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. |
Re: [WIP] Prey - antitheft system
Quote:
But, good point indeed. Should not be needed. |
All times are GMT. The time now is 17:39. |
vBulletin® Version 3.8.8