System Language And Keyboard Configuration Commands In Redhat Linux

 

system language and  keyboard setting configuration


In this post , We will do system locale configuration in Redhat Linux system also we will configure keyboard settings in Redhat Linux.

 System Locale And Keyboard Layout

A System locale specifies the language setting of system services and user interfaces.

In other hand, Keyboard layout settings control the layout used on the text console or GUI.

            In Linux it is a set of environmental variables that defines the language, country, and character encoding settings for your applications and shell session on a Linux system. A system-wide locale configuration file is saved under /etc/locale.conf  . You can change the configuration of locale setting from here or you can use localectl command to modify setting for your system-wide locale. These settings applied system-wide including every user and services until a user or service will override it.

language setting in Linux redhat

As you can see above , command localectl shows three options.

System Locale : System wide Language setting

VC keymap : Virtual Console Key-map to configure keyboard layout on text console and GUI

X11 is language configuration for X11 windows.   Other configuration options are below.

locale setting for language in redhat linux

It is recommended to avoid directly configure the locale.conf file . To make any changes use localectl command .

Commands :

localectl status : Shows the current language related system wide setting and configuration.

locale language setting in redhat linux
 
localectl list-locales: To list all locales available for your system. 

Note : use grep as pipe to get a specific language settings. see example ..

localectl  list-locales | grep en_ : To show available English language locales. 

locale / langauge setting in Linux redhat

localectl set-locale locale   : To set the default system wide locale setting. Replace the "locale" option with desired locale name from locale list.

language setting in redhat linux

localectl list-keymaps : List all available keyboard layouts.

localectl list-keymaps | grep  -i in-eng : serach for a specific keyboard layout


localectl set-keymap "NAME" : To set the specific keymap to system. specify the 'NAME'  in which you want to set keyboard layout. It will also change the keyboard layout for X11 windows configuration.

keyboard layout setup commands in linux

localectl set-keymap --no-convert "NAME" : Use when you want to separate keyboard layout for X11 windows.

keyboard layout setting in Linux redhat

localectl set-x11-keymap "NAME" : Set keyboard layout for X11 windows. Specify the name from Keymap list .

keyboard layout changes for X11 commands

Now run localectl status command again to check the output.

locale keyboard configuration commands in Linux

localectl set-x11-keymap 'Name' 'model' 'variant' 'options' : Specify model, variant,  option components to enhance the keyboard functionality. see man pages for more details.

Share This Post With Friends 😀


Post a Comment

0 Comments