Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Last active October 21, 2023 08:35
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ptantiku/e53eaae96e5503a77774636b1f948424 to your computer and use it in GitHub Desktop.
Save ptantiku/e53eaae96e5503a77774636b1f948424 to your computer and use it in GitHub Desktop.
Setup Ledger Nano S in Linux, with fixing problem on Fedora
#!/bin/bash
# Setup Ledger Nano S in Linux
# according to http://support.ledgerwallet.com/knowledge_base/topics/ledger-wallet-is-not-recognized-on-linux
# However, in Fedora, the "plugdev" group is not existed (obsolete).
# The solution is to replace `GROUP=\"plugdev\"` to `OWNER=\"<username>\"` in the script, for example:
# Original rule: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", GROUP="plugdev"
# Change to: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", OWNER="ptantiku"
wget -q -O - https://www.ledgerwallet.com/support/add_udev_rules.sh | sed -re 's/GROUP=\\"plugdev\\"/OWNER=\\"'$(whoami)'\\"/' | sudo bash
@rishadfb
Copy link

The link should be updated to this. Works perfectly in Fedora 28. Thank you!

@rahra
Copy link

rahra commented Jul 25, 2019

The NanoX device has product id 0004.
I added the following line to my udev-rules to make the NanoX work on Debian Linux:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004", MODE="0660", GROUP="plugdev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment