Locale command line reference¶
lmi locale is a command for LMI metacommand, which allows to display and set system locale on a remote host with installed OpenLMI locale provider.
System locale and time management.
lmi locale show [(–locale | –vc-keyboard | –x11-keymap | –timedate)]
lmi locale set-locale (<locale> <value>) ...
lmi locale set-vc-keyboard [–convert] <keymap> [<keymap-toggle>]
lmi locale set-x11-keymap [–convert] <layouts> [<model> <variant> <options>]
lmi locale set-time [(–add| –subtract)] <time>
lmi locale set-timezone <timezone>
lmi locale set-local-rtc [–fix-system] (on | off)
lmi locale set-ntp (on | off)
- Show detailed information about system locale cathegory (locale variables, key mapping on the virtual console, default key mapping of the X11 server, timedate settings). If no cathegory is provided via option, all locale information is displayed.
- Set locale variables.
- Set the key mapping on the virtual console.
- Set the default key mapping of the X11 server.
- Set the system clock to the specified time. This will also update the RTC time accordingly. The time may be specified in the format “2012-10-30 18:17:16” or as a difference in seconds from current time (see –add/–subtract options).
- Set the system timezone. If the RTC is configured to be maintained in local time it will be updated accordingly.
- Set that the RTC is maintained in local time/UTC.
- Enable/disable synchronization of the system clock with a remote NTP server using systemd-timesyncd.
- Display locale variables.
- Display key mapping on the virtual console.
- Display default key mapping of the X11 server.
- Display timedate settings (system timezone, whether RTC is in local time and whether the system clock is synchronized with with a remote NTP server using systemd-timesyncd).
- Try to set the nearest console keyboard/X11 keyboard setting for the chosen X11 keyboard/console keyboard setting.
- The passed time value is expected to be in seconds and will be added to the current system time.
- The passed time value is expected to be in seconds and will be subtracted from the current system time.
- The time from the RTC is read again and the system clock adjusted according to the new setting. (This is useful in cases where the RTC is probably more reliable than the system time.)