LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 06-04-2010, 04:08 PM   #1
aloisius-a
LQ Newbie
 
Registered: Oct 2009
Distribution: Slackware, LFS
Posts: 26

Rep: Reputation: 0
LFS keyboard permanent configuration


Hi all,

I got a problem with LFS.
I completed the installation of LFS and all has gone right except the configuration of the keyboard.
My keyboard is an Italian one and there is no correspondence between the keys and what appears on the display and is entered in the system.
If I hit the command
loadkeys it euro2
the problem is overcome and there is correspondence between the key and what appears on the display but I have to hit this command after every restart.
How can I obtain a permanet configuration?
I suppose I have to introduce the command in an init script but I am not sure about which.

Please let me know how can I fix this issue.
Thanks

Aloisius
 
Old 06-04-2010, 07:04 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
Greetings,

Well, checking the current Stable LFS documentation, I found this here. From what I see there, it looks like what you need to do is set the keyboard layout in the console initscript.
Quote:
console - Loads the correct keymap table for the desired keyboard layout; it also sets the screen font
HTH.
 
Old 06-06-2010, 04:35 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you want to make the keymap permanent, one option is to compile the keymap into your kernel. After you've run make menuconfig, just before you run make, run this command
Code:
loadkeys -m /usr/share/keymaps/i386/qwerty/it.map.gz > drivers/char/defkeymap.c
There are 2 other maps you could try, it2.map.gz and it-ibm.map.gz
 
  


Reply

Tags
lfs


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
Permanent mount on raw devices configuration sreenivas261283 Linux - Software 2 04-07-2009 02:37 AM
LFS: How To Configure Linux Console For UK Keyboard klearview Linux From Scratch 4 11-10-2008 03:47 PM
lfs liveCD no keyboard on nforce 4 mobo f76 Linux From Scratch 1 12-25-2006 02:36 AM
Keyboard (any) doesn work on LFS 6.1.1 nistur Linux From Scratch 5 04-12-2006 05:02 AM
iptable configuration with guarddog permanent regardless wm? jasone Linux - General 2 04-21-2005 05:28 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration