Skip to content

Instantly share code, notes, and snippets.

@kovacs-andras
Created September 5, 2023 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kovacs-andras/7bca754f2f732712c01074fe47597869 to your computer and use it in GitHub Desktop.
Save kovacs-andras/7bca754f2f732712c01074fe47597869 to your computer and use it in GitHub Desktop.
KEAASZ on Red Hat 9
# e-személyi kliens telepítése
dnf install pcsc-cyberjack
dnf install https://eszemelyi.hu/wp-content/uploads/2023/05/eSzemelyi_Kliens_x64_1_7_3.rpm
# KEAASZ - Kormányzati Elektronikus Aláíró és Aláírásellenőrző Szoftver telepítése
dnf install java-11-openjdk-headless
mkdir -m 0700 ~/KEAASZ
cd ~/KEAASZ
curl -kO https://keaesz.gov.hu/keaasz/download/KEAASZ-2.0.23-portable-windows-x64-jre.zip
unzip KEAASZ-2.0.23-portable-windows-x64-jre.zip
rm -rvf \
KEAASZ-2.0.23/jre \
KEAASZ-2.0.23-portable-windows-x64-jre.zip
ln -s KEAASZ-2.0.23 current
tee ~/KEAASZ/current/KEAASZ.sh << 'EOF'
#!/usr/bin/env bash
cd ~/KEAASZ/current || { echo 'Telepítési könyvtár nem található'; exit 1; }
[ -z $DISPLAY ] && { echo 'Nincs display változó beállítva'; exit 1; }
java \
-Xmx1G \
--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED \
-Dspring.profiles.active=portable \
-Dlogging.config=config/logback.xml \
-Dlog.home=logs \
-Djava.security.debug=sunpkcs11,pkcs11 \
-jar keaasz.jar
EOF
chmod 0700 ~/KEAASZ/current/KEAASZ.sh
tee ~/.local/share/applications/KEAASZ.desktop << EOF
[Desktop Entry]
Name=KEAASZ aláíró
Type=Application
Exec=$(realpath ~/KEAASZ/current/KEAASZ.sh)
Terminal=false
Icon=$(realpath ~/KEAASZ/NISZ.ico)
Comment=KEAASZ - ALÁÍRÓ, IDŐBÉLYEGZŐ, ALÁÍRÁS-ELLENŐRZŐ SZOFTVER
Categories=Application;
EOF
chmod 0600 ~/.local/share/applications/KEAASZ.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment