Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.