Results 1 to 10 of 10

Thread: can you lock your keyboard

  1. #1
    Join Date
    Jul 2008
    Location
    montreal
    Beans
    54
    Distro
    Xubuntu 13.10 Saucy Salamander

    Lightbulb can you lock your keyboard

    The other day when I had to do some work on my server i was greeted with a load of random gibberish for the login prompt (due to some furry animal that runs around my apartment all day) and is a common occurrence in my household. Anyway I was hoping; is there a way to lock the keyboard on log out like windows can do for its workstations i.e. use ctrl+alt+del to gain access to the login prompt any help or advice is much appreciated

    like so:
    Last edited by killernat; April 28th, 2014 at 05:12 PM. Reason: added image

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can you lock your keyboard

    Unplug the keyboard.

    I have my server's keyboard sitting at an angle so they can't walk on it.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Jul 2008
    Location
    montreal
    Beans
    54
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: can you lock your keyboard

    yeh I kind of do the same but it tends to get knocked over even if I stuff it behind the monitor.

  4. #4
    Join Date
    Apr 2014
    Beans
    1

    Re: can you lock your keyboard

    Try this:

    1. sudo apt-get install vlock
    2. man vlock
    3. vlock
    or
    4. vlock -a

    Hope this helped.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can you lock your keyboard

    Quote Originally Posted by Zwisel View Post
    Try this:

    1. sudo apt-get install vlock
    2. man vlock
    3. vlock
    or
    4. vlock -a

    Hope this helped.
    I think that requires you to be logged in.

    @OP: This might help:
    http://unix.stackexchange.com/questi...creen-blanking

    #2 in particular - unloading the usbhid modules - if the server is headless that would stop the usb keyboard from working without unplugging it.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    531
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can you lock your keyboard

    Unplug the keyboard. If you need to access the server, just use PuTTY or plug the keyboard back in when you need it.

    I wouldn't install anything extra on the server to do something like this. I follow the KISS principle.

    LHammonds

  7. #7
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: can you lock your keyboard

    Get your keyboard id....
    Code:
    xinput list
    Code:
    /usr/bin/xinput --disable <id>
    /usr/bin/xinput --enable <id>
    ***Make sure you have a way to enable without a keyboard.

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: can you lock your keyboard

    Quote Originally Posted by LHammonds View Post
    Unplug the keyboard. If you need to access the server, just use PuTTY or plug the keyboard back in when you need it.

    I wouldn't install anything extra on the server to do something like this. I follow the KISS principle.

    LHammonds
    Yep.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #9
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,440
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can you lock your keyboard

    Hot plugging should only be done with a USB keyboard.

    PS2 connections are not hot-pluggable, and should not be used as such.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  10. #10
    Join Date
    Jul 2008
    Location
    montreal
    Beans
    54
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: can you lock your keyboard

    Quote Originally Posted by volkswagner View Post
    Hot plugging should only be done with a USB keyboard.

    PS2 connections are not hot-pluggable, and should not be used as such.

    exactly why I don't unplug it, it is a ps/2 keyboard.

    all of the suggested solutions are helpful but not rely useful because it would mean I would need to ssh in to enable the keyboard before I go to login at the machine, and 90% of the time when I need to work at the machine is because I cant ssh to it (or I happen to be on that end of the apartment). so I am looking for that a key combination to unlock the login and automatically lock when you logout


    it is a headless server

    the vlock looks quite useful but only to lock your active session (without using screen)
    Last edited by killernat; April 28th, 2014 at 05:12 PM.

Tags for this Thread

Bookmarks

Posting Permissions

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