Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 06-04-2010, 05:08 PM   #1
LQ Newbie
Registered: Oct 2009
Distribution: Slackware, LFS
Posts: 27

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.

Old 06-04-2010, 08:04 PM   #2
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: 216

Rep: Reputation: 46

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.
console - Loads the correct keymap table for the desired keyboard layout; it also sets the screen font
Old 06-06-2010, 05: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
loadkeys -m /usr/share/keymaps/i386/qwerty/ > drivers/char/defkeymap.c
There are 2 other maps you could try, and



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

All times are GMT -5. The time now is 03:14 AM.

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