The default system locale of a machine installed through the Automated Installer can be specified in the System Configuration (SC) profile, as described in the service_bundle(4) and installadm(1M) man pages. For more information, see Providing Configuration Profiles in Installing Oracle Solaris 11.2 Systems
The following example shows a system configuration profile which sets the default system locale to German.
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type="profile" name="system configuration"> ... <service name='system/environment' version='1'> <instance name='init' enabled='true'> <property_group name='environment'> <propval name='LANG' value='de_DE.UTF-8'/> </property_group> </instance> </service> ... </service_bundle>
Other international environment settings that were transitioned to the Service Management Facility (SMF) can be set in a similar fashion. The following example shows a part of a system configuration profile that sets the installed machine to use the UK-English keyboard layout and the GMT timezone.
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type="profile" name="system configuration"> ... <service name='system/keymap' version='1'> <instance name='default' enabled='true'> <property_group name='keymap'> <propval name='layout' value='UK-English'/> </property_group> </instance> </service> <service name='system/timezone' version='1'> <instance name='init' enabled='true'> <property_group name='timezone'> <propval name='localtime' value='GMT'/> </property_group> </instance> </service> ... </service_bundle>