Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

Appendix C 275
Ignite-UX System Administration
Section 10: Installing NetScape as a Post-Configuration Step
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 $*