Switching QWERTY to AZERTY CentOS 7

Solved
shell_power -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello everyone,

I just downloaded a VM, virtualbox of CentOS 7.1, and I'm having a keyboard layout conversion issue.

I've followed some tutorials on the internet but nothing has changed.

Life was really easier before; they had to complicate things instead of simplifying them. With keyboard.conf everything was set.

ANYWAY...

From what I understand, I need to modify the file /etc/locale.conf using the command localectl.

Here are the commands I typed:
localectl list-locales | grep fr
localectl set-locale LANG=fr_FR.utf8

Here’s the content of the config files (copied by hand because I haven't installed the VB tools)

/etc/locale.conf:
LANG=fr_FR.utf8

File /etc/X11/xorg.conf.d/00-keyboard.conf:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr"

File /etc/vconsole.conf:
KEYMAP=fr
FONT=latarcyrheb-sun16

Could you help me?

Thanks in advance to everyone. I really need this change to continue.

Configuration: Windows 7 / Chrome 43.0.2357.124

1 answer

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    You can switch to the French keyboard layout with the following commands:
    - In text mode, from a root terminal:
    loadkeys fr

    - In graphical mode:
    setxkbmap -layout fr


    To configure the layout persistently, it depends on the distribution. In graphical mode, your graphical interface usually allows you to set it easily without having to think about which file to modify. In text mode, I imagine this addresses your need:
    https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-sysconfig-kybd.html

    Good luck.
    6
    1. shell_power Posted messages 10 Status Member
       
      Hello,

      first of all, thank you for paying attention to my topic.

      The CentOS 7.1 I have is in graphical mode but I work in command line.

      I tried the 2 commands you mentioned, and I encountered errors with the loadkeys fr command:
      loading /lib/keypas/xkb/fr.map.gz
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      unknown keysym "trademark"
      loadkeys: /lib/keypas/xkb/fr.map.g:11: addkey was called with erroneous keycode -1

      Does that ring a bell?

      Regarding the documentation you sent via the link, I believe it's for versions prior to 7. In version 7, the /etc/sysconfig/keyboard file no longer exists and is replaced by /etc/locale.conf.
      0
    2. Judge_DT Posted messages 27651 Registration date   Status Moderator Last intervention   10 013 > shell_power Posted messages 10 Status Member
       
      Hello,

      Currently, what does
      localectl status
      return?

      As I recall, on CentOS 7, including 7.1, you need to use:

      localectl set-keymap fr
      for the CLI
      localectl set-x11-keymap fr
      for the graphical interface, in order to enable Azerty input instead of QWERTY.

      The system language can be independent of the keyboard input language, so LANG=fr_FR indicates that the system is in French, while the keymap may not necessarily be.
      1
    3. Judge_DT Posted messages 27651 Registration date   Status Moderator Last intervention   10 013 > shell_power Posted messages 10 Status Member
       
      localectl list-keymaps | grep fr
      0
    4. shell_power Posted messages 10 Status Member > Judge_DT Posted messages 27651 Registration date   Status Moderator Last intervention  
       
      as I don't have the vb tools I'm forced to type everything by hand, so sorry for any typing errors if there are any :) )

      ca-fr-dvorak
      ca-fr-legacy
      ch-fr
      ch-fr_mac
      ch-fr_nodeadkeys
      ch-fr_sundeandkeys
      cm-french
      dvorak-ca-fr
      devorak-fr
      fr
      fr-bepo
      fr-bepo_latin9
      fr-bre
      fr-dvorak
      fr-latin0
      fr-latin1
      fr-latin9
      fr-latin9_nodeadkeys
      fr-latin9_sundeadkeys
      fr-mac
      fr-nodeadkeys
      fr-oci
      fr-old
      fr-oss
      fr-oss_latin9
      fr-oss_nodeadkeys
      fr-oss_sundeadkeys
      fr-pc
      fr-sundeadkeys
      fr_CH
      fr_CH-latin1
      ma-french
      mac-fr
      mac-fr_CH-latin1
      ml-fr-oss
      sunt5-fr-latin1
      0
    5. Judge_DT Posted messages 27651 Registration date   Status Moderator Last intervention   10 013 > shell_power Posted messages 10 Status Member
       
      So, the "fr" layout is indeed present. Quite strange that despite the correct configuration, the keyboard is still in qwerty...

      I’ll do some research on my side, as I haven't encountered this type of case yet.
      0