#Performing task "Add Remote Printer": Adding "remoteprinter"

/usr/sbin/lpadmin -premoteprinter -ormserver.com -orptsslj \ -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel /usr/sbin/lpadmin -dremoteprinter

/usr/sbin/accept remoteprinter /usr/bin/enable remoteprinter

NOTE: Make sure that the directory the post-installation script resides in is available to tftp by examining and changing the /etc/inetd.conf file.

1.Create a script to set up access to a default network printer.

2.Ignite-UX post-installation scripts are defined using the post_config_script variable. To add the script you created in the previous step, edit your core_cfg configuration file and add the following line:

post_config_script += \ "/var/opt/ignite/scripts/install_default_printer"

IMPORTANT: You must ensure that the variable _hp_cfg_detail_level value includes t when a post_config_script is added in the Per-Clientconfiguration file. For more information, see the instl_adm(4).

For example, the variable _hp_cfg_detail_level value in the Per-Clientconfiguration file can be set as follows:

_hp_cfg_detail_level="ivst"

where t is for post_config_script selection settings.

This sets the install_default_printer script to be run as a post-installation process on the client. This line must stand alone, and be placed outside of any clauses in the file (such as a sw_sel clause). The script set to execute with the post_config_script variable executes after all software has been installed and the system has been booted with its final kernel, but before any of the normal /etc/rc startup scripts have been run.

You can change the default installation script behavior from the Actions menu, by choosing Install Client, and then choosing New install. Then click on the Advanced tab and select the post-installation scripts that you want to be executed.

TIP: If you want to make a script available under all configurations, add it to the /var/opt/ ignite/data/INDEX file. For example, to execute the install_default_printer script following every client installation, add the following line to the end of this file:

scripts {"/var/opt/ignite/scripts/install_default_printer"}

This script is made available for selection on the Advanced tab for all configurations. For more information, see “Advanced tab” (page 144).

Using post-installation scripts 173