Re: Howto: Use BlueProximity and your cellphone for security
I would love to have this... but my iPhone will not pair. After much research, i found out that the iPhone will only pair with audio devices. Has anybody got this to work with thier iPhone and how? I can see it with 'hcitool scan' and can see it when i browse devices but none of my services will connect and my iPhone will not find my computer... help?
Re: Howto: Use BlueProximity and your cellphone for security
Quote:
Originally Posted by
damis648
I would love to have this... but my iPhone will not pair. After much research, i found out that the iPhone will only pair with audio devices. Has anybody got this to work with thier iPhone and how? I can see it with 'hcitool scan' and can see it when i browse devices but none of my services will connect and my iPhone will not find my computer... help?
I also wasn't able to pair my cell and my computer by my cell...
I've installed "blueman bluetooth manager", you can find this in the synaptip packages ;). With that program I was able to pair the cell and this pc !
Good luck!
Re: Howto: Use BlueProximity and your cellphone for security
Quote:
Originally Posted by
Hegrow
I also wasn't able to pair my cell and my computer by my cell...
I've installed "blueman bluetooth manager", you can find this in the synaptip packages ;). With that program I was able to pair the cell and this pc !
Good luck!
Thank you for the suggestion, it worked perfectly! And than!k you for this guide! I wrote my own script that pauses my rhythmbox, sets me as away in pidgin, and locks the computer!
Re: 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 ---
Re: Howto: Use BlueProximity and your cellphone for security
I tested this with HTC phone, and it worked great. Had to test a couple of ports, "port # 5 was the best one"
Here you have the script that i wrote:
- (lock unlock script using input parameters: "LOCK or UNLOCK.")
Usage: ./script_name.sh <LOCK or UNLOCK>
Code:
#!/bin/bash
#
# Author: Gvartser - 20080617
#
ESPEAK="/usr/bin/espeak -v lancashire"
SCRCMD="/usr/bin/gnome-screensaver-command"
export ESPEAK SCRCMD
AmaroK(){
if [ "$(ps -ef | grep -v grep | grep amarok | wc -l)" != "0" ]
then
amarok ${1}
if [ "${1}" = "--pause" ]
then
sleep 3
fi
fi
}
SecureWS(){
case ${1} in
LOCK)
AmaroK --pause
${ESPEAK} "Terminal lockdown, initiated!"
${SCRCMD} -l
purple-remote setstatus?status=away
;;
UNLOCK)
${ESPEAK} "Terminal is beeing un locked!"
${SCRCMD} -d
AmaroK --play-pause
purple-remote setstatus?status=available
;;
esac
}
#######################
# Script starts here:
#
if [ "${#}" -ne "1" ]
then
echo "Invalid usage: ${0} <LOCK> or <UNLOCK>"
exit 100
else
SecureWS ${1}
fi
/g
Re: Howto: Use BlueProximity and your cellphone for security
the lock_on lock_off script use is great. i'm trying to tweak it for my own purposes. from reading the article, some replies from users and common sense i made this lock_on script
Code:
#!/bin/bash
#turn on screensaver
`gnome-screensaver-command -l`
#this turns the monitor off
`xset dpms force off`
#turn off music
kill `ps -ef | grep songbird | grep -v grep | awk '{print $2}'`
#Skype status to away
`change_availability.py AWAY`
#if inactive for 2 hour then shut down computer
sleep 7200
sudo shutdown -h now
I simply kill songbird because i can't pause it from command line, if anyone know how, i really like to know.
Skype away feature is cool, thanks for the tip crocowhile
i also want to suspend the computer if i'm away for a long while, but my pc doesn't come out of suspend clearly so i just shutdown which is ok for me. i used this page to make shutdown work.
my only problem is that ones the sleep features initiates it doesn't stop anymore even after lock_off.
lock_off script:
Code:
#!/bin/bash
#turn on screensaver
`gnome-screensaver-command -d`
#this turns the monitor off
`xset dpms force on`
#Skype status to Online
`change_availability.py ONLINE`
can't seem to fix that, anyone have an idea?
Re: Howto: Use BlueProximity and your cellphone for security
I have a question for you BlueProximity pros out there...
I've got my V3t phone attached and I'm trying to use it with BlueProximity for the basic locking and unlocking functionality. HOWEVER, my ATM always reads 0, even when at a distance.
I have tried every channel to find one consistent reading (10 is the RFCOMM channel, which ends up being the most consistent) but I find that when I walk away from my phone or leave my phone and walk away with my laptop, even at a significant distance, I'll get with 1 or 2 or 127.
At that point, my cell phone disconnects and it won't reconnect without me prodding the machine to discover the phone again.
All of my settings seem to be correct but I do have to do a hciconfig hci0 reset or hciconfig hci0 up to get it working the first time after a reboot.
Most of the time, my signal strength and quality are just plain erratic with this device yet it does pair and they know each other.
I'm using a Thinkpad x23 with the Bluetooth Daughter Card, it might be the quality of the card, but it seems to do fairly well when it is working. It just doesn't give me consistent results on proximity.
Any information would be great!
Re: Howto: Use BlueProximity and your cellphone for security
Can't seem to get this to work, I have paired my phone is advance, ports 1-5 show up as useable and I have gone through them all, I have set the settings really low to 5 feet 3 seconds, the distance bar jumps continually never just stays put with where my phone really is
Things that come to mind,
I never installed any drivers for my bluetooth dongle, the icon showed up and can see my phone so I am assuming its good
I am using a 64bit machine and install?
When trying to get the updated python I get this
"captain@captain:~$ wget http://security.ubuntu.com/ubuntu/po..._0.7.5_all.deb
--19:14:50-- http://security.ubuntu.com/ubuntu/po..._0.7.5_all.deb
=> `python-support_0.7.5_all.deb'
Resolving security.ubuntu.com... 91.189.88.37
Connecting to security.ubuntu.com|91.189.88.37|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
19:14:51 ERROR 404: Not Found."
I am using Windows Mobile device HTC Touch - Sprint
Anyone have some words of wisdom?
Re: Howto: Use BlueProximity and your cellphone for security
Hey people, i have just installed BlueProximity on my computer, i am running Xubuntu, and am unsure on what locking command (screen saver) to set it to, every thing els works fine, i used KBluetooth to pair my phone and every thing is running smoothly, apart from the main point, when i put my phone down stairs, it is well out of range and my window is minimized to the tray (so it wont think I'm on simulation mode) Nothing happens, the little key starts flashing and telling me that my phone is out of range, but still no locking to be seen. :(
Hopefully some of you might shed some light on the problem I'm having?
Hope to hear from you guys soon:)...
Brian A.K.A; Typetokill
PS: Here is The log, however it is not locking or unlocking!
Quote:
Mon Aug 4 03:06:33 2008 blueproximity: stopped.
Mon Aug 4 03:25:51 2008 blueproximity: screen is locked
Mon Aug 4 03:25:54 2008 blueproximity: screen is unlocked
Mon Aug 4 03:25:58 2008 blueproximity: screen is locked
Mon Aug 4 03:26:01 2008 blueproximity: screen is unlocked
Mon Aug 4 03:26:13 2008 blueproximity: screen is locked
Mon Aug 4 03:26:16 2008 blueproximity: screen is unlocked
Mon Aug 4 03:26:19 2008 blueproximity: screen is locked
Mon Aug 4 03:26:22 2008 blueproximity: screen is unlocked
Mon Aug 4 03:26:26 2008 blueproximity: screen is locked
Mon Aug 4 03:26:29 2008 blueproximity: screen is unlocked
Mon Aug 4 03:26:32 2008 blueproximity: screen is locked
Mon Aug 4 03:27:06 2008 blueproximity: screen is unlocked
Mon Aug 4 03:27:14 2008 blueproximity: screen is locked
Mon Aug 4 03:29:21 2008 blueproximity: screen is locked
Mon Aug 4 03:29:28 2008 blueproximity: screen is unlocked
Mon Aug 4 03:29:37 2008 blueproximity: screen is locked
Mon Aug 4 03:29:53 2008 blueproximity: screen is unlocked
Re: Howto: Use BlueProximity and your cellphone for security
Hey, I have a problem similar to CaptMorgan's. I don't know if this is related, but when I walk away, it slowly goes from 0 to 4 to 5 to 6 to 7 to 8 with at least a few seconds in between, even when I RUN the phone 20 feet away quickly. The same occurs when I run the phone back towards the computer. With that said, it takes a good minute to recognize that I'm gone and even longer to recognize that I'm back.
I'm using Verizon's EnV2 by LG with Bluetooth 1.2.
OH, and I also have the problem where the phone thinks the computer is a headset or something so if I call someone or someone calls me while it is connected, I can't hear anything and they can't hear me.