Requirement:
- Ledger Nano
- Ledger HW1
- Ledger Nano S
- Ledger Blue
- Special Edition
You need to create a set of udev rules to allow access to the device on Linux. This can be done easily by running the following command:
| function slugify(string) { | |
| const a = 'àáäâãèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;' | |
| const b = 'aaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
| .replace(/&/g, '-and-') // Replace & with 'and' | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word characters |