acroread install
1.YaSTにソフトウェアソースを追加
FTP
サーバ名: ftp.kddilabs.jp
ディレクトリ:Linux/distributions/SuSE/suse/i386/10.0/SUSE-Linux10.0-GM-Extra/
2.YaST-ソフトウェアの追加で acroread を追加
3.以下のアドレスのフォントをインストールする
http://www.adobe.com/jp/products/acrobat/acrrasianfontpack.html
$ tar xzvf FontPack708_jpn_i386-linux.tar.gz
$ cd JPNKIT/
$ sudo ./INSTALL
>y-q
>accept
>/usr/X11R6/lib/Acrobat7/
4.Pluginをインストール
$ /usr/X11R6/lib/Acrobat7/Browser/install_browser_plugin
5.余計なPluginファイルをリネーム
#cd /usr/lib/browser-plugins
#mv libdragonnegg.so libdragonnegg.so.bak
Zend
/etc/system
set shmsys: shminfo_shmmax = 67108864
set shmsys: shminfo_shmmni = 200
set shmsys: shminfo_shmseg = 20
Java JRE
#java -version
GUI
#install
./install-tty
ZendPlatform
ZendOptimizer
mySql start
/usr/local/Zend/MySQL/bin/mysql.sh start
mkdir /usr/local/Zend/MySQL/var
touch /usr/local/Zend/MySQL/var/mysql.sock
----------------------------------------------
MySQL
mkdir /usr/local/Zend/MySQL/var
chown nobody:nodoby /usr/local/Zend/MySQL/var
/usr/local/Zend/MySQL/bin/mysql.sh start
mysqlユーザーを作成する。
# useradd -d /usr/local/mysql -g mysql -s /bin/false mysql
mysqlディレクトリのユーザーを変更する。
# chown -R mysql:mysql /usr/local/mysql
DBをインストールする。
# ln -s /usr/bin/hostname /usr/local/bin/hostname
# /usr/local/mysql/bin/mysql_install_db --user=mysql
Library Pathの登録
libraryとは、ソフト(バイナリ)がSolaris上で実行されるに必要な関数が収録されているファイル群です。
多くのソフト(バイナリ)が「/usr/lib」等のlibraryファイルを参照しています。
これらlibraryの一部が欠けていたりすると、そのソフト(バイナリ)は、正常に動作しません。
デフォルトでは「/usr/lib、/usr/openwin/lib、/usr/dt/lib」の3つが登録されていますが、
色々とパッケージを導入していくと「/usr/local/lib」にも導入されていきます。
しかし、後で追加された「/usr/local/lib」はシステムに登録されていません。これでは「/usr/local/lib」を使うソフト(バイナリ)に支障が出るので、登録する必要があります。
一般的な方法として、crleコマンドの使用、.profileにLD_LIBRARY_PATHの登録の2種類があります。
両者の違いは、前者はシステム的に登録。後者はユーザーごとに登録です。
「/usr/local/lib」は、よく使われるのでシステムに登録した方が便利なのです。
ここではcrleコマンドを使用します。設定にはroot権限が必要です。
# crle -c /var/ld/ld.config -l /usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib
※スペースの関係上2行になっていますが、「-l」の後に登録するLib Pathを設定します。間違って登録された場合、最悪ほとんどの基本コマンド(ls等)が使用できなくなります。
しかし、crleコマンドは使用可能なので、焦らずもう一度再登録してください。
crleコマンドはlibrary pathを変更する際に、一部ファイルのみ他を参照させる等色々な変更が出来ます。
詳細は、docs.sun.comのcrleコマンドの項目を参照してください
----------------------------------------
ユーザが個別にインストールするプログラムは、/usr/local以下にインストールされるため、
/usr/local/lib以下にあるライブラリーを参照するプログラムを起動すると、
ライブラリーが見つからない等のエラーが出て起動できない場合が多々ありました。
この場合は、システム環境変数で参照するライブラリがあるディレクトリ
(/usr/local/lib)をLD_LIBRARY_PATHに設定するか、
同じディレクトリをLD_RUN_PATHを設定して再度コンパイルしなおす必要がありました。
Solaris9からは、他のUNIXのldconfigと同様のコマンドが出来て、
システムデフォルトのライブラリパスを設定することが出来ます。
例)/usr/local/libをパスに追加する場合
crle -u -l /usr/local/lib
solaris10
lang=eucjp
サービス確認
------------------------------
# svcs -a
------------------------------
ユーザー作成
Xでsmc
------------------------------
/etc/nsswitch.conf
hostsにDNS
------------------------------
vi /etc/resolv.conf
nameserver 192.168.0.1
------------------------------
/etc/defaultrouter
192.168.0.1
-----------------------------
# svcadm disable network/smtp:sendmail
-----------------------------
rootのパス追加
# vi /etc/default/su
SUPATH=/usr/sfw/bin:/usr/local/bin:/usr/ccs/bin/:/usr/sbin:/usr/bin:/usr/sfw/lib:
-----------------------------
GCC
/usr/sfw/binの下に、GCC3.4.3
GNU make
/usr/sfw/binの下に、GNUmake3.80
-----------------------------
# netstat -rn
----------------------------
bash
---------------------------
デスクトップの無効化
# /etc/rc2.d/S99dtlogin stop 次回から起動しないように無効化する。
# /usr/dt/bin/dtconfig -d
---------------------------
パッチ
#smpatch update
---------------------------
stty erase ^H
---------------------------
useradd -d /export/home/solaris -m -g staff -s /bin/bash solaris
インストール済みを再設定
# /usr/sbin/sys-unconfig
---------------------------
http://www.sunfreeware.com
Reinstall
install
# pkgadd -d ./xxxx
uninstall
# pkgrm xxx
uninstall
on X
# /usr/bin/prodreg
show
$ pkginfo -l
パッケージの情報を表示する。
pkginfo
gzip -d ./*.gz
----------------------------
php
$ ./configure --with-libxml-dir=/usr/local/lib --with-bz2=/usr/local/lib --enable-calendar --with-db4=/usr/local/BerkeleyDB.4.2 --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-wddx --with-gd --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --enable-sockets --with-iconv-dir=/usr/local/lib --enable-ftp --with-openssl=/usr/local/ssl --enable-calendar
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-apxs2=/usr/sbin/apxs2 --with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-interbase --with-ming=/usr --with-swf=/usr --without-sybase --with-gdbm=/usr --without-fdftk --with-java=/opt/sun-jdk-1.4.2.10 --with-mcal=/usr --without-unixODBC --with-pgsql=/usr --with-snmp=/usr --enable-ucd-snmp-hack --with-xpm-dir=/usr/X11R6 --with-gmp --without-mssql' '--without-crack' '--without-pdflib' '--with-gd=/usr' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--with-pspell=/usr' '--with-openssl=/usr' '--with-imap=/usr' '--with-ldap=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--enable-memory-limit' '--disable-ipv6' '--without-yaz' '--disable-debug' '--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-imap-ssl' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--libdir=/usr/lib/php' '--without-pear' '--build=i686-pc-linux-gnu'