Page 1 of 1

Qwerty to Azerty on the wizard. [SOLVED]

Posted: 20 May 2015, 12:43
by Debadr
Hi,

Did someone knows if it is possible to change the keyboard from QWERTY to AZERTY in the wizard (when the CD is lunched). We have AZERTY keyboards and for the installation we need to make it more user friendly for the persons who will install it.

Is there any change to make to the iso so the keyboard switch to azerty mode from the beginning ?

Thank you.

Re: Qwerty to Azerty on the wizard.

Posted: 20 May 2015, 17:53
by fanthom
this is harder than i thought :)

please remaster the ISO and edit 003-settings.xzm/etc/xdg/openbox/autostart then inject following code after original setxkbmap:

Code: Select all

# Set keyboard mapping:
setxkbmap -layout us,lay2 -variant ,var2 2>/dev/null

# Custom mapping just for the installation stage:
egrep -qo " first_run( |\$)" /proc/cmdline && setxkbmap fr
this trick should set french keyboard during installation and user choice (from the wizard) will be respected after installation.

Re: Qwerty to Azerty on the wizard.

Posted: 22 May 2015, 14:06
by Debadr
Your a genius :) !

Anyway you could explain to me this ? :wall: :

Code: Select all

egrep -qo " first_run( |\$)" /proc/cmdline && setxkbmap fr
thank you Fanthom :).
PS: PKE is a project that i have to present to some huuuuge Tux-lovers :%) , and i need a minimum of knowledge about anything what i've done on the iso so i can explain to them :)

Re: Qwerty to Azerty on the wizard. [SOLVED]

Posted: 23 May 2015, 07:53
by fanthom
'first_run' is a parameter passed by the bootloader to the kernel command line. system searches for it and runs the wizard. after installation this flag is removed so wizard does not start anymore.

the code i posted sets up french keyboard mapping only when 'first_run' parameter is present (only during installation and not after it so this choice is not forced).

Re: Qwerty to Azerty on the wizard. [SOLVED]

Posted: 26 May 2015, 06:39
by Debadr
Roger that.
Thank you Fanthom :)