2009年07月の記事
2009-07-13 (月)
Posted at: 00:17:00 - Posted by: yashikiba - Category: CentOS5
前の記事で、lm_sensorsをyumでインストールしたことを書きました。
sensorsコマンドを実行したところ、案の定、表示とその値が変なので修正しました。
※ この修正は、もちろん私のM/Bにだけ当てはまるものですが、手順は多分他のマザーボードでも同じだと思います。
・BIOS画面とM/BおよびCPUの仕様書から基準値を求めて、設置環境と動作状況を元に、「測定値」ができるだけ信頼できそうな値になるように設定ファイルを編集することにしました。
1.BIOS画面でシステムの情報を取得する。
・電圧やファンの回転数、温度などの値は、起動時のBIOS設定画面で表示されるものを基準にすることにしました。
--------------------------------------------------------------
*** BIOS設定画面 ***
--------------------------------
[H/W Monitor]
Chassis Intrusion Disable
CPU Shutdown Temperature 85℃/185°F
--------------------------------
[PC Health Status]
CPU Temperature 64℃/147°F
System Temperature 48℃/118°F
CPU FAN Speed 2463 RPM
System FAN Speed 0 RPM
Vcore 1.34 V
+3.3V 3.31 V
+5V 5.05 V
+12V 12.12 V
5VSB(V) 5.21 V
--------------------------------------------------------------
(1) 「Chassis Intrusion」について。
・ケースを開けた場合、lm_sensorsで以下のアラームが出ます。
「alarms: Chassis intrusion detection ALARM」
・この表示は、「Chassis Intrusion」を「Disable」から「Enable」に変更後、一度「Reset」することで出なくなるようです。
(2) Shutdown Temperatureについて。
・これは、80℃、85℃、90℃、95℃の4つから選択できますが、デフォルトの85度にセットしました。
・CPUの温度がこの値を超えると、システムが停止します。
(でも、以前この状態になったときは、電源は切れずに「フリーズ」したと思います。)
(3) マイナスの電圧について。
・「BIOS」で表示されていないので、無視することにします。
(4) システムファンの回転数が「0」であることについて。
・M/Bの不具合だと思います。
・lm_sensorsでは、このアイテムは取得できました。
(5) 電圧の種類について。
・PCの自作はしないので、分かりませんが。ただ、これらの電圧はマザーボードに供給される電圧であるということだけ知っていればいいかなと考えています。
(電源からは、当然、他の周辺機器へも電力が送られています。)
・M/Bには、+3.3V、+5V、+12V、+5VSBが供給されています。
(正しく言うと、電圧がかかっていると言うのかも知れません。)
・VcoreはCPUのコア部分への供給電圧。5VSTBはPCの「停止」時の待機電圧です。
VBATは内蔵バッテリーの電圧です。
※ 上のところは誤りがあると思うので、コメントで指摘してくだされば助かります…。
2.チップ(Celeron D 2.8GHz)の仕様。
--------------------------------------------------------------
インテル(R) Celeron(R) D プロセッサー
====================================================
プロセッサー・ナンバー 335
(動作周波数) (2.80 GHz)
S-spec (ボックス版) SL7C7
最高動作温度 67 ℃
====================================================
参考:
<インテル(R) Celeron(R) D プロセッサー>
--------------------------------------------------------------
3.設定ファイルの修正。
これは、ほぼ以下のサイトの通りにしました。
参考:
<EN15000でlm_sensors - とりあたまさんのおぼえがき>
・上記のサイトでは、私の環境と同じチップとドライバを使用していました。
(Chip:W83697HF、Driver:w83627hf。)
(1) 温度とファンの回転数の設定、および表示の変更。
・まず、表示と温度、それとファンの回転数のみを編集しました。
--------------------------------------------------------------
# vi /etc/sensors.conf
(省略)
chip "w83697hf-*"
(省略)
# temp/fan label → このブロックを追加。
label fan1 "SYSFAN"
label fan2 "CPUFAN"
label temp1 "SYS"
label temp2 "CPU"
-------------------------------------------
# max/min → このブロックを追加。
set fan1_min 2300 → システムファン。
set fan2_min 1300 → CPUファン。
--------------------------------------------
# sensor types → このブロックを追加。
set sensor1 3435 → thermistor。
set sensor2 1 → diode。
---------------------------------------------
# temperature limits → このブロックを追加。
set temp1_over 55 → システム温度は、夏場は50℃を超えるので。
set temp1_hyst 50 → ヒステリシス温度(アラームを解除する温度。)
set temp2_over 67 → CPUの許容温度は67℃です。
set temp2_hyst 62 → 適当です。
※ 私の自宅サーバの設置場所が部屋の奥まった所なので、「温度」はかなり高くなっています。
----------------------------------------------
# set beep disable → このブロックを追加。
set beep_enable 1
・アラームのビープ音を聞いたことはありませんが。
--------------------------------------------------------------
# sensors -s → このコマンドで設定ファイルを反映させるようです。
# /etc/rc.d/init.d/lm_sensors restart
lm_sensors を停止中: [ OK ]
lm_sensors を起動中: [ OK ]
# sensors
w83697hf-isa-0290
Adapter: ISA adapter
VCore: +1.36 V (min = +0.13 V, max = +1.04 V) ALARM
+3.3V: +3.33 V (min = +0.40 V, max = +3.33 V)
+5V: +5.03 V (min = +0.08 V, max = +0.78 V) ALARM
+12V: +12.16 V (min = +0.24 V, max = +12.77 V)
-12V: -11.95 V (min = -1.42 V, max = -9.15 V) ALARM
-5V: -7.71 V (min = -0.98 V, max = -0.78 V) ALARM
V5SB: +5.59 V (min = +1.72 V, max = +6.50 V)
VBat: +3.26 V (min = +1.30 V, max = +0.26 V) ALARM
SYSFAN: 2463 RPM (min = 2295 RPM, div = 4)
CPUFAN: 1461 RPM (min = 1328 RPM, div = 4)
SYS: +49°C (high = +55°C, hyst = +50°C) sensor = thermistor
CPU: +57.0°C (high = +67°C, hyst = +62°C) sensor = diode
alarms:
beep_enable:
Sound alarm disabled
--------------------------------------------------------------
・CPUとシステムのファンの回転数と温度は、修正できました。
・BIOS設定で、「Chassis Intrusion」を「Reset」すると、
「Chassis intrusion detection ALARM」は出なくなりました。
・電圧の数値設定は、参考サイトをそのまま「丸写し」することにしました。
(2) 電圧の設定変更。
・再度、設定ファイル(/etc/sensors.conf)の編集します。
・特に、VcoreがBIOS表示よりも少し低い点も修正しました。
・以下は、最終的な変更です。
--------------------------------------------------------------
# vi /etc/sensors.conf
(省略)
chip "w83697hf-*" → ここから編集。
(省略)
# no in1 on this chip.
label in0 "VCore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
# label in5 "-12V" → コメントアウト。
# label in6 "-5V" → コメントアウト。
label in7 "V5SB"
label in8 "VBat"
# ignore in5/in6 → in5とin6は、BIOS画面に表示されないので、値を計算しません。
ignore in5
ignore in6
# temp/fan label → fanとtempにラベルをつけます。(前述)
label fan1 "SYSFAN" → ケースファン。
label fan2 "CPUFAN" → CPUファン。
label temp1 "SYS" → ケース温度。
label temp2 "CPU" → CPU温度。
(省略)
# compute → この部分はすべて、参考サイト通りにしました。
compute in0 (0.98)*@ , @/(0.98) # modified
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((28/10)+1)*@ , @/((28/10)+1)
compute in7 ((5.5/10)+1)*@ , @/((5.5/10)+1)
# max/min → 参考サイトを一部修正しました。
set in0_min 1.065 * 1.20 → 式を変更。(Vcore電圧の表示が低いので。)
set in0_max 1.065 * 1.30 → 式を変更。(同上。)
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in3_min 5.0 * 0.95
set in3_max 5.0 * 1.05
set in4_min 12 * 0.90
set in4_max 12 * 1.10
set in7_min 5 * 0.95
set in7_max 5 * 1.05
set in8_min 3.0 * 0.80
set in8_max 3.0 * 1.20
set fan1_min 2300 → 追加。(実際のファンの回転数にあわせます。)(前述)
set fan2_min 1300 → 追加。(同上。)(前述)
(省略)
# sensor types → 参考サイトを一部修正。(前述)
set sensor1 3435 → thermistorを指定。
set sensor2 1 → diodeのままです。
(省略)
# temperature limits → ここは自分のサーバに合わせて変更しました。(前述)
set temp1_over 55
set temp1_hyst 50
set temp2_over 70
set temp2_hyst 67
* かなり高い温度設定にしました。
# set beep disable → ビープ音は鳴りますように…。
set beep_enable 1
(省略)
--------------------------------------------------------------
・以上で、設定ファイルの編集を終えました。
・lm_sensorsに設定を読込ませてから、再起動させ、測定値を確認します。
--------------------------------------------------------------
# sensors -s
# sensors
w83697hf-isa-0290
Adapter: ISA adapter
VCore: +1.32 V (min = +1.29 V, max = +1.38 V)
+3.3V: +3.31 V (min = +3.14 V, max = +3.47 V)
+5V: +5.03 V (min = +4.76 V, max = +5.24 V)
+12V: +12.10 V (min = +10.82 V, max = +13.19 V)
V5SB: +5.16 V (min = +4.76 V, max = +5.26 V)
VBat: +3.25 V (min = +2.40 V, max = +3.60 V)
SYSFAN: 2463 RPM (min = 2295 RPM, div = 4)
CPUFAN: 1461 RPM (min = 1328 RPM, div = 4)
SYS: +49°C (high = +55°C, hyst = +50°C) sensor = thermistor
CPU: +56.5°C (high = +67°C, hyst = +62°C) sensor = diode
alarms:
beep_enable:
Sound alarm enabled
--------------------------------------------------------------
・「見た目」だけ、取り繕ってみました…。
追記
温度設定で以下のようにしています。
--------------------------------------------------------------
set temp1_over 55
set temp1_hyst 50
(省略)
--------------------------------------------------------------
・この意味ですが。
「set temp1_over 55」は、最高許容温度と思うのですが、この温度を超えると「アラーム」が鳴ります。
また、「set temp1_hyst 50」は、「アラーム解除」の設定温度で、アラーム発生時からこの温度まで下がるとアラームが解除されます。
--------------------------------------------------------------
# less /etc/sensors.conf
(省略)
# Here are some examples:
#
# set in0_max vid*1.05
# set in0_min vid*0.95
# set temp1_over 40
# set temp1_hyst 37
#
# Think of tempx_over as 'alarm set' and tempx_hyst as 'alarm clear'
# thresholds. In most cases the 'over' value should be higher than
# the 'hyst' value by several degrees.
(省略)
--------------------------------------------------------------
参考:
<Memo of the Lm_sensors - Whitish Site>
※ hystについて。
・hysteresis(ヒステリシス)のことで、物理学で言う履歴現象のことらしいのですが、よく分かりません。
追追記
いろいろと時間に追われる状況になってきたので、しばらくこのブログの更新はできないと思います。
数少ない「ゲスト」の方々に、お礼を申し上げます。
どうも、ありがとうございました。
(でも、ひょっとすると、たまに(?)、「気分転換」のために何か書くかも知れないけれど。)
それでは、また、お会いできるといいのですが。
2009-07-11 (土)
Posted at: 00:15:00 - Posted by: yashikiba - Category: CentOS5
前回は、ソースコンパイルした「lm_sensors」のアンインストールについて書きました。
今度は、簡単にyumでこのツールをインストールしてみました。
ところで、「lm_sensors yum CentOS」などでネット検索すると、lm_sensorsをyumでインストールするのにうまく行かなかった人が多いのに気づきました。
日付と内容から判断すると、マザーボードが新し過ぎる(?)ので、yumでインストールされる「バージョン2.10.7(現時点)」のlm_sensorsがそのM/Bに対応できないようです。
私の自宅サーバで使用している、枯れて少しVIAの特徴が強いM/B(MSI P4MAM2-V)ではインストール自体はすんなりと行きました。
--------------------------------------------------------------
・まず、yumでlm_sensorsがインストールされていないことの確認です。
# yum info net-snmp
(省略)
Repo : updates
Summary : SNMP プロトコルツールとライブラリの集合体
(省略)
# yum info lm_sensors
(省略)
Available Packages
Name : lm_sensors
Arch : i386
Version : 2.10.7
Release : 4.el5
Size : 513 k
Repo : base
Summary : ハードウェア監視アプレット
URL : http://secure.netroedge.com/~lm78/
License : GPL
Description: The lm_sensors package includes a collection of modules for general
: SMBus access and hardware monitoring. NOTE: this requires special
: support which is not in standard 2.2-vintage kernels.
※ net-snmpをyumでインストールすると依存関係でlm_sensorsもインストールされるそうです。
・ネットで、「CentOS5では初めからlm_sensorsが入っていた」という記事を見たのですが、本当でしょうか?
--------------------------------------------------------------
・インストールです。
# yum install lm_sensors
(省略)
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.i386 0:2.10.7-4.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================
Package Arch Version Repository Size
====================================================
Installing:
lm_sensors i386 2.10.7-4.el5 base 513 k
Transaction Summary
====================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 513 k
Is this ok [y/N]: y
Downloading Packages:
lm_sensors-2.10.7-4.el5.i386.rpm
| 513 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lm_sensors [1/1]
warning: /etc/rc.d/init.d/lm_sensors saved as /etc/rc.d/init.d/lm_sensors.rpmorig
warning: /etc/sysconfig/lm_sensors created as /etc/sysconfig/lm_sensors.rpmnew
Installed: lm_sensors.i386 0:2.10.7-4.el5
Complete!
※ 上の最後に2つのwarningが出ています。
# ls -l /etc/rc.d/init.d/lm_sensors*
-rwxr-xr-x 1 root root 3112 1月 21 17:11 /etc/rc.d/init.d/lm_sensors
-rwxr-xr-x 1 root root 2969 3月 26 05:39 /etc/rc.d/init.d/lm_sensors.rpmorig
# ls -l /etc/sysconfig/lm_sensors*
-rw-r--r-- 1 root root 1456 7月 7 03:46 /etc/sysconfig/lm_sensors
-rw-r--r-- 1 root root 134 1月 21 17:11 /etc/sysconfig/lm_sensors.rpmnew
・起動用ファイルは「/etc/rc.d/init.d/lm_sensors」で、
検出したドライバは「/etc/sysconfig/lm_sensors」に記録されています。
・このファイルは/etc/rc.d/init.d/lm_sensorsコマンドの実行時に読み込まれるようです。
--------------------------------
# vi /etc/sysconfig/lm_sensors
(省略)
MODULE_0=w83627hf → ドライバです。
# vi /etc/rc.d/init.d/lm_sensors
(省略)
CONFIG=/etc/sysconfig/lm_sensors
(省略)
・自動起動の設定。
# chkconfig lm_sensors on
# chkconfig --list lm_sensors
lm_sensors 0:off 1:off 2:on 3:on 4:on 5:on 6:off
--------------------------------------------------------------
・次に、yumでインストールした時は必要ないのかもしれませんが、「sensors-detect」を実行しました。
# find / -name sensors-detect
/usr/sbin/sensors-detect
/usr/local/src/lm_sensors-3.1.0/prog/detect/sensors-detect
# sensors-detect
lm_sensors を停止中: [ OK ]
# sensors-detect revision 5291 (2008-06-23 23:40:46 -0700)
(省略)
We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no): y
Probing for PCI bus adapters...
Use driver `i2c-viapro' for device 0000:00:11.0: VIA Technologies VT8237 South Bridge
(省略)
To continue, we need module `i2c-dev' to be loaded.
Do you want to load `i2c-dev' now? (YES/no):
Module loaded successfully.
(省略)
Next adapter: ProSavage I2C bus at 01:00.0 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Next adapter: ProSavage DDC bus at 01:00.0 (i2c-1)
Do you want to scan it? (YES/no/selectively):
Next adapter: SMBus Via Pro adapter at 0500 (i2c-2)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x2f
Probing for `National Semiconductor LM78'... No
(省略)
Probing for `SPD EEPROM'... Yes
(confidence 8, not a hardware monitoring chip)
Probing for `SPD EEPROM'... Yes
(confidence 8, not a hardware monitoring chip)
(省略)
Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... Yes
Found `Winbond W83697HF/F/HG Super IO Sensors' Success! → これが「Chip」です。
(address 0x290, driver `w83627hf')
(省略)
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus, address 0x290
Chip `Winbond W83697HF/F/HG Super IO Sensors' (confidence: 9)
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
lm_sensors を起動中: [ OK ]
--------------------------------------------------------------
・最初の動作確認です。
# sensors
w83697hf-isa-0290
Adapter: ISA adapter
VCore: +1.38 V (min = +0.13 V, max = +1.04 V) ALARM
+3.3V: +3.33 V (min = +0.40 V, max = +3.33 V)
+5V: +5.03 V (min = +0.08 V, max = +0.78 V) ALARM
+12V: +12.16 V (min = +0.24 V, max = +12.77 V)
-12V: -11.95 V (min = -1.42 V, max = -9.15 V) ALARM
-5V: -7.71 V (min = -0.98 V, max = -0.78 V) ALARM
V5SB: +5.59 V (min = +1.72 V, max = +6.50 V)
VBat: +3.25 V (min = +1.30 V, max = +0.26 V) ALARM
fan1: 2518 RPM (min = 2518 RPM, div = 4)
fan2: 1436 RPM (min = 5113 RPM, div = 4) ALARM
temp1: +49°C (high = +5°C, hyst = -128°C) sensor = thermistor ALARM
temp2: +58.0°C (high = +85°C, hyst = +85°C) sensor = diode
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm enabled
・上掲の表示では、電圧の測定値と最大、最小値、また、温度とファンの回転数の設定値がおかしくなっています。
・項目名も、変更したほうが分かりやすいようです。
--------------------------------------------------------------
次の記事では、lm_sensorsの設定ファイルを編集して、「妥当」な数値が表示されるようにしようと思います。
追記
最終の「第三夜」に続きます。
2009-07-07 (火)
Posted at: 00:12:00 - Posted by: yashikiba - Category: CentOS5
今年の3月26日にこのブログで、Lm_sensorsをインストールしたことを書きました。
参考:
<lm_sensorsのインストールについて。>
そのときの最新バージョンは、「3.1.0」だったのですが、現時点では「3.1.1」になっています。
参考:
<Downloading lm-sensors - HARDWARE MONITORING BY lm-sensors>
このインストールは、tarボールを解凍・展開して、「ソースコンパイル」で行いました。
けれども、私のマザーボードは「
MSI P4MAM2-V」という、発売開始が約5年前のものです。したがって、lm_sensorsは特に新しいバージョンでなくても動作すると考えて、一度、アンインストールしてから「yum」で再インストールすることにしました。
参考:
<Socket 478マザーボードの新製品 2005年2月26日号>
ただ、ソースからコンパイル・インストールしたので、yumの場合のようにはいきません。
そこで、以下のサイトを参考にして、アンインストールを試みました。
★ 実は、RPMを使わずにインストールした「ツール」を削除する練習がしたかったこともあるのですが…。
参考:
<ソースコンパイルでインストールしたプログラムを削除したい - ITmedia>
1.Makefileの内容を調べる。
・今回のlm_sensorsでは、「./configure」を実行しなくても、最初からMakefileが展開ディレクトリに存在しました。
・Makefileを見て、インストールによってどのようなディレクトリとファイルが作成されるか調べました。
--------------------------------------------------------------
# cd /usr/local/src/
# ls -l
(省略) ↓ こういうときのために残しておくと、便利かもしれません…。
drwxr-xr-x 6 username users 4096 7月 6 14:13 lm_sensors-3.1.0
# cd /usr/local/src/lm_sensors-3.1.0/
# ls -l
合計 80
-rw-r--r-- 1 username users 12186 3月 1 05:55 CHANGES
-rw-r--r-- 1 username users 644 2月 25 16:46 CONTRIBUTORS
-rw-r--r-- 1 username users 17987 6月 27 2007 COPYING
-rw-r--r-- 1 username users 3039 12月 12 2007 INSTALL
-rw-r--r-- 1 username users 9164 2月 4 17:44 Makefile
-rw-r--r-- 1 username users 4349 2月 14 18:10 README
drwxr-xr-x 4 username users 4096 3月 1 06:02 doc
drwxr-xr-x 2 username users 4096 3月 1 06:02 etc
drwxr-xr-x 3 username users 4096 3月 1 06:02 lib
drwxr-xr-x 12 username users 4096 3月 1 06:02 prog
-rw-r--r-- 1 username users 27 3月 1 05:55 version.h
# vi ./Makefile
(省略)
PREFIX := /usr/local → インストールを行うベースとなるディレクトリ。
(省略)
ETCDIR := /etc → 設定ファイルのディレクトリ。
(省略)
LIBDIR := $(PREFIX)/lib → libファイルのディレクトリ。
(省略)
EXLDFLAGS := -Wl,-rpath,$(LIBDIR)
(省略)
BINDIR := $(PREFIX)/bin → 実行バイナリのディレクトリ。
SBINDIR := $(PREFIX)/sbin → その他のバイナリ(コマンド)のディレクトリ(?)。
(省略)
INCLUDEDIR := $(PREFIX)/include → includeファイルのディレクトリ。
LIBINCLUDEDIR := $(INCLUDEDIR)/sensors libincludeファイルのディレクトリ。
(省略)
MANDIR := $(PREFIX)/man → manのインストール先。
(省略)
MACHINE := $(shell uname -m)
(省略)
.PHONY: all user clean install user_install uninstall user_uninstall
(省略)
user_uninstall::
(省略)
uninstall :: user_uninstall
(省略)
help:
@echo 'Make targets are:'
@echo ' all (default): build library and userspace programs'
@echo ' install: install library and userspace programs'
@echo ' uninstall: uninstall library and userspace programs'
→ ここに、「uninstall」について書かれていると思うのですが。
(省略)
--------------------------------------------------------------
2.実際に作成されたディレクトリとファイルを見る。
・これは、「make uninstall」でアンインストールできなかった場合に、手作業でツールを削除するために必要なことです。
★ 本当のところは、Makefile内にuninstallの記述があったので、この時点でmakeコマンドを使ったアンインストールが可能だろうということは分かっていたのですが。
--------------------------------------------------------------
# ls -l /usr/local/lib/ → ライブラリディレクトリ。
合計 136
-rw-r--r-- 1 root root 61794 3月 26 04:38 libsensors.a
lrwxrwxrwx 1 root root 15 3月 26 04:38 libsensors.so -> libsensors.so.4
lrwxrwxrwx 1 root root 19 3月 26 04:38 libsensors.so.4 -> libsensors.so.4.1.0
-rwxr-xr-x 1 root root 57888 3月 26 04:38 libsensors.so.4.1.0
↑ これらのファイルの日付は、「インストール」した日付と同じでした。
# ls -l /etc/sensors*
-rw-r--r-- 1 root root 85179 7月 6 23:41 /etc/sensors.conf → 設定ファイル。
-rw-r--r-- 1 root root 6845 3月 26 04:38 /etc/sensors3.conf
※ 他のサイトを見ると、lm_sensorsの設定は「/etc/sensors.conf」で行っています。
・そこで、私もこのファイルに設定をすることにしました。
・なお、lm_sensorsのインストールは、「/etc/sensors3.conf」を上書きしないそうです。
・また、私のM/Bでのドライバ「w83627hf」の設定は、
/etc/sensors3.confや/usr/local/~/etc/sensors.conf.defaultにはなく、
/etc/sensors.confにありました。
# ls -l /usr/local/bin/sensors
-rwxr-xr-x 1 root root 18800 3月 26 04:38 /usr/local/bin/sensors → 実行ファイル。
-rwxr-xr-x 1 root root 18800 3月 26 04:38 /usr/local/bin/sensors-conf-convert
↑ 古い形式の設定ファイルの変換スクリプトだそうです(?)。
# ls -l /usr/local/sbin/ → 「その他」のコマンド。
合計 220
-rwxr-xr-x 1 root root 9401 3月 26 04:38 fancontrol
-rwxr-xr-x 1 root root 10373 3月 26 04:38 isadump
-rwxr-xr-x 1 root root 9180 3月 26 04:38 isaset
-rwxr-xr-x 1 root root 21019 3月 26 04:38 pwmconfig
-rwxr-xr-x 1 root root 157747 3月 26 04:38 sensors-detect
※ 「日付」がすべて、lm_sensorsをインストールした日付と同じです。
・上から4つ目までのコマンドは、実行しませんでした。
・sensors-detectは、ドライバ検索に使いました。
# ls -l /usr/local/include/
合計 4
drwxr-xr-x 2 root root 4096 3月 26 04:38 sensors → includeディレクトリ。
# ls -l /usr/local/include/sensors/
合計 16
-rw-r--r-- 1 root root 3320 3月 26 04:38 error.h
-rw-r--r-- 1 root root 9791 3月 26 04:38 sensors.h
↑ libincludeファイル(?)。
※ 「日付」がすべて、lm_sensorsをインストールした日付と同じです。
・manファイルについては、以下の通りです。
# ls -l /usr/local/man/
合計 16
drwxr-xr-x 2 root root 4096 3月 26 04:38 man1
drwxr-xr-x 2 root root 4096 3月 26 04:38 man3
drwxr-xr-x 2 root root 4096 3月 26 04:38 man5
drwxr-xr-x 2 root root 4096 3月 26 04:38 man8
# ls -l /usr/local/man/man1/
合計 4
-rw-r--r-- 1 root root 2943 3月 26 04:38 sensors.1
# ls -l /usr/local/man/man3/
合計 12
-rw-r--r-- 1 root root 9653 3月 26 04:38 libsensors.3
# ls -l /usr/local/man/man5/
合計 20
-rw-r--r-- 1 root root 16685 3月 26 04:38 sensors.conf.5
# ls -l /usr/local/man/man8/
合計 24
-rw-r--r-- 1 root root 4107 3月 26 04:38 fancontrol.8
-rw-r--r-- 1 root root 3974 3月 26 04:38 isadump.8
-rw-r--r-- 1 root root 2333 3月 26 04:38 isaset.8
-rw-r--r-- 1 root root 2233 3月 26 04:38 pwmconfig.8
-rw-r--r-- 1 root root 2156 3月 26 04:38 sensors-detect.8
--------------------------------------------------------------
3.「make uninstall」を実行する。
--------------------------------------------------------------
# cd /usr/local/src/lm_sensors-3.1.0/
# make uninstall
rm -f /usr/local/lib/libsensors.a /usr/local/lib/libsensors.so.4.1.0
/usr/local/lib/libsensors.so.4 /usr/local/lib/libsensors.so
rm -f /usr/local/include/sensors/error.h
/usr/local/include/sensors/sensors.h
/usr/local/man/man3/libsensors.3
/usr/local/man/man5/sensors.conf.5
rmdir /usr/local/include/sensors 2> /dev/null || true
rm -f /usr/local/sbin/sensors-detect
rm -f /usr/local/man/man8/sensors-detect.8
rm -f /usr/local/sbin/fancontrol /usr/local/sbin/pwmconfig
rm -f /usr/local/man/man8/fancontrol.8 /usr/local/man/man8/pwmconfig.8
rm -f /usr/local/bin/sensors
rm -f /usr/local/man/man1/sensors.1
rm -f /usr/local/bin/sensors-conf-convert
rm -f /usr/local/sbin/isadump /usr/local/sbin/isaset
rm -f /usr/local/man/man8/isadump.8 /usr/local/man/man8/isaset.8
--------------------------------------------------------------
★ インストール時に作成されたファイル(ディレクトリ)は、すべて削除されました。
4.もし、Makefileで「uninstall」が定義されていない場合は?
・この場合は、「2.」で調べて確認したすべてのファイルを削除したらよいと思うのですが、しかし…。
★ 実際は、インストールしたツールが共有ライブラリを使用していたり、別のファイルと依存関係があるときなどは、その関連のあるファイルは単純に削除する訳にはいきません。
・Makefike内で指定されているファイルだからといって、簡単に削除するとそのあとで、システムに影響が出るかもしれません。サーバのシステムに精通していないと迂闊なことはできません。
・いちばんの安全な「アンインストール」は実行バイナリの削除のみでしょうか?
追記
第二夜に続きます。
lm_sensorsをyumでインストールしたことを書きます。
2009-07-04 (土)
Posted at: 00:18:00 - Posted by: yashikiba - Category: Windows OS
以前、「Lhaplus」で解凍したファイルの文字化けについて書きました。
「あなたと私のインナースペース」:
<@LongLinkについて。>
そこで、Lhaplus以外のファイル解凍・圧縮ソフトについてネットをいろいろ探した結果、
「Lhaz」というソフトを選んで使用してみました。
1.Lhaplusでの文字化けの確認。
・現在は、Lhazをインストールしているので、テストのためLhaplusを再インストールしました。
・Lhaplusの最新版のダウンロードは以下のサイトからできます。
参考:
<Lhaplus Version 1.57 [ 2008/04/28 ]>
・上は、作者の「Schezo 氏」のサイトです。
参考:
<Lhaplus v1.57 (08/04/28) - 「窓の杜」>
(1) 解凍テスト。
Lhaplusで、長い名前のファイルを解凍してみました。
(ここでは、serendipity 1.4.1 tar.gzをテスト対象にしました。)
・上記のファイルの解凍後、
「serendipity/plugins/serendipity_event_browsercompatibility/
serendipity_event_browsercompatibility.php」というファイルの名前を調べてみました。
[結果]
やはり、以下のように末尾が文字化けしています。
--------------------------------------------------------------
~serendipity_event_browsercompatibility.ph0000644
--------------------------------------------------------------
(2) @LongLinkについて。
・デスクトップ(解凍先?)に「@LongLink」が作成されましたが、その内容を見ると、正常なファイル名になっていました。
--------------------------------------------------------------
@LongLink(読み取り専用ファイル)の内容。
serendipity/plugins/serendipity_event_browsercompatibility
/serendipity_event_browsercompatibility.php → 文字化けしていません。
--------------------------------------------------------------
(3) 感想。
以上のことから、私のWindows XP SP3の環境だと「文字化け」が発生するのですが、この原因はLhaplus自体にあるのか、私のPC環境や操作ミスにあるのかは分かりません。
私が使用してきた圧縮・解凍ソフトは、Lhacaが最初のもので、次にLhasaに乗り換え、最後にLhaplusにたどり着きました。
Lhaplusは「脆弱性」のためのアップロードをしたりもしましたが、今まで、ずいぶん長い間お世話になってきたユーティリティソフトです。
しかし、解凍時のファイル名の「文字化け」に一時的に対応するため、「Lhaz」をインストールすることにしました。
2.Lhazを使用する。
「Lhaz」は、「多形式に対応したDLL不要の圧縮・解凍ソフト」です。(引用 - Vector)
Lhazのダウンロード元には、以下のサイトがあります。
参考:
<Lhaz v1.35 (圧縮解凍ツール) - 正式版 - 作者のサイト>
参考:
<Lhaz - Vector>
(1) Lhaplusのアンインストール。(使用していた場合です。)
・アンインストールする前に、右クリックの「メニュー」を確認しておきました。
--------------------------------------------------------------
解凍: デスクトップに解凍(D),ここに解凍(H),出力先を指定して解凍(S),テンポラリモードで解凍(T)
圧縮:.Lzh,.Zip,・…,.uue,.xxe,b64
--------------------------------------------------------------
・「スタートメニュー」 → 「プログラムのアクセスと既定の設定」 → 「プログラムの追加と削除」、でアンインストール。
* または、「コントロールパネル」から、アンインストール。
(2) Lhazのインストール。
・これは、上記のサイトからダウンロードしたファイルを実行して、「Lhaz v1.35 のインストール」の指示通りにします。
・「関連付け」は8つすべてを選択すればいいですが、インストール後の「オプション」からでも設定できます。
(3) インストール後の設定。
・ほぼ、デフォルトの設定でいいと思いますが、 「ツール」 → 「オプション」 → 「ファイルの関連付け」では、 すべての圧縮ファイルにチェックを入れておきました。
* また、「コンテキストメニューに「Lhazで閲覧(V)」を追加(V)」」、「コンテキストメニューに「Lhazで圧縮(A)」を追加(C)」」、さらに、「右ドラッグ&ドロップを拡張」にもチェックを入れておくと便利なようです?
(4) 解凍ファイル名の確認テスト。
・Lhaplusの場合と同じく、「Serendipity 1.4.1 tar.gz」をデスクトップ上に解凍しました。
[結果]
--------------------------------------------------------------
serendipity_event_browsercompatibility.php
--------------------------------------------------------------
・文字化けしていませんでした。
★ さらに、デスクトップ(解凍先?)に、「@LongLink」も作成されないようです。
・これは、「DLL不要」ということと関係あるのでしょうか?
(作者のサイトからの「一部引用」)
--------------------------------------------------------------
・Lhazの特徴。
「エクスプローラでアーカイブファイルをダブルクリックすると,解凍先/閲覧選択ポップアップメニューが表示されます。アーカイブ毎に解凍先を選択できるのが Lhaz の開発動機でありウリです。」。
・この機能は、個別ファイルのチェックなどをする時などには便利だと思います。
--------------------------------------------------------------
確かに、「エクスプローラ」表示で、解凍前の圧縮ファイル内を一覧できるのには少し驚きました。
・なお、以下のサイトで作者の対談が読めます。
参考:
<超定番解凍ソフトLhazはなぜ無料なのか>
追記
作者の「ちとら」氏のWebサイトの掲示板では、リリース情報は以下の通りです。
----------------------------------------------------------------
2003/01/19(Sun) 14:10
03/01/19 ver1.01β2
・unrarsrc-3.1.3.tar.gz に対応。
-----------------------------------------------------------------
上で紹介した「対談」では、
-----------------------------------------------------------------
初版がVer.0.3のベータ版で、その後2001年12月4日に正式版ともいえる「Ver.1.00」となりました。
-----------------------------------------------------------------
とのことです。