LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2009, 11:05 AM   #1
leonelsr
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Bind keys on console without login


Hi!
First I'd like to say sorry if my english is kind of confusing, because I am Brazilian, so this is not my 1st language...

I have a computer which I use only as a SMB file server, so it doesn't have a monitor, only a keyboard (otherwise it wouldn't boot up). It has text-mode ubuntu server installed.
The matter is.. I want to configure some keys of that keyboard (any keys, could be F1, F2, esc...) to do certain tasks (like starting or stopping some daemons, or even halt). But, since the console is never logged in, I can't use the inputrc, can I?

I mean, how do I bind keys even while the computer is on the "login: " prompt?

Thanks,
Leonel
 
Old 08-28-2009, 03:24 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
inputrc only works with shells - which means it only works in the context of a user logged in.

You might be able to use inputrc with a terminal lock like vlock. This way, you can have the console logged in, yet secured, and the inputrc controls will be effective.
 
  


Reply

Tags
bind, hotkeys, keys



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keys in bind -p or inputrc, what do these keys translate to? muha Linux - Newbie 0 03-06-2006 06:52 AM
How to bind the keys in Dell Inspiron 5100 muneebs Linux - Laptop and Netbook 1 04-05-2005 06:54 PM
how to bind windows keys on keyboard? David_g17 Fedora - Installation 2 06-01-2004 03:13 AM
Bind keyboard keys DigitalTygrrr Linux - Hardware 1 07-24-2003 10:23 PM
Is there some way to bind keys to minimize everything? Grim Reaper Linux - General 3 11-27-2002 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration