Ubuntu8.10 でglassfish v3 のサイレントインストール
GUI でのインストールが何らかの理由で出来ない場合は、サイレントモードでインストールを行うことになる。まず、インストールファイルは、
にて、
「Self-Extracting Installer File」
を取得する。
サイレントでインストールする場合、あらかじめ answer ファイルというのを用意してやる必要がある。以下のような感じのテキストファイルを用意するだけ。ファイル名は適当でOK.(answerfile とか)
#Fri Oct 24 12:00:54 PDT 2008 #openInstaller Dry Run Answer File. This File can be used as input to the openInstaller engine using the -a option. InstallHome.directory.INSTALL_HOME=/usr/local/glassfishv3-prelude License.license.ACCEPT_LICENSE=0 RegistrationOptions.regoptions.CREATE_NEWACCT=CREATE_NEWACCT RegistrationOptions.regoptions.DUMMY_PROP= RegistrationOptions.regoptions.SKIP_REGISTRATION=SKIP_REGISTRATION RegistrationOptions.regoptions.USERNAME= RegistrationOptions.regoptions.USERPASSWORD= RegistrationOptions.regoptions.USE_EXISTINGACCT=USE_EXISTINGACCT SOAccountCreation.accountinfo.COMPANYNAME= SOAccountCreation.accountinfo.COUNTRY= SOAccountCreation.accountinfo.COUNTRY_DROP_DOWN= SOAccountCreation.accountinfo.EMAIL= SOAccountCreation.accountinfo.FIRSTNAME= SOAccountCreation.accountinfo.LASTNAME= SOAccountCreation.accountinfo.PASSWORD= SOAccountCreation.accountinfo.REENTERPASSWORD= glassfish.Administration.ADMIN_PASSWORD=adminadmin glassfish.Administration.ADMIN_PORT=4848 glassfish.Administration.ADMIN_USER=admin glassfish.Administration.ANONYMOUS=ANONYMOUS glassfish.Administration.LOGIN_MODE=true glassfish.Administration.HTTP_PORT=8080 glassfish.Administration.NON_ANONYMOUS=NON_ANONYMOUS updatetool.Configuration.ALLOW_UPDATE_CHECK=true updatetool.Configuration.BOOTSTRAP_UPDATETOOL=true updatetool.Configuration.PROXY_HOST= updatetool.Configuration.PROXY_PORT=
これをダウンロードしてきた glassfish のインストールファイルと同じところにおいておき、以下のように実行する。
glassfish-v3-prelude-unix.sh -a answerfile -s
これでインストールが完了する。対話型より簡単だな。