Keyboard Layout: Difference between revisions

From LFScript
Created page with "The default keyboard layout on LFScript systems is set to "us-acentos", which is the nearest equivalent of the "US International" layout. It is the default because it allows o..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Documentation]]
The default keyboard layout on LFScript systems is set to "us-acentos", which is the nearest equivalent of the "US International" layout. It is the default because it allows one to type characters which are common in European languages on a plain US qwerty keyboard. You may need to press the space bar after a double-quote to type that character, but at the same time you can type the characters ä, ë, ï, ö and ü by pressing a, e, i, o or u in stead. Other keys (like the single quote) produce similar results.
The default keyboard layout on LFScript systems is set to "us-acentos", which is the nearest equivalent of the "US International" layout. It is the default because it allows one to type characters which are common in European languages on a plain US qwerty keyboard. You may need to press the space bar after a double-quote to type that character, but at the same time you can type the characters ä, ë, ï, ö and ü by pressing a, e, i, o or u in stead. Other keys (like the single quote) produce similar results.


Line 21: Line 22:
And change <code>us-acentos</code> to your preferred keyboard layout.
And change <code>us-acentos</code> to your preferred keyboard layout.


== Extra information ==
== External Links ==
More information about the <code>/etc/sysconfig/console</code> file can be found in [http://www.linuxfromscratch.org/lfs/view/development/chapter07/console.html Linux From Scratch].
* [http://www.linuxfromscratch.org/lfs/view/development/chapter07/console.html ''Configuring the Linux Console''], in ''Linux From Scratch''
* [https://answers.launchpad.net/lfscript/+question/189109 ''To type a ", it requires the space bar to be pressed after pressing "''], Launchpad question

Latest revision as of 14:02, 14 June 2014

The default keyboard layout on LFScript systems is set to "us-acentos", which is the nearest equivalent of the "US International" layout. It is the default because it allows one to type characters which are common in European languages on a plain US qwerty keyboard. You may need to press the space bar after a double-quote to type that character, but at the same time you can type the characters ä, ë, ï, ö and ü by pressing a, e, i, o or u in stead. Other keys (like the single quote) produce similar results.

Changing the keyboard layout

On a running system

Keyboard layouts are stored in /lib/kbd/keymaps. To change the keyboard layout on the fly, you can execute the loadkeys command.

The next command loads the "us" keyboard layout:

loadkeys us

However, this does not make it permanent. To make it permanent, execute the following too:

cat >> /etc/sysconfig/console << "EOF"
KEYMAP="us"
EOF

Before building a system

The default keyboard layout can also be changed before a system is even built, by editing the lfs-<version>/bootscripts script. In that file, (near line 180 in LFScript 4r21) search for:

KEYMAP="us-acentos"

And change us-acentos to your preferred keyboard layout.

External Links