2009年6月12日 星期五

更新資料庫的金鑰

http://wiki.debian.org/SecureApt#Howtofindakey

使用apt-get update後出現的Error
W: GPG error: http://ftp.tw.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B

Method1:
debian:
# gpg --keyserver subkeys.pgp.net --recv-keys 金鑰

Ubuntu:
# gpg --keyserver keyserver.ubuntu.com --recv 金鑰

# gpg --export --armor
金鑰 | sudo apt-key add -
Method2:

http://wwwkeys.pgp.net/
Get "newkey" and save

# apt-key add "newkey"

加入CD-ROM至sourcelist
# apt-cdrom add


我的sources.list (Debian 4.0)

deb http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ etch main contrib non-free
deb http://security.debian.org etch/updates main contrib non-free
deb-src http://security.debian.org etch/updates main contrib non-free


如何方便找到最佳站台
有時候安裝時,因為無相對應的Ethernet Driver,所以不能設定站台,變成要安裝好後,再手動安裝。

1. 因為剛裝好時只有DVD的dpkg可以用...所以就將安裝驅動所需的套件安裝起來
ex : gcc, linux-headers, make, autoconf...

2. 安裝Ethernet Driver (略)

3. 先設定簡易的站台,不然沒有netselect-apt可用
~$ vi /etc/apt/source.list
加入下面這兩句,就可以有最基本的套件用,我這邊是用Debian 5.0,所以是lenny
deb http://ftp.tw.debian.org/debian/ lenny main
deb-src http://ftp.tw.debian.org/debian/ lenny main

4. 更新list以及下載netselect-apt
~$ apt-get update
~$ apt-get install netselect-apt
~$ netselect-apt -s -n
-s : source
-n : non-free

5. 檢查新產生的sources.list是不是沒問題,ok的話就取代原先的sources.list
~$ cp sources.list /etc/apt/
~$ apt-get update

2009年6月8日 星期一

USB Controler

進入主題,由於手頭上有一個USB控制器,它的結構類似於USB鍵盤。現在希望把它上面的按鍵,重新映射到所要測試的程式 (ex:播放,上/下一首...etc)。
由於跟USB鍵盤的特殊按鍵結構相當,所以先從鍵盤的特殊按鍵開始下手。查了一些相關資料,主要做的事情就是找出按鍵所對應到的Keycode,然後再設定他所對應到的程式。

未完一 一

兩個主流鍵盤的排列方式

德沃夏克鍵盤(Dvorak)

QWERTY鍵盤


目前我所看過的鍵盤排列,都是QWERTY。