Keyboard layout

Antworten
Koenraad
Beiträge: 26
Registriert: 14 Jan 2011, 13:21

Keyboard layout

Beitrag von Koenraad »

Hi,

I'm living in Belgium where we have our own keyboard-layout. When booting a new PC, to install a Windows OS on it via opsi I experienced some difficulties with the keyboard-layout. It seems the German layout is used.
Searching the forum I found a topic where another user had the same problem, but this was solved. So I tried it the same way. I added a boot-parameter in the server-configuration : lan=fr.
This did not work. So I presumed the patch was not yet included in the miniroot-image. I unpacked it and wanted to modify /etc/init.d/opsi. Then I saw the patch was there, but the parameter is (I think) lang, not lan. While I was there, I added another option : be. I made a new miniroot-image, and tried again. Unfortunately it didn't work.
After trying to log into the opsi-image to look at the log-files (I couldn't because I don't know the root-password), I tried some other things which didn't work either.
Then I forced a new install of the OS via the config-editor. At the point where I had to acknowledge the install, I aborted, by pressing esc. To my surprise I had the right keyboard-layout at the following prompt.
In short : when I try to install Windows manually via the tftp-prompt the German keyboard is used (where I need another layout). When I force the install via the config-editor, the right keyboard is used (where I don't need a keyboard at all).

I must be missing something, any suggestions ?

Regards,

Koenraad Lelong.
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2050
Registriert: 29 Mai 2008, 15:14

Re: Keyboard layout

Beitrag von j.schneider »

Hi,

you have to append "lang=fr" to the kernel command line.
If you set a netboot product to "setup" the following template is used:
/tftpboot/linux/pxelinux.cfg/install

In addition the opsipxeconfd adds cmdline parameters from the config named "opsi-linux-bootimage.append".

If you select "Start opsi linux bootimage from tftp server" from the pxe menu, this configuration is used:
/tftpboot/linux/pxelinux.cfg/default

If you provide the patch for the keyboard-layout we can include it in the next version of opsi-linux-bootimage.

Greetings,
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Koenraad
Beiträge: 26
Registriert: 14 Jan 2011, 13:21

Re: Keyboard layout

Beitrag von Koenraad »

Hi,

Here's the text I added after the french locale :

Code: Alles auswählen

      be)
             # Belgian version
             LOCALE="nl_BE.UTF8"
             KEYMAP="be-latin1"
            ;;
In the server-config, opsi-linux-bootimage.append I added lang=be. I expected this setting to be a "default", because I can add this also to a specific client. Unfortunately it is not the default for "Start opsi linux bootimage from tftp server".
I looked at those templates, but I don't see how those "opsi-linux-bootimage.append" are added to the kernel command-line. Or is it just appended at runtime ? I'm going to try adding "lang=be" after the last character of "append initrd ...".
I'll report back.

Thanks,

Koenraad Lelong.
Koenraad
Beiträge: 26
Registriert: 14 Jan 2011, 13:21

Re: Keyboard layout

Beitrag von Koenraad »

Hi,

I should have waited with my previous post. The last line of my /tftpboot/linux/pxelinux.cfg/default is now :
append initrd=miniroot.bz2 video=vesa:ywrap,mtrr vga=791 quiet splash lang=be

This works. It would be great if the server "opsi-linux-bootimage.append" would be appended when you select "Start opsi linux bootimage from tftp server".

This works for now, but what about updates ?

Regards,

Koenraad Lelong.
Antworten