Sun,オープンソースUNIX「Solaris Express Developer Edition」の新版を公開
http://itpro.nikkeibp.co.jp/article/NEWS/20070925/282717/
2007年9月アーカイブ
Linux使って10年ぐらいになるけど、vmstatの-sオプションを初めて知った。
# vmstat -s
125388 total memory
121616 used memory
105004 active memory
3432 inactive memory
3772 free memory
776 buffer memory
42884 swap cache
524280 total swap
92 used swap
524188 free swap
185237 non-nice user cpu ticks
1710 nice user cpu ticks
77584 system cpu ticks
4911999 idle cpu ticks
14583 IO-wait cpu ticks
9918 IRQ cpu ticks
904 softirq cpu ticks
0 stolen cpu ticks
228949 pages paged in
298110 pages paged out
0 pages swapped in
23 pages swapped out
14052768 interrupts
2072332 CPU context switches
1190342519 boot time
4731 forks
まだまだ知らないことがたくさんだ。
数年前に受験したLPIC 1のときにでてきたtacコマンドにも驚愕したけど...。
Solaris10 8/07版がリリースされた。
http://jp.sun.com/company/Press/release/2007/0912.html
日本語HGフォントがJIS0213:2004対応版になったらしい。
ということは、Linuxよりもいろいろ表示できる文字が増えたのかな。
とりあえずPERC5/i対応ドライバが入っているかどうか調べてみよう。
ただいまダウンロード中。
http://j3e.de/linux/convmv/man/
Mac OS XのNFD形式に対応しているので、使う場面がありそう...。
CentOS 4.5を最小構成でインストールすると、X Window環境が入らない。
なので、X Window上でJavaによるインストーラーが起動するPowerChute Network Shutdown Editionをインストールすることができない。
試しにインストーラーを実行してみる。
-----
# ./pcns221lnx.bin
Preparing wizard...
Searching for JVM...
Starting the wizard...
Error: You need Swing 1.1 or 1.2 in your classpath to run this program.
See errors.log for other possible causes.out of disk space?
----
このエラーはX関連ライブラリが足りないために生じているので、
xorg-x11-deprecated-libsパッケージをインストールする。
で、再度実行すると下記のエラーがerrors.logに出力される。
---
Sat Sep 1 01:07:58 2007 Other possible causes for errors:
* Read/write access rights to the 'temp' and installation directories?
* OS need to be patched to run Java apps?
* Anti-virus software installed that won't permit unknonwn executable or JAR
files to run?
---
サーバーなのでX Windowが不要なマシンに、これ以上X関係のパッケージを入れたくない。
ということで、そういう場合には、インストール時には別にX Windowが動作するLinuxマシンを用意しておく。今回はCentOS4。
まずはクライアント側のX Window Systemで、tcp接続を許可するために、以下の設定を行う。
/etc/X11/fs/config の一番最後、
-----
# don't listen to TCP ports by default for security reasons
no-listen = tcp
-----
を
-----
# no-listen = tcp
-----
に変更して、TCP接続を有効にする。
それからX Windowを再起動する。
GUIにログインして、端末からnetstatで6000番のTCPをLISTENしていることを確認。
-----
$ netstat -antp | grep 6000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN -
tcp 0 0 :::6000 :::* LISTEN -
------
Xのリモート接続を許可するために端末上でおもむろに
------
$ xhost +
------
これを確認したら、sshでPowerChuteをインストールするマシンへログイン。
rootで以下のコマンドを実行すれば、無事インストーラーが立ち上がる。
-------
# export DISPLAY=192.168.10.1:0.0 注 192.168.10.1はクライアントマシンのIPアドレス
# ./pcns221lnx.bin
-------
これでCentOSの最小構成をベースにAPCのUPSに対応したサーバーを構築できる。
