German keyboard layout

descipar descipar at googlemail.com
Tue Jun 23 23:18:17 CEST 2009


Hi!

We had a similar problem with locales and console-data / console-common and
the problem seems to be that if locales are installed via apt-get or
aptitude
the default locale is set to none and all debconf settings are overwritten.
Also /etc/default/locale is empty afterwards (Quite a strange imho)

Our solution was to add the script 60-reconfigure in scripts to LAST:

----
if ifclass 'GERMAN'
then
    echo "locales locales/default_environment_locale select de_DE.UTF-8" |
\
        $ROOTCMD debconf-set-selection -v
    $ROOTCMD update-locale LANG=de_DE.UTF-8
fi

$ROOTCMD dpkg-reconfigure -f noninteractive locales

Regards,
----
Kai

On Tue, Jun 23, 2009 at 9:42 PM, Stephan Hermann <sh at sourcecode.de> wrote:

> Hi Robert,
>
>
> On Tue, 23 Jun 2009 19:17:01 +0200
> Robert Markula <robert.markula at gmx.net> wrote:
>
> > I've managed to successfully install Ubuntu 9.04 Jaunty (FAI
> > 3.2.4+svn4837) from a Debian Lenny Server (FAI 3.2.17). Everything
> > works well, except that the client's console keyboard layout is set
> > to the standard US layout by default. I've been struggling for quite
> > a while now, but I can't get it to automatically default to the
> > german layout.
> >
> > I've set the following
> >
> > * in BC_BASE.var:
> > [snip]
> > KEYMAP=de-latin1-nodeadkeys
> > [snip]
> >
> > * in debconf/BC_BASE:
> > locales locales/default_environment_locale select de_DE.UTF-8
> > locales locales/locales_to_be_generated multiselect de_DE.UTF-8 UTF-8
> > xserver-xorg xserver-xorg/config/inputdevice/keyboard/layout string de
> >
> > * in package_config/BC_BASE:
> > PACKAGES aptitude
> > cfengine2
> > console-common
> > debconf-utils
> > dhcp3-client
> > dnsutils
> > fai-client
> > german
> > grub
> > language-pack-de
> > less
> > locales
> > vim
> >
> > * and finally in scripts/BC_BASE/10-misc:
> > [snip]
> > # create keyboard layout table
> > $ROOTCMD bash -c "echo 'console-data console-data/keymap/full select
> > $KEYMAP' | debconf-set-selections"
> > $ROOTCMD install-keymap $KEYMAP || true
> > # dumpkeys | gzip -9f >$target/etc/console/boottime.kmap.gz
> > [snip]
> >
> > What am I missing?
>
> That Ubuntu and Debian are not updating the console keymap while using
> debconf ;)
>
> somehow I managed to do it like this:
>
> $FAI/scripts/UBUNTU_904/10-debconf:
> #!/bin/bash
>
> rm -f $target/etc/default/console-setup
> fai-debconf $FAI/debconf
>
> $ROOTCMD dpkg-reconfigure -f noninteractive console-setup
> $ROOTCMD update-initramfs -k all -u
>
>
> $FAI/debconf/UBUNTU_904:
>
> locales locales/default_environment_locale select de_DE.UTF-8
> locales locales/locales_to_be_generated multiselect de_DE.UTF-8 UTF-8
> xserver-xorg xserver-xorg/config/inputdevice/keyboard/model string pc105
> xserver-xorg    xserver-xorg/autodetect_monitor         boolean false
> xserver-xorg    xserver-xorg/autodetect_keyboard        boolean true
> xserver-xorg    xserver-xorg/autodetect_mouse           boolean true
> xserver-xorg    xserver-xorg/autodetect_video_card      boolean true
> console-setup   console-setup/variant   select  Germany
> console-setup   console-setup/charmap   select  UTF-8
> console-setup   console-setup/layoutcode        string  de
> console-setup   console-setup/compose   select  No compose key
> console-setup   console-setup/fontsize-text     select  16
> console-setup   console-setup/optionscode       string  lv3:ralt_switch
> console-setup   console-setup/layout    select  Germany
> console-setup   console-setup/detect    detect-keyboard
> console-setup   console-setup/detected  note
> console-setup   console-setup/variantcode       string
> console-setup   console-setup/codesetcode       string  Lat15
> console-setup   console-setup/dont_ask_layout   error
> console-setup   console-setup/modelcode string  pc105
> console-setup   console-setup/ask_detect        boolean false
> console-setup   console-setup/altgr     select  Right Alt
> console-setup   console-setup/ttys      string  /dev/tty[1-6]
> console-setup   console-setup/model     select  Generic 105-key (Intl)
> PC console-setup   console-setup/fontsize-fb       select  16
> console-setup   console-setup/switch    select  No temporary switch
> console-setup   console-setup/codeset   select  # Latin1 and Latin5 -
> western Europe and Turkic languages console-setup
> console-setup/toggle    select  No toggling console-setup
> console-setup/fontface  select  VGA console-setup
> console-setup/fontsize  string  16
>
>
>
> What it does is to remove the console-setup file, which won't be
> regenerated during dpkg-reconfigure correctly.
> To use the right one and the preseeded values, you need to remove it,
> and /var/lib/dpkg/info/console-setup.* will do the correct rest.
>
> Regards,
>
> \sh
> --
> | Stephan '\sh' Hermann    | OSS Dev / SysAdmin         |
> | JID: sh at linux-server.org | http://www.sourcecode.de/  |
> | GPG ID: 0xC098EFA8       | http://leonov.tv/          |
> | FP: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8 |
>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20090623/c85b432e/attachment.htm 


More information about the linux-fai mailing list