This shows you the differences between two versions of the page.
ac:laboratoare:10 [2024/12/12 02:43] dimitrie.valu [Get Dynamic signature from card] |
ac:laboratoare:10 [2024/12/15 07:01] (current) dimitrie.valu |
||
---|---|---|---|
Line 4: | Line 4: | ||
Do the following on Linux (this is for Ubuntu/Debian -- you might need root access): | Do the following on Linux (this is for Ubuntu/Debian -- you might need root access): | ||
- | * Install ''%%pcsclite-dev%%'': | + | |
+ | * Install these packages: | ||
<code> | <code> | ||
- | sudo apt-get install libpcsclite-dev | + | sudo apt install libpcsclite-dev swig libpcsc-perl pcsc-tools python3-dev libudev-dev python3-pyscard python3-pyserial |
</code> | </code> | ||
- | * Then also install these packages: | + | |
+ | If this doesn't work, then get ''%%Pyserial%%'' from [[https://pypi.python.org/pypi/pyserial#downloads|here]] | ||
+ | |||
+ | * Install ''%%pcsc%%'' related libs: | ||
<code> | <code> | ||
- | sudo apt-get install swig python3-dev libudev-dev python3-pip | + | sudo apt install libusb-dev libccid pcscd libpcsclite1 |
</code> | </code> | ||
- | * Get and install ''%%Pyscard%%'' using ''%%pip%%'' (install ''%%pip%%'' if needed) | + | |
+ | * You might also want to install these additional card tools from here: | ||
<code> | <code> | ||
- | pip3 install pyscard | + | sudo apt install libpcsc-perl pcsc-tools |
</code> | </code> | ||
- | * Install ''%%Pyserial%%'' | + | |
+ | On Arch Linux, get the following packages (reference [[https://wiki.archlinux.org/title/Smartcards |the Arch wiki]] if you need to): | ||
<code> | <code> | ||
- | pip3 install pyserial | + | yay -S swig flex libusb ccid pcsclite pcsc-perl pcsc-tools python-pyscard python-pyserial |
</code> | </code> | ||
- | If this doesn't work, then get ''%%Pyserial%%'' from [[https://pypi.python.org/pypi/pyserial#downloads|here]] | + | |
- | * Install ''%%pcsc%%'' related libs: | + | You may need to start the ''%%pcscd%%'' daemon: |
- | <code> | + | |
- | sudo apt-get install libusb-dev libccid pcscd libpcsclite1 | + | |
- | </code> | + | |
- | * You might also want to install these additional card tools from here: | + | |
<code> | <code> | ||
- | sudo apt-get install libpcsc-perl pcsc-tools | + | systemctl start pcscd.service |
</code> | </code> | ||
- | See details [[http://support.gemalto.com/fileadmin/user_upload/IAM/FAQ/How_to_install_the_PC-Link_reader_on_Linux.pdf|here]]. | + | See details [[http://www.audentia-gestion.fr/GEMALTO/PDF/How_to_install_the_PC-Link_reader_on_Linux.pdf |here]]. |
For Windows drivers you can check [[https://supportportal.gemalto.com/csm/?id=kb_article_view&sys_kb_id=0adc96844f350700873b69d18110c76a&sysparm_article=KB0016522|here]]. However, we recommend using Linux, as the instructions below apply for the Linux installation. | For Windows drivers you can check [[https://supportportal.gemalto.com/csm/?id=kb_article_view&sys_kb_id=0adc96844f350700873b69d18110c76a&sysparm_article=KB0016522|here]]. However, we recommend using Linux, as the instructions below apply for the Linux installation. | ||
Line 248: | Line 255: | ||
</code> | </code> | ||
- | Although it might be more convenient to see the output in hexa, using something like this: | + | * Although it might be more convenient to see the output in hexa, using something like this: |
<code> | <code> |