monojohnny made a cool script that makes the computer beep when your phone is stolen

Howto: Use BlueProximity and your cellphone for security


And an alternative (crappy!) DIY method can be tried using the following simple shell script – I include this here for fun only. Enjoy !

— CUT HERE —-
#!/bin/sh
# “bluetooth_alarm.sh”.
# Shell script to beep annoyingly at you as your bluetooth enabled phone
# is stolen from you in your local coffee shop.
#
# Fun: 6/10 – “Quite Fun”
# Usefulness: 2/10 “Not Very”
# Phone needs to be connected via bluetooth – just ‘browse device’ initially
# From KDE bluetooth icon, then run the script.
#
# Install ‘beep’ for this to work to its full potential
# “sudo apt-get install beep”
#
# ‘Tested’ on ubuntu 8.04, Dell Optiplex GX110, with USB bluetooth dongle
# ‘lsusb’ output:
# “0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)”
# (Replace XX:XX:XX:XX with your device’s bluetooth address of course!)
QUALITY=255
while [ “$QUALITY” -ge 200 ]
do
QUALITY=`hcitool lq XX:XX:XX:XX |awk -F”:” ‘ { gsub(/ /,””); print $2 } ‘`
printf $QUALITY”.”
sleep 2
done
beep -l 100 -f 300 -r 15
— CUT HERE —

Advertisements