forked from trustcrypto/trustcrypto.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path49-onlykey-blink.rules
36 lines (36 loc) · 1.82 KB
/
49-onlykey-blink.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# UDEV Rules for headless system using OnlyKey for FDE, https://docs.crp.to/headless-server.html
#
# This file must be placed at:
#
# /etc/udev/rules.d/49-onlykey-blink.rules (preferred location)
# or
# /lib/udev/rules.d/49-onlykey-blink.rules (req'd on some broken systems)
#
# To install, type this command in a terminal:
# sudo cp 49-onlykey-blink.rules /etc/udev/rules.d/49-onlykey-blink.rules
#
# After this file is installed, physically unplug and reconnect OnlyKey.
#
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.
#
# Blink Blue on OS start, useful for letting user know FDE password on headless systems was successful
# Requires at command and python-fido2
# $ apt install python-pip
# $ pip install fido2
# $ cd /opt/
# $ git clone https://github.com/Yubico/python-fido2.git
# $ wget https://raw.githubusercontent.com/trustcrypto/trustcrypto.github.io/master/49-onlykey-blink.rules
# $ sudo cp 49-onlykey-blink.rules /etc/udev/rules.d/
# $ sudo udevadm control –reload
#
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="python /opt/python-fido2/examples/get_info.py"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="python /opt/python-fido2/examples/get_info.py"
#