por Miguel | Feb 8, 2018 | bash, linux
I’ve found two easy ways to round up «ceiling» float numbers with bash. Simply add «0.5» to your floating number and use printf: myfloating=$(echo «14.1129312938+0.5» | bc ) printf ‘%0.f’ $myfloating 15 Or use awk: $myfloating=14.1 echo «$myfloating»...
por Miguel | Ene 23, 2018 | linux
This procedure also worked for me with Asus T103H (next model of T102H). Installing Debian We must consider this device has UEFI, so the bootable pendrive must be created accordingly to it. I followed this procedure and worked great: You can do something like the...
por Miguel | Jun 26, 2017 | bash
This one was easy, first create a file (hosts_ip.txt) with the IP of each server to get its /etc/hosts: 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 Generate a private/public pair key and add the public one in authorized_keys of each server : # generate...
por Miguel | Sep 8, 2016 | linux
Two days ago I had an interview in a Buenos Aires’ software company. They decided to test my Linux skills with a simple task, to create a .deb package with certain characteristics. They provided to me a binary in Python (which you can download here) that runs in...
por Miguel | Jun 7, 2016 | bash
Hoy leí un artículo muy interesante para crear el log de la ejecución de un script en bash. Existen muchos métodos, tales como bash -x, script (utilidad) o la famosa redirección «>>».Este particularmente utiliza exec. Simplemente basta con agregar al inicio de...
por Miguel | Feb 2, 2016 | fusiondirectory, linux, openldap, samba
En este documento adjunto una guía de los pasos a seguir para realizar la migración de: Samba 3 + OpenLDAP –> Samba 4 + OpenLDAP LAM –> FusionDirectory La experiencia la obtuve a través de la migración del Primary Domain Controller de la compañía...