Build from source:
Install dependencies:
apt install pcsc-tools pcscd libpcsclite1 libudev-dev libusb-1.0-0-dev python-dev virtualenv libusb-dev libudev-dev
You have to have to add the Nano S to /etc/libccid_Info.plist
In ifdVendorID add the entry 0x2C97
In ifdProductID add the entry 0x0001
In ifdFriendlyName add the entry Ledger Token
These 3 entries must be added at the end of each list.
Create the following udev rules /etc/udev/rules.d/99-ledger.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000", MODE="0660", TAG+="uaccess", TAG+="udev-acl" GROUP="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", TAG+="uaccess", TAG+="udev-acl" GROUP="plugdev"