Re: control headless box with key presses
- From: The Natural Philosopher <a@xxx>
- Date: Fri, 31 Mar 2006 13:16:18 +0100
Manuel Panea wrote:
Hi. I have a "headless" Linux box (i.e. without a monitor and astart a getty..or write/mod your own...and attach it to the keyboard as part of the initialisation script.
keyboard) which is working fine. Now I would like to be able to hook
up a USB numpad and be able to execute some scripts by pressing some
keys, e.g. pressing key "1" would execute "Script_1" and so on.
Hooking up the USB numpad and loading the appropriate USB kernel
modules should be no problem, but how do I do that pressing a key
executes a command? "Usually" a tty driver would control the keyboard,
but I don't even want to log in, I just want to plug the keyboard in,
press a key and a command gets executed.
Thank you for any ideas.
-- Manuel Panea
If you start it up with a permission as a standard user, rather than root, and patch it to not require a password ..and get it to exec a shell, it will do what you want.
.
- References:
- control headless box with key presses
- From: Manuel Panea
- control headless box with key presses
- Prev by Date: control headless box with key presses
- Next by Date: Re: Cannot get networking to work
- Previous by thread: control headless box with key presses
- Index(es):
Relevant Pages
|