Please note the phone has to be RW mode to install prey. Also the device in RW could risk your phone loosing OTA updates so youve been warned if your phone starts to smoke its not my fault!!!prey
Go here and make a free prey account https://preyproject.com/
First enanable developer mode in settings / about this phone
Connect phone and make sure screen isnt lock and run this command on the laptop connected to the phone
phablet-config writable-image
The phone will reboot and now be in RW mode
Unlock the screen and open a terminal on the laptop and type
adb shell

in the phone terminal

sudo apt-get update
sudo apt-get install curl git
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash –
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

this is all the packages required now we install prey with npm

sudo npm install -g prey

it will get the package and build, when it finishes type command below

sudo prey config hooks post_install
this will configure the setup and then type
sudo prey config account setup
and enter in the account details you signed up with at the prey project

next

cd /usr/lib/node_modules/prey/lib/agent/providers/network/

and sudo rm linux.js

then wget http://wayneward.co.uk/wp-content/uploads/2016/02/linux.js

chmod +x linux.js

(if you get no command type sudo apt-get install wget)

the above is a fix we add to make it work on ubuntu touch.

now try this command to get location

sudo prey -r “get location”

this should show on the online prey map with current location. I do a reboot here and it works properly 🙂

get the prey app from the ubuntu touch app store! here https://uappexplorer.com/app/prey.infowaynewardcoukscreenshot20160228_130354387

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from a day in the life of wayne ward....

Subscribe now to keep reading and get access to the full archive.

Continue reading