[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Keyboard layout for both X and console

tis 2009-02-24 klockan 15:11 +0100 skrev Laurent Léonard:
> Hi,
> I'm not sure this mailing list is the right one for user support, but I didn't 
> find other lists about Debian Live...
> This page explain how it is possible to set a keyboard layout for X or the 
> console : http://live.debian.net/manual/html/language.html
> keymap=XX-latin1 give a right keyboard layout for the console
> keymap=XX give a right keyboard layout for X
> How can I set the right keyboard layout for both X and the console ?
> Thank you,
> -- 
> Laurent Léonard


I have the following executable hack in config/chroot_local-hooks/. It
appends '-latin1' to carefully selected places in the live-initramfs
file /usr/share/initramfs-tools/scripts/live-bottom/19keyboard:


# Correct keyboard settings for the console
if [ -f /usr/share/initramfs-tools/scripts/live-bottom/19keyboard ]
  echo "  Correcting keyboard settings for the console"
  sed -i 's/^\tchroot \/root \/usr\/sbin\/install-keymap ${kbd}/&-latin1/' \
  sed -i 's/^\tlive-preseed \/root debian-installer\/keymap "${kbd}"/&-latin1/' \
  sed -i 's/^\tlive-preseed \/root kbd-chooser\/method "${kbd}"/&-latin1/' \

This makes it possible for me to append "keyb=se" to the boot parameters
for my Debian Live system and have a working swedish keyboard both on
the console and in X

Good luck!

Mikael Petersson

Reply to: