小弟的NB灌Linux好歹也一年多了,只是都很懶的去搞指紋辨識,所以拖到現在才處理 :p
環境: Ubuntu Lucid (10.04) x86
硬體:HP dv2756tx (dv2000)
AuthenTec, Inc. AES2501 Fingerprint Sensor
1.檢查是否是 AES2501
$ lsusb
將會看到類似的東西
AuthenTec, Inc. AES2501 Fingerprint Sensor
如果沒有出現,就請不要繼續下去了 :P
2.安裝所需的套件
$sudo apt-get install aes2501-wy
$sudo apt-get install libfprint0 libpam-fprint fprint-demo
3.測試指紋辨識是否正常
$sudo aes2501 -r
將會看到類似的畫面
argc=1 Initializing, please standby...
aesSetup()...
aesStartScan()...
READY
(touch the sensor to stop)
Scanning...
Assembling...
以及一個指紋圖片
如果以上正常,那就恭喜你,你的指紋辨識成功安裝了!
接下來就是將sudo/su 結合指紋辨識功能
4.紀錄指紋到系統中
#pam_fprint_enroll --enroll-finger 7
正常應該是會出現類似以下的訊息
This program will enroll your finger, unconditionally
overwriting any selected print that was enrolled previously. If you want
to continue, press enter, otherwise hit Ctrl+C
Found device
claimed by AuthenTec AES2501 driver
Opened device. It's now time to
enroll your finger.
You will need to successfully scan your Right
Index Finger 1 times to complete the process.
Scan your finger
now.
Enroll complete!
Enrollment completed!
完成動作後,指紋紀錄就完成了
接著要將指紋辨識加入登入驗證中
5.加入指紋驗證到pam驗證中
#sudo vi /etc/pam.d/common-auth
將
auth sufficient pam_fprint.so
放在
auth [success=2 default=ignore] pam_unix.so nullok_secure
之前
接著存檔離開
6.測試是否加入驗證成功
開啟一個新的終端機,並執行
$sudo -s
是否會出現
Scan right index finger on AuthenTec AES2501
如果出現以後,請刷下您的指紋,如果正常登入,那應該是一切正常。
留言列表