Created
January 14, 2020 08:05
-
-
Save whhsw/9374d591d0ebb06367a4970fbd5c56c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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