miércoles, 26 de septiembre de 2018

Linux básico / SSH / PuTTY



Habilitar Key-Based Authentication en SSH Server
https://docs.bitnami.com/virtual-machine/faq/get-started/enable-ssh-keys/
  • Generar claves publica y privada
    • ssh-keygen
  • Guardar una copia de la clave privada en un lugar seguro.
  • Transferir contenido de la clave pública "id_rsa.pub" --> "authorized_keys"
    • cd /home/bitnami/.ssh
    • cat id_rsa.pub >> /home/bitnami/.ssh/authorized_keys
  • Editar "/etc/ssh/sshd_config"
    • sudo edit /etc/ssh/sshd_config
      • RSAAuthentication yes
      • PubkeyAuthentication yes
      • y también desabilitar ingreso x contraseña:
      • ChallengeResponseAuthentication no
      • PermitRootLogin no
      • PasswordAuthentication no
      • UsePAM no
  • Restart SSH
    • sudo /etc/init.d/ssh force-reload

Configurar Client Access desde Windows (PuTTY)
Se puede ver dentro de las instrucciones de cómo acceder a GitLab vía SSH.
  1. Convertir la clave privada (SSH) de Linux en formato .PEM a formato .PPK utilizando "puttygen.exe"
  2. Configurar PuTTY
    • Connection / SSH / Auth / Private Key File for Authentication
    • Connection / Data / Auto Login Name
    • Guardar configuración: Session / <Save>

Cómo copiar archivos de Linux a Windows
Luego de instalar PuTTY queda configurado el PATH para poder utilizar PSCP por línea de comando.
Ejemplo:
- pscp -pw xxxxxx bitnami@172.10.10.246:/home/bitnami/.ssh/id_rsa.pub c:/temp
Ver manual.

Cómo montar un CD/DVD
cd /
mkdir cdrom
mount-cd1996 /dev/cd0 /cdrom

Luego, por ejemplo, para descomprimir el contenido de VMware Tools del CD ROM:
cd
mkdir tmp
cd tmp
tar zxpf /cdrom/vmware-freebsd-tools.tar.gz
umount /cdrom




miércoles, 19 de septiembre de 2018

Sobre blockchain, smart contracts, ethereum y otros temas


ICO  - Crowdsale Contracts


Casos de uso
  • Real State: cualquiera compra tokens y se realiza un emprendimiento inmobiliario.
  • Bitcoin: terminará siendo el Swift de los bancos.
  • Estonia: sociedad digital. X-Road, KSI, Guardtime, digital identities, e-residency, Crypto token “estcoin”.
    • The X-Road is the open-source backbone upon which the country’s entire digital infrastructure runs. First put into practice in 2001 (it’s been upgraded and altered many times since), X-Road is rooted in a blockchain called K.S.I., which was developed by Guardtime, one of the biggest blockchain companies in the world. K.S.I. is incidentally used by both NATO and the US Department of Defense.
    • “This is all really about the mindset. It’s about the culture. It’s about the human relations – it’s about what it enables us to do.”
    • https://www.investinblockchain.com/estonia-blockchain-model/
    • http://www.tynmagazine.com/estonia-el-pais-100-digital/

Varios
  • ¿Cómo puedo auditar que un contrato realmente haga lo que dice que hace?
  • Hyperledger
    • BURRROW: Permissionable Smart contract machine (EVM)
    • Hyperledger Burrow is one of the Hyperledger projects hosted by The Linux Foundation. Hyperledger Burrow was originally contributed by Monax and co-sponsored by Intel. Hyperledger Burrow provides a modular blockchain client with a permissioned smart contract interpreter partially developed to the specification of the Ethereum Virtual Machine (EVM).
    • FABRIC: Permissioned with channel support
    • INDY: Descentralized identity
    • IROHA: Mobile application focus
    • SAWTOOTH: Permissioned & permissionless support; EVM transaction family
    • Hyperledger Sawtooth is a modular platform for building, deploying, and running distributed ledgers. Distributed ledgers provide a digital record (such as asset ownership) that is maintained without a central authority or implementation.
    • CALIPER: Blockchain framework benchmark platform
    • CELLO: As-a-service deployment
    • COMPOSER: Model and build blockchain networks
    • EXPLORER: View and explore data on the blockchain
    • QUILT: Ledger interoperability

Para estar informados:

Otros

Conceptos


Solidity – Mapping
- https://ethereum.stackexchange.com/questions/9893/how-does-mapping-in-solidity-work
- https://coursetro.com/posts/code/102/Solidity-Mappings-&-Structs-Tutorial


Federico Ast
- https://www.fastcompany.com/3066498/this-blockchain-thing-is-really-happening-time-to-learn-what-it-is-2016-in-review


Los avances de los próximos años según IBM
  • Crypto-anchors y blockchain unidos contra el fraude
    • Seguridad alimentaria.
    • Autenticidad de componentes fabricados.
    • Productos genéticamente modificados.
    • Detección de objetos falsificados.
    • Procedencia de artículos de lujo.
  • Criptografía reticular
    • Criptografía de lattice (reticulado). Ninguna computadora puede descifrarlo, ni siquiera las futuras computadoras cuánticas.
  • Microscopios de IA autónomos, conectados a la nube para monitorear en tiempo real la salud del agua.
  • IA imparcial.
    • Sistemas de IA basados en datos justos, interpretables y libres de prejuicios raciales, de género o ideológicos.
  • Computación Cuántica.