Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Ignite-UX Administration Guide: HP Computers with HP-UX 10.x, 11.0 or 11i > Chapter 8 Customizing Your Installation

Installing Netscape® as a Post-config Step

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Here is an example of using Ignite-UX post-installation scripts to load software on new installs. Netscape is one of those tools which seems to have a new version every six months. Due to the frequency of the changes, this tool may not make sense to include on the "golden system".

This example shows one way of accomplishing the task using a post_config_script. Another way would be to create a software selection (sw_sel) that would reference the tar archive, and then a post_config_script (or post_config_cmd) associated with the sw_sel that would be run only if the selection was picked for loading. Using a sw_sel would have the advantage of making it appear in the UI as just another software selection, and would have the sw_impact statements to ensure sufficient file system space. For more examples, see the files in /opt/ignite/data/examples.

NOTE: Be sure the Netscape Navigator product is appropriately licensed prior to installation.
  1. Get Netscape Navigator — Netscape Navigator is typically pulled from one of the Netscape ftp server sites. The pulled files are gzip compressed tar images with an encoded name similar to:

    netscape-v30-export.hppa1.1-hp-hpux.tar.gz
  2. Special Considerations for Netscape — In order to run Navigator, each user needs the correct network preferences. Unfortunately, these preferences cannot be defaulted, and must exist in every users $HOME/.netscape directory. To get around this limitation, we have supplied a "run-netscape" script. Instead of running "netscape", the user can run a link to "run-netscape" which will install the default preferences at first invocation.

    A sample "run-netscape" script is shown below. You will also need to create a default configuration file. Merely take an existing one and remove all user and host specific information.

  3. Write an install and customization script — Attached below is a script we used for installing Netscape in our environment. The script does the following:

    1. Remote copies from a server to the local target netscape, a default-preferences file, and the special run-netscape script.

    2. Unpacks Netscape.

    3. Makes /usr/local/bin/netscape a link to "run-netscape" to ensure user defaults will be installed.

    4. Performs the special netscape customization.

    5. Cleans up.

    We named and placed our script under:

    /var/opt/ignite/scripts/install_netscape

  4. Add the install script to Ignite-UX customization — Add a line like this to one of your config files (not in a clause):

    post_config_script="/var/opt/ignite/scripts/install_netscape"

    For details of adding a post configuration script, see Chapter 9. This script will need to be accessible using tftp.

Example script

Here's an example post-install script for Netscape:

# !/usr/bin/ksh
#
# Post Ignite-UX installation script used to install Netscape
version 3.0.
# This installation assumes HP-UX 11.00 because it
depends on gzip
# already loaded on the system.
#
PATH=${PATH}:/usr/sbin:/sbin:/usr/contrib/bin
IUX_SERVER=interop1.fc.hp.com
IUX_ARCHIVE_DIR=/var/opt/ignite/archives/Netscape
NETSCAPE_GZIP=netscape-v30-export.hppa1.1-hp-hpux.tar.gz
NETSCAPE_INSTALL_DIR=/opt/Netscape
NETSCAPE_RUN_DIR=/usr/local
echo "* Loading Netscape"
mkdir ${NETSCAPE_INSTALL_DIR} cd ${NETSCAPE_INSTALL_DIR}
rcp ${IUX_SERVER}:${IUX_ARCHIVE_DIR}/${NETSCAPE_GZIP}
${NETSCAPE_GZIP} rcp ${IUX_SERVER}:${IUX_ARCHIVE_DIR}/run-netscape . rcp
${IUX_SERVER}:${IUX_ARCHIVE_DIR}/default-preferences .
gzip -dc ${NETSCAPE_GZIP} | tar -xvf -
echo "* Finished loading Netscape"# # Configure netscape
runtime # echo "* Configuring Netscape"
chmod 755 ${NETSCAPE_INSTALL_DIR}/run-netscape ln -s
${NETSCAPE_INSTALL_DIR}/run-netscape
${NETSCAPE_RUN_DIR}/bin/netscape
# # Install java_30 # mkdir ${NETSCAPE_RUN_DIR}/lib/netscape
ln -s ${NETSCAPE_INSTALL_DIR}/java_30 \
${NETSCAPE_RUN_DIR}/lib/netscape/java_30
# # Install plugins library # mkdir
${NETSCAPE_RUN_DIR}/lib/netscape/plugins ln -s
${NETSCAPE_INSTALL_DIR}/libnullplugin.so
${NETSCAPE_RUN_DIR}/lib/netscape/plugins/libnullplugin.so
mkdir ${NETSCAPE_RUN_DIR}/lib/netscape/mime.types mkdir
${NETSCAPE_RUN_DIR}/lib/netscape/mailcap
rm -f ${NETSCAPE_GZIP}
echo "* Finished configuring Netscape"
Example run time script for Netscape
#!/bin/sh
# # Put this script in /usr/local/bin/netscape
set -e
# Set this to the location of the real Netscape executable #
REAL_NETSCAPE=/opt/Netscape/netscape
# Set this to the location of the default preferences file. #
DEF_PREFS=/opt/Netscape/default-preferences
if [ ! -e $HOME/.netscape/preferences ]; then echo '(installing
default Netscape preferences...)' mkdir $HOME/.netscape
cp -p $DEF_PREFS $HOME/.netscape/preferences echo '(done)' fi
# The "-name" option is to avoid confusing the users' X resources.
# exec $REAL_NETSCAPE -name netscape $*
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.