Mint/Ubuntu easy installer for you all!

Hey guys,

First of all, this is my first post here so sorry if it’s the wrong section. I work in IT security and programming, I use Prey for personal use but soon hoping to get the company I work with involved too.

Anyway, playing with Prey on most platforms I’ve made a few fixes for my own client. Recently however I wanted to put it on Mint and ran into a few issues with the Packages, on the software manager it’s outdated, and the direct Ubuntu download link has dependency issues. So, after messing around I created a quick install script that works smoothly (will with with amd64 Mint, Ubuntu, other Debian distros) you can add others by just changing the URL, simply paste the below code in your terminal (as root) and sorted, thought I’d share, cheers:

#!/bin/bash
echo "Install Prey Project on Mint/Ubuntu amd64 - Craig Fox"
cd; sudo apt install giblib1 libimlib2 mpg123 scrot streamer xawtv-plugins -y
apt --fix-broken install -y
wget https://downloads.preyproject.com/prey-client-releases/node-client/1.8.1/prey_1.8.1_amd64.deb
dpkg -i prey_1.8.1_amd64.deb
echo "Launching setup control panel, link your account or create a new one, then you're done!"
/usr/lib/prey/current/bin/prey config gui -f
echo "alright, all done, now opening your online cpanel"
exit; 
xdg-open https://panel.preyproject.com/app

Any issues let me know

1 Like

At least on my machine, this does not solve the problem. If fact once the config GUI opens and I log into my existing account it results in the same error I have documented above:
EXCEPTION! 139830991480640:error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac:…/deps/openssl/openssl/ssl/s3_pkt.c:1472:SSL alert number 20

Error: 139830991480640:error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac:…/deps/openssl/openssl/ssl/s3_pkt.c:1472:SSL alert number 20

at Error (native)

John

This is nothing to do with Prey I don’t think, it’s an issue with TLS. Do you have a webserver or something similar running?

I run Linux Mint 19 that came pre-installed on a mintbox2 pro. To my knowledge there isn’t web server running.

I’ve got a feeling this might be to node or openssl, but hard to tell as I cant replicate the issue, this seems very unique to you, likely to do with your mint install im guessing (tricky one)…

Try this though I’ve thrown together (run as root):

echo "check sys updates/remove crap etc"
apt-get update; apt-get upgrade -y; apt-get autoremove -y
echo "install nodejs and install/update openssl"
apt install nodejs; apt-get install openssl
echo "display java version, as could be an issue"
java -version
exit

I ran the above as root. It did NOT fix the problem; same errors were reported as previously noted.
The following java versions were reported back:
openjdk version “10.0.2” 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)

It’s to do with your setup then, you’ll have to figure it out, it’s nothing to do with Prey.

Note: updated script to install prerequisites first :slight_smile:

Hi, it might be related to curl.
This is a very related issue in stack overflow that might give you some clue:
https://stackoverflow.com/questions/5718772/sslv3-alert-bad-record-mac-error-when-using-curl-over-https

Hey Foxy, thanks for the script.
I got stuck myself at later steps, but this post really helped in finishing the device activation.

Essentially the installation did not complete in a clean way, so you have to skip using the binaries and use the prey-config.py file directly, inside the installed /usr/local/lib dir.

Prey is still working/tracking correctly though :+1: