Como instalar o programa GCAP 2021 da Receita Federal no Endless OS

Como instalo o programa GCAP 2021 da Receita Federal no Endless 3.9.4 64 bits?

Do you have a Download link or similar for me to take a look at it.

Thanks for the reply. The Download link is https://downloadirpf.receita.fazenda.gov.br/irpf/2021/gcap/GCAP2021v1.1.zip

Run the following bunch of commands (simply select and paste into a Terminal):

wget -O ~/Downloads/GCAP2021v1.1.zip "https://downloadirpf.receita.fazenda.gov.br/irpf/2021/gcap/GCAP2021v1.1.zip"
mkdir -p ~/opt
unzip -d ~/opt/ ~/Downloads/GCAP2021v1.1.zip
wget -O ~/Downloads/openjdk-16.0.1_linux-x64_bin.tar.gz https://download.java.net/java/GA/jdk16.0.1/7147401fd7354114ac51ef3e1328291f/9/GPL/openjdk-16.0.1_linux-x64_bin.tar.gz
gzip -dc ~/Downloads/openjdk-16.0.1_linux-x64_bin.tar.gz | tar -xvf - -C ~/opt
echo JDK_HOME=${JDK_HOME:-~/opt/jdk-16.0.1} >> ~/.bashrc
echo JAVA_HOME=${JAVA_HOME:-~/opt/jdk-16.0.1} >> ~/.bashrc
echo PATH=${PATH}:~/opt/jdk-16.0.1/bin >> ~/.bashrc
mkdir -p ~/.local/share/applications
cat << EOF | tee ~/.local/share/applications/GCAP2021.desktop
[Desktop Entry]
Type=Application
Name=GCAP2021
Exec=/sysroot/home/$(whoami)/opt/jdk-16.0.1/bin/java -jar -Xmx512M /sysroot/home/$(whoami)/opt/GCAP2021/GCAP.jar
EOF
chmod +x ~/.local/share/applications/GCAP2021.desktop
gio set ~/.local/share/applications/GCAP2021.desktop metadata::trusted yes

This will give you a Icon named “GCAP2021” which you can use to run the program:

Thank you very much!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.