LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2015, 04:30 AM   #1
aavika
Member
 
Registered: Dec 2014
Posts: 82

Rep: Reputation: Disabled
disable keyboard keys


i am using centos linux. is it possible to disable keys without using X server during boot-up of linux???

thanks..
 
Old 04-28-2015, 06:07 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You mean in Virtual Terminal (VT). In VT 'loadkeys' is used.
 
Old 04-28-2015, 06:13 AM   #3
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
no..no.. not in virtual terminal
linux terminal
 
Old 04-28-2015, 06:20 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes. Virtual terminal is the proper name and means Linux terminal.

Read this HOWTO.
 
Old 04-28-2015, 06:35 AM   #5
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
when the system on, after boot-up.it asked for username and passwrd. that time which terminal comes, i want.

i dont want after "startx" application-> system tools-> terminal.. not this terminal..
sorry i dont knw the exact name of any terminal
 
Old 04-28-2015, 07:05 AM   #6
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
can anyone tell me.. how to convert below javascript code to shell script code

document.onkeydown = function (e) {
if(e.which == 9){
return false;
}
}

'9' is tab key code
 
Old 04-28-2015, 07:14 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
when the system on, after boot-up.it asked for username and passwrd. that time which terminal comes, i want.
This is what Virtual Terminal is.

Quote:
can anyone tell me.. how to convert below javascript code to shell script code
You should have opened new thread for this post. Ask moderator to help and move it.

Any way read Bash Guide from TLDP.
 
Old 04-28-2015, 07:19 AM   #8
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
okay so sorry...
what is loadkeys in VT??
 
Old 04-28-2015, 07:40 AM   #9
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
'loadkeys' is a command. Read the HOWTO I said in above.
 
Old 04-28-2015, 07:49 AM   #10
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
i saw that link.. it is for X server. and i have to do without X windows or X server
 
Old 04-28-2015, 08:13 AM   #11
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You are wrong. It is also for VT. Read it all.
 
Old 04-28-2015, 08:44 AM   #12
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
i didnt understood.. sorry
 
Old 04-28-2015, 11:39 AM   #13
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
Ok, so there is a command showkey [-s]
Just execute it in a console and you will see the scancodes/keycodes of the keys. Next you will need to collect all the scancodes/keycodes of the keys you want to handle (disable).
Also see man setkeycodes/dumpkeys how does it work. And yes, that is loadkeys which will do the job, not for X but your console.

Last edited by pan64; 04-29-2015 at 01:54 AM. Reason: typo
 
Old 04-29-2015, 01:07 AM   #14
aavika
Member
 
Registered: Dec 2014
Posts: 82

Original Poster
Rep: Reputation: Disabled
okay, i will try and let u knw
thank you so much for the reply
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] disable keyboard temporarily so that a book on keyboard does nothing. ununun Linux - General 9 12-09-2012 10:03 AM
Keyboard keys messed up on Logitech Illuminated Keyboard MikeyCarter Linux - Hardware 2 03-16-2010 09:25 AM
USB keyboard function keys/numeric keys on boot raypen Linux - Hardware 4 04-17-2008 04:07 PM
How do I disable certain keyboard keys? mapquest Linux - General 1 10-01-2006 05:12 PM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 10:36 PM


All times are GMT -5. The time now is 04:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration