[SOLVED] French Keyboard

Antworten
dixgrammes
Beiträge: 12
Registriert: 28 Sep 2010, 09:05

[SOLVED] French Keyboard

Beitrag 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
Zuletzt geändert von dixgrammes am 07 Dez 2010, 15:22, insgesamt 1-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: French Keyboard

Beitrag 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


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
dixgrammes
Beiträge: 12
Registriert: 28 Sep 2010, 09:05

Re: French Keyboard

Beitrag 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
cdubreuil
Beiträge: 1
Registriert: 02 Dez 2010, 23:31

Re: French Keyboard

Beitrag 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
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

Re: French Keyboard

Beitrag 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
O.Ferre
ENS de Lyon
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

[SOLVED] Re: French Keyboard

Beitrag 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
O.Ferre
ENS de Lyon
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: [SOLVED] French Keyboard

Beitrag von j.schneider »

Thanks for the patch.
It will be integrated in the next opsi-linux-bootimage version.

Greetings,
Jan Schneider
Antworten