Chapter 22. Changing basic environment settings
If your requirements change after installation, you can update the basic system settings accordingly. These basic system settings include Keyboard layout, Date and time, and System locale.
22.1. Configuring the keyboard layout Copy linkLink copied to clipboard!
The keyboard layout settings control the layout used on the text console. If RHEL was installed with a different keyboard layout than the one you use after the installation, you can change the layout.
Procedure
To list available keymaps:
$ localectl list-keymapsANSI-dvorak al al-plisi amiga-de de de-nodeadkeys ...Optional: Display the current keymap settings:
$ localectl status... VC Keymap: us ...Change the system keymap, for example:
# localectl set-keymap de-nodeadkeysFor more information, see the
localectl(1),locale(7), andlocale.conf(5)man pages on your system.
22.2. Configuring the date, time and timezone settings manually Copy linkLink copied to clipboard!
You can manually configure date, time, and time zone settings on RHEL systems to ensure accurate timekeeping across your environment. Proper time configuration is essential for authentication, logging, troubleshooting, and consistency with other systems in your infrastructure. Prefer time synchronization by using chrony.
Procedure
Optional: List the timezones:
# timedatectl list-timezonesEurope/BerlinSet the time zone:
# timedatectl set-timezone <time_zone>Set the date and time:
# timedatectl set-time <YYYY-mm-dd HH:MM-SS>
Verification
Display the date, time, and timezone:
# dateMon May 5 09:11:55 CEST 2025To see more details, use the timedatectl command:
# timedatectlLocal time: Mon 2025-05-05 09:11:55 CEST Universal time: Mon 2025-05-05 07:11:55 UTC RTC time: Mon 2025-05-05 07:11:55 Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: no NTP service: inactive RTC in local TZ: noFor more information, see the
date(1)andtimedatectl(1)man pages on your system.
22.3. Configuring the system locale Copy linkLink copied to clipboard!
The system locale specifies the language settings used by system services and user interfaces. System-wide locale settings determine the language, region, and formatting conventions used by the operating system and its applications.
These settings are stored in the /etc/locale.conf file, which the systemd daemon reads during early boot. Services and users inherit the locale settings configured in /etc/locale.conf, unless individual users or programs override them.
Procedure
Optional: Display the current system locales settings:
# localectl statusSystem Locale: LANG=C.UTF-8 VC Keymap: de-nodeadkeys X11 Layout: deList available system locale settings:
$ localectl list-localesC.UTF-8 ... en_US.UTF-8 en_ZA.UTF-8 en_ZW.UTF-8 ...Update the syste locale setting, for example::
# localectl set-locale LANG=en_US.UTF-8For more information, see the
localectl(1),locale(7), andlocale.conf(5)man pages on your system.