Results 1 to 1 of 1

Thread: BT4, fluxbox and an auto-locking screen

  1. #1
    Member macphail's Avatar
    Join Date
    Jun 2010
    East Coast, USA

    Default BT4, fluxbox and an auto-locking screen

    Having BT installed on a dedicated system is extremely convenient. Using BT in the workplace is a no-brainer (assuming you are, actually, in "the business").

    One of the issues that I have had to work around, however, is that locking the screen is a bit of a chore. Not only do we mandate a 15-minute lockout in the workplace, but these systems in particular are obviously extremely sensitive. Keeping your tools, actions and data secure is simply good practice, especially for us.
    The largest hurdle; xscreensaver simply refuses to function under root logon. While one could certainly follow lupin's excellent guide to creating non-root users, that introduces other issues to the mix.

    This isn't an extremely (or even moderately) complex tutorial or hack, just a few quick steps that will get you an auto-locking screen using BT and fluxbox. This isn't the only solution, but certainly simple and effective.

    First, let's install two packages:
    apt-get install xautolock xlockmore

    ...and now, let's open up the fluxbox startup script (from the terminal, in this example):

    pico ~/.fluxbox/startup

    ...and let's add a couple of lines (make sure that you add them above 'exec fluxbox', which should remain last):
    # autolocks X screen  after 15 minutes of inactivity
     xautolock –time 15  –locker “xlock –mode blank” –secure &
    That's it. No mess or fuss. Save the file (Ctl+O) and exit (CTL+X). Go ahead and manually run the xautolock command as it is listed above to start it now (or just restart fluxbox). You should read the man pages for both xautolock and xlock to get a feel for the options that you have available. xlock, in particular, is loaded with a ton of useful switches.

    It should be noted that you can use xautolock for automating just about anything, not just screensavers.

    Also, for extra credit, I most often install and configure 'oblogout' from launchpad, modifying ~/.fluxbox/menu to have a single "exit" entry that points to it. Eye candy, really.... but small and clean.

    Hope I made someone's day a tiny amount easier to deal with.
    Last edited by macphail; 12-03-2010 at 08:47 PM. Reason: oblogout gets props

Similar Threads

  1. How to autologin / auto startx / auto booting
    By lordplagueis in forum BackTrack Howtos
    Replies: 18
    Last Post: 04-21-2011, 06:32 AM
  2. PC locking up.
    By {LCD}STELIOS in forum Beginners Forum
    Replies: 0
    Last Post: 11-05-2010, 02:52 PM
  3. How to autologin / auto startx / auto booting
    By imported_micked in forum OLD BackTrack 4 Howto
    Replies: 25
    Last Post: 03-18-2010, 10:07 PM
  4. USB flash device [auto mount & auto play]
    By -=DDOS=- in forum OLD BackTrack 4 Bugs and Fixes
    Replies: 3
    Last Post: 06-28-2009, 08:32 AM
  5. Encrypting/Locking my USB OS
    By cynicalpsycho in forum OLD Newbie Area
    Replies: 48
    Last Post: 05-11-2009, 08:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts