茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1735168 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
PIMG_00084.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2007/9/5 9:04:36
lm_sensors指南,或如何監測CPU的溫度在Linux/Fedora的核心

To monitor CPU temperature in Linux you will need to install lm_sensors package and then install gnome-applet-sensors(assuming you are using gnome) to get a nice graphical display.
監測CPU的溫度在Linux,你將需要安裝lm_sensors軟件包,然後安裝精Applet的傳感器(假定您使用GNOME)就得到一個漂亮的圖形顯示.

The devil is in the details.
魔鬼在細節.

The shipped lm_sensors doesn’t work on Fedora Core 6 with 2.6 kernels.
運lm_sensors不工作,Fedora的核心62.6的內核.

It also doesn’t support core 2 duo.
它也並不支持核心2二重奏.

Install安裝

To use lm_sensors you will have to install it from the development repository.
利用lm_sensors你要安裝它從發展的版本.

Login as root and run the following:
登錄作為root運行如下:
[code:1:d82b49517d]
rpm -iv http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/Fedora/lm_sensors-2.10.3-2.fc7.i386.rpm
[/code:1:d82b49517d]
This will install lm_sensors on your machine.
這將安裝lm_sensors在你的機器.

You have completed the first step.
你已經完成了第一步.

Note: The provided version number of lm_sensors is likely to change soon.
注:提供版本號碼lm_sensors很可能不久就會改變.

So you are better off just browsing to http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/Fedora/ and selecting the latest lm_sensors package for installation.
那麼,你是較佳剛剛瀏覽到http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/fedora/選拔最新lm_sensors軟件包進行安裝工作.

Detection檢測

You now need to detect available sensors on your system.
你們現在需要檢測傳感器可對你的系統.

Run sensors-detect from command line (after logging as root).
運行傳感器檢測從指揮線(採伐後,以root).

Accept all the default values.
接受所有的默認值.

At the end it will print out something like:
會議結束時將打印出像:

To make the sensors modules behave correctly, add these lines to
使傳感器模塊的行為得當,加上這些線路
[code:1:d82b49517d]
/etc/modprobe.conf:
#—-cut here—-
#--削減在這裡--

# I2C module options
#I2C總線模塊選擇

alias char-major-89 i2c-dev
別名焦大?89的I2C的xfce4-dev

#—-cut here—-
#--削減在這裡--
[/code:1:d82b49517d]
Add the line, as instructed, to the end of /etc/modprobe.conf file.
加上路線指示,到年底/等/modprobe.conf文件.

Ignore the other instructions.
不顧其他指示. Now run:現在運行:

service lm_sensors startlm_sensors
服務啟動

This will start the lm_sensors service.
這將啟動lm_sensors服務.

Now run:
現在運行:
[code:1:d82b49517d]
sensors -s
傳感器-收盤
[/code:1:d82b49517d]
There should be no output.
不應有任何輸出.

Next run:
下運行:
[code:1:d82b49517d]
sensors
傳感器
[/code:1:d82b49517d]
This will list available sensors and provide current sensor data.
這將名單提供傳感器和提供電流傳感器數據.

The last two steps are for checking that the sensor detection is working correctly.
最後兩個步驟,有檢查,該傳感器檢測工作,是正確的.

Now install gnome-applet-sensors:
現在安裝精Applet的傳感器:
[code:1:d82b49517d]
yum install gnome-applet-sensors
蔭安裝精Applet的傳感器
[/code:1:d82b49517d]
To activate it right click on a Gnome panel and choose Add to Panel .
啟動它右鍵點擊GNOME面板,選擇添加事務.

Then select Hardware Sensors Monitor .
然後選擇硬件傳感器監測.

lm_sensors requires coretemp kernel module which is only available in 2.6.21.x kernels and above.
lm_sensors要求coretemp內核模塊中,只適用於2.6.21.x內核及以上.

So you will have to install the development versions of kernel to use lm_sensors in core 2 duo systems.
因此,你必須安裝開發版內核使用lm_sensors核心2二重奏系統.

Personally I am waiting for the 2.6.21 release version.
我個人等著2.6.21發布版本. It will soon be released.它也將很快獲釋.
內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   


吃太飽Good JobHiJolinOMGOrz哭XD三八萌水汪汪大眼水草舞失魂打小人
打瞌睡石化交出來印堂黑黑吐吐血(不明液體版)吐血(鮮血版)好心情好夢入睡守門員之魂冷汗直流冷吱吱
完美計畫我不依沒什麼嘛狂暴狂驚幸福御守昏死泡澡空南無南無怒火中燒挖鼻孔
指苦惱煙狂倒地哭哭不害羞扭扭射門烏鴉飛過笑裡藏刀茶高處不勝寒鬼點子崩潰
推眼鏡淒涼淚奔爽被咬了喔呵呵無力感無言無辜畫圈掰掰催眠微笑
感冒想入非非愛之轟炸搞自閉萬年奸臣裝死跪拜禮嘆息槌飛你漫不經心疑惑遠目
鼻青臉腫嘲笑噴暴走撞人樂奔熱蔥不聽蔥妹恭喜樣蔥寶恭喜衝刺運球頭昏目眩濕
臉紅紅舉紅牌舉黃牌翻桌瓊瑤跪哭讚美主勾拳一記偽可愛賊親一個洗澡畢業了
藍藍路壞大叔啦啦隊鞭K書捲心被一臉肅殺怕怕阿飄無盡漩渦窮帥
orz-v2驚-v2不行了驕傲內傷眼睛一亮跌坐-V2熱-V2囧
 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|