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

Re: Keyboard layout for both X and console



Hi,

Thank you for your script, but I got some errors when I tried to use it...

P: Begin executing local hooks...
/root/keyboard.sh: line 6:  : command not found
/root/keyboard.sh: line 7:  : command not found
/root/keyboard.sh: line 9:  : command not found
/root/keyboard.sh: line 11:  : command not found

Any idea ? It seems to be a problem with $PATH...

-- 
Laurent Léonard

Le mercredi 25 février 2009 00:20:57 Mikael Petersson, vous avez écrit :
> 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
>
> Hello,
>
> 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:
>
> #!/bin/sh
>
> # Correct keyboard settings for the console
> if [ -f /usr/share/initramfs-tools/scripts/live-bottom/19keyboard ]
> then
>   echo "  Correcting keyboard settings for the console"
>   sed -i 's/^\tchroot \/root \/usr\/sbin\/install-keymap ${kbd}/&-latin1/'
> \ /usr/share/initramfs-tools/scripts/live-bottom/19keyboard
>   sed -i 's/^\tlive-preseed \/root debian-installer\/keymap
> "${kbd}"/&-latin1/' \
> /usr/share/initramfs-tools/scripts/live-bottom/19keyboard
>   sed -i 's/^\tlive-preseed \/root kbd-chooser\/method "${kbd}"/&-latin1/'
> \ /usr/share/initramfs-tools/scripts/live-bottom/19keyboard
> fi
>
> 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: