2007年 5月 29日 火曜日
Messages in cipher reflected in the looking glass
(EN) Diskless Solaris x86 Part 5 : Add StarSuite 8 into diskless client
Part 5 is installation of StarSuite 8.
Installation of StarSuite 8 for Japanese environments is written in this blog.
In general, use setup command to install,
but you have to use pkgadd command to install StarSuite into diskless client environment.
Detail information is written in the manual at docs.sun.com
StarOffice 8 Collection, English >> StarOffice 8 Administration Guide >> 1. Installing StarOffice
At first, check installation directory of the package, you want to install.
Search pkginfo file of the package to find installation directory of the package.
The following is example of searching installation directory of the package of StarSuite 8 for Japanese environment.
# /cdrom/office8_id2043/office/packages # grep BASEDIR */pkginfo SUNWstarsuite-agfafonts/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-base/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-calc/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core01/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core02/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core03/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core04/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core05/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core06/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core07/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core08/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-core09/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-desktop-int-root/pkginfo:BASEDIR=/ SUNWstarsuite-desktop-integratn/pkginfo:BASEDIR=/ SUNWstarsuite-draw/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-fonts/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-gallery/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-gnome-integration/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-graphicfilter/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-impress/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-ja-fonts/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-ja-help/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-ja-res/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-ja/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-javafilter/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-lngutils/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-math/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-ooofonts/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-shared-mime-info/pkginfo:BASEDIR=/usr SUNWstarsuite-writer/pkginfo:BASEDIR=/opt/starsuite8 SUNWstarsuite-xsltfilter/pkginfo:BASEDIR=/opt/starsuite8
And check pkgmap file to find a installation dir of the package.
You can divide to four group as follows.
Packages which are installed into /opt/starsuite8 directory. SUNWstarsuite-agfafonts SUNWstarsuite-base SUNWstarsuite-calc SUNWstarsuite-core01 SUNWstarsuite-core02 SUNWstarsuite-core03 SUNWstarsuite-core04 SUNWstarsuite-core05 SUNWstarsuite-core06 SUNWstarsuite-core07 SUNWstarsuite-core08 SUNWstarsuite-core09 SUNWstarsuite-draw SUNWstarsuite-fonts SUNWstarsuite-gallery SUNWstarsuite-gnome-integration SUNWstarsuite-graphicfilter SUNWstarsuite-impress SUNWstarsuite-ja-fonts SUNWstarsuite-ja-help SUNWstarsuite-ja-res SUNWstarsuite-ja SUNWstarsuite-javafilter SUNWstarsuite-lngutils SUNWstarsuite-math SUNWstarsuite-ooofonts SUNWstarsuite-writer SUNWstarsuite-xsltfilter Packages which are installed into /usr directory (Type A). SUNWstarsuite-shared-mime-info Packages which are installed into /usr directory (Type B). SUNWstarsuite-desktop-integratn Packages which are installed into / (root) directory. SUNWstarsuite-desktop-int-root
Make admin files for each type.
admin file for packages, which are installed into / (root) and /opt
# cat >/tmp/admin_default <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=default EOF
admin file for packages, which are installed into /usr (Type A)
# cat >/tmp/admin_usr_a <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=/usr_i386.all/usr EOF
admin file for packages, which are installed into /usr (Type B)
# cat >/tmp/admin_usr_b <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=/usr_i386.all EOF
Install packages into /opt and /usr for diskless client.
# pkgadd -a /tmp/admin_default -R /export/Solaris_10 -d . \ SUNWstarsuite-agfafonts SUNWstarsuite-base SUNWstarsuite-calc \ SUNWstarsuite-core01 SUNWstarsuite-core02 SUNWstarsuite-core03 \ SUNWstarsuite-core04 SUNWstarsuite-core05 SUNWstarsuite-core06 \ SUNWstarsuite-core07 SUNWstarsuite-core08 SUNWstarsuite-core09 \ SUNWstarsuite-draw SUNWstarsuite-fonts SUNWstarsuite-gallery \ SUNWstarsuite-gnome-integration SUNWstarsuite-graphicfilter \ SUNWstarsuite-impress SUNWstarsuite-ja-fonts SUNWstarsuite-ja-help \ SUNWstarsuite-ja-res SUNWstarsuite-ja SUNWstarsuite-javafilter \ SUNWstarsuite-lngutils SUNWstarsuite-math SUNWstarsuite-ooofonts \ SUNWstarsuite-writer SUNWstarsuite-xsltfilter # pkgadd -a /tmp/admin_usr_a -R /export/Solaris_10 -d . SUNWstarsuite-shared-mime-info # pkgadd -a /tmp/admin_usr_b -R /export/Solaris_10 -d . SUNWstarsuite-desktop-integratn
Install SUNWstarsuite-desktop-int-root into / (root) directory.
The following is a example to install it to / (root) directory of w1100z .(/export/root/w1100z)
First step is copy it into /tmp directory.
# cp -r SUNWstarsuite-desktop-int-root /tmp
Rewrite /tmp/SUNWstarsuite-desktop-int-root/install/checkinstall as follows.
Because checkinstall script does not run in the diskless client setup.
Comment out all and set OFFICE_PATH to /opt/starsuite8 .
# Check if the core package has been installed
#COREPKG=`echo ${PKGINST} | sed 's/desktop-.*/core01/'`
#pkginfo ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} -q ${COREPKG}
#if [ $? -ne 0 ]; then
# echo "The ${COREPKG} package could not be found. Please install the"
# echo "${COREPKG} package and try this installation again"
# exit 3 # Suspend
#fi
#OFFICE_PATH=`pkginfo ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} -r ${COREPKG}`
#cat >$1 <<!
#OFFICE_PATH=${OFFICE_PATH}
#!
OFFICE_PATH=/opt/starsuite8
exit 0
Rewrite /tmp/SUNWstarsuite-desktop-int-root/pkgmap as follows.
Because, pkgadd check correspondence files in the package before installation.
: 1 33 1 i checkinstall 522 40668 1122390176 1 i copyright 466 43035 1122390173 1 i depend 51 4532 1122390177 1 d none etc 0755 root sys 1 e build etc/mailcap 0644 root bin 3097 27993 1122390173 1 e build etc/mime.types 0644 root bin 1710 33433 1115994216 1 s none etc/starsuite8=../opt/starsuite8 1 i pkginfo 465 37950 1122390176 1 i postinstall 252 20473 1122390177 1 i space 0 0 1122390177
Changed part is as follows. (change to 522 and 40668)
1 i checkinstall 522 40668 1122390176
The following is installation error, which is gotten if pkgmap file is not rewrited.
# pkgadd -d . SUNWstarsuite-desktop-int-root
Processing package instance <SUNWstarsuite-desktop-int-root> from
Desktop integration for StarSuite 8 (root)(i386) 8.0.0,REV=106.2005.05.23
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject
to license terms. Third-party software, including font technology, is
copyrighted and licensed from Sun suppliers. Sun, Sun Microsystems, the
Sun logo, Java, Solaris and StarSuite are trademarks or registered
trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Federal Acquisitions: Commercial Software - Government Users Subject to
Standard License Terms and Conditions.
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
## Executing checkinstall script.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
pkgadd: ERROR: packaging file </root/SUNWstarsuite-desktop-int-root/install/checkinstall> is corrupt
file size <482> expected <522> actual
file cksum <37893> expected <40668> actual
Installation of <SUNWstarsuite-desktop-int-root> failed (internal
error).
No changes were made to the system.
Install SUNWstarsuite-desktop-int-root into / (root) director of disklecc client.
# pkgadd -a /tmp/admin_default -R /export/root/w1100z -d . SUNWstarsuite-desktop-int-root
After installation, overwrite symbolic link as follows.
Because pkgadd made the following symbolic link, but it links to wrong directory.
# cd /export/root/w1100z/etc # rm starsuite8 # ln -sf ../opt/starsuite8 starsuite8
After that, install latest patches for StarSuite 8 as follows.
In this blog, 120190-09 (Product Update 5) is used.
# patchadd -R /export/Solaris_10 120190-09 Validating patches... Loading patches installed on the system...
If an initial version of StarSuite 8 is into NFS v4 server and client mount with
NFS v4 client, client cannot execute StarSuite 8.
StarSuite 8 outputs error message as follows.
The application cannot be started
The component manager is not available
This error does not
This bug is not seen in Product Update 5 or later.
If your environment cannot update, change nfs mount type of directory
, which has StarSuite 8 binaries, to NFS v3.
Add ver=3 to option part of mounting part of /opt directory in /etc/vfstab of diskless client.
x4200m2:/export/Solaris_10/opt - /opt nfs - yes ro,vers=3
Posted at 05:10午後 5 29, 2007 by Yasuhiro Fujitsuki in Linux & Solaris(EN) |