From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gerwitz Subject: Re: Nitrokey and udev rules Date: Thu, 24 May 2018 21:44:12 -0400 Message-ID: <8736ygo6fn.fsf@gnu.org> References: <87603gj70o.fsf@gmail.com> <87in7dr7y5.fsf@gnu.org> <87in7dw3qn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM1o5-0001XM-8Q for help-guix@gnu.org; Thu, 24 May 2018 21:46:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM1o3-0006P1-Vi for help-guix@gnu.org; Thu, 24 May 2018 21:46:13 -0400 In-Reply-To: <87in7dw3qn.fsf@gmail.com> (Pierre Neidhardt's message of "Thu, 24 May 2018 16:04:31 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: "help-guix@gnu.org" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Pierre: On Thu, May 24, 2018 at 16:04:31 +0200, Pierre Neidhardt wrote: > Mike Gerwitz writes: [...] > I did: > >> sudo pcscd=20 >> gpg --card-status > gpg: selecting openpgp failed: No such device > gpg: OpenPGP card not available: No such device > > Can you share your udev rules? I don't have any udev rules that weren't included by default with GuixSD. The packages I installed are: gnupg, pcsc-lite, ccid, and pinentry. I used to know how to debug this problem very well back when I contributed the pcsc-lite package, but it's been a couple years, but I can try to help you through this. Looking through my notes, it looks like I symlinked `/run/current-system/profile/pcsc/drivers/' to `/var/lib/pcsc/drivers'. See Marius Bakke's message on ccid here: <87vawczpb2.fsf@duckhunt.i-did-not-set--mail-host-address--so-tickle-me>: https://lists.gnu.org/archive/html/guix-devel/2016-10/msg01433.html Can you see if that solves your problem? While we're at it, here's my dmesg output for the Nitrokey Pro: =2D-8<---------------cut here---------------start------------->8--- [17145.084169] usb 6-2: new full-speed USB device number 9 using uhci_hcd [17145.269203] usb 6-2: New USB device found, idVendor=3D20a0, idProduct=3D= 4108 [17145.269211] usb 6-2: New USB device strings: Mfr=3D1, Product=3D2, Seria= lNumber=3D3 [17145.269215] usb 6-2: Product: Nitrokey Pro [17145.269219] usb 6-2: Manufacturer: Nitrokey [17145.269223] usb 6-2: SerialNumber: 00003C750000000000000000 [17145.276690] input: Nitrokey Nitrokey Pro as /devices/pci0000:00/0000:00:= 1d.0/usb6/6-2/6-2:1.0/0003:20A0:4108.0009/input/input21 [17145.336410] hid-generic 0003:20A0:4108.0009: input,hidraw0: USB HID v1.1= 0 Keyboard [Nitrokey Nitrokey Pro] on usb-0000:00:1d.0-2/input0 =2D-8<---------------cut here---------------end--------------->8--- And `pcscd -f' output (which looks bad, but `gpg --card-status' does work): =2D-8<---------------cut here---------------start------------->8--- 00000000 ifdhandler.c:150:CreateChannelByNameOrChannel() failed 00000023 readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Faile= d (usb:20a0/4108:libudev:0:/dev/bus/usb/006/009) 00000006 readerfactory.c:376:RFAddReader() Nitrokey Nitrokey Pro (00003C750= 000000000000000) init failed. =2D-8<---------------cut here---------------end--------------->8--- If you're still having a problem then we can continue from that point. =2D-=20 Mike Gerwitz Free Software Hacker+Activist | GNU Maintainer & Volunteer GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05 https://mikegerwitz.com --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJbB2ptAAoJEIyRe39dxRuiTCsP/RiuhjX29ruJTy0DHUC7SHns 10I1bVPJeBg7KwggDle3kc1KPVKqadMveEsN+cxQUWGaeCye7RWGX1J/xuhG/UF4 Ad3KVxxWZ9LJvW4UrP6t9WdFp2xUU6ArGbwQXXB99Vmd/oBNGpmg/vcmd7cWNi7P awM1XQ5LcI/rwy4z8juA2xuIQXK0LFDNpge4jdlximvCiK+CVGVTPYlqwkPIyeWI ERb7i8gtxbr5SLb7Xytc2IBwsARar3/tQ31x1jpNJbFJJPSOHBfXYiBx/lUWqPHo jS2xWrX1WqYlT7Bbtqeakk5nqtnhIKMQoTuEctDJ6PvbR23TrcQf5PuXQS+1XfrF ndKSFIt+CAuyAeqJnbfGQXr8e1RCJN8QWCUMLjX5ktGABbGIo4m1pzidwXIZOvlY jmDmfJcyQvoXr2gGe5AOwpxIfnfiGpHZCzkzVwiaOu2c2hrdfLDgPYL2KG9Kxi6m J//QQfXkTiBV9K0j+AGnbqD+fGgFxnsDvgB5CPcy4x3OVKDUZLwxiw7pqxvK/n8x 77tod6dye6v0nbHKELNnF75Eg6/UrXNvuqSWshp7MAzVbj9OGKJ3hMoSbZCwFmaz vDcoVWd2yBG5YsvFP8nlKKwr7NeqTpkJPCNjhMnZ5NOKuJlUEVFxsYwE1N0IhT27 CbOeEtefoXIS/GGvIdVf =I5zE -----END PGP SIGNATURE----- --=-=-=--