|
||
|
|
Silent installation allows you to use a file to predefine all the answers that you would normally supply to the setup program interactively. This provides you with the ability to script the installation of your Netscape Directory Servers (Directory Servers).
This chapter includes the following sections:
To use silent installation, you call the
setupprogram with the-sand-fcommand-line options. That is, to use silent installation:
- On UNIX machines, log in as
root. On Windows machines, log in with Administrator privileges.![]()
- Create a new directory:
![]()
# mkdir ds
# cd ds
- If you have not already done so, download the product binaries file to the installation directory.
![]()
- On UNIX, unpack the product binaries file using the following command:
![]()
# gunzip -dcfilename.tar.gz | tar -xvof-
- where filename corresponds to the product binaries that you want to unpack.
- On Windows machines, unzip the product binaries.
![]()
- Prepare the file that will contain your installation directives.
![]()
- Run the
setupprogram with the-sand-fcommand line options:![]()
setup -s -ffilename
- where filename is the name of the file that contains your installation directives.
The next section shows some examples of the silent install files. Silent installation directives that you can use when installing Directory Server is covered in sections that follow.
Preparing Silent Installation Files
Silent installation is intended for use at sites where many server instances must be created. For Directory Server, it is especially useful for heavily replicated sites that will create a large number of consumer servers.
This section first describes how to create silent installation files. It then provides examples of using silent installation to support the following common installation scenarios:
- A Typical Installation
![]()
- Using an Existing Configuration Directory
![]()
- Installing the Standalone Netscape Console
![]()
You find a definition of the individual installation directives in "Installation Directives".
Any Distinguished Names in the files must be in the UTF-8 character set encoding.
Creating Silent Installation Files
The best way to create a file for use with silent installation is to use the
setupprogram to interactively create a server instance of the type that you want to duplicate.To do this, run
setupwith the-kflag. Thesetupprogram will create the following file: serverRoot/setup/install.infThis file contains all the directives that you would use with silent installation to create the server instance. You can then use this file to create other server instances of that type.
You will have to make some modifications to this file before you use it. Specifically, ensure that you:
- Set the
FullMachineNamedirective to a value that is appropriate for the machine on which Directory Server will be installed, if it's not to be the local machine. In most circumstances, it is best not to use this directive becauseFullMachineNamewill then default to the local host name. However, if you use custom installation to generate your initial server instance, then this directive will appear in theinstall.inffile.![]()
- Set the
ServerIpAddressdirective appropriate for the local machine. The same usage rules apply forServerIpAddressas forFullMachineName. Specifically, try to not includeServerIpAddressin yourinstall.inffile unless you absolutely have to (as may be necessary for multi-homed systems).![]()
- Verify the installation path on the
ServerRootdirective. If you are installing on both Windows and UNIX machines, make sure the appropriate path delimiter is used. Add or remove the Windows drive letter designation as is appropriate for the host you are installing on. Also, the name of the file-system directory where you install files must not contain any space characters.![]()
- If you are installing more than one Directory Server on the same host, make sure the
ServerIdentifierdirective contains a unique value for each server instance.![]()
- If you create your
install.inffile on a Windows machine, then theSuiteSpotUserIDandSuiteSpotGroupdirectives are both set tonobody. If you subsequently use this file on a UNIX machine, ensure the user and group specified by these directives are appropriate for the machine. TheSuiteSpotUserIDandSuiteSpotGroupdirectives determine what user and group a server will run under when installed on a UNIX system.![]()
Be sure to protect
install.inffiles since they contain passwords in clear. For complete information on the directives you can use in a silent installation file, see "Installation Directives".
The following is an example of the
install.inffile that is generated for a typical installation:
Using an Existing Configuration Directory
The following is an example of the
install.inffile that is generated when you perform a typical installation and you choose to use an existing Directory Server as the configuration directory:
Installing the Standalone Netscape Console
The following is an example of the
install.inffile that is generated when you install just Netscape Console:
This section describes the basic format of the file used for silent installation. It then describes the directives that are available for each area of the silent installation file. Specifically, the following sections are provided here:
- Silent Installation File Format
![]()
- [General] Installation Directives
![]()
- [Base] Installation Directives
![]()
- [slapd] Installation Directives
![]()
- [admin] Installation Directives
![]()
Silent Installation File Format
When you use silent installation, you provide all the installation information in a file. This file is formatted as follows:
The keywords [
General],[slapd], and[admin]are required. They indicate that the directives that follow are meant for a specific aspect of the installation. They must be provided in the file in the order indicated above.[General] Installation Directives
[General] installation directives specify information of global interest to the Netscape servers installed at your site. That is, the information you provide here will be common to all your Netscape servers.
The [General] installation directives are:
Table 4-1 [General] Installation Directives
Specifies components to be installed. The list of available components will differ depending on the Netscape servers available on your installation media. For stand-alone directory installation, the list of components is:
svrcoreuninstallation binaries![]()
basethe base installation package![]()
adminthe Administration Server binaries![]()
slapdthe Directory Server binaries![]()
This directive is required. At a minimum, you should always provide:
Specifies the full path to the directory where the Netscape server binaries are installed. This directive is required.
Specifies the fully qualified domain name of the machine on which you are installing the server. The default is the local host name.
UNIX only. Specifies the username that Netscape servers will run as. This parameter does not apply to the user that the Administration Server runs as. See the
SysUserdirective in Table 4-5 for more information. The default is usernobodybut this should be changed for most deployments.UNIX only. Specifies the group that Netscape servers will run as. The default is group
nobodybut this should be changed for most deployments.Specifies the LDAP URL that is used to connect to your configuration directory. LDAP URLs are described in the Netscape Directory Server Administrator's Guide. This directive is required.
Specifies the administration domain under which this server will be registered. See "Determining the Administration Domain" for more information about administration domains.
Specifies the user ID of the entry that has administration privileges to the configuration directory. This directive is required.
Specifies the password for the ConfigDirectoryAdminID. This directive is required.
Specifies the LDAP URL that is used to connect to the directory where your user and group data is stored. If this directive is not supplied, the configuration directory is used for this purpose. LDAP URLs are described in the Netscape Directory Server Administrator's Guide.
Specifies the user ID of the entry that has administration privileges to the user directory.
[Base] Installation Directives
There is only one [Base] installation directive and it allows you to determine whether Netscape Console is installed.
Table 4-2 [Base] Installation Directive
[slapd] Installation Directives
[slapd] installation directives specify information of interest only to the Directory Server instance that you are currently installing. These directives are described in the following sections:
Required [slapd] Installation Directives
You must provide the following directives when you use silent installation with Directory Server:
Table 4-3 Required [slapd] Installation Directives
Specifies the
slapdcomponents to be installed. The components are:This directive is required. It is recommended that you always install both components any time you install the Directory Server.
Specifies the port the server will use for LDAP connections. For information on selecting server port numbers, see "Choosing Unique Port Numbers". This directive is required.
Specifies the server identifier. This directive is required.
This value is used as part of the name of the directory in which the Directory Server instance is installed. For example, if your machine's host name is
phonebook, then this name is the default and selecting it will cause the Directory Server instance to be installed into a directory labeledslapd-phonebook.Specifies the suffix under which you will store your directory data. For information on suffixes, see "Determining Your Directory Suffix". This directive is required.
Specifies the distinguished name used by the directory manager. For information on the directory manager, see "Defining Authentication Entities". This directive is required.
Specifies the directory manager's password. This directive is required.
Optional [slapd] Installation Directives
You may provide the following directives when you use silent installation with Directory Server:
Table 4-4 Optional [slapd] Installation Directives
[admin] Installation Directives
[admin] installation directives specify information of interest only to your Directory Server's Administration Server. That is, this is the installation information required for the Administration Server that is used to manage the Directory Server instance that you are currently installing.
The [admin] installation directives are:
Table 4-5 [admin] Installation Directives
Specifies the admin components to be installed. The base components are:
admininstall the Administration Server. You must install the Administration Server if you are also installing some other Netscape server.![]()
admin-clientinstall Netscape Console. Specify just this component if you are installing Netscape Console as stand-alone. Do not install this component if you will remotely manage your servers and Netscape Console will be installed somewhere else on your network.![]()
UNIX only. Specifies the user that the Administration Server will run as. For default installations that use the default Netscape port numbers, this user must be root. Root is the default. For information on what users your servers should run as, see "Deciding the User and Group for Your Netscape Servers (UNIX only)"
Specifies the port that the Administration Server will use. Note that the Administration Server's host name is given by the
FullMachineNamedirective. For more information onFullMachineName, see Table 4-1.Specifies the administration ID that can be used to access this Administration Server if the configuration directory is not responding. The default is to use the value specified by the
ConfigDirectoryAdminIDdirective. See "Defining Authentication Entities" for information on this directive.Specifies the IP address that the Administration Server will listen to. Use this directive if you are installing on a multi-homed system and you do not want to use the first IP address for your Administration Server.
© 2001 Sun Microsystems, Inc. Portions copyright 1999, 2002 Netscape Communications Corporation. All rights reserved.
Last Updated August 23, 2002