Seite 1 von 1

[SOLVED] French Keyboard

Verfasst: 10 Nov 2010, 15:07
von dixgrammes
Hi

i don't know if you can help with this problem ; i would like to have the French keyboard in the miniroot.bz2 (/tftpboot/linux/miniroot.bz2)

i unzip the file and mount the miniroot and i create a "locale" file in /etc/default with LANG="fr_FR.UTF-8" but it doesn't work

thanks for your help

Dig

Re: French Keyboard

Verfasst: 10 Nov 2010, 15:27
von wolfbardo
try if
adding

Code: Alles auswählen

bootkbd=fr
the kernel command line helps.

opsi 3.4

Code: Alles auswählen

 editing 
/tftpboot/linux/pxelinux.cfg/install

in opsi 4.0

Code: Alles auswählen

 editing the server defaults with opsi-configed (managementinterface) 

Propertyname
opsi-linux-bootimage.append
Regards
Bardo Wolf

Re: French Keyboard

Verfasst: 10 Nov 2010, 16:31
von dixgrammes
this is the pxelinux.cfg/default.menu
i just add bootkbd=fr, but it's the same.

Code: Alles auswählen

label opsi
  menu label Installation Windows avec OPSI
  kernel opsi/vmlinuz-2.6.35.4
  append ramdisk_size=202504 initrd=opsi/miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash bootkbd=fr
and this is the bootimage log

Code: Alles auswählen

Nov 10 16:18:20 [opsiinit] opsi init script started
Nov 10 16:18:20 [opsiinit] opsi linux bootimage version: 20100901
Nov 10 16:18:20 [opsiinit] getBootParam(nodhcp): cmdline: ramdisk_size=202504 initrd=opsi/miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash bootkbd=fr BOOT_IMAGE=opsi/vmlinuz-2.6.35.4
Nov 10 16:18:20 [opsiinit] boot param nodhcp=0
Nov 10 16:18:20 [opsiinit] getBootParam(hn): cmdline: ramdisk_size=202504 initrd=opsi/miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash bootkbd=fr BOOT_IMAGE=opsi/vmlinuz-2.6.35.4
Nov 10 16:18:20 [opsiinit] boot param hn=
Nov 10 16:18:20 [opsiinit] getBootParam(lang): cmdline: ramdisk_size=202504 initrd=opsi/miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash bootkbd=fr BOOT_IMAGE=opsi/vmlinuz-2.6.35.4
Nov 10 16:18:20 [opsiinit] boot param lang=
Nov 10 16:18:20 [opsiinit] loading keymap de-latin1-nodeadkeys
Nov 10 16:18:20 [opsiinit] setting language environment (LANG=de_DE.UTF8, LANGUAGE=de, LC_ALL=de_DE.UTF8)
Nov 10 16:18:20 [opsiinit] getNetworkDevices(): link forced
Nov 10 16:18:20 [opsiinit] getNetworkDevices(): device(s) found: , device(s) with link:
Nov 10 16:18:20 [opsiinit] getNetworkDevices(): no devices with link found, returning error
Nov 10 16:18:20 [opsiinit] no devices found, sleeping 3 seconds
Nov 10 16:18:23 [opsiinit] getNetworkDevices(): link forced
Nov 10 16:18:23 [opsiinit] getNetworkDevices(): device(s) found:  eth0, device(s) with link:  eth0
Nov 10 16:18:23 [opsiinit] getNetworkDevices(): device(s) with link found, returning  eth0
Nov 10 16:18:23 [opsiinit] device(s) found: eth0
Nov 10 16:18:23 [opsiinit] getNetworkDevices(): device(s) found:  eth0, device(s) with link:  eth0
Nov 10 16:18:23 [opsiinit] getNetworkDevices(): device(s) with link found, returning  eth0
Nov 10 16:18:23 [opsiinit] using dhcp, adding entry for device eth0 to /etc/network/interfaces
Nov 10 16:18:26 [opsiinit] opsi init script ended
[3] [Nov 10 16:18:29] Locale not found: name 'LOCALE_DIR' is not defined (master.py|78)

thanks
dig

Re: French Keyboard

Verfasst: 02 Dez 2010, 23:41
von cdubreuil
1) you must to modify /etc/init.d/opsi in the miniroot.bz2

To do this, folow this tips :

http://www.thegeekstuff.com/2009/07/how ... nitrd-img/

( do this in root, to conserve good right )

in the file /etc/init.d/opsi , line 110, add lines " ==> ...... "

......
case "$LANGUAGE" in
en)
# English version
LOCALE="en_US.UTF8"
KEYMAP="us"
;;


==> fr)
==> # French version
==> LOCALE="fr_FR.UTF8"
==> KEYMAP="fr"
==> ;;

esac

2) in opsi-configed

Propertyname
opsi-linux-bootimage.append

add "lan=fr"

It woks for me

Re: French Keyboard

Verfasst: 07 Dez 2010, 11:29
von o.ferre
Hi

thanks for your reply cdubreuil
can you tell me where to add "lan=fr" in the second part ?
i think its always in the miniroot, but i can't find the opsi-configed

perhaps you use the 4.0 opsi version

Thanks

[SOLVED] Re: French Keyboard

Verfasst: 07 Dez 2010, 13:00
von o.ferre
it works !

this is the file /etc/init.d/opsi in the miniroot.bz2

Code: Alles auswählen

LANGUAGE="$(getBootParam lang 2>/dev/null || true)"
    logMessage "boot param lang=$LANGUAGE"
    [ -n "$LANGUAGE" ] || LANGUAGE="fr"

    # Localization
    LOCALE="fr_FR.UTF8"
    KEYMAP="fr"

    case "$LANGUAGE" in
      fr)
        # French version
        LOCALE="fr_FR.UTF8"
        KEYMAP="fr"
        ;;
    esac
thanks to cdubreuil for your help

Re: [SOLVED] French Keyboard

Verfasst: 08 Dez 2010, 10:43
von j.schneider
Thanks for the patch.
It will be integrated in the next opsi-linux-bootimage version.

Greetings,
Jan Schneider