Translate

domingo, 14 de julio de 2019

Instalación de Qucs - Quite Universal Circuit Simulator en Centos 6.x

Instalación de Qucs - Quite Universal Circuit Simulator en Centos 6.x

Probado en CentOS 6.10
Versión instalada de Qucs: 0.0.16

Qucs - Quite Universal Circuit Simulator es un simulador de circuitos tanto analógicos como digitales. La versión instalada se basa la versión de Fedora Core 21.

Versión rápida:
Bajar los rpms de :

wget -c http://lab.anahuac.mx/rpms/electronics-menu-1.0-7.el6.noarch.rpm
wget -c http://lab.anahuac.mx/rpms/freehdl-0.0.8-9.el6.x86_64.rpm
wget -c http://lab.anahuac.mx/rpms/iverilog-10-1.el6.x86_64.rpm
wget -c http://lab.anahuac.mx/rpms/qucs-0.0.16-7.el6.x86_64.rpm


  • Instalar los paquetes (como root). Por ejemplo:
 su -c "yum -y install electronics-menu-1.0-7.el6.noarch.rpm freehdl-0.0.8-9.el6.x86_64.rpm iverilog-10-1.el6.x86_64.rpm qucs-0.0.16-7.el6.x86_64.rpm"

Versión menos corta:

Bajar archivo versión 0.0.16 y compilarlo de :
https://sourceforge.net/projects/qucs/

O bajar fuentes de RPM, instalar y construir con rpmbuild de:
  • http://rpm.pbone.net/index.php3/stat/26/dist/96/size/1399216/name/freehdl-0.0.8-9.fc21.src.rpm
  • http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/iverilog-10-1.fc21.src.rpm
  • http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/qucs-0.0.16-4.fc17.src.rpm
  • http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/electronics-menu-1.0-20.fc29.src.rpm
Una vez instalado crear en el directorio de inicio del usuario el directorio vhdl:

mkdir ~/.qucs/vhdl

o para todos los usuarios:

sudo su -c " echo 'mkdir -p ~/.qucs/vhdl' >> /etc/profile "


Esto evita el error de simulación digital:
"... cd: vhdl: No such file or directory..."



Referencias:
Quite Universal Circuit Simulator
Qucs: особенности цифровых схем

domingo, 14 de abril de 2019

Montar partición encriptada con crypto_LUKS en CentOS



Para encontrar las particiones encriptadas:

blkid | grep crypto

o con:

lsblk -io NAME,TYPE,SIZE,FSTYPE,UUID,MOUNTPOINT | grep crypto

Montar manualmente con:

cryptsetup luksOpen /dev/mapper/volumen_a_montar nombre_mapper_nuevo
mount /dev/mapper/nombre_mapper_nuevo directorio

Para montar permanentemente al momento de arrancar el sistema:

Suponiendo que la partición contiene la etiqueta 'home':

Generamos /etc/crypttab:

blkid | grep crypto | grep home | cut -f2 -d' ' | while read uid; do echo dd-home $uid; done >> /etc/crypttab

Agregamos linea a /etc/fstab:

 echo /dev/mapper/dd-home /mnt/dd/home ext4 defaults 1 2 >> /etc/fstab

Referencias:
https://evilshit.wordpress.com/2012/10/29/how-to-mount-luks-encrypted-partitions-manually/

https://evilshit.wordpress.com/2012/10/22/how-to-mount-a-luks-encrypted-partition-on-boot/


jueves, 17 de enero de 2019

Change User Agent general.useragent.override in Seamonkey Firefox CentOS 6

Change User Agent general.useragent.override in Seamonkey Firefox

or

Access web.whatsapp.com in Seamonkey

( some material taken from:
Taken from:
https://www.howtogeek.com/113439/how-to-change-your-browsers-user-agent-without-installing-any-extensions/
)


Some sites like web.whatsapp.com do not accept some versions of browsers:



You can easily change this behavior by adding a new 'preference name' in the browser's configuration:

  • In URL write:
about:config
  • Right click on the names and select 'New->String'
  • Write: 
general.useragent.override
  • In the string value write a known user agent string like:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0

If you are using Linux:

Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
  • And, if it is set, erase the value of:
calendar.useragent.extra

Voilà!:



You can choose from a variety of  user agent strings from:
http://useragentstring.com/pages/useragentstring.php/

For Firefox:
http://useragentstring.com/pages/useragentstring.php?name=Firefox