
修正時間
$ sudo aptitude install ntpdate
$ sudo ntpdate time.stdtime.gov.tw
# 將修正過的時間寫入CMOS
$ sudo hwclock -w
unp
Unpack (almost) everything with one command
參考:Debian Admin
記錄/複製系統設定
要把套件選取狀態複製到本地端:
# dpkg --get-selections "*" >myselections # 或使用 \*
# debconf-get-selections > debconfsel.txt你可將這個檔案傳到另一台電腦,並用下列的方法把它安裝起來:
# dselect update
# debconf-set-selections < debconfsel.txt
# dpkg --set-selections <myselections
# apt-get -u dselect-upgrade # 或 dselect installsysctl.conf
若要關掉 console 不時出現的 Block 訊息,修改 /etc/sysctl.conf
kernel/printk = 4 4 1 7
ccrypt
參考: ccrypt - faq
加密 xxx.zip
$ ccrypt xxx.zip
解密 xxx.zip.cpt
$ ccrypt -d xxx.zip.cpt
curl
教學:強大的抓檔工具 | curl
臨時使用 DHCP 取得您的網路組態
參考:UbuntuTW_Guide_ch6
$ sudo dhclient eth0 # 在網卡 eth0 上取得 IP,netmask,gateway 和 DNS 設定
彩色的 grep、man
參考:lancetw的新天地
打字訓練軟體
exim4
smartmontools
官方網站:http://smartmontools.sourceforge.net/
教學:sshlog | 檢測硬碟狀態 - smartmontools
logcheck
http://logcheck.org/
logwatch
官網:http://www2.logwatch.org:8080/
教學:Logwatch Configuration in Debian
opera
教學:黑眼珠 | 設定 opera 字型的6種方法
$ sudo aptitude install opera
中文化
這裡,下載對應你的 Opera 版本的語言文件。
進入「Tools > Preferences」,在「General」中,你會找到語言的設置,點擊「Details」。
點擊「Choose」並找到你下載的語言文件。
點擊「OK」並關閉對話框。
如何加快 CD/DVD-ROM 讀取速度?
假設 CD/DVD-ROM 的位置是 /dev/cdrom
$ sudo hdparm -d1 /dev/cdrom
$ sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup
$ sudo vi /etc/hdparm.conf
/dev/cdrom {
dma = on
}
發表新回應