For SPARC based systems, preconfigure system configuration information by editing the name service (NIS or NIS+).
The following table provides a high-level overview of what you need to do.
To preconfigure |
You must edit and populate these name service databases |
---|---|
Host name and Internet Protocol (IP) address |
hosts |
Date and time |
hosts (specify the timehost alias next to the host name of the system that will provide the date and time for the systems being installed) |
Time zone |
timezone |
Netmask |
netmasks |
The procedure to preconfigure the locale for a system is different for each name service, as described in "To Preconfigure the Locale Using NIS".
As superuser on the name server, open /var/yp/Makefile with a text editor of your choice.
Insert this shell procedure after the last variable.time shell procedure:
locale.time: $(DIR)/locale -@if [ -f $(DIR)/locale ]; then \ sed -e "/^#/d" -e s/#.*$$// $(DIR)/locale \ | awk '{for (i = 2; i<=NF; i++) print $$i, $$0}' \ | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/locale.byname; \ touch locale.time; \ echo "updated locale"; \ if [ ! $(NOPUSH) ]; then \ $(YPPUSH) locale.byname; \ echo "pushed locale"; \ else \ : ; \ fi \ else \ echo "couldn't find $(DIR)/locale"; \ fi |
Find the string all: and, at the end of the list of variables, insert the word locale:
all: passwd group hosts ethers networks rpc services protocols \ netgroup bootparams aliases publickey netid netmasks c2secure \ timezone auto.master auto.home locale |
Toward the end of the file, after the last entry of its type, insert the string locale: locale.time on a new line:
passwd: passwd.time group: group.time hosts: hosts.time ethers: ethers.time networks: networks.time rpc: rpc.time services: services.time protocols: protocols.time netgroup: netgroup.time bootparams: bootparams.time aliases: aliases.time publickey: publickey.time netid: netid.time passwd.adjunct: passwd.adjunct.time group.adjunct: group.adjunct.time netmasks: netmasks.time timezone: timezone.time auto.master: auto.master.time auto.home: auto.home.time locale: locale.time |
Create the file /etc/locale and make one entry for each domain or specific system:
locale domain_name |
or
locale system_name |
Appendix B, Locale Values contains a list of valid locales.
For example, the following entry specifies that French is the default language used in the worknet.com domain:
fr worknet.com |
And the following entry specifies that Belgian French is the default locale used by a system named sherlock:
fr_BE sherlock |
Locales are available on the Solaris 8 Software 1 of 2 SPARC Platform Edition or Solaris 8 Software 1 of 2 Intel Platform Edition CD.
# cd /var/yp; make |
Systems specified by domain or individually in the locale map are now set up to use the default locale. The default locale you've specified is used during installation and by the desktop after the system is rebooted.
This procedure assumes the NIS+ domain is set up. Setting up the NIS+ domain is documented in the Solaris Naming Administration Guide.
Log in to a name server as superuser or as a user in the NIS+ administration group.
# nistbladm -D access=og=rmcd,nw=r -c locale_tbl name=SI,nogw= locale=,nogw= comment=,nogw= locale.org_dir.`nisdefaults -d` |
A locale table is created.
Add an entry to the locale table by typing this nistbladm command:
# nistbladm -a name=domain_name locale=locale comment=comment locale.org_dir.`nisdefaults -d` |
domain_name |
Is either the domain name or a specific system name for which you want to preconfigure a default locale. |
locale |
Is the locale you want installed on the system and used on the desktop after the system is rebooted. Appendix B, Locale Values contains a list of valid locales. |
comment |
Is the comment field. Use double quotation marks to begin and end comments that are longer than one word. |
Locales are available on the Solaris 8 Software 1 of 2 SPARC Platform Edition or Solaris 8 Software 1 of 2 Intel Platform Edition CD.
Systems specified by domain or individually in the locale table are now set up to use the default locale. The default locale you specified is used during installation and by the desktop after the system is rebooted.