May 202011
 

blueNow, to tell the true this is a semi useful project, the most important aspect it’s the cool factor that it bring. You move away from your PC and it lock, turn off the screen and put in pause your Media player. Than you come back and everything starts again automatically. Cool ? it’s BlueProximity.


What is this ?

This software helps you add a little more security to your desktop. It does so by detecting one of your bluetooth devices, most likely your mobile phone, and keeping track of its distance. If you move away from your computer and the distance is above a certain level (no measurement in meters is possible) for a given time, it automatically locks your desktop (or starts any other shell command you want).

Once away your computer awaits its master back – if you are nearer than a given level for a set time your computer unlocks magically without any interaction (or starts any other shell command you want).

Installation

The package it’s available for Debian, Ubuntu, Fedora and Gentoo, installing from the repository it’s useful because it will install also all the blue tooth stack, a requisite for this software to work properly.

For Ubuntu and Debian use the usual:

sudo aptitude install blueproximity

Settings

Setting up the phone

First you should pair your computer and your mobile phone. Once being paired your mobile won’t ask for a password when a connection from the computer to the phone is made. There is still the possibility that your mobile phone will ask you to accept the connection which is an additional layer of security appart from the pairing mechanism. Your phone should have an option to disable this question for all or even one special paired device. Disable that question as not disabling it renders BlueProximity quite unusable since you must always do something to your phone when you come back to your computer.

Connecting the phone

After setting up the phone computer pair you can now move on and configure BlueProximity. After the first start you should see the settings window. If you closed that by accident or it did not show up (because you had installed BlueProximity earlier), in this case you see the BlueProximity icon in the notification area just click on it to make the settings screen appear.

In the first tab we can configure our phone in blueproximity, to do this we’ll do a scan and once found the phone address we’ll select it.
To find out that address you should configure your phone to bluetooth visible mode. It may be the standard setting but you never know… Now click on the Scan for devices button. A scan takes about 10 seconds. You should find your device in the list now, maybe among other bluetooth devices around your place.

blueproximity
Setup distance detection

Now BlueProximity should already start working but there might be further tuning of distance parameters needed. Note: Your screen will never be locked as long as the settings screen is shown. This way you can change the detection parameters and test them. You will notice how the icon changes if you play with the values.

On the second Tab select distance and duration for lock/unlock.
Once meet these requirement the corresponding action (lock or unlock) will be triggered.

Setup of locking actions

Switch to the third tab named locking to see the following screen:

blueproximity3

The upper section refers to the commands that BlueProximity will execute for the according event. The preset is the command to lock/unlock the screen using the GNOME desktop screensaver. If you are a KDE user you should activate the combobox and select the xscreensaver-command entry. Please note that this will only work with the KDE integrated version of xscreensaver. The original xscreensaver does not include an unlock command.

The proximity command is a command that is executed every given interval while the user is in reach (the screen is unlocked). That way you can e.g. prevent your screensaver from becoming active while you are near. Actually this is the standard setup.

The lower section refers to logging of state changes. The syslog entry allows you to generate a syslog message on every state change coming from the given logfacility and the loglevel notice. You may also additionally or exclusively log to a certain file.

But you can turn your monitor off at the time of lock which will save Electricity when you are away from your computer and switch it on when you return. Using Following Commands to lock&turn off and “unlock & turn On the monitor
Locking Command: gnome-screensaver-command -l && xset dpms force off
Unlocking command: xset dpms force on && gnome-screensaver-command -d

And with this you have finished the basic setup of blueproximity.

For more information and the list of FAQ check the official site
Script: Make your computer beep if the phone go away
Script: single, monolithic script that handles away, available, status update messages, and proximity “poking”


Popular Posts:

flattr this!

  3 Responses to “BlueProximity – Unlock your Computer with your phone”

  1. Cool!! :)

  2. Having your maching unlock when your cellphone is close makes your system LESS secure, not more. Bluetooth devices are trivial to imitate without even touching them. This is akin to using only MAC address filtering on your router.

    PLEASE don’t use this for unlocking your machine. Even using it to lock it is a bad idea because it gets you out of the “lock, then walk away” routine.

  3. Hi DarwinSurvivor,

    it is always a little more complex then thought of before. I don’t do a btping and that’s it. It uses a rfconn-connection that needs pairing first. It could lead to a problem if there are implementation bugs in the btstack that support unpaired, insecure rfconn-connections to formerly paired devices. I wouldn’t bet on it but this should be the standard implementation.
    Additionally this tool isn’t for the high secure environments even though it can help there. Locking and unlocking are not burned in commands but you can execute any command you want to (even those which do not lock/unlock anything). So use it to stop your webradio/music player if you leave your system. Set the away status on your favourite intant messenger the minute you walk away. Do anything, be creative.

    Regards,
    Lars

 Leave a Reply

(required)

(required)


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>