Pikopong

It's all about knowledge

Reading MyKad in Linux

View Comments

If this is your first time reading my guide in reading MyKad, I suggest you read my first post regarding MyKad. It will give you the basic idea what this is all about.

This article will only guide you what you should do so that you can read MyKad in Linux. However, your success rate still depends on the type of hardware you use, especially the reader since there are not so many reader that support Linux. These are my working environment in Linux:

For more info about the application used at the end of this guide, please refer to my post about Reading MyKad in Windows. I would like to thanks my colleague for guiding me on how to do this before. So, here it goes:

  1. Login as root first.
  2. Since my reader use USB, I need to get libusb library.
  3. Install libusb library
    1
    2
    3
    4
    5
    6
    7
    8
    9
    tar zxvf libusb-0.1.12.tar.gz

    cd libusb-0.1.12.

    ./configure

    make

    make install
  4. Get the latest version of PCSC Lite.
  5. Install PCSC Lite
    1
    2
    3
    4
    5
    6
    7
    8
    9
    tar zxvf pcsc-lite-1.4.4.tar.gz

    cd pcsc-lite-1.4.4

    ./configure

    make

    make install
  6. For pcsc-lite-1.5.1, change the 3rd line to
    ./configure --enable-libusb --disable-libhal

    Thanks to pakdo for the update :)

  7. Download the driver for the reader first. In this case, I’m using a reader from Athena.
  8. Install the driver
    tar -xjvf asedriveiiie-usb-3.5.tar.bz2

    cd asedriveiiie-usb-3.5

    ./configure

    make

    make install
  9. Get Windows Binary of JPC/SC Java API, I know it’s for Windows but it also has precompiled linux library in it.
  10. Extract, copy and update
    1
    2
    3
    4
    5
    6
    7
    unzip jpcsc-0.8.0.zip

    cd jpcsc/bin/linux

    cp libjpcsc.so /usr/lib

    ldconfig
  11. Start the pcsc service
    pcscd -d -f
  12. Download the application here.
  13. Run. It should be working now.
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • PDF
  • Print
  • Reddit
  • Slashdot
  • Technorati
  • Twitter

Related Posts

Written by amree

January 6th, 2008 at 6:36 pm

Posted in programming

Tagged with , ,

View Comments to 'Reading MyKad in Linux'

Subscribe to comments with RSS or TrackBack to 'Reading MyKad in Linux'.

  1. Where can i find the athena smart card reader in Malaysia ?

    cheburnNo Gravatar

    7 Jan 08 at 01:34 PM

  2. you can actually buy it online, at the same link given above, I’m not sure if you can find it in Malaysia, if you did find the shop where you can actually buy this particular reader directly, please, leave the contact number here

    amreeNo Gravatar

    7 Jan 08 at 07:51 PM

  3. for pcsc-lite-1.5.1 try
    ./configure –enable-libusb –disable-libhal

    pakdoNo Gravatar

    15 Jan 09 at 04:30 PM

  4. Post updated accordingly, thanks for the update from pakdo

    amreeNo Gravatar

    27 Jan 09 at 08:02 PM

Leave a Reply

blog comments powered by Disqus