Active Topics

 


Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
I have decided to create a seperate thread for Prey on Sailfish, as I believe this is close enough to be working, allthough with some small efforts still needed to be changed in configuration files manually.

My version of prey is on my openrepos for you to test. It should install needed extra packages as needed (openssl-1.0.1f, perl modules and Imagemagick)

I am still working on a few features missing.
* Streaming video from cam (I believe we need a more recent gstreamer for this)
* Alert (needs to find where bg image is stored)
* Lock (remember to enable Jollas lock)

What is working:
* Get geo location
* Get network information
* Get active connections
* Get nearby hotspots
* Traceroute
* Get running programs
* Currently logged in user
* NEW Screenshot (has a red colour)
* NEW Alarm

There is some manual configuration to do after installing the rpm:

Edit:

Code:
/usr/share/prey/config
add your API key to the line (see image)
Get it from https://panel.preyproject.com/profile

Code:
api_key=''
add your email to the line

Code:
mail_to='mailbox@domain.com'
change these lines to fit your email/ISP

Code:
smtp_server='smtp.gmail.com:587'
smtp_username='username@gmail.com'
smtp_password='password'
Note that password above is base64 encrypted, you can get your base64 password like this

Code:
$ echo -n "password" | openssl enc -base64
UPDATE prey.service and prey.timer are now placed in /etc/systemd/system/ folder by installation of the rpm file, no need to manually create them, also, service is started and timer enabled

When you run (as root)

/usr/share/prey/prey.sh

first time, it should register the device, and give some terminal output that will show you wheter the connection/registration is successfull.
The device will be identified at prey as being 'linux' you cn edit this name to fx 'Jolla'.

To query status of prey, you can use
systemctl status prey.timer and
systemctl status prey.service

Changelog:
2805-2014 Version update
requires cron (fcron)
bugfixes (missing laptop-detect
0703-2014 Changed script to sound alarm, added systemd service and timer files, enables service and starts timer by rpm installation
0603-2014 Added fbcat as a requirement and added a (buggy) screenshot capability (picture has a red teint).
Attached Images
 

Last edited by nieldk; 2014-05-28 at 22:27. Reason: Added alarm function
 

The Following 25 Users Say Thank You to For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#2
Here are the source of the Prey build on my openrepos
They are all from official sources, untouched and can be build using attached spec files with rpmbuild.

My QT programming is just beginning, so, do feel free to use this for creating a nice GUI to configure and monitor Prey

/NielDK

Prey (0.6.2)
Source:
https://s3.amazonaws.com/prey-releas....6.2-linux.zip

And the dependencies of Prey:

Imagemagick (6.8.8-7)
Source:
ftp://ftp.imagemagick.org/pub/ImageM...6.8.8-7.tar.gz

OpenSSL (1.0.1f)
Source;
http://www.openssl.org/source/openssl-1.0.1f.tar.gz

Perl modules:

IO::Socket::SSL (1.967)
Source:
http://search.cpan.org/CPAN/authors/...L-1.967.tar.gz

Net::SSLeay (1.58)
Source:
http://search.cpan.org/CPAN/authors/...ay-1.58.tar.gz
Attached Files
File Type: gz prey6.tar.gz (8.0 KB, 134 views)

Last edited by nieldk; 2014-03-07 at 20:20. Reason: Updated for placeholder of sources
 

The Following 3 Users Say Thank You to For This Useful Post:
Posts: 32 | Thanked: 33 times | Joined on Sep 2012 @ Toulouse, France
#3
Do you intend to add a control panel to perform the configuration?
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#4
Nice to see openrepos version coming too. Do you have sources hosted in some git repo?
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following 2 Users Say Thank You to rainisto For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#5
no, on my laptop, but I will post here later .
Would be nice to see a friendly UI for start/stop/status/config etc.
 

The Following User Says Thank You to For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#6
Originally Posted by tigre-bleu View Post
Do you intend to add a control panel to perform the configuration?
Would love to, once I get to post sources here, perhaps someone beat me to it
 
Posts: 12 | Thanked: 10 times | Joined on Apr 2012
#7
Thanks a lot for you effort! I am looking forward to giving this a try. I just got one question regarding the whole setup: I want to install the Prey server software on my own VPS, but I somehow can't seem to find the source code. Would you be so kind to post a link to it in your first post?
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#8
Originally Posted by mind_the_gap View Post
Thanks a lot for you effort! I am looking forward to giving this a try. I just got one question regarding the whole setup: I want to install the Prey server software on my own VPS, but I somehow can't seem to find the source code. Would you be so kind to post a link to it in your first post?
its on their github
https://github.com/prey/prey-standalone-control-panel
 
Posts: 57 | Thanked: 20 times | Joined on May 2010 @ Florence, Italy
#9
Thank you nieldk! Great work!

At the first post into the CODE section correct :

# Start timer, as root
systemctl start myscript.timer
# Enable timer to start at boot
systemctl enable myscript.timer

in

# Start timer, as root
systemctl start prey.service
# Enable timer to start at boot
systemctl enable prey.timer
 

The Following User Says Thank You to pizzulicchio For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#10
Originally Posted by pizzulicchio View Post
Thank you nieldk! Great work!

At the first post into the CODE section correct :

# Start timer, as root
systemctl start myscript.timer
# Enable timer to start at boot
systemctl enable myscript.timer

in

# Start timer, as root
systemctl start prey.service
# Enable timer to start at boot
systemctl enable prey.timer
Oops
Thanks for this, It is corrected in first post.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:49.