Tuesday, October 16, 2007

btlock: security through bluetooth

btlock is a simple perl script for locking the gnome screensaver when a user is not in close proximity to their computer. This is done by periodically pinging a user specified bluetooth device address (preferably something that the user is always carrying, like a cell phone) using l2ping. If the device is available (returns echo requests), btlock disables the screensaver lock. If not, btlock enables the lock. This is easily done using gnome's gconf tool.


If it is not obvious, this script was designed for the GNOME environment on Linux.

To set up:

  • make btlock.pl an executable (chmod a+x btlock.pl)
  • put btlock.pl in a binary folder (I went for /usr/local/bin)
  • add a crontab entry for the root user (l2ping requires root)

Arguments for btlock are:

btlock.pl (linux user) (device address) [ping timeout=10]

Someday this noble program will be ported to windows.

Download

No comments: