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)

pizzulicchio 2014-03-06 11:20

Re: [WIP] Prey - antitheft system
 
Could be possible to add the "Installation Guide" into the Description section of the app in Harbour ?

nieldk 2014-03-06 11:26

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by pizzulicchio (Post 1415668)
Could be possible to add the "Installation Guide" into the Description section of the app in Harbour ?

Yes, I have added link to first post in this thread to openrepos. Good suggestion :)

nieldk 2014-03-06 11:54

Re: [WIP] Prey - antitheft system
 
A little update :)
I found a screencaptur program, that does work. It has an issue with the screenshot being tinted red.
It is quite easy to install, and use.

You will need to edit:
/usr/share/prey/modules/session/platform/linux/functions

to this


Code:

get_screenshot() {
 run_as_current_user "/usr/bin/fbgrab $session__screenshot"
}

the code is here: https://code.google.com/p/fbcat/

EDIT: I have created an rpm file on my openrepos.

EDIT: Updated version of prey on openrepos, to include fbcat to enable this - still buggy - feature. I believe its useful, even if the screenshot has a reddish teing to it.

EmaNymton 2014-03-06 12:12

Re: [WIP] Prey - antitheft system
 
Why don't you use dbus to take a screenshot?

Code:

dbus-send --session --type=method_call --dest=org.nemomobile.lipstick /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot  string:/home/nemo/Pictures/screenshot_tmp.png

nieldk 2014-03-06 12:20

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by EmaNymton (Post 1415680)
Why don't you use dbus to take a screenshot?

Code:

dbus-send --session --type=method_call --dest=org.nemomobile.lipstick /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot  string:/home/nemo/Pictures/screenshot_tmp.png

Simply because I couldnt get that to work :)
I did try it

tigre-bleu 2014-03-06 13:07

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by nieldk (Post 1415639)

I installed it on my server as explained on the readme and it works but for production, I'd like to use apache2 with a NameVirtualHost.

However I didn't manage to configure everything correctly for ruby on rails and prey control panel. If anybody did, it would be great to share the howto :)

nieldk 2014-03-06 14:00

Re: [WIP] Prey - antitheft system
 
Quote:

Originally Posted by EmaNymton (Post 1415680)
Why don't you use dbus to take a screenshot?

Code:

dbus-send --session --type=method_call --dest=org.nemomobile.lipstick /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot  string:/home/nemo/Pictures/screenshot_tmp.png

You will need something like this for this to work (doesnt work though)

Code:


get_screenshot() {
 eval `dbus-launch --sh-syntax`
 run_as_current_user "dbus-send --address=$DBUS_SESSION_BUS_ADDRESS --type=method_call --dest=org.nemomobile.lipstick
/org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot string:$session__screenshot"
# run_as_current_user "/usr/bin/fbgrab $session__screenshot"
}


nieldk 2014-03-07 16:11

Re: [WIP] Prey - antitheft system
 
New update out:
Alarm sounds is now working (using gst-launch-0.10 with ffmpeg plugin)

Also, prey.service and prey.timer files are created automatically, and enabled/started by the rpm script.

pizzulicchio 2014-03-18 09:54

Re: [WIP] Prey - antitheft system
 
After the update to 1.0.4.20 all the configs of Prey has gone...


No more files into :
/etc/systemd/system

and no prey's script into :
/usr/share/prey/

I hope in the future that the jolla team will improve the OS update in a better way...
Every new OS it's, at the moment, a new beginning! :-)

juiceme 2014-03-18 10:05

Re: [WIP] Prey - antitheft system
 
Well, PREY is not your normal "userland application", it is more a feature of the OS, so no wonder it is run over when core OS is updated :D

That will happen in the future again, too, unless Prey is made into integral part of the OS... :D


All times are GMT. The time now is 02:50.

vBulletin® Version 3.8.8