Re: 如何於開機時自動執行指令? - Linux

Dorothy avatar
By Dorothy
at 2010-11-01T21:38

Table of Contents

※ 引述《"[email protected]" <[email protected]>, 看板: Linux》之銘言:
: I don't know Ubunto. But you may like to look
: for its config-file, which would be something like
: /etc/hdparm.conf and try to edit the file.

謝謝你,我試過了這個做法,可是還是沒用。
後來讀了 readme,才知道 apm 相關的要另外在
/etc/apm/event.d/20hdparm
裏設定,這裏我還要再試試看,剛剛改了一行指令,
是可以關掉 apm,可是連帶使得螢幕亮度變得不能調整,一律是最亮。

: These settings would automatically take effect
: each time you boot the machine. Or, under Debian,
: one usually does
: /etc/init.d/hdparm restart

這個方法,我試過也不行,也不知道是不是哪有錯,
我是照這個網頁
http://www.linuxquestions.org/questions/linux-general-1/
starting-hdparm-at-boot-time-602303/
(抱歉太長斷行)
來做的,先建一個 /etc/init.d/hdparm 檔,裏面寫入
hdparm -B 255 /dev/sda
然後 sudo update-rc.d hdparm defaults
結果得到
warning: /etc/init.d/hdparm missing LSB information
的錯誤,reboot 後也是不行。


我完全是新手,邊看各位的指點、邊讀 google、邊摸索。

--

--
Tags: Linux

All Comments

Tristan Cohan avatar
By Tristan Cohan
at 2010-11-06T19:13
chkconfig --add hdparm ,然後再restart你寫的script

CP指令(NFS下)的效能問題

Lauren avatar
By Lauren
at 2010-11-01T19:59
感謝回應 我還要在消化一下大家的說法,尤其是高師龍大大的建議 不過我今天照我上一篇的想法做了一次 本來一切如我想得美好 但是等到在備份機上解tar的時候...還是一樣慢,2~3MB 所以搞了半天 根本是備份機上raid5校能太爛 有查到raid 5在大量小檔寫入的時候的確比較差 我看到數據大概 ...

關於join

Eden avatar
By Eden
at 2010-11-01T19:59
最近用join這個指令的時候 覺得有點納悶 是否當兩個檔案比對的那一欄相差太大就沒辦法使用 例如第一個檔案是1000列 第二個檔案是10列 開始比對的時候 連續沒抓到就會end? - ...

KDE與Qt的核融合

Faithe avatar
By Faithe
at 2010-11-01T19:41
http://www.phoronix.com/scan.php?page=news_itemandamp;px=ODczOQ KDE Developers Discuss Merging Libraries With Qt Posted by Michael Larabel on October 31, ...

ASUS TS300-E5 灌CentOS5.5 出現 kernel: EDAC MC0

Caitlin avatar
By Caitlin
at 2010-11-01T18:06
最近幫學校的TS300-E5灌了CentOS 5.5 卻出現很詭異的問題!! syslog一直跳出來洗我的畫面 內容為 「localhost kernel: EDAC MC0: UE page 0x0, offset 0x0, grain 1073741824, row 2, labels and#3 ...

i7-950 centOS 5.3?

Hedda avatar
By Hedda
at 2010-11-01T15:18
公司要買i7的機器 不知道有沒有先進在i7平台上安裝過centOS 5.x 可以分享一下經驗 因為對高階平台不熟 不曉得選哪張主機板較OK 如果還要找晶片組的驅動程式就比較頭大 另外不曉得i series HT、turbo等功能在 CentOS是不是能work - ...