Installing the ACR122U NFC USB reader on Linux Mint
For this tutorial I used Linux Mint 17.3 which is based on Ubuntu 14.04. So this will probably also work on Ubuntu 14.04. And most likely this will work on other versions of both Mint and Ubuntu too.
First we will be installing pcsc-tools. These tools are used to test the PC/SC driver, card or reader. After that we will be installing the official ACR122U NFC USB driver by Advanced Card Systems.
First of all, update your system’s package lists as usual: sudo apt-get update
After that, download and install pcsc-tools: sudo apt-get install pcscd pcsc-tools
Then test the NFC card reader: pcsc_scan
If you can’t succesfully scan a tag because pcsc-scan keeps waiting for a reader like this: Scanning present readers…
Waiting for the first reader...
Then you need to blacklist the pre-installed drivers. You can do so by opening blacklist.conf: sudo nano /etc/modprobe.d/blacklist.conf
Add these two lines to the end of the file: install nfc /bin/false
install pn533 /bin/false
Save the file and exit by typing CTRL+X.
My installed Mint is version 17.3, which is based on Ubuntu 14.04. The name of that particular Ubuntu distribution appears to be “Trusty Tahr”. Therefore I will be using the files from the ‘trusty’ folder later on.
2. Then head to the directory where the extracted driver is located. For my system, it is: cd Downloads/ACS-Unified-PKG-Lnx-113-P/acsccid_linux_bin-1.1.3/ubuntu/trusty
3. To install the driver, enter on of the the following commands.
For a 64bit Linux distribution: sudo dpkg -i libacsccid1_1.1.3-1~ubuntu14.04.1_amd64.deb
For a 32bit Linux distribution: sudo dpkg -i libacsccid1_1.1.3-1~ubuntu14.04.1_i386.deb
4. Then restart the pcscd service by rebooting your system or just by typing this command: sudo service pcscd restart
Or this command, which does the same: sudo /etc/init.d/pcscd restart
5. Finally, plug in the USB reader. You should now be able to use the reader from any PC/SC application.
Uninstalling the ACR122U NFC USB drivers
Consequently, to uninstall the driver, enter the following command:
For a 64bit Linux distribution: sudo dpkg -r libacsccid1_1.1.3-1~ubuntu14.04.1_amd64.deb
For a 32bit Linux distribution: sudo dpkg -r libacsccid1_1.1.3-1~ubuntu14.04.1_i386.deb