Giter VIP home page Giter VIP logo

usblock's Introduction

USBLock

Copyright (C) 2013 Sven Steinbauer http://www.unlogic.co.uk

USBlock is a Python script that will lock and unlock your linux box using any old USB storage device as a key.

Dependencies

  • Daemonize (pip install daemonize)
  • dbus libraries
  • xlock installed to /usr/bin

** NOTE ** V0.1 only works on Linux. OS X and Windows will have to wait a little.

Usage

Before you launch USBLock for the first time you need to add your device to the list of registered devices. Run

usblock -a

and follow the onscreen prompts. When done you can confirm that the device was added by listing the known devices with

usblock -l

When you are satisfied run it with

usblock

You can optionally set a logging level with -d[1-5] which will log to ~/.config/usblock/usblock.log

Once running you will need to insert or re-insert your USB device you registered earlier. Once you remove it xlock should launch and your computer will be locked (you can unlock it with your usual password too). When you re-insert your device, xlock will be stopped and you computer unlocked. Some WMs may require you to move your mouse/press a key to unblank the screen.

You do not need to mount the device fully, it should be able to read the required information when you plug it in

Run

usblock -h

to see all available options.

usblock's People

Contributors

svenito avatar chriscooper avatar

Watchers

Vannen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.