2011年2月16日 星期三

xorg.conf 如何設定延伸(extend)

除了X-windows可以設定外, 也可以利用 xorg.conf 設定

Section "Monitor"
    Identifier   "Monitor VGA1"
    Option "LeftOf" "Monitor DVI1"
EndSection

Section "Monitor"
    Identifier   "Monitor DVI1"
EndSection

Section "Monitor"
    Identifier   "Monitor LVDS1"
    Option "Ignore" "true"
EndSection


Section "Device"
                  .
                  .
                  .
    Option "Monitor-VGA1" "Monitor VGA"
    Option "Monitor-DVI1" "Monitor DVI1"
    Option "Monitor-LVDS1" "Monitor LVDS1"
EndSection

2011年2月14日 星期一

Debian 金鑰(key) 更新

在 APT 中管理金鑰:
以 root 身份使用以下指令可察看目前系統中的 APT 所持有公開金鑰列表: 

# apt-key list

當系統在進行套件清單更新時出現了類似 NO_PUBKEY xxxxxxxxxxxxxxxx 的錯誤訊息時,則表示有公開金鑰已過期或者是有新加入 apt 的 source 但未下載該對應之公開金鑰,而後面那串碼就是新的公開金鑰之指紋,只要使用以下指令即可從 key server 下載到該金鑰:

#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys xxxxxxxxxxxxxxxx (網址有變)

# gpg --keyserver hkp://wwwkeys.pgp.net --recv-keys xxxxxxxxxxxxxxxx

gpg 是一套專門管理金鑰的系統,但是他和 APT 的金鑰管理系統是獨立開來的,因此下載到金鑰後還必須將他匯給 APT 才行,指令如下:

# gpg --armor --export xxxxxxxxxxxxxxxx | apt-key add -