Skip to content

Instantly share code, notes, and snippets.

@whhsw
Created January 14, 2020 08:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whhsw/9374d591d0ebb06367a4970fbd5c56c7 to your computer and use it in GitHub Desktop.
Save whhsw/9374d591d0ebb06367a4970fbd5c56c7 to your computer and use it in GitHub Desktop.
#install libnfc
brew install libtool
brew install automake
brew install autoconf
brew install libusb
brew install pkg-config
brew install glib
git clone https://github.com/nfc-tools/libnfc
cd libnfc
autoreconf -vis
./configure --with-drivers=pn532_uart --enable-serial-autoprobe --prefix=/usr/local/
sudo make clean all
sudo make
sudo make install
cd /usr/local/etc
mkdir nfc
cd nfc
sudo cp ~/libnfc/libnfc.conf.sample /usr/local/etc/nfc/libnfc.conf
sudo vim /usr/local/etc/nfc/libnfc.conf
# uncomment
allow_autoscan = true
ls /dev/tty.usb*
# change the last line to lsusb port
device.connstring = "pn532_uart:/dev/tty.usbserial"
# install mfoc
git clone https://github.com/nfc-tools/mfoc
cd mfoc
autoreconf -vis
./configure
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment