View previous topic :: View next topic |
Author |
Message |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Tue Jan 24, 2017 12:07 pm Post subject: Instalando Autofirma en gentoo |
|
|
Necesito instalar autofirma para poder operar en la web del Tesoro
AutoFirma es una aplicación de escritorio que el usuario debe instalar en su ordenador y que permite la ejecución de operaciones de firma locales en los sistemas Operativos Windows, Mac OS X y Linux. Es invocada por el Servicio de Compra y Venta de Valores para la ejecución de operaciones de firma electrónica. En particular permite efectuar operaciones de firma desde navegadores de última generación sin requerir la instalación de Java.
https://wwws.tesoro.es/descargas/AutoFirma/Linux/AutoFirma_1.4.2.deb
https://wwws.tesoro.es/doc/AF_manual_instalacion_usuarios_ES.pdf
Desgraciadamente como se puede comprobar es un paquete en Debian y que además tiene las siguientes dependencias.
Para poder ejecutar AutoFirma son necesarias las siguientes dependencias, así que estás se comprueban durante el proceso de instalación:
• JRE (Java Runtine Environment) de Oracle u OpenJDK.
• Biblioteca “libnss3-tools”.
Y si tras intentar instalar el paquete mediante dpkg
Code: | dpkg -i AutoFirma_1.4.2.deb
(Reading database ... 21 files and directories currently installed.)
Preparing to unpack AutoFirma_1.4.2.deb ...
15768
Unpacking autofirma (1.4.2) over (1.4.2) ...
Desinstalación completada con exito
dpkg: dependency problems prevent configuration of autofirma:
autofirma depends on openjdk-8-jre | oracle-java8-installer; however:
Package openjdk-8-jre is not installed.
Package oracle-java8-installer is not installed.
autofirma depends on libnss3-tools; however:
Package libnss3-tools is not installed.
dpkg: error processing package autofirma (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
autofirma
|
_________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
|
Back to top |
|
 |
quilosaq Veteran

Joined: 22 Dec 2009 Posts: 1562
|
Posted: Tue Jan 24, 2017 4:57 pm Post subject: |
|
|
dev-libs/nss, posiblemente con la use utils. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Wed Jan 25, 2017 10:26 am Post subject: |
|
|
Gracias. Aunque haciendo burradas me he cargado el gentoo. Suerte que tengo un pc de recambio y a ver como arreglo la cosa ya que me he cargado hasta el emerge. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
quilosaq Veteran

Joined: 22 Dec 2009 Posts: 1562
|
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Thu Jan 26, 2017 1:54 pm Post subject: |
|
|
Me parece que no me van a servir ya que tengo un portage más nuevo. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Thu Feb 02, 2017 12:15 pm Post subject: |
|
|
Recuperado, básicamente he tenido que volver a instalar todo el sistema mediante un stage3.
Suerte del ordenador de recambio que he podido grabar un disco de instalación mínimo.
Pero bueno ya estamos en marcha de nuevo.  _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Thu Feb 23, 2017 2:19 am Post subject: |
|
|
Destroce todo el sistema otra vez. Parece que al descomprimir cambia los permisos.
Mucho cuidado con esto. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
Stolz Moderator


Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Thu Feb 23, 2017 10:03 am Post subject: |
|
|
Creo que el problema está en usar dpkg para instalar AutoFirma. Debe estar sobrescribiendo algún fichero del sistema que es lo que te deja sin ordenador.
dpkg está pensado para ser usado desde Debian. Deberias evitar usarlo en Gentoo.
Los paquetes Debian no son mas que ficheros comprimidos con 'ar'. Si lo tienes instalado puedes ejecutar
Code: | ar vx AutoFirma_1.4.2.deb |
si no instala alguna utilidad como app-arch/deb2targz para descomprimir manualmente el paquete.
Una vez descomprimido localiza el binario de AutoFirma y ejecutalo |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Thu Feb 23, 2017 10:37 am Post subject: |
|
|
Hola,
el destrozo me lo produjo aplicando este comando
Code: | tar -xvf data.tar.xz
./
./usr/
./usr/share/
./usr/share/applications/
./usr/share/applications/afirma.desktop
./usr/share/applications/afirma.desktop~
./usr/share/doc/
./usr/share/doc/AutoFirma/
./usr/share/doc/AutoFirma/copyright
./usr/share/AutoFirma/
./usr/share/AutoFirma/AutoFirma.png
./usr/lib/
./usr/lib/AutoFirma/
./usr/lib/AutoFirma/AutoFirma.jar
./usr/lib/AutoFirma/AutoFirmaConfigurador.jar
./usr/bin/
./usr/bin/AutoFirma
./etc/
./etc/firefox/
./etc/firefox/pref/
./etc/firefox/pref/AutoFirma.js
|
Aquí los permisos
Code: | tar -tvf data.tar.xz
drwxrwxr-x root/root 0 2015-10-22 13:56 ./
drwxrwxr-x root/root 0 2014-11-06 03:05 ./usr/
drwxrwxr-x root/root 0 2016-04-01 00:41 ./usr/share/
drwxrwxr-x root/root 0 2016-04-13 13:40 ./usr/share/applications/
-rwxrwxr-x root/root 305 2016-04-13 13:40 ./usr/share/applications/afirma.desktop
-rwxrwxr-x root/root 304 2016-04-04 23:40 ./usr/share/applications/afirma.desktop~
drwxrwxr-x root/root 0 2015-10-22 13:21 ./usr/share/doc/
drwxrwxr-x root/root 0 2015-10-29 14:18 ./usr/share/doc/AutoFirma/
-rwxrwxr-x root/root 567 2015-10-29 14:18 ./usr/share/doc/AutoFirma/copyright
drwxrwxr-x root/root 0 2016-04-04 23:40 ./usr/share/AutoFirma/
-rw-rw-r-- root/root 6396 2016-04-01 01:43 ./usr/share/AutoFirma/AutoFirma.png
drwxrwxr-x root/root 0 2016-04-28 18:27 ./usr/lib/
drwxrwxr-x root/root 0 2016-05-26 14:07 ./usr/lib/AutoFirma/
-rw-r--r-- root/root 13679592 2016-05-26 14:06 ./usr/lib/AutoFirma/AutoFirma.jar
-rw-r--r-- root/root 11334249 2016-05-26 14:07 ./usr/lib/AutoFirma/AutoFirmaConfigurador.jar
drwxrwxr-x root/root 0 2015-10-28 12:30 ./usr/bin/
-rwxrwxr-x root/root 58 2015-10-28 12:29 ./usr/bin/AutoFirma
drwxrwxr-x root/root 0 2015-10-22 13:55 ./etc/
drwxrwxr-x root/root 0 2015-10-22 13:55 ./etc/firefox/
drwxrwxr-x root/root 0 2015-10-22 16:13 ./etc/firefox/pref/
-rwxrwxr-x root/root 183 2015-10-22 13:18 ./etc/firefox/pref/AutoFirma.js
|
NOTA
Esto acabo de hacerlo como usuario, si lo hubiese hecho como root acabo con el sistema destrozado: no funciona ni el portage y me veo obligado a instalar todo de nuevo. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
ZaPa l33t

Joined: 13 Feb 2007 Posts: 822
|
Posted: Mon May 01, 2017 5:05 pm Post subject: |
|
|
¿Pudiste dar finalmente con la solución? _________________ --
http://www.monovarlinux.org. Información y experiencias con linux, especialmente con Gentoo. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Tue May 02, 2017 1:24 pm Post subject: |
|
|
Realmente creo que la solución es copiar manualmente los archivos y comprobar que no se sustituye nada.
y si falla algo supongo que eliminándolos volvemos a la situación inicial. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
ZaPa l33t

Joined: 13 Feb 2007 Posts: 822
|
Posted: Tue May 02, 2017 10:54 pm Post subject: |
|
|
Realmente... ¿Cual fue el problema realmente? Es decir.. ¿Algún fichero se sobreescribió? ¿Cambio de permisos en algún directorio del sistema?
Es muy extraño lo que te ha pasado la verdad.
Un saludo. _________________ --
http://www.monovarlinux.org. Información y experiencias con linux, especialmente con Gentoo. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Wed May 03, 2017 8:55 am Post subject: |
|
|
Realmente creo que se trata de un cambio de permisos en los directorios del sistema. Es la única explicación al fallo catastrófico que se produce cuando extraes ese archivo. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
t4d3o Tux's lil' helper

Joined: 18 Jan 2005 Posts: 79 Location: Cuenca
|
Posted: Wed Oct 25, 2017 11:31 am Post subject: |
|
|
Hola.
He conseguido instalar autofirma 1.5 y hacerlo funcionar junto con Chrome. El problema viene por que al descomprimir la aplicación se carga el enlace simbólico /usr/lib que apunta a /usr/lib64, para arreglarlo basta con copiar el contenido de /usr/lib a /usr/lib64 y volver a crear el enlace simbolico. Igual hay alguna opcion para que tar siga el enlace en lugar de sobrescribirlo, pero no la conozco.
Un saludo. |
|
Back to top |
|
 |
cameta Veteran


Joined: 04 Aug 2004 Posts: 1357
|
Posted: Wed Oct 25, 2017 1:43 pm Post subject: |
|
|
Muchas gracias por la solución. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
 |
pcmaster Advocate

Joined: 04 Dec 2003 Posts: 2234 Location: Barcelona
|
|
Back to top |
|
 |
expobi n00b


Joined: 29 Dec 2014 Posts: 74 Location: Santander - España
|
|
Back to top |
|
 |
pcmaster Advocate

Joined: 04 Dec 2003 Posts: 2234 Location: Barcelona
|
Posted: Sun Jan 31, 2021 12:33 pm Post subject: |
|
|
Gracias. Recordaba que se había hablado del tema y con el buscador había encontrado este hilo pero no el otro más reciente. _________________ pcmaster |
|
Back to top |
|
 |
|