Jeremy Molina

Hadoop Support Engineer, Coffee Lover, Costa Rican.

Firmador BCCR Manjaro 20.1

  1. Download the RPM version from the official website.

  2. Install a dependency:

    sudo pacman -S gtk-engine-murrine

  3. Unzip the file: firmador-bccr8.0amd64.rpm

  4. Move the binaries to the expected location. The launcher will look for the files in /opt/Firmador-BCCR/, if the files are not there the launcher will failed

    sudo mkdir /opt/Firmador-BCCR/
    sudo cp -p -r ~/Downloads/Firmador-BCCR/ /opt/

  5. Copy the application desktop file so the application can be found from the Applications Launcher:

    sudo cp -p Firmador-BCCR.desktop /usr/share/applications/

  6. Now you can lunch the app (read note below).

Once the app is lunch you will see the notification and the FirmadorBCCR logo will appear in the system tray. You can now test that is working: https://www.firmadigital.go.cr/verificacion/Verificacion.aspx

Important: For some reason the app crashes when it's launch, launch it a few times(2 in my case) and the app will start. I have not troubleshoot the cause of the start crash.

Firma Digital Costa Rica Manjaro 20.1

  1. Install dependencies

    sudo pacman -S java-openjfx
    sudo pacman -S cpio rpm-tools pcsclite ccid icedtea-web

  2. Download Drivers


  3. Unzip downloaded file

    unzip sfdClientesLinuxRPM64_Rev14.zip

  4. Copy Certificates to the system

    cd sfdClientesLinuxRPM64_Rev14/Firma\ Digital/Certificados/
    sudo cp -p ./* /usr/share/ca-certificates/trust-source/anchors/

  5. Update CA TrustStore

    sudo update-ca-trust

  6. Build/compile driver

    cd PinTool/IDProtect\ PINTool\ 7.24.02/RPM/
    rpm2cpio idprotectclient-7.24.02-0.x86_64.rpm | cpio -dim ./usr/lib/x64-athena/libASEP11.so

    95133 blocks <= successful

  7. Import compiled driver, create symbolic links and references

    sudo cp -p usr/lib/x64-athena/libASEP11.so /usr/lib/
    sudo mkdir -p /usr/lib/x64-athena/
    sudo mkdir -p /FirmaDigital/LIBRERIAS/
    sudo ln -s /usr/lib/libASEP11.so /usr/lib/x64-athena/
    sudo ln -s /usr/lib/libASEP11.so /usr/local/lib/
    sudo ln -s /usr/lib/libASEP11.so /Firma
    sudo ln -s /usr/share/ca-certificates/trust-source/anchors /Firma_Digital/CERTIFICADOS

  8. Driver Instructions metadata

    sudo mkdir /etc/Athena/
    sudo nano /etc/Athena/IDPClientDB.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <ATR type='hexBinary'>3BDC00FF8091FE1FC38073C821106600000000000000</ATR>
    <ATRMask type='hexBinary'>FFFF00FFF0FFFFFFFFFFFFFFFFF0FF00000000000000</ATRMask>

  9. Create/Add module to the system

    sudo nano /usr/share/p11-kit/modules/firma-digital.module
    remote: |bwrap --unshare-all --dir /tmp --proc /proc --dev /dev --ro-bind /etc /etc --ro-bind /usr /usr --ro-bind /run /run p11-kit remote /usr/lib/libASEP11.so

  10. Add it as a Systemd service
    sudo systemctl enable --now pcscd.socket

  11. Restart Firefox or dependent app

  12. If you need to sign documents you could use: Firmador.app

  13. Even though the Device has been loaded to Firefox for some reason is not working, I solved adding Athena manually to the loaded devices

    1. about:preferences#privacy > Security Devices
    2. Load: /Firma_Digital/LIBRERIAS/libASEP11.so
    3. Ignore the Errors and OK.

ref: https://fran.cr/instalar-firma-digital-costa-rica-manjaro-arch-linux/#more-596

KDE WPS Fix | File explorer font too dark/light

The below change will work if:

  1. You have Manjaro 20.1 installed (I have not tried others)

  2. You installed Manjaro from the AUR

  3. Use a white GTK theme
    I'm using Breath /usr/share/themes/Breath/gtk-2.0/gtkrc

sudo vim /usr/bin/wps


export GTK2_RC_FILES=/usr/share/themes/Breath/gtk-2.0/gtkrc

Use DSLR Manjaro 20.1


  1. Install the linux-headers for your Kernel (same as your kernel version)
    sudo pacman -S linux-headers

  2. Install gphoto2 and its dependencies (if v4l2 failed to install check step 1.)
    sudo pacman -S gphoto2 v4l-utils v4l2loopback-dkms ffmpeg

  3. Add Camera module to the modprobe flags
    sudo modprobe v4l2loopback exclusive_caps=1 max_buffers=2

  4. Allow DSLR to boot with the system

    sudo nano /etc/modprobe.d/dslr-webcam.conf

    # Module options for Video4Linux, needed for our DSLR Webcam
    alias dslr-webcam v4l2loopback
    options v4l2loopback exclusive_caps=1 max_buffers=2

  5. Try capture
    gphoto2 --capture-image-and-download

  6. Streaming to /dev/video0
    gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0

  7. Create script/allow execution of the script - so streaming is easier than remembering a full Linux command -

    nano ~/script/dslr.sh

    echo "Streaming to /dev/video0"
    gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 -hwaccel nvdec -c:v mjpeg_cuvid

    chmod 755 ~/script/dslr.sh

Ref: https://www.crackedthecode.co/how-to-use-your-dslr-as-a-webcam-in-linux/