Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu / not detecting devices without scdaemon with installed CMake/CPack created package #310

Closed
szszszsz opened this issue Jan 8, 2018 · 15 comments

Comments

@szszszsz
Copy link
Member

szszszsz commented Jan 8, 2018

Devices are not detected by the App, if the scdaemon package is not installed.
Environment: Ubuntu 17.10
Installed through .DEB package, made by CMake/CPack.

Previous description below:


Devices are not detected by the App, if the scdaemon package is not installed.

Environment: Ubuntu 17.10
Details: #300

Tried with Pro and OPC2 and Storage with OPC3.

@techge
Copy link

techge commented Jan 8, 2018

How does the App handle the factory-reset of OpenPGP Card? Doesn't it use scdaemon? I still do not see why the Nitrokey is not detected at all, but I was surprised, that you said App isn't using scdaemon at all...

It is also worth thinking about why 17.10 is affected but not 16.04

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Factory reset is executed by sending HID command to device, where it is handled further. uC sends similar to GnuPG/scdaemon reset commands to smartcard.
Edit: regarding 17.10: perhaps dependencies changed lately and some libraries are not installed by default.

@techge
Copy link

techge commented Jan 8, 2018

It is already there since 1.2 beta 2. Maybe it helps... I had no beta 1 version, so it is anywhere between 1.1 and 1.2 beta 2...

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

How do you install it?

@techge
Copy link

techge commented Jan 8, 2018

Using the github pre-releases.

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Do you mean the DEB file from Github releases?
And I guess the command is dpkg -i?

Edit: typo: RPM->DEB

@techge
Copy link

techge commented Jan 8, 2018

No, there are .deb files which work far more better :)
Yes, I used dpkg --install

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Ok, I will check it too later. It is almost surely dependency-related.
Packages were built on 16.04 AFAIR.

@techge
Copy link

techge commented Jan 8, 2018

Alright. Maybe it will not occur if built via launchpad repos anyway?

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Perhaps. But it would be great if standalone package would install its deps too when possible.

@jans23
Copy link
Member

jans23 commented Jan 8, 2018

The UDEV rules in scdaemon package were introduced in Ubuntu 17.04. I guess this issue is related to UDEV rules which are part of scdaemon.

Update: Correction of first sentence.

@szszszsz
Copy link
Member Author

Confirmed on Ubuntu 17.04 - 60-scdaemon.rules file contains the rules for accessing Nitrokey devices.
To investigate, why the DEB package has not installed its UDEV rules.
@techge Could you see if there is a 41-nitrokey.rules file in paths
/etc/udev/rules.d/
/lib/udev/rules.d/
after the .DEB package installation?

@techge
Copy link

techge commented Jan 19, 2018

No, not with .deb package, only when using launchpad version (which is consequently working fine even when scdaemon is removed).

@szszszsz
Copy link
Member Author

OK - so the problem lies in CMake/CPack.
Confirmed Debian/Launchpad packages contain udev rules.

@szszszsz szszszsz changed the title Ubuntu / not detecting devices without scdaemon Ubuntu / not detecting devices without scdaemon (CMake/CPack) Jan 29, 2018
@szszszsz szszszsz changed the title Ubuntu / not detecting devices without scdaemon (CMake/CPack) Ubuntu / not detecting devices without scdaemon with installed CMake/CPack created package Mar 6, 2018
@szszszsz
Copy link
Member Author

AFAIK fixed with modern releases. Closing.

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

No branches or pull requests

3 participants