Debian 筆記 b

.bashrc

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

# some more ls aliases
alias grep='grep --color'

.gtkrc

include "/usr/share/themes/QtCurve/gtk/gtkrc"

style "gtk-default" {
    fontset = "-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,\
               -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1"
}

class "GtkWidget" style "gtk-default"

.gtkrc-2.0

include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"

style "user-font"
{
	font_name="WenQuanYi Zen Hei 14"
}
widget_class "*" style "user-font"

gtk-theme-name="QtCurve"
gtk-font-name="WenQuanYi Zen Hei 14"
gtk-icon-theme-name="Tango"

KDE + gtkrc

kde3 可以修改 .gtkrc-2.0-kde

kde4 的 gtkrc 檔案好像改變了

$ ~/.kde4/share/config/

GNU nano

$ cp /etc/nanorc .nanorc
$ nano .nanorc

locate

My systems slows down everyday at bootup, how can I stop the daily updatedb-invocations?

Generate a new file /etc/updatedb.findutils.cron.local that consists of

the single line "exit 0" (without the quotes).

sudoers

# visudo

在 root ALL=(ALL) ALL 下面加入

%adm ALL=(ALL) ALL

# gpasswd -a username adm

update-alternatives

update-alternatives 用來改變預設執行的程式。

所有可以 update-alternatives 放在 /etc/alternatives

$ ls -l /etc/alternatives

galternatives

graphical setup tool for Alternatives Configuration in Ubuntu

examples

x-www-browser
$ sudo update-alternatives --config x-www-browser

editor
$ sudo update-alternatives --list editor
$ sudo update-alternatives --config editor

x-window-manager
$ sudo update-alternatives --display x-window-manager
$ sudo update-alternatives --config x-window-manager

記錄/複製系統設定

要把套件選取狀態複製到本地端:

     # 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 install

查看內核載入的模塊

 $ lsmod

查看USB設備

 $ lsusb

查看網卡狀態

 $ sudo ethtool eth0

查看硬碟的分區

 $ sudo fdisk -l

查看STAT硬碟訊息

 $ sudo blktool /dev/sda id

module-assistant

[ 書籤 | 搜尋 | blog | 留言 | Home ]

Firefox Emacs Muse Debian

最後更新 四月 25, 2008 , by alan

Creative Commons License
本 著作 係採用 創用 CC 姓名標示-非商業性-相同方式分享 2.5 台灣 授權條款授權.