Merge pull request #99 from VlkrS/main
Add pcscd recommentation for {Open,Free}BSD
This commit is contained in:
@@ -21,12 +21,33 @@ Help from new packagers is very welcome.
|
|||||||
### Linux, BSD, etc.
|
### Linux, BSD, etc.
|
||||||
|
|
||||||
On non-Windows, non-macOS systems, you need to ensure that the `pcscd` service
|
On non-Windows, non-macOS systems, you need to ensure that the `pcscd` service
|
||||||
is installed and running. On Debian or Ubuntu, you can do this with:
|
is installed and running.
|
||||||
|
|
||||||
|
#### Debian or Ubuntu
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo apt-get install pcscd
|
$ sudo apt-get install pcscd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### OpenBSD
|
||||||
|
|
||||||
|
As ```root``` do:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ pkg_add pcsc-lite
|
||||||
|
$ rcctl enable pcscd
|
||||||
|
$ rcctl start pcscd
|
||||||
|
```
|
||||||
|
|
||||||
|
#### FreeBSD
|
||||||
|
|
||||||
|
As ```root``` do:
|
||||||
|
```
|
||||||
|
$ pkg install pcsc-lite
|
||||||
|
$ service pcscd enable
|
||||||
|
$ service pcscd start
|
||||||
|
```
|
||||||
|
|
||||||
### Windows Subsystem for Linux (WSL)
|
### Windows Subsystem for Linux (WSL)
|
||||||
|
|
||||||
WSL does not currently provide native support for USB devices. However, Windows
|
WSL does not currently provide native support for USB devices. However, Windows
|
||||||
|
|||||||
@@ -204,6 +204,12 @@ rec-yk-no-service-pcscd =
|
|||||||
If you are on Debian or Ubuntu, you can install it with:
|
If you are on Debian or Ubuntu, you can install it with:
|
||||||
{" "}{$apt}
|
{" "}{$apt}
|
||||||
|
|
||||||
|
rec-yk-no-service-pcscd-bsd =
|
||||||
|
You can install and run it as root with:
|
||||||
|
{" "}{$pkg}
|
||||||
|
{" "}{$service_enable}
|
||||||
|
{" "}{$service_start}
|
||||||
|
|
||||||
err-yk-no-service-win = The Smart Cards for Windows service is not running.
|
err-yk-no-service-win = The Smart Cards for Windows service is not running.
|
||||||
rec-yk-no-service-win =
|
rec-yk-no-service-win =
|
||||||
See this troubleshooting guide for more help:
|
See this troubleshooting guide for more help:
|
||||||
|
|||||||
@@ -107,6 +107,30 @@ impl fmt::Debug for Error {
|
|||||||
wlnfl!(f, "err-yk-no-service-macos")?;
|
wlnfl!(f, "err-yk-no-service-macos")?;
|
||||||
let url = "https://apple.stackexchange.com/a/438198";
|
let url = "https://apple.stackexchange.com/a/438198";
|
||||||
wlnfl!(f, "rec-yk-no-service-macos", url = url)?;
|
wlnfl!(f, "rec-yk-no-service-macos", url = url)?;
|
||||||
|
} else if cfg!(target_os = "openbsd") {
|
||||||
|
wlnfl!(f, "err-yk-no-service-pcscd")?;
|
||||||
|
let pkg = "pkg_add pcsc-lite";
|
||||||
|
let service_enable = "rcctl enable pcscd";
|
||||||
|
let service_start = "rcctl start pcscd";
|
||||||
|
wlnfl!(
|
||||||
|
f,
|
||||||
|
"rec-yk-no-service-pcscd-bsd",
|
||||||
|
pkg = pkg,
|
||||||
|
service_enable = service_enable,
|
||||||
|
service_start = service_start
|
||||||
|
)?;
|
||||||
|
} else if cfg!(target_os = "freebsd") {
|
||||||
|
wlnfl!(f, "err-yk-no-service-pcscd")?;
|
||||||
|
let pkg = "pkg install pcsc-lite";
|
||||||
|
let service_enable = "service pcscd enable";
|
||||||
|
let service_start = "service pcscd start";
|
||||||
|
wlnfl!(
|
||||||
|
f,
|
||||||
|
"rec-yk-no-service-pcscd-bsd",
|
||||||
|
pkg = pkg,
|
||||||
|
service_enable = service_enable,
|
||||||
|
service_start = service_start
|
||||||
|
)?;
|
||||||
} else {
|
} else {
|
||||||
wlnfl!(f, "err-yk-no-service-pcscd")?;
|
wlnfl!(f, "err-yk-no-service-pcscd")?;
|
||||||
let apt = "sudo apt-get install pcscd";
|
let apt = "sudo apt-get install pcscd";
|
||||||
|
|||||||
Reference in New Issue
Block a user