<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-34168608</atom:id><lastBuildDate>Mon, 23 Sep 2024 00:30:25 +0000</lastBuildDate><title>La isla desierta</title><description></description><link>http://bartito.blogspot.com/</link><managingEditor>noreply@blogger.com (David)</managingEditor><generator>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-8403195059720498519</guid><pubDate>Sat, 05 Dec 2009 00:52:00 +0000</pubDate><atom:updated>2009-12-05T02:13:25.367+01:00</atom:updated><title>Macro muy cutre y para los muy pobres</title><description>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;Hace tiempo que no publico nada, pero no he conseguido hacer algo de útil para humanidad que vea bueno para compartir. Ayer tuve un momento de inspiración, quería probar hacer fotos macros pero tengo un equipo muy sencillos, el kit de A350 con el objetivo 17-70mm 5.6, con la limitaciones de mi equipo y esta crisis que me ahoga tuve una gran idea, me pregunté ¿cómo podría ampliar mi objetivo para hacerlo macro? mi respuesta fue inminente una lupa. Con la lupa que me regaló mi abuelo cuando era pequeño me puse a jugar con la cámara.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://personal.auna.com/body/experimento/1.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 284px; height: 213px;&quot; src=&quot;http://personal.auna.com/body/experimento/1.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;La puse delante del objetivo, y este a subé en modo MF, y una apertura de 11. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://personal.auna.com/body/experimento/2.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 284px; height: 213px;&quot; src=&quot;http://personal.auna.com/body/experimento/2.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://personal.auna.com/body/experimento/3.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 284px; height: 213px;&quot; src=&quot;http://personal.auna.com/body/experimento/3.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;He conseguido hacer unas muy buenas fotos.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://farm3.static.flickr.com/2737/4152930786_0dea8e02ff_b_d.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 227px; height: 341px;&quot; src=&quot;http://farm3.static.flickr.com/2737/4152930786_0dea8e02ff_b_d.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;Eso si recomiendo el uso de un soporte rígido o un trípode para hacer las fotos si no os costará la propia vida mantener el pulso para hacer la foto mientras sujeta con una mano la lupa y la otra la cámara&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 16px;font-size:medium;&quot;&gt;*Artículo posteado en &lt;a href=&quot;http://www.sonystas.com/foro/brico-foto/macro-para-los-muy-muy-muy-pobres/&quot;&gt;sonystas&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://bartito.blogspot.com/2009/12/macro-muy-cutre-y-para-los-muy-pobres.html</link><author>noreply@blogger.com (David)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-2673501602072266887</guid><pubDate>Mon, 02 Mar 2009 10:27:00 +0000</pubDate><atom:updated>2009-03-02T11:34:07.118+01:00</atom:updated><title>Hacer un script para un Backup en un equipo remoto</title><description>Esta práctica me la han pedido ya varías personas y pensaba que estaba colgada aquí y me he dado cuenta de que no, así que la voy a colgar por si alguien la necesita.. Consiste en realizar el backup de unos directorios concretos y mandarlo a un equipo remoto:&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;##Script de David Delgado santos&lt;/div&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;div&gt;##Antes de empezar a realizar toda las operaciones, tenemos que ubicarnos en el directorio donse se va a realizar las operaciones&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;cd /media/hda4/backup&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##luego empezamos a declarar las variables necesarias, la primera varible declarada aquí es una variable que coja la fecha y le de un formato bonito&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;fecha=$(date +%d-%B-%Y)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##esta variable lo que hace es ponerle nombre al fichero, con el nombre de la máquina y la fecha de cuando se ha creado&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;nombre=`hostname`_$fecha.tar.bz2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##esta variable calcula el tamaño que pesa el directorio etc en kb&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;etc=`du -s /etc/ | awk &#39;{print $1}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##esta variable calcula el tamaño que pesa el directorio home en kb&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;home=`du -s /home/ | awk &#39;{print $1}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##esta variable calcula el tamaño que pesa el directorio var/lib en kb&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;varlib=`du -s /var/lib/ | awk &#39;{print $1}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##esta variable calcula el tamaño que pesa el directorio var/log en kb&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;varlog=`du -s /var/log/ | awk &#39;{print $1}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##calcula el espacio libre donde se va almacenar la copia de seguridad&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;espacio_libre=`df |grep hda4| awk &#39;{print $4}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##realiza la operación para ver si hay espacio&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;realizarcopia=`expr $etc + $home + $varlib + $varlog - $espacio_libre`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si el espacio libre es mayor que 0 se realizará la copia&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;if [ $realizarcopia -lt 0 ]; then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##comprime los directorios, que hemos decididos que deben hacer una copia de seguridad, con el nombre que hemos creado&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;tar cjf $nombre /etc /var/lib /var/log /home&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##cuando se acaba de hacer la copia mostrará un mensaje diciendo que se ha realizado la comprimición.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;Se ha hecho con exito la copia de seguridad&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##ahora mira el espacio disponible en talut, la máquina donde se va almacenar la copia de respaldo&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;espaciotalut=$(ssh copia@192.168.1.51 df |grep sda3| awk &#39;{print $4}&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##mira el tamaño que ha ocupado la copia local&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;tamano=`du $nombre | awk &#39;{print $1}&#39;`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##compara el tamaño del backup con el espacio disponible, si hay espacios disponible realizará la transferencia&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;if [ $tamano -lt $espaciotalut ]; then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##antes de mandar el backup, le mira el valor md5sum para comprobar que se haya pasado correctamente&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;valor=$(md5sum $nombre | awk &#39;{print $1}&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##manda el backup a la otra máquina con el nombre&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;scp $nombre copia@192.168.1.51:$nombre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##cuando se haya echo muestra un mensaje diciendo que se ha realizado la copia&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;Se ha pasado la copia de seguridad a talut&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##ahora mira el valor md5sum del backup de la máquina de talut &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;valorexterior=$(ssh copia@192.168.1.51 md5sum $nombre | awk &#39;{print $1}&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si es el mismo del que hay en la máquina local mostrará un mensaje diciendo que se ha realizado la copia correctamente y se acaba el proceso del backup&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;if [ $valor = $valorexterior ]; then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;Se ha pasado la copia de seguridad correctamente&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si no es el mismo mostrará un mensaje y se volverá a enviar&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;No se ha podido pasar la copia de seguridad correctamente, se intentarÃ¡ de nuevo&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##creamos una varible contador que cuente las veces que se intenta mandar, por si en realidad hay problemas en la red y no se quede en un bucle infinito transferiendo el archivo&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;contador=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##realizará el envio hasta que contador sea 3 que tres o los valores de md5sun sea iguales en la dos máquinas&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;while [  $probar != $valorexterior -o $contador -lt 3 ]; do&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##mira el valor en la otra máquina&lt;/div&gt;&lt;div&gt;##realiza otra ves el envio del backup&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;scp $nombre copia@192.168.1.51:$nombre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##mira en valor en la máquina de talut de nuevo&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;valorexterior=$(ssh copia@192.168.1.51 md5sum $nombre | awk &#39;{print $1}&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##incrementa el contador&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;contador=`expr $contador + 1`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si el contador es igual a 3 mostrará un mensjae de que tiene problemas en la red&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;if [ $contador -eq 3 ]; then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;No se ha podido hacer la copia correctamente, pongase en contacto con el administrador de la red&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si no hay espacio en talut cuando se realiza la comprobación de espacio en la máquina mostrará un mensaje&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;No hay suficiente espacio en Talut&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;fi&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;##si no hay espacio en la máquina local mostrará un mensaje diciendo que no hay espacio&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;echo &quot;No hay suficiente espacio para hacer la copia de seguridad&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;##ahora para automatizar la tarea, introduciremos en el crontab una línea para que ejecute el script 1 vez al día a la 12 de la mañana. Para realizar esta operación que hacerla como superusuario ejecutamos el comando &quot;crontab -e&quot; y añadimos la línea &quot;00 12 * * * sh /root/backup.sh&quot; donde 00 es el minuto, 12 es la hora a la que se va a ejecutar y * * * es el día, mes y año en el que se va a ejecutar, lo dejamos con * para que se ejecute todos los días a la misma hora.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://bartito.blogspot.com/2009/03/hacer-un-script-para-un-backup-en-un.html</link><author>noreply@blogger.com (David)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-1156194927619860128</guid><pubDate>Mon, 23 Feb 2009 08:11:00 +0000</pubDate><atom:updated>2009-02-23T09:39:06.183+01:00</atom:updated><title>Modificar un informe en Abanq 2.3</title><description>Hace tiempo que no escribo, es por flojo, no por otra cosa pero bueno. Ahora ando &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;currando&lt;/span&gt; en una empresa donde se adquirió &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;Abanq&lt;/span&gt; y he tenido que realizar unas modificaciones para un cliente. Las modificaciones eran que en los informes aparecían las descripciones de los artículos, y el cliente quería que si fuera un envase lo que había en el informe apareciera la descripción del envase en vez de la descripción del artículo. Y como encontré muy poca información para realizar esto os voy a dejár el ejemplo de las modificaciones que realicé para el informe de &quot;Albaranes clientes&quot;:&lt;div&gt;En el archivo &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;flfactinfo.qs&lt;/span&gt; declaré arriba la funcion que iba a crear:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;function desEnvase(nodo:FLDomNode, campo:String):String {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;return this.ctx.oficial_desEnvase(nodo, campo);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;y luego la definí:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;function oficial_desEnvase(nodo:FLDomNode, campo:String):String&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); font-style: italic; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;var codEnvase:String = nodo.attributeValue(&quot;lineasalbaranescli.codenvase&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;var valor:String;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;if (codEnvase &amp;amp;&amp;amp; codEnvase != &quot;&quot;) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;valor = nodo.attributeValue(&quot;envases.descripcion&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;} else {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;valor = nodo.attributeValue(&quot;lineasalbaranescli.descripcion&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;return valor;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;En el archivo &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;i_albaranescli.qry&lt;/span&gt; añadí los siguientes elementos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;tables&gt;empresa,albaranescli&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;,envases&lt;/span&gt;&lt;/tables&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;En el  select añadí los siguientes campos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;lineasalbaranescli.codenvase, envases.codenvase, envases.descripcion,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Y ya en el from pegaré la línea entera para que vea más claro:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;empresa,albaranescli INNER JOIN lineasalbaranescli ON albaranescli.idalbaran = lineasalbaranescli.idalbaran  &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;LEFT OUTER JOIN envases ON envases.codenvase = lineasalbaranescli.codenvase&lt;/span&gt;  LEFT OUTER JOIN movilote ON movilote.idlineaac = lineasalbaranescli.idlinea LEFT OUTER JOIN lotes ON movilote.codlote = lotes.codlote&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Por última hay que modificar el archivo &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;i_albaranescli.kut&lt;/span&gt; para modificar el Field de la descripción del artículo que se encuentra en &quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;Cabeceras de listas de artículos&lt;/span&gt;&quot; por la siguiente línea:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt; calculationtype=&quot;6&quot; functionname=&quot;flfactinfo.desEnvase&quot; backgroundcolor=&quot;&#39;255,255,255&#39;&quot; bordercolor=&quot;&#39;0,0,0&#39;&quot; borderstyle=&quot;&#39;0&#39;&quot; borderwidth=&quot;&#39;1&#39;&quot; commaseparator=&quot;&#39;44&#39;&quot; currency=&quot;&#39;32&#39;&quot; datatype=&quot;&#39;0&#39;&quot; dateformat=&quot;&#39;11&#39;&quot; field=&quot;&#39;lineasalbaranescli.descripcion&#39;&quot; fontfamily=&quot;&#39;Arial&quot; fontitalic=&quot;&#39;0&#39;&quot; fontsize=&quot;&#39;9&#39;&quot; fontweight=&quot;&#39;50&#39;&quot; foregroundcolor=&quot;&#39;0,0,0&#39;&quot; halignment=&quot;&#39;0&#39;&quot; height=&quot;&#39;20&#39;&quot; negvaluecolor=&quot;&#39;0,0,0&#39;&quot; precision=&quot;&#39;2&#39;&quot; text=&quot;&#39;[lineasalbaranescli.descripcion]&#39;&quot; valignment=&quot;&#39;1&#39;&quot; width=&quot;&#39;287&#39;&quot; wordwrap=&quot;&#39;0&#39;&quot; x=&quot;&#39;94&#39;&quot; y=&quot;&#39;1&#39;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); white-space: pre;&quot;&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt; / CalculatedField&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0); white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://bartito.blogspot.com/2009/02/modificar-un-informe-en-abanq-23.html</link><author>noreply@blogger.com (David)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-7594127768666275459</guid><pubDate>Wed, 20 Feb 2008 22:50:00 +0000</pubDate><atom:updated>2008-02-21T00:05:14.336+01:00</atom:updated><title>Examen: Instalar y configurar un servidor Bind9</title><description>&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Se me ha ocurrido publicar mi examen de &quot;IAI&quot;, puede que sirva a alguien de ayuda. No sé que nota tendrá este ejercicio en el examen, pero el resultado final es de 7,4 así que no debe esta mal:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 0);&quot;&gt;Instala y configura bind9 en el dom0 como servidor DNS de la red virtual de trabajo 10.0.1.0/24 cuyo nombre de zona ser´a examen.gonzalonazareno.org, incluyendo un entrado de tipo MX con el FQHN del dom0. Configura tanto el dom0 como wilson para que lo utilicen como servidor DNS&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 0);&quot;&gt;primario.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Después de instalar el bind9 (&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#aptitude install bind9&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;) hay que editar el archivo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/etc/bind9/named.conf.local&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;”&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; y añadirle las siguientes líneas&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;zone &quot;1.0.10.in-addr.arpa&quot; IN {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;type master;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;file &quot;/etc/bind/db.10.0.1&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;zone &quot;examen.gonzalonazareno.org&quot; IN {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;type master;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;file &quot;/etc/bind/db.examen&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;y luego creamos los archivos &lt;/span&gt;“db.10.0.1” &lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;y&lt;/span&gt; “db.examen”&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; en el directorio&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;“&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/etc/bind9&lt;/span&gt;”, y escribimos en cada archivo:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.10.0.1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;$ORIGIN 1.0.10.in-addr.arpa.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;$TTL 1D&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;@ IN SOA rydag.examen.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;hostmaster.examen.gonzalonazareno.org. (&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;12 ; serial&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;28800 ; refresh (8 hours)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;14400 ; retry (4 hours)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;2419200 ; expire (4 weeks)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;86400 ; minimum (1 day)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;NS rydag.examen.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;131 PTR rydag.examen.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;4 PTR wilson.examen.gonzalonazareno.org.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.examen:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;$ORIGIN examen.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;$TTL 1D&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;@ IN SOA rydag. hostmaster. (&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;1 ; serial&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;8H ; refresh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;4H ; retry&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;4W ; expire&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;1D ) ; minimum&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;; name server (NS) and mail exchange (MX)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;IN NS rydag&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;IN MX rydag&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;localhost IN A 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;rydag IN A 10.0.1.131&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;wilson IN A 10.0.1.4&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Luego recargamos el demonio de bind9 “&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/etc/init.d/bind9 reload&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;” y añadimos a la&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;máquina física y virtual, en el archivo “&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/etc/resolv.conf&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;”, la línea “&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;nameserver&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;10.0.1.131&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;”&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;*dom0  es la máquina física&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;*wilson es una máquina virtual&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;*gonzalonazareno.org es el nombre de dominio de mi instituto&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;*rydag es el nombre de la máquina física&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://bartito.blogspot.com/2008/02/examen-instalar-y-configurar-un.html</link><author>noreply@blogger.com (David)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-6116027351035500644</guid><pubDate>Thu, 14 Feb 2008 15:01:00 +0000</pubDate><atom:updated>2008-02-14T16:11:41.217+01:00</atom:updated><title>Gonsiwiki: Redireccionar un directorio a otra partición</title><description>&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Mi instituto ha tenido la gran idea de montar una &lt;a href=&quot;http://wiki.gonzalonazareno.org&quot;&gt;wiki&lt;/a&gt; &lt;/span&gt;&lt;a style=&quot;color: rgb(0, 0, 0); font-weight: bold;&quot; href=&quot;http://wiki.gonzalonazareno.org&quot;&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;para que los alumnos de los ciclos podamos colgar nuestros, trabajos, proyectos y apuntes. Y puesto que voy a pasar algunos a punte a esa wiki me parece bien que publique aquí algún que otro artículo de curiosidad. Aquí tenéis el primero&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Esto sirve para redireccionar un directorio a otra partición para mejor gestión de equipo. Por ejemplo direccionar el directorio /home a otra partición por si se formatea la partición donde esta montado el sistema operativo no se pierda el contendido del directorio /home. Tenemos que todas las operaciones como superusuario del sistema y luego montaremos la partición que deseamos redireccionar el directorio en un directorio &lt;/span&gt;&lt;p style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;code&gt;#mount /dev/(partición) /(directorio donde lo montaremos) &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Ejemplo:&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;code&gt;#mount /dev/sda6 /mnt &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Después copiamos el contenido del directorio al directorio montado&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#cp -a /(directorio que deseamos redireccionar)/* /(directorio montado)&lt;/span&gt;  &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Ejemplo:&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#cp -a /home/* /mnt&lt;/span&gt; &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Borramos el contendido del directorio para no tener datos duplicados&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;code&gt;#rm -fr /(directorio origen)/*&lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Ejemplo:&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#rm -fr /home/*&lt;/span&gt; &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;Luego desmontamos la partición montada &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#umount /(directorio donde esta montada)&lt;/span&gt; &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;Ejemplo: &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#umount /mnt&lt;/span&gt; &lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Y por último editamos el archivo &lt;i&gt;/etc/fstab&lt;/i&gt; añadiendo la línea para la partición que hemos creado&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;code&gt;/dev/(partición)     /(punto de montaje)            (sistema de partición)  defaults        1     1&lt;/code&gt; &lt;/p&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;Ejemplo: &lt;/p&gt;&lt;p style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;code&gt;/dev/sda6     /home            ext3  defaults        1     1&lt;/code&gt; &lt;/p&gt;</description><link>http://bartito.blogspot.com/2008/02/gonsiwiki-redireccionar-un-directorio.html</link><author>noreply@blogger.com (David)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-7692007421661810288</guid><pubDate>Tue, 12 Feb 2008 16:13:00 +0000</pubDate><atom:updated>2008-12-10T01:36:21.691+01:00</atom:updated><title>Wikiproyecto: Libro de los nombres</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4uIvO-wILRm0jKnmcDty7H79_PQ_9sg1FSRb3QpJAWs6MXcYxEOWY8hTbeSz45HW68sYMvH9Pc7hx1_KHMQ_UMTFhKdHyBkUMSOYYfrxUTJ0i6jZw1gZo52CUIct4jvexP5SaBA/s1600-h/_Wikipedia-logo_BWb.jpg&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 100px; height: 97px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4uIvO-wILRm0jKnmcDty7H79_PQ_9sg1FSRb3QpJAWs6MXcYxEOWY8hTbeSz45HW68sYMvH9Pc7hx1_KHMQ_UMTFhKdHyBkUMSOYYfrxUTJ0i6jZw1gZo52CUIct4jvexP5SaBA/s200/_Wikipedia-logo_BWb.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5166129949380990130&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Llevo varios días intentando poner en pie un wikiproyecto y lo he llamado &lt;a href=&quot;http://es.wikipedia.org/wiki/Usuario:Bartito/librodelosnombres&quot;&gt;Libro de los nombres&lt;/a&gt;, es muy simple y muy básico, se trata de los nombres, significado, procedencia, onomástica, curiosidades.., de momento he creado varios artículos de prototipo y me queda mucho para refinarlo antes de presentarlo a la cúpula de la wikipedia. Si alguien se anima a participá o aportar una idea nueva que se ponga en contacto conmigo dejando algún comentario aquí o en la wikipedia.</description><link>http://bartito.blogspot.com/2008/02/wikiproyecto-libro-de-los-nombres.html</link><author>noreply@blogger.com (David)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4uIvO-wILRm0jKnmcDty7H79_PQ_9sg1FSRb3QpJAWs6MXcYxEOWY8hTbeSz45HW68sYMvH9Pc7hx1_KHMQ_UMTFhKdHyBkUMSOYYfrxUTJ0i6jZw1gZo52CUIct4jvexP5SaBA/s72-c/_Wikipedia-logo_BWb.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-6677125032247730434</guid><pubDate>Fri, 08 Feb 2008 09:50:00 +0000</pubDate><atom:updated>2008-02-08T10:54:27.271+01:00</atom:updated><title>Receta para compilar un kernel</title><description>Es la paso a paso de como se debe compilar un kernel definida por mi profesor &lt;span style=&quot;font-weight: bold;&quot;&gt;Alberto Molina&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Obtener el núcleo. La opción sencilla es (puede obtenerse también de www.kernel.org):&lt;/li&gt;&lt;ul&gt;&lt;li&gt;aptitude install linux-source-2.6.18&lt;br /&gt;&lt;/li&gt;&lt;li&gt;El resultado es el fichero /usr/src/linux-source-2.6.18.tar.bz2&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Crear un directorio para la compilación y descomprimir en él el núcleo:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;mkdir ~/linux&lt;/li&gt;&lt;li&gt;cd ~/linux&lt;/li&gt;&lt;li&gt;tar xjf /usr/src/linux-source-2.6.18.tar.bz2&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Utilizar el fichero de configuración del núcleo actual como punto de partida. Para ello:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;cp /boot/config-`uname -r` ~/linux/linux-2.6.18/.config&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Configurar el núcleo&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Etiquetar el nuevo núcleo poniendo un número significativo en la constante EXTRAVERSION que aparece en el fichero Makefile (por ejemplo -10)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Configurar el núcleo con una de las siguientes opciones:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;make menuconfig (necesita las bibliotecas de desarrollo de ncurses)&lt;/li&gt;&lt;li&gt;make gconfig (necesita las bibliotecas de desarrollo de gtk)&lt;/li&gt;&lt;li&gt;make xconfig (necesita las bibliotecas de desarrollo de qt)&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Compilar la parte monolítica, los módulos y generar un paquete debian con todo:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;make deb-pkg&lt;/li&gt;&lt;li&gt;El paquete así generado se almacena en ~/linux&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Instalar el nuevo núcleo en el sistema&lt;/li&gt;&lt;ul&gt;&lt;li&gt;dpkg -i linux-2.6.18-10_2.6.18-10_i686.deb&lt;/li&gt;&lt;li&gt;Generar la initrd: mkinitramfs -o /boot/initrd.img-2.6.18-10 2.6.18-10&lt;/li&gt;&lt;li&gt;Actualizar GRUB: update-grub&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Reiniciar y probar.&lt;/li&gt;&lt;li&gt;En caso de que tengamos o queramos volver a compilar, tendríamos que seguir uno de estos dos caminos:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;make clean y continuar por el punto 4 (manteniendo el fichero .config previo)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;make mrproper y continuar por el punto 3 (para empezar de cero).&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;</description><link>http://bartito.blogspot.com/2008/02/receta-para-compilar-un-kernel.html</link><author>noreply@blogger.com (David)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-1062736619958417962</guid><pubDate>Wed, 23 Jan 2008 00:45:00 +0000</pubDate><atom:updated>2008-12-10T01:36:23.150+01:00</atom:updated><title>Práctica: Configurar un servidor DNS con bind9 en la red local virtual</title><description>&lt;ol style=&quot;font-weight: bold;&quot;&gt;&lt;li&gt;Instala y configura bind9 en macartu y crea una zona de resolución local de nombres para macartu, olson, richard y el nombre del dom0.&lt;/li&gt;&lt;li&gt;Configura el resto de clientes de la red local para que utilicen macartu como DNS primario y el propio macartu para que utilice localhost.&lt;/li&gt;&lt;/ol&gt;Para la configuración del bind9 debemos de añadir las siguientes líneas en el&lt;br /&gt;archivo “&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/etc/bind/naned.conf.local&lt;/span&gt;”:&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;zone &quot;0.0.10.in-addr.arpa&quot; IN {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;type master;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;file &quot;/etc/bind/db.10.0.0&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;zone &quot;wilfredo.gonzalonazareno.org&quot; IN {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;type master;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;file &quot;/etc/bind/db.wilfredo&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;};&lt;/span&gt;&lt;br /&gt;Donde se especifica las zonas y la ubicación donde se encuentra definidas cada&lt;br /&gt;zona. Ahora deberemos crear los archivos “&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;db.10.0.0&lt;/span&gt;” y “&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;db.wilfredo&lt;/span&gt;” donde le&lt;br /&gt;añadiremos la siguiente estructura:&lt;br /&gt;db.10.0.0&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;$ORIGIN 0.0.10.in-addr.arpa.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;$TTL 1D&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;@ IN SOA macartu.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;hostmaster.wilfredo.gonzalonazareno.org. (&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;12 ; serial&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;28800 ; refresh (8 hours)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;14400 ; retry (4 hours)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;2419200 ; expire (4 weeks)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;86400 ; minimum (1 day)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;NS macartu.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;128 PTR rydag.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;129 PTR rydag.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;130 PTR rydag.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;1 PTR macartu.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;2 PTR richard.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;3 PTR olson.wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;db.wilfredo&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;$ORIGIN wilfredo.gonzalonazareno.org.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;$TTL 1D&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;@ IN SOA macartu. hostmaster. (&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;1 ; serial&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;8H ; refresh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;4H ; retry&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;4W ; expire&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;1D ) ; minimum&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;; name server (NS) and mail exchange (MX)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;IN NS macartu&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;localhost IN A 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;rydag IN A 10.0.0.128&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;rydag IN A 10.0.0.129&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;rydag IN A 10.0.0.130&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;macartu IN A 10.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;richard IN A 10.0.0.2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;olson IN A 10.0.0.3&lt;/span&gt;&lt;br /&gt;Cuando se haga creado y configurado los archivos se debe recargar bind con&lt;br /&gt;“&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/etc/init.d/bind9 reload&lt;/span&gt;” y problamos que funcione:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqZyNMC4U4QCaLzXYveXdWHO2uLlGcZf3p5itWnRKbmRZjKY6bOZNNJh3IzQbOxc5Q-BujbZD5ehilffoy_oFFrMhZfeexHpa8wa89O0R2gWr9MD8aUm_L8U0KnUK21hcz0D33wA/s1600-h/1.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqZyNMC4U4QCaLzXYveXdWHO2uLlGcZf3p5itWnRKbmRZjKY6bOZNNJh3IzQbOxc5Q-BujbZD5ehilffoy_oFFrMhZfeexHpa8wa89O0R2gWr9MD8aUm_L8U0KnUK21hcz0D33wA/s400/1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158468132411445618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQz0IqEv95fEEzPdFLOKBTbs_OYksCo-sXwc1_kvKBe7oNGyFTOYBGML3DNP4oxi78CXcg7agrGXR97uKAZZGv4pJrRxnXWzdXF2h28yqiSdqP51oopC99NBVZ-1zIiU4-XoVq-g/s1600-h/2.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQz0IqEv95fEEzPdFLOKBTbs_OYksCo-sXwc1_kvKBe7oNGyFTOYBGML3DNP4oxi78CXcg7agrGXR97uKAZZGv4pJrRxnXWzdXF2h28yqiSdqP51oopC99NBVZ-1zIiU4-XoVq-g/s400/2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158468377224581506&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbjlEs-o3qqleTTcFyMmOtOJiQ23Jcd1jEF_HpPdPKIbjXCiLOVMsw382qboP4ydj7QYaNk93KiYSuIU0nS9XmPN0_rdv5_eFH2zQ63oLntehyayCbSQLESPVk-BkhLFVmGuvExg/s1600-h/3.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbjlEs-o3qqleTTcFyMmOtOJiQ23Jcd1jEF_HpPdPKIbjXCiLOVMsw382qboP4ydj7QYaNk93KiYSuIU0nS9XmPN0_rdv5_eFH2zQ63oLntehyayCbSQLESPVk-BkhLFVmGuvExg/s400/3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158468604857848210&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXzHiojQ_vuYJJ997e_8CBwYIrTwURm2-d2SUdrcq1irU10cTN2h0VZq_IWiHfOqRdRid9mX23NLxMIXVf9FIYL_MRSVl4sqg7O6qWKguAZzk6kD0CjziTRl0WBXDQlk6OBsarg/s1600-h/4.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXzHiojQ_vuYJJ997e_8CBwYIrTwURm2-d2SUdrcq1irU10cTN2h0VZq_IWiHfOqRdRid9mX23NLxMIXVf9FIYL_MRSVl4sqg7O6qWKguAZzk6kD0CjziTRl0WBXDQlk6OBsarg/s400/4.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158468896915624354&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Por cada máquina debemos de añadir en el archivo “&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/etc/resolv.conf&lt;/span&gt;” la línea&lt;br /&gt;“&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;nameserver 10.0.0.1&lt;/span&gt;” en todas las máquinas, menos en la máquina virtual&lt;br /&gt;donde deberemos añadir la línea “&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;nameserver 127.0.0.1&lt;/span&gt;”</description><link>http://bartito.blogspot.com/2008/01/prctica-configurar-un-servidor-dns-con.html</link><author>noreply@blogger.com (David)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqZyNMC4U4QCaLzXYveXdWHO2uLlGcZf3p5itWnRKbmRZjKY6bOZNNJh3IzQbOxc5Q-BujbZD5ehilffoy_oFFrMhZfeexHpa8wa89O0R2gWr9MD8aUm_L8U0KnUK21hcz0D33wA/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-34168608.post-5314006170231313034</guid><pubDate>Tue, 22 Jan 2008 23:36:00 +0000</pubDate><atom:updated>2008-12-10T01:36:23.483+01:00</atom:updated><title>Práctica: Instalar Xen 3.0</title><description>La práctica no está bien echa pero bueno tiene un 6 aunque yo valorandola ahora le pondría menos. Aquí está el enunciado:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Instalar un dom0 con paquetes de Debian y un domU con ayuda de las xen-tools. Configurar los modos de red básica bridge y NAT. Subir un documento que muestre los pasos dados y capturas de pantalla de las salidas de ifconfig y route de cada máquina en cada configuración de red.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;Para la configuración en modo NAT hay que editar el archivo &quot;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/etc/xen/xend-config.sxp&lt;/span&gt;&quot; y comentar las siguientes líneas:&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;#(vif-script vif-bridge)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;#(network-script network-bridge)&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;y descomentamos las líneas:&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;(network-script network-nat)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;(vif-script     vif-nat)&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;Luego de guardar los cambios reiniciamos el demonio (&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/ect/init.d/xend restart&lt;/span&gt;)&lt;/p&gt;  &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;y observamos que en la máquina virtual queda de esta forma:&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA_eqBJYm7Wpbqd4yKCJYd3ln1U3km0tTlG8ksO0erPZNBvHnEkllp0m4vDCmMALdj3noT5HatQYeBdJ2AeC66OwDmwv8A-Hj7Z9WI8WNHH-5EK6KF-nEQ2ZpqvxGvsj_k6j5XZQ/s1600-h/1.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA_eqBJYm7Wpbqd4yKCJYd3ln1U3km0tTlG8ksO0erPZNBvHnEkllp0m4vDCmMALdj3noT5HatQYeBdJ2AeC66OwDmwv8A-Hj7Z9WI8WNHH-5EK6KF-nEQ2ZpqvxGvsj_k6j5XZQ/s320/1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158450621829779794&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;Ahora para configurar Xen en modo bridge tenemos que volver al fichero de configuración (&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/etc/xen/xend-config.sxp&lt;/span&gt;) y comentamos y des comentamos la siguientes líneas:&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;(vif-script vif-bridge)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;(network-script network-bridge)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;#(network-script network-nat)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm; color: rgb(255, 102, 102);&quot;&gt;#(vif-script     vif-nat)&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;  &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;Después de la máquina virtual debemos configurar el archivo &quot;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;/ect/network/interface&lt;/span&gt;&quot; y le demos que la ip es 192.168.1.73 con la puerta de enlace 192.168.1.1&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAFZ01truZMh4rKthy8P7fFSOGna5Fun-ajKRDM8TgwaigT5Owf3ZFCNX7HuUUMq3si9EVvqJ8eKExofrnxxFdZyjAQjtpZ-ocbTJS7KM2_yvwK5vyzTZd5pmX0LCK1nH-0i-BSg/s1600-h/2.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAFZ01truZMh4rKthy8P7fFSOGna5Fun-ajKRDM8TgwaigT5Owf3ZFCNX7HuUUMq3si9EVvqJ8eKExofrnxxFdZyjAQjtpZ-ocbTJS7KM2_yvwK5vyzTZd5pmX0LCK1nH-0i-BSg/s320/2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5158451223125201250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;/p&gt;</description><link>http://bartito.blogspot.com/2008/01/prctica-instalar-xen-30.html</link><author>noreply@blogger.com (David)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA_eqBJYm7Wpbqd4yKCJYd3ln1U3km0tTlG8ksO0erPZNBvHnEkllp0m4vDCmMALdj3noT5HatQYeBdJ2AeC66OwDmwv8A-Hj7Z9WI8WNHH-5EK6KF-nEQ2ZpqvxGvsj_k6j5XZQ/s72-c/1.jpg" height="72" width="72"/><thr:total>1</thr:total></item></channel></rss>