HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11



HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11

Installing Argentina Locales
#pkg change-facet facet.locale.es_AR*=True

# locale -a
C
POSIX
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8
en_US.ISO8859-1
en_US.ISO8859-15
en_US.UTF-8
es_AR.ISO8859-1
es_AR.UTF-8



Change locale to es_AR.ISO8859-1
#svccfg -s svc:/system/environment:init setprop environment/LC_ALL = astring: "es_AR.ISO8859-1"
#svccfg -s svc:/system/environment:init setprop environment/LC_COLLATE = astring: "es_AR.ISO8859-1"
#svccfg -s svc:/system/environment:init setprop environment/LC_CTYPE = astring: "es_AR.ISO8859-1"
#svccfg -s svc:/system/environment:init setprop environment/LC_NUMERIC = astring: "es_AR.ISO8859-1"
#svccfg -s svc:/system/environment:init setprop environment/LC_TIME = astring: "es_AR.ISO8859-1"
#svccfg -s svc:/system/environment:init setprop environment/LC_MONETARY = astring: "es_AR.ISO8859-1"

#svcadm refresh svc:/system/environment


List the information changed
#svccfg -s svc:/system/environment:init
svc:/system/environment:init> listprop

umask                               application
umask/umask                        astring     022
umask/value_authorization          astring     solaris.smf.value.environment
environment                         application
environment/TZ                     astring     localtime
environment/value_authorization    astring     solaris.smf.value.environment
environment/LC_CTYPE               astring     es_AR.ISO8859-1
environment/LC_COLLATE             astring     es_AR.ISO8859-1
environment/LC_MESSAGES            astring     C
environment/LC_MONETARY            astring     es_AR.ISO8859-1
environment/LC_NUMERIC             astring     es_AR.ISO8859-1
environment/LC_TIME                astring     es_AR.ISO8859-1

environment/LC_ALL                 astring
environment/LC_LANG                astring
environment/LANG                   astring
startd                              framework
startd/duration                    astring     transient
general                             framework
general/action_authorization       astring     solaris.smf.manage.environment
general/complete                   astring
general/enabled                    boolean     true
sysconfig                           sysconfig
sysconfig/config_properties        astring     "sc_all:environment/LC_ALL" "sc_lang:environment/LANG" "sc_ctype:environment/LC_CTYPE" "sc_numeric:environment/LC_NUMERIC" "sc_time:environment/LC_TIME" "sc_collate:environment/LC_COLLATE" "sc_monetary:environment/LC_MONETARY" "sc_messages:environment/LC_MESSAGES" "sc_tz:environment/TZ"
sysconfig/group                    astring     location
sysconfig/reconfigurable           boolean     false
sysconfig/value_authorization      astring     solaris.smf.value.environment

Reboot the server
#init 6




 

Comments