Size: 584
Comment:
|
← Revision 25 as of 2023-06-14 14:13:34 ⇥
Size: 3973
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
== SlackBuild == | == pcsc-lite SlackBuild == {{{#!highlight sh |
Line 7: | Line 8: |
wget http://slackbuilds.org/slackbuilds/13.1/system/pcsc-lite.tar.gz | wget http://slackbuilds.org/slackbuilds/14.0/system/pcsc-lite.tar.gz |
Line 10: | Line 11: |
wget http://alioth.debian.org/frs/download.php/3479/pcsc-lite-1.6.6.tar.bz2 http://alioth.debian.org/frs/download.php/file/3479/pcsc-lite-1.6.6.tar.bz2 |
wget https://alioth.debian.org/frs/download.php/3862/pcsc-lite-1.8.8.tar.bz2 |
Line 13: | Line 13: |
vim pcsc-lite.SlackBuild add --disable-libhal after ./configure |
groupadd -g 257 pcscd useradd -u 257 -g pcscd -d /var/run/pcscd -s /bin/false pcscd |
Line 16: | Line 16: |
installpkg /tmp/pcsc-lite-1.6.6-x86_64-1_SBo.tgz | installpkg /tmp/pcsc-lite-1.8.8-x86_64-1_SBo.tgz }}} |
Line 18: | Line 19: |
Package 64 bit: [[]] | Package 64 bit: [[attachment:pcsc-lite-1.8.8-x86_64-1_SBo.tgz]] Package 32 bit: [[attachment:pcsc-lite-1.8.8-i486-1_SBo.tgz]] === ccid SlackBuild === {{{#!highlight sh cd /tmp wget http://slackbuilds.org/slackbuilds/14.0/system/ccid.tar.gz tar xvzf ccid.tar.gz cd ccid wget https://alioth.debian.org/frs/download.php/file/3535/ccid-1.4.3.tar.bz2 chmod 755 ccid.SlackBuild ./ccid.SlackBuild installpkg /tmp/ccid-1.4.3-x86_64-1_SBo.tgz }}} Package 64 bit: [[attachment:ccid-1.4.3-x86_64-1_SBo.tgz]] Package 32 bit: [[attachment:ccid-1.4.3-i486-1_SBo.tgz]] == Configuration on Slackware 14 == Verify service pcsc: '''pcsd -v -f''', insert and remove smart cards to check ATRs and smart card reader name. Enable the service on slackware: '''chmod 755 /etc/rc.d/rc.pcscd''' Start the service manually: '''/etc/rc.d/rc.pcscd start''' Add init to '''/etc/rc.d/rc.M''': {{{#!highlight sh #start smart card service if [ -x /etc/rc.d/rc.pcscd ]; then . /etc/rc.d/rc.pcscd start fi }}} Add stop to '''/etc/rc.d/rc.K''' before kill all processes: {{{#!highlight sh #stop smart card service if [ -x /etc/rc.d/rc.pcscd ]; then . /etc/rc.d/rc.pcscd stop fi }}} Add stop to '''/etc/rc.d/rc.6''' (rc.0 is a symbolic link) before kill all processes: {{{#!highlight sh #stop smart card service if [ -x /etc/rc.d/rc.pcscd ]; then /etc/rc.d/rc.pcscd stop fi }}} == CentOS 6.4 pcsc-lite == Files: * pcsc-lite-libs-1.5.2-13.el6_4.x86_64 * pcsc-lite-1.5.2-13.el6_4.x86_64 * pcsc-lite-devel-1.5.2-13.el6_4.x86_64 * pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64 If the service don't start, service pscsd start, delete file /var/run/pcsdc.pid and /var/run/pcsdc.pub . == Slack 14.2 == {{{#!highlight sh cd /tmp wget https://slackbuilds.org/slackbuilds/14.2/system/pcsc-lite.tar.gz tar xvzf pcsc-lite.tar.gz cd pcsc-lite wget https://alioth.debian.org/frs/download.php/file/4138/pcsc-lite-1.8.14.tar.bz2 ./pcsc-lite.SlackBuild groupadd -g 257 pcscd useradd -u 257 -g pcscd -d /var/run/pcscd -s /bin/false pcscd installpkg /tmp/pcsc-lite-1.8.14-i486-1_SBo.tgz }}} {{{#!highlight sh cd /tmp wget https://slackbuilds.org/slackbuilds/14.2/system/ccid.tar.gz tar xvzf ccid.tar.gz cd ccid wget https://alioth.debian.org/frs/download.php/file/4148/ccid-1.4.21.tar.bz2 ./ccid.SlackBuild installpkg /tmp/ccid-1.4.21-i486-1_SBo.tgz chmod 755 /etc/rc.d/rc.pcscd /etc/rc.d/rc.pcscd start pcscd -v cd /tmp wget http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools-1.5.2.tar.bz2 tar xvif pcsc-tools-1.5.2.tar.bz2 cd pcsc-tools-1.5.2 ./configure make clean make make install pcsc_scan }}} == Portuguese National ID Card reader == * http://ftp.caixamagica.pt/15/oficial/SRPMS/main/release/cartao_de_cidadao-1.23-1xcm15.src.rpm * rpm2tgz cartao_de_cidadao-1.23-1xcm15.src.rpm * cd cartao_de_cidadao-1.23-1xcm15 * tar xvzf cartao_de_cidadao_v1_23_caixa_magica_14_i586.tar.gz * cd Cartao_de_Cidadao * ./install.sh * ln -s /lib/libcrypto.so.1.0.0 /lib/libcrypto.so.10 * ln -s /lib/libssl.so.1.0.0 /lib/libssl.so.10 == plugin-autenticacao-gov == * wget https://autenticacao.gov.pt/fa/ajuda/software/plugin-autenticacao-gov.deb --no-check-certificate * deb2tgz plugin-autenticacao-gov.deb * installppkg plugin-autenticacao-gov.tar.gz * java -jar /usr/share/plugin-autenticacao-gov/plugin-autenticacao-gov.jar |
pcsc-lite
PC/SC-lite is a middleware to access a smart card using SCard API (PC/SC)
pcsc-lite SlackBuild
1 su
2 cd /tmp
3 wget http://slackbuilds.org/slackbuilds/14.0/system/pcsc-lite.tar.gz
4 tar xvzf pcsc-lite.tar.gz
5 cd pcsc-lite
6 wget https://alioth.debian.org/frs/download.php/3862/pcsc-lite-1.8.8.tar.bz2
7 chmod 755 pcsc-lite.SlackBuild
8 groupadd -g 257 pcscd
9 useradd -u 257 -g pcscd -d /var/run/pcscd -s /bin/false pcscd
10 ./pcsc-lite.SlackBuild
11 installpkg /tmp/pcsc-lite-1.8.8-x86_64-1_SBo.tgz
Package 64 bit: pcsc-lite-1.8.8-x86_64-1_SBo.tgz
Package 32 bit: pcsc-lite-1.8.8-i486-1_SBo.tgz
ccid SlackBuild
Package 64 bit: ccid-1.4.3-x86_64-1_SBo.tgz
Package 32 bit: ccid-1.4.3-i486-1_SBo.tgz
Configuration on Slackware 14
Verify service pcsc: pcsd -v -f, insert and remove smart cards to check ATRs and smart card reader name.
Enable the service on slackware: chmod 755 /etc/rc.d/rc.pcscd
Start the service manually: /etc/rc.d/rc.pcscd start
Add init to /etc/rc.d/rc.M:
Add stop to /etc/rc.d/rc.K before kill all processes:
Add stop to /etc/rc.d/rc.6 (rc.0 is a symbolic link) before kill all processes:
CentOS 6.4 pcsc-lite
Files:
- pcsc-lite-libs-1.5.2-13.el6_4.x86_64
- pcsc-lite-1.5.2-13.el6_4.x86_64
- pcsc-lite-devel-1.5.2-13.el6_4.x86_64
- pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64
If the service don't start, service pscsd start, delete file /var/run/pcsdc.pid and /var/run/pcsdc.pub .
Slack 14.2
1 cd /tmp
2 wget https://slackbuilds.org/slackbuilds/14.2/system/pcsc-lite.tar.gz
3 tar xvzf pcsc-lite.tar.gz
4 cd pcsc-lite
5 wget https://alioth.debian.org/frs/download.php/file/4138/pcsc-lite-1.8.14.tar.bz2
6 ./pcsc-lite.SlackBuild
7 groupadd -g 257 pcscd
8 useradd -u 257 -g pcscd -d /var/run/pcscd -s /bin/false pcscd
9 installpkg /tmp/pcsc-lite-1.8.14-i486-1_SBo.tgz
1 cd /tmp
2 wget https://slackbuilds.org/slackbuilds/14.2/system/ccid.tar.gz
3 tar xvzf ccid.tar.gz
4 cd ccid
5 wget https://alioth.debian.org/frs/download.php/file/4148/ccid-1.4.21.tar.bz2
6 ./ccid.SlackBuild
7 installpkg /tmp/ccid-1.4.21-i486-1_SBo.tgz
8
9 chmod 755 /etc/rc.d/rc.pcscd
10 /etc/rc.d/rc.pcscd start
11 pcscd -v
12
13 cd /tmp
14 wget http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools-1.5.2.tar.bz2
15 tar xvif pcsc-tools-1.5.2.tar.bz2
16 cd pcsc-tools-1.5.2
17 ./configure
18 make clean
19 make
20 make install
21 pcsc_scan
Portuguese National ID Card reader
http://ftp.caixamagica.pt/15/oficial/SRPMS/main/release/cartao_de_cidadao-1.23-1xcm15.src.rpm
- rpm2tgz cartao_de_cidadao-1.23-1xcm15.src.rpm
- cd cartao_de_cidadao-1.23-1xcm15
- tar xvzf cartao_de_cidadao_v1_23_caixa_magica_14_i586.tar.gz
- cd Cartao_de_Cidadao
- ./install.sh
- ln -s /lib/libcrypto.so.1.0.0 /lib/libcrypto.so.10
- ln -s /lib/libssl.so.1.0.0 /lib/libssl.so.10
plugin-autenticacao-gov
wget https://autenticacao.gov.pt/fa/ajuda/software/plugin-autenticacao-gov.deb --no-check-certificate
- deb2tgz plugin-autenticacao-gov.deb
- installppkg plugin-autenticacao-gov.tar.gz
- java -jar /usr/share/plugin-autenticacao-gov/plugin-autenticacao-gov.jar