2014年3月12日 星期三

在Ubuntu及LinuxMint系統中安裝 EZ100PU晶片讀卡機

EZ100PU Smart Card Reader
[ 在Ubuntu或LinuxMint 之下安裝EZ100PU  IC晶片讀卡機]

1.下載EZ100PU的驅動程式
廠商光碟片中, 所附的DRIVER for Linux若是32位元版時, 你安裝的是64bit的Ubuntu, 那麼要先去下載Driver, 雖然32位元版也能順利安裝, 但裝好後就是無法正確驅動.

下載位址
http://www.casauto.com.tw/
進入Downloads後, 選擇PC/SC Smart Card Reader, 再選則型號 EZ100 series, 按下Search按鈕後, 點選Linux(32bit/64bit), 就能download驅動程式

下載的驅動程式, 解壓縮後有2個zip檔, 如果是64bit的LINUX, 就使用EZUSB_Linux_x86_64_v1.5.3.zip

先把這個檔案解壓縮到Home目錄中



2.以su身份執行安裝:
進入剛才解壓縮的資料夾中的driver_ezusb_v1.5.3_for_64_bit
以su執行 ./install


安裝完成後, 會請你重新啟動開機 ( Please reboot your system )

3.執行檢查程式:
重新開機後, 在Terminal終端機視窗中, 進入剛剛安裝的目錄中, 執行檢查程式./check_env


如果結果是:
./check_env: 26: ./check_env: pcscd: not found
Warning! Cannot Find PC/SC Daemon!
Please install PC/SC Lite from Website http://www.linuxnet.com

就是Linux系統中還未安裝PC/SC套件, 請先安裝 PC/SC 套件
雖然有提示請到 http://www.linuxnet.com 去下載套件, 但這個網址已經失效了, 也沒辦法下載所需要的套件.

4.安裝PC/SC套件:
 在Ubuntu系統下安裝PC/SC套件的方法很簡單, 只要在Terminal終端機視窗中,執行以下的安裝指令, 就能把該套件安裝起來.
sudo apt-get install pcscd
sudo apt-get install libpcsc-perl
sudo apt-get install pcsc-tools
sudo apt-get install libccid

或是使用『軟體管理員』或是『Synaptic 套件管理程式』

 搜尋"pcsc"就可已找到pcscd及pcsc-tools, 先把這個安裝起來



 主要安裝的是pcscd這個套件, 另一個pcsc-tools套件是相關工具套件, 因為檔案很小, 就一併安裝起來.
 
這個pcscd套件依說明, 主要就是IC晶片卡的介面套件啦
Middleware to access a smart card using pc/sc (daemon side)
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface in a very small form factor for communicating to smart cards and smart cards readers.

The PC/SC daemon is used to dynamically allocate/deallocate reader drivers at runtime and manage connections to the readers.




5.再試一次./check_env
這時結果就不一樣了

pcsc-lite version 1.8.5.

Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d
PC/SC Daemon Ready!
/dev/bus/usb Detected
USB Device File System Ready!
Found PC/SC Driver Location - /usr/lib/pcsc
Environment Check OK!

以上的訊息表示PC/SC 已經安裝在系統中, EZ100PU的使用環境已經建構起來了.

6.因為剛剛有安裝pcsc-tools這個套件, 可以執行 sudo pcscd -f 來檢查/確認, 這台EZ100PU晶片讀卡機是否能讀取到你的IC晶片卡.

沒有留言:

張貼留言