Transitioning From Oracle® Solaris 10 to Oracle Solaris 11.2

Exit Print View

Updated: December 2014
 
 

Locale, Timezone, and Console Keymap Configuration Changes

In Oracle Solaris 10, locale, timezone, and console keymap configuration is set in the /etc/default/init file. In Oracle Solaris 11, you manage this configuration through the following SMF services:

  • System locale – svc:/system/environment:init

  • Timezone – svc:/system/timezone:default

  • Console keymap – svc:/system/keymap:default

Starting with Oracle Solaris 11.2, you can use the nlsadm command to display and set these national language properties. The following examples show how to set these properties by using the nlsadm command.


Note -  You might need to run the following command prior to using the nlsadm command:
# pkg install nls-administration

Change the default locale to fr_FR.UTF-8 as follows:

# nlsadm set-system-locale fr_FR.UTF-8

Set the timezone to Europe/Paris as follows:

# nlsadm set-timezone Europe/Paris

Set the console keymap to US-English as follows:

# nlsadm set-console-keymap US-English

For other date and time configuration changes, see Reconfiguring Date and Time Before and After an Installation.