Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
7.  Preconfiguring System Configuration Information (Tasks) Preconfiguring With the sysidcfg File sysidcfg File Keywords  Previous   Contents   Next 
   
 

To Create a sysidcfg Configuration File

  1. Using a text editor, create a file called sysidcfg.

  2. Type the sysidcfg keywords you want.

  3. Save the sysidcfg file.


    Note - If you create more than one sysidcfg file, you must save each one in a separate directory or on a separate diskette.


  4. Make the sysidcfg file available to clients through the following:

    • A shared NFS file system. Use add_install_client(1M) with the -p option to set up the system to install from the network.

    • The root (/) directory on a UFS diskette.

Example sysidcfg File

The following is an example of a sysidcfg file. The host names, IP addresses, and netmask of these systems have been preconfigured by editing the name service. Because all of the system configuration information is preconfigured in this file, you can use a custom JumpStart profile to perform a custom JumpStart installation.

system_locale=en_US
timezone=US/Central
terminal=sun-cmd
timeserver=localhost
name_service=NIS {domain_name=marquee.central.sun.com
                  name_server=connor(129.152.112.3)}
root_password=m4QPOWNY

Preconfiguring With the Name Service

The following table provides a high-level overview of the name service databases that you need to edit and populate to preconfigure system information.

System Information to Preconfigure

Name Service Database

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 that are being installed.

Time zone

timezone

Netmask

netmasks

You cannot preconfigure the locale for a system with the DNS or LDAP name service. If you use the NIS or NIS+ name service, follow the procedure for your name service to preconfigure the locale for a system:

To Preconfigure the Locale Using NIS

  1. Become superuser on the name server.

  2. Change /var/yp/Makefile to add the local map.

    1. 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
    2. 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
    3. Near 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
    4. Save the file.

  3. Create the file /etc/locale and make one entry for each domain or specific system:

    locale domain_name

    Or

    locale system_name

    Note - Chapter 40, Locale Values (Reference) contains a list of valid locales.


    For example, the following entry specifies that French is the default language that is used in the worknet.com domain:

    fr worknet.com

    And the following entry specifies that Belgian French is the default locale that is used by a system named charlie:

    fr_BE charlie 

    Note - Locales are available on the Solaris 9 DVD or Solaris 9 Software 1 of 2 CD.


  4. Make the maps:

    # cd /var/yp; make

    Systems that are specified by domain or individually in the locale map are now set up to use the default locale. The default locale that you specified is used during installation and by the desktop after the system is rebooted.

 
 
 
  Previous   Contents   Next