Hi Mathieu, thanks for sharing your config! I actually managed to get it to work with the following config (hope I didn't forget anything):
################################################# ### class/BC_BASE.var: ################################################# FAI_ALLOW_UNSIGNED=1 KEYMAP=de-latin1-nodeadkeys UTC=yes TIMEZONE=Europe/Berlin ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' MODULESLIST="usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse" STOP_ON_ERROR=700 LOGSERVER=$SERVER LOGPASSWD='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' USE_SETUP_STORAGE=1 ################################################# ### debconf/LANG_GERMAN: ################################################# 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 xserver-xorg xserver-xorg/config/inputdevice/keyboard/model string pc105 xserver-xorg xserver-xorg/config/inputdevice/keyboard/options string lv3:ralt_switch 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/detected note console-setup console-setup/variantcode string console-setup console-setup/codesetcode string Lat15 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 ################################################# ### files/etc/default/console-setup/LANG_GERMAN: ################################################# # A configuration file for setupcon # Change to "yes" and setupcon will explain what is being doing VERBOSE_OUTPUT=no # Setup these consoles. Most people do not need to change this. ACTIVE_CONSOLES="/dev/tty[1-6]" # Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251 # CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342 # ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6 # ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13 # ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII CHARMAP="UTF-8" # The codeset determines which symbols are supported by the font. # Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian # Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3 # Vietnamese. Read README.fonts for explanation. CODESET="Lat15" # Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes # 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes # 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14 # and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and # 16), GohaClassic (sizes 12, 14 and 16). FONTFACE="VGA" FONTSIZE="16" # You can also directly specify nonstandard font and ACM to load: # FONT=/usr/local/share/funnyfonts/sarge16.psf # ACM=/usr/local/share/consoletrans/my_special_encoding.acm # The following variables describe your keyboard and can have the same # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options # in /etc/X11/xorg.conf. XKBMODEL="pc105" XKBLAYOUT="de" XKBVARIANT="" XKBOPTIONS="" # Do not update the following md5 sum if you change # /etc/console-setup/boottime.kmap.gz and Debconf will not overwrite # your custom keymap. Do not update it even if you want to make # Debconf overwrite it. Instead simply specify the empty string as # a md5 sum. BOOTTIME_KMAP_MD5="" ################################################# ### files/etc/default/locale/LANG_GERMAN: ################################################# LANG="de_DE.UTF-8" ################################################# ### package_config/BC_BASE: ################################################# PACKAGES aptitude apt apt-utils cfengine2 console-setup debconf-utils dhcp3-client fai-client grub language-pack-de less locales openssh-server vi language-pack-de ################################################# ################################################# The respective files are copied over the client in a little script, of course, e.g. the following: ################################################# scripts/BC_BASE/20-fcopy: ################################################# #! /bin/bash fcopy -v /etc/default/locale ################################################# ################################################# I had to copy over the console-stup file early to avoid unnecessary error messages. I did this in a 'updatebase'-hook. Cheers, Robert Mathieu Alorent wrote: > Hi, > > this is how I've managed to get French Keyboard on Ubuntu Hardy: > > File: /srv/fai/config/generic.new/scripts/LAST/47-ubuntu-keyboard > #!/bin/bash > > if (ifclass UBUNTU); then > > fcopy /etc/default/console-setup > $ROOTCMD /bin/setupcon --force --save > > fi > > > File: /srv/fai/config/generic.new/files/etc/default/console-setup/UBUNTU > # A configuration file for setupcon > > # Change to "yes" and setupcon will explain what is being doing > VERBOSE_OUTPUT=no > > # Setup these consoles. Most people do not need to change this. > ACTIVE_CONSOLES="/dev/tty[1-6]" > > # Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251 > # CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342 > # ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6 > # ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13 > # ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII > CHARMAP="UTF-8" > > # The codeset determines which symbols are supported by the font. > # Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian > # Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3 > # Vietnamese. Read README.fonts for explanation. > CODESET="Lat15" > > # Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes > # 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes > # 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14 > # and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and > # 16), GohaClassic (sizes 12, 14 and 16). > FONTFACE="Fixed" > FONTSIZE="16" > > # You can also directly specify nonstandard font and ACM to load: > # FONT=/usr/local/share/funnyfonts/sarge16.psf > # ACM=/usr/local/share/consoletrans/my_special_encoding.acm > > # The following variables describe your keyboard and can have the same > # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options > # in /etc/X11/xorg.conf. > XKBMODEL="pc105" > XKBLAYOUT="fr" > XKBVARIANT="oss" > XKBOPTIONS="" > > > # Do not update the following md5 sum if you change > # /etc/console-setup/boottime.kmap.gz and Debconf will not overwrite > # your custom keymap. Do not update it even if you want to make > # Debconf overwrite it. Instead simply specify the empty string as > # a md5 sum. > > BOOTTIME_KMAP_MD5="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" > > Regards
