if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi # some more ls aliases alias grep='grep --color'
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"
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"
kde3 可以修改 .gtkrc-2.0-kde
kde4 的 gtkrc 檔案好像改變了
$ ~/.kde4/share/config/
$ cp /etc/nanorc .nanorc $ nano .nanorc
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).
# visudo
在 root ALL=(ALL) ALL 下面加入
%adm ALL=(ALL) ALL
# gpasswd -a username adm
update-alternatives 用來改變預設執行的程式。
所有可以 update-alternatives 放在 /etc/alternatives
$ ls -l /etc/alternatives
graphical setup tool for Alternatives Configuration in Ubuntu
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
$ lsusb
$ sudo ethtool eth0
$ sudo fdisk -l
$ sudo blktool /dev/sda id
[ 書籤 | 搜尋 | blog | 留言 | Home ]
最後更新 四月 25, 2008 , by alan
本 著作 係採用
創用 CC 姓名標示-非商業性-相同方式分享 2.5 台灣 授權條款授權.