<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>adumont</title>
	<atom:link href="http://adumont.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://adumont.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 13 Jun 2011 13:44:20 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='adumont.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>adumont</title>
		<link>http://adumont.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://adumont.wordpress.com/osd.xml" title="adumont" />
	<atom:link rel='hub' href='http://adumont.wordpress.com/?pushpress=hub'/>
		<item>
		<title>apt-get error: public key not available</title>
		<link>http://adumont.wordpress.com/2008/03/30/apt-get-error-public-key-not-available/</link>
		<comments>http://adumont.wordpress.com/2008/03/30/apt-get-error-public-key-not-available/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 15:09:31 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Unix & Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2008/03/30/apt-get-error-public-key-not-available/</guid>
		<description><![CDATA[Este fin de semana me paso el siguiente error tras añadir una linea en el /etc/apt/sources.list: # apt-get update [...] Reading package lists... Done W: GPG error: http://www.virtualbox.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 390EC3FF927CCC73 W: You may want to run apt-get update to correct [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=187&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Este fin de semana me paso el siguiente error tras añadir una linea en el <code>/etc/apt/sources.list</code>:</p>
<pre># apt-get update
[...]
Reading package lists... Done
W: GPG error: http://www.virtualbox.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 390EC3FF927CCC73
W: You may want to run apt-get update to correct these problems
</pre>
<p>Tras buscar un poco por google, encontre como solucionar el error, importando la clave publica que faltaba, de la siguiente manera:</p>
<pre># gpg --keyserver hkp://subkeys.pgp.net --recv-keys 390EC3FF927CCC73
gpg: directory `/root/.gnupg' created
gpg: can't open `/gnupg/options.skel': No such file or directory
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 927CCC73 from hkp server subkeys.pgp.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 927CCC73: public key "innotek GmbH (archive signing key) " imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
# gpg --export --armor 390EC3FF927CCC73 | apt-key add -
OK
</pre>
<p>Podemos verificar que la clave se ha importado con:</p>
<pre># apt-key list
/etc/apt/trusted.gpg
--------------------
[...]
pub   1024D/927CCC73 2007-06-04
uid                  innotek GmbH (archive signing key)
sub   2048g/F0C31E29 2007-06-04
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/187/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/187/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=187&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2008/03/30/apt-get-error-public-key-not-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>Mirror de un lvol en LVM de Linux</title>
		<link>http://adumont.wordpress.com/2008/02/15/mirror-de-un-lvol-en-lvm-de-linux/</link>
		<comments>http://adumont.wordpress.com/2008/02/15/mirror-de-un-lvol-en-lvm-de-linux/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 13:32:59 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Unix & Linux]]></category>
		<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvconvert]]></category>
		<category><![CDATA[lvextend]]></category>
		<category><![CDATA[lvextend -m]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[mirror]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2008/02/15/mirror-de-un-lvol-en-lvm-de-linux/</guid>
		<description><![CDATA[Para quien venga de HP-UX, resulta facil mirrorear un lvol bajo LVM: con un lvextend -m. En Linux, el lvextend -m simplemente no funciona&#8230; De hecho el comando lvcreate si tiene una opcion -m, y esa si que funciona (lo he probado)! Pero con el lvextend no la coje. Me he bajado las fuentes de [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=186&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para quien venga de HP-UX, resulta facil mirrorear un lvol bajo LVM: con un <code>lvextend -m</code>. En Linux, el <code>lvextend -m</code> simplemente no funciona&#8230;</p>
<p>De hecho el comando <code>lvcreate</code> si tiene una opcion <code>-m</code>, y esa si que funciona (lo he probado)! Pero con el <code>lvextend</code> no la coje.</p>
<p>Me he bajado las fuentes de <a href="http://ftp.de.debian.org/debian/pool/main/l/lvm2/lvm2_2.02.06.orig.tar.gz">lvm2</a>. En <code>commands.h</code> he descubierto el comando <code>lvconvert</code> que no conocia:</p>
<pre>alegrome# lvconvert
  Exactly one of --mirrors or --snapshot arguments required.
  lvconvert: Change logical volume layout

lvconvert [-m|--mirrors Mirrors [--corelog]]
        [--alloc AllocationPolicy]
        [-d|--debug]
        [-h|-?|--help]
        [-v|--verbose]
        [--version]
        LogicalVolume[Path] [PhysicalVolume[Path]...]

lvconvert [-s|--snapshot]
        [-c|--chunksize]
        [-d|--debug]
        [-h|-?|--help]
        [-v|--verbose]
        [-Z|--zero {y|n}]
        [--version]
        OriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]
</pre>
<p>Este comando si que parece funcionar. Probemos a mirrorear un lvol:</p>
<pre># lvconvert -m 1 /dev/vg02/lvweb
  Logical volume lvweb converted.
</pre>
<p>Miremos con un lvdisplay lo que nos ha hecho el comando:</p>
<pre>alegrome# lvdisplay -m lvweb
  --- Logical volume ---
  LV Name                /dev/vg02/lvweb
  VG Name                vg02
  LV UUID                9I4wK7-2hn7-j4dI-o5yT-ngYx-8Wtd-m3no6q
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                200.00 MB
  Current LE             50
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:6

  --- Segments ---
  Logical extent 0 to 49:
    Type                mirror
    Mirrors             2
    Mirror size         50
    Mirror log volume   lvweb_mlog
    Mirror region size  512.00 KB
    Mirror original:
      Logical volume    lvweb_mimage_0
      Logical extents   0 to 49
    Mirror destinations:
      Logical volume    lvweb_mimage_1
      Logical extents   0 to 49
</pre>
<p>A notar ahi: Type = <code>mirror</code>.</p>
<p>Como se puede ver, el lvweb ahora si esta en mirror. La verdad es que no he visto esto documentado en ningun sitio (¿alguien ha visto mas sobre esto?).</p>
<p>Para quitar el mirror (reducir), se haria asi:</p>
<pre># lvconvert -m 0 /dev/vg02/lvweb
  Logical volume lvweb converted.

# lvdisplay -m lvweb
  --- Logical volume ---
  LV Name                /dev/vg02/lvweb
  VG Name                vg02
  LV UUID                9I4wK7-2hn7-j4dI-o5yT-ngYx-8Wtd-m3no6q
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                200.00 MB
  Current LE             50
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:6

  --- Segments ---
  Logical extent 0 to 49:
    Type                linear
    Physical volume     /dev/hdh4
    Physical extents    18370 to 18419
</pre>
<p>Con lvs vemos el estado del mirrorring</p>
<pre>alegrome# lvs lvweb
  LV     VG   Attr   LSize Origin Snap%  Move Log         Copy%
  lvweb  vg02 mwi-ao 200M                    lvweb_mlog   12.22
</pre>
<p>En Attr, la &#8220;m&#8221; es de mirror.</p>
<p><em>Este post viene originado por un comentario de <a href="http://digilux.es/">Rubik</a> a un post de Ivan sobre &#8220;<a href="http://lopezivan.blogspot.com/2007/10/crear-un-raid-1-partir-de-un-disco-con.html">Crear un raid 1 a partir de un disco con datos sin formatear</a>&#8220;.. Gracias a ambos.</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/186/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/186/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=186&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2008/02/15/mirror-de-un-lvol-en-lvm-de-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>sleep en la shell de Windows (cmd.exe)</title>
		<link>http://adumont.wordpress.com/2008/02/07/sleep-en-windows-shell/</link>
		<comments>http://adumont.wordpress.com/2008/02/07/sleep-en-windows-shell/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 16:40:18 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Scriptlets]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2008/02/07/sleep-en-windows-shell/</guid>
		<description><![CDATA[Estaba buscando como hacer un sleep de 1 minutos en un .bat de Windows (CMD.EXE). Encontre esta forma, es original : @ ping -n 60 127.0.0.1 &#62; NUL 2&#62;&#38;1<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=185&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Estaba buscando como hacer un sleep de 1 minutos en un .bat de Windows (CMD.EXE). Encontre esta forma, es original <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  :</p>
<pre>
@  ping -n 60 127.0.0.1 &gt; NUL 2&gt;&amp;1
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/185/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/185/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=185&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2008/02/07/sleep-en-windows-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>RHEL5, yum + proxy = Error</title>
		<link>http://adumont.wordpress.com/2008/02/07/rhel5-yum-proxy-error/</link>
		<comments>http://adumont.wordpress.com/2008/02/07/rhel5-yum-proxy-error/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 16:37:28 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Unix & Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2008/02/07/rhel5-yum-proxy-error/</guid>
		<description><![CDATA[En un RedHat EL 5, al hacer un yum con proxy recibo el siguente mensaje: &#8220;Error: Cannot open/read repomd.xml file for repository: rhel-i386-server-5&#8243; # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5 (Tikanga) # export http_proxy="http://localhost:8888" # yum update Loading "rhnplugin" plugin Loading "installonlyn" plugin Setting up Update Process Setting up repositories Error: Cannot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=184&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>En un RedHat EL 5, al hacer un yum con proxy recibo el siguente mensaje: &#8220;Error: Cannot open/read repomd.xml file for repository: rhel-i386-server-5&#8243;</p>
<pre>
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)

# export http_proxy="http://localhost:8888"
# yum update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Error: Cannot open/read repomd.xml file for repository: rhel-i386-server-5
</pre>
<p>En el proxy recibimos lo siguiente:</p>
<pre>
[Fiddler] Request Header parsing failed. Request was:
43 4F 4E 4E 45 43 54 20 78 6D 6C 72 70 63 2E 72 68 6E 2E 72 65 64 68 61  CONNECT xmlrpc.rhn.redha
74 2E 63 6F 6D 3A 34 34 33 20 48 54 54 50 2F 31 2E 31 0D 0A 0D 0A        t.com:443 HTTP/1.1....
</pre>
<p>Encontre la solucion googleando un poco (solo <a href="http://www.opensubscriber.com/message/rhn-users@redhat.com/8091949.html">una pagina</a> hablaba de ello), pero probe la solucion y funciono:</p>
<blockquote><p>It&#8217;s a bug in the crypto lib of python.  It doesn&#8217;t add the HOST in the<br />
headers of the HTTP/1.1.</p></blockquote>
<p>Hay que editar el fichero /usr/lib/python2.4/site-packages/M2Crypto/httpslib.py en la maquina y añadir la linea siguiente entre las lineas 165 y 166:</p>
<pre>msg = msg + "Host: %s:%d\\r\\n" % (self._real_host, self._real_port)
</pre>
<p>Quedando asi:</p>
<pre>    def _get_connect_msg(self):
        """ Return an HTTP CONNECT request to send to the proxy. """
        msg = "CONNECT %s:%d HTTP/1.1\\r\\n" % (self._real_host, self._real_port)
        msg = msg + "Host: %s:%d\\r\\n" % (self._real_host, self._real_port)</b>
        if self._proxy_auth:
            msg = msg + "%s: %s\\r\\n" % (self._AUTH_HEADER, self._proxy_auth)
        msg = msg + "\\r\\n"
        return msg
</pre>
<p>Una vez hecho esto, ya funciona bien:</p>
<pre># yum check-update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Setting up repositories
rpmforge                  100% |=========================| 1.1 kB    00:00
rhel-i386-server-5        100% |=========================| 1.4 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.5 MB    00:00
################################################## 6175/6175
primary.xml.gz            100% |=========================| 1.1 MB    00:05
################################################## 3219/3219
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/184/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/184/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=184&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2008/02/07/rhel5-yum-proxy-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>Hipoteca: reducción de plazo al amortizar (formula)</title>
		<link>http://adumont.wordpress.com/2007/12/20/hipoteca-reduccion-de-plazo-al-amortizar-formula/</link>
		<comments>http://adumont.wordpress.com/2007/12/20/hipoteca-reduccion-de-plazo-al-amortizar-formula/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 13:38:45 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[hipoteca]]></category>
		<category><![CDATA[pretamo]]></category>
		<category><![CDATA[simulador hipoteca]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/12/20/hipoteca-reduccion-de-plazo-al-amortizar-formula/</guid>
		<description><![CDATA[En este post quiero responder al comentario de Conchi, que preguntaba como calcular la reducción de plazos tras amortizar una hipoteca: Para ello, parto de la formula de la Cuota mensual a pagar (ver demostración en la Wikipedia): Donde, i es el interes mensual, es decir, i=(Interes anual en %)/(12*100) Capital es el capital que [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=183&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>En este post quiero responder al <a href="http://adumont.serveblog.net/2007/12/10/simulador-de-hipoteca-iii-amortizacion/#comment-17080">comentario de Conchi</a>, que preguntaba como calcular la reducción de plazos tras amortizar una hipoteca:</p>
<p>Para ello, parto de la formula de la Cuota mensual a pagar (ver <a href="http://es.wikipedia.org/w/index.php?title=Hipoteca">demostración en la Wikipedia</a>):</p>
<p style="overflow:auto;"><img src='http://adumont.serveblog.net/wp-content/uploads/cuota.png' alt='Formula Cuota Hipoteca' /></p>
<p>Donde,</p>
<ul>
<li>i es el interes mensual, es decir, i=(Interes anual en %)/(12*100)</li>
<li>Capital es el capital que queda por amortizar</li>
<li>Plazo es el numero de meses que queden por pagar la hipoteca</li>
</ul>
<p>Si queremos saber cuantos plazos quedaran pendientes de pagar tras una amortizacion, podemos sacar &#8220;Plazo&#8221; de la formula:</p>
<p style="overflow:auto;"><img src='http://adumont.serveblog.net/wp-content/uploads/plazo.png' alt='Formula Plazo Hipoteca' /></p>
<p>En el caso de <a href="http://adumont.serveblog.net/2007/12/10/simulador-de-hipoteca-iii-amortizacion/">mi simulación</a>:</p>
<p style="overflow:auto;">
<img src="http://adumont.serveblog.net/wp-content/uploads/shot0007.gif" style="max-width:894px;" alt="Amortización con reducción de tiempo" />
</p>
<ul>
<li>Tenemos un capital pendiente de 234887.74€ y amortizamos 12000€, con lo que tras amortizar nos queda un capital pendiente de 222887.74€.</li>
<li>El interes mensual es de i=4.150/(12*100)=0.003458333&#8230;</li>
<li>La cuota no cambia (o poco), con lo que tomamos el valor antes de amortizar como referencia: Cuota=1286.77€</li>
<p>Al calcular el nuevo Plazo nos sale efectivamente <strong>264 meses</strong> si redondeamos.</p>
<p>Por información, he generado las imagenes de las formulas con <a href="http://www.sitmo.com/latex/">LaTeX Equation Editor &#8211; SITMO</a>, usando las siguientes formulas Latex:</p>
<pre>
Cuota = \\frac{Capital \\cdot i}{1-(1+i )^{-Plazo}}
Plazo = -\\frac{Log(1-i \\cdot \\frac{Capital}{Cuota})}{Log(1+i)}</pre>
<p>y he hecho los calculos en mi PC con el <a href="http://www.hpcalc.org/hp48/pc/emulators/">emulador de la HP48sx</a> (buenisimo! la unica pena es que no consigo hacer funcionar la version Pocket PC).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/183/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/183/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=183&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/12/20/hipoteca-reduccion-de-plazo-al-amortizar-formula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>

		<media:content url="http://adumont.serveblog.net/wp-content/uploads/cuota.png" medium="image">
			<media:title type="html">Formula Cuota Hipoteca</media:title>
		</media:content>

		<media:content url="http://adumont.serveblog.net/wp-content/uploads/plazo.png" medium="image">
			<media:title type="html">Formula Plazo Hipoteca</media:title>
		</media:content>

		<media:content url="http://adumont.serveblog.net/wp-content/uploads/shot0007.gif" medium="image">
			<media:title type="html">Amortización con reducción de tiempo</media:title>
		</media:content>
	</item>
		<item>
		<title>Hacer backup de una Fonera</title>
		<link>http://adumont.wordpress.com/2007/12/18/hacer-backup-de-una-fonera/</link>
		<comments>http://adumont.wordpress.com/2007/12/18/hacer-backup-de-una-fonera/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 13:52:53 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Fon & La Fonera]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[La Fonera]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/12/18/hacer-backup-de-una-fonera/</guid>
		<description><![CDATA[Teniendo acceso por SSH a una Fonera, se puede hacer un tar de los ficheros de la fonera directamente a otra maquina (por si no cupiera en la propia fonera): ssh root@fon01 "cd /; tar cvf - bin etc lib sbin tmp var jffs rom usr www" &#124; gzip -9 &#62; /tmp/fon01.tar.gz Tambien se puede [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=182&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Teniendo <a href="http://adumont.serveblog.net/2007/03/04/shell-access-ssh-on-your-fonera/">acceso por SSH a una Fonera</a>, se puede hacer un tar de los ficheros de la fonera directamente a otra maquina (por si no cupiera en la propia fonera):</p>
<pre>ssh root@fon01 "cd /; tar cvf - bin etc lib sbin tmp var jffs rom usr www" | gzip -9 &gt; /tmp/fon01.tar.gz</pre>
<p>Tambien se puede usar algo parecido para replicar el SO de una Fonera en un Linux:</p>
<pre>$ mkdir /tmp/fon01
$ cd /tmp/fon01
$ ssh root@fon01 "cd /; tar cvf - bin etc lib sbin tmp var jffs rom usr www" | tar xvf -
</pre>
<p>Esto ultimo puede ser util para verificar desde el Linux que <a href="http://adumont.serveblog.net/2007/04/28/how-does-the-fonera-updates-itself/">una actualizacion de Fon</a> no va a machacar ficheros de la Fonera que hayamos tocado nosotros antes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/182/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/182/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=182&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/12/18/hacer-backup-de-una-fonera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>iSCSI entre una Solaris (Initiator) y un Linux (target)</title>
		<link>http://adumont.wordpress.com/2007/12/12/iscsi-entre-una-solaris-initiator-y-un-linux-target/</link>
		<comments>http://adumont.wordpress.com/2007/12/12/iscsi-entre-una-solaris-initiator-y-un-linux-target/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 09:37:25 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Unix & Linux]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/12/12/iscsi-entre-una-solaris-initiator-y-un-linux-target/</guid>
		<description><![CDATA[Respondiendo al comentario de gonzo34 a ese post solicitando mas informacion sobre como usar iSCSI en Solaris, voy a poner aqui mis notas sobre el tema. En el linux, que &#8220;exporta&#8221; por iSCSI el disco (o el lvol), instalamos el iSCSI Target. Una vez instalado, indicamos al demonio qué disco/lvol exportar (por ejemplo el /dev/vg01/lviscsi01): [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=181&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Respondiendo al <a href="http://adumont.serveblog.net/2007/09/02/%c2%a1me-gusta-solaris/#comment-17047">comentario de gonzo34</a> a ese <a href="http://adumont.serveblog.net/2007/09/02/%c2%a1me-gusta-solaris/">post</a> solicitando mas informacion sobre como usar iSCSI en Solaris, voy a poner aqui mis notas sobre el tema.</p>
<p>En el linux, que &#8220;exporta&#8221; por iSCSI el disco (o el lvol), instalamos el <a href="http://iscsitarget.sourceforge.net/">iSCSI Target</a>. Una vez instalado, indicamos al demonio qué disco/lvol exportar (por ejemplo el <code>/dev/vg01/lviscsi01</code>):</p>
<pre># vi /etc/ietd.conf
#IncomingUser nwsmith secretsecret
Target iqn.2006-06.com.alegrome:storage.lvm
Lun 0 /dev/vg01/lviscsi01
Alias iscsitest01
</pre>
<p>Iniciamos el demonio (o lo reiniciamos):</p>
<pre># service iscsi-target start
Starting iSCSI target service:    [  OK  ]
</pre>
<p>Comprobamos que este arriba el demonio:</p>
<pre># netstat -ntlp | grep 3260
tcp  0  0  0.0.0.0:3260  0.0.0.0:*  LISTEN 3160/ietd
# tail /var/log/messages
Jan 14 15:59:02 server kernel: iSCSI Enterprise Target Software - version 0.4.5
Jan 14 15:59:02 server kernel: iotype_init(91) register fileio
Jan 14 15:59:03 server kernel: target_param(109) d 1 8192 262144 65536 2 20 8 0
Jan 14 15:59:03 server iscsi-target: ietd startup succeeded

alegrome# cat  /proc/net/iet/volume
tid:1 name:iqn.2006-06.com.alegrome:storage.lvm
        lun:0 state:0 iotype:fileio iomode:wt path:/dev/vg01/lviscsi01
</pre>
<p>Ahora en la solaris (cambiar IP por la IP del Linux):</p>
<pre># iscsiadm add discovery-address IP:3260

# iscsiadm modify discovery --sendtargets enable

# iscsiadm list discovery
Discovery:
        Static: disabled
        Send Targets: enabled
        iSNS: disabled

# devfsadm -v -i iscsi
devfsadm[752]: verbose: symlink /dev/dsk/c1t2d0s0 -&gt; ../../devices/iscsi/disk@0000iqn.2006-06.com.alegrome%3Astorage.lvm0001,0:a
[...]
</pre>
<p>Ya vemos el disco con el format:</p>
<pre># format
Searching for disks...done

c1t2d0: configured with capacity of 1008.00MB

AVAILABLE DISK SELECTIONS:
       0. c0t0d0
          /pci@1f,0/pci@1,1/ide@3/dad@0,0
       1. c1t2d0
          /iscsi/disk@0000iqn.2006-06.com.alegrome%3Astorage.lvm0001,0
Specify disk (enter its number): ^D
</pre>
<p>Vemos los targets descubiertos:</p>
<pre># iscsiadm list target
Target: iqn.2006-06.com.alegrome:storage.lvm
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
...
</pre>
<p>Y mas informacion sobre cada uno:</p>
<pre># iscsiadm list target-param -v iqn.2006-06.com.alegrome:storage.lvm
Target: iqn.2006-06.com.alegrome:storage.lvm
        Alias: -
        Bi-directional Authentication: disabled
        Authentication Type: NONE
        Login Parameters (Default/Configured):
                Data Sequence In Order: yes/-
                Data PDU In Order: yes/-
                Default Time To Retain: 20/-
                Default Time To Wait: 2/-
                Error Recovery Level: 0/-
                First Burst Length: 65536/-
                Immediate Data: yes/-
                Initial Ready To Transfer (R2T): yes/-
                Max Burst Length: 262144/-
                Max Outstanding R2T: 1/-
                Max Receive Data Segment Length: 8192/-
                Max Connections: 1/-
                Header Digest: NONE/-
                Data Digest: NONE/-
        Configured Sessions: 1
</pre>
<p>Por otra parte en la Linux, vemos la session iSCSI:</p>
<pre>alegrome# cat  /proc/net/iet/session
tid:1 name:iqn.2006-06.com.alegrome:storage.lvm
        sid:281475681353792 initiator:iqn.1986-03.com.sun:01:0800209efab9.46bc3c8b
                cid:0 ip:192.168.0.30 state:active hd:none dd:none
</pre>
<p>Espero que le sirva a alguien <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/181/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/181/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=181&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/12/12/iscsi-entre-una-solaris-initiator-y-un-linux-target/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>Syslog remoto para la Fonera</title>
		<link>http://adumont.wordpress.com/2007/12/10/syslog-remoto-para-la-fonera/</link>
		<comments>http://adumont.wordpress.com/2007/12/10/syslog-remoto-para-la-fonera/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 19:40:07 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Fon & La Fonera]]></category>
		<category><![CDATA[Unix & Linux]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/12/10/syslog-remoto-para-la-fonera/</guid>
		<description><![CDATA[Para habilitar el syslog remoto de nuestra Fonera a un servidor de Syslog que tengamos: fon01# vi /etc/init.d/rcS Modificamos la linea del syslog por syslogd -C 16 -L -R 192.168.X.Y Donde 192.168.X.Y seria la IP de nuestro servidor de syslog. Reiniciamos el syslog de la fonera: ps -ef&#124; grep syslog kill y lo lanzamos manualmente: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=180&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para habilitar el syslog remoto de nuestra Fonera a un servidor de Syslog que tengamos:</p>
<pre>
fon01# vi /etc/init.d/rcS
</pre>
<p>Modificamos la linea del syslog por</p>
<pre>syslogd -C 16 -L -R 192.168.X.Y
</pre>
<p>Donde 192.168.X.Y seria la IP de nuestro servidor de syslog.</p>
<p>Reiniciamos el syslog de la fonera:</p>
<pre>ps -ef| grep syslog
kill
</pre>
<p>y lo lanzamos manualmente:</p>
<pre>
syslogd -C 16 -L -R 192.168.X.Y
</pre>
<p>En el syslog de nuestro servidor de syslog veremos:</p>
<pre>
server$ tail -f /var/log/syslog
...
Dec 10 20:22:50 fon01 syslog.info syslogd started: BusyBox v1.1.3
...
</pre>
<p>Por cierto, para leer el syslog desde la fonera:</p>
<pre>fon01# logread
Dec 10 20:22:50 fon01 syslog.info syslogd started: BusyBox v1.1.3
...
</pre>
<p>De esta forma los logs no se pierden!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/180/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/180/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=180&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/12/10/syslog-remoto-para-la-fonera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
		<item>
		<title>Simulador de hipoteca (III): Amortización</title>
		<link>http://adumont.wordpress.com/2007/12/10/simulador-de-hipoteca-iii-amortizacion/</link>
		<comments>http://adumont.wordpress.com/2007/12/10/simulador-de-hipoteca-iii-amortizacion/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 14:04:08 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[hipoteca]]></category>
		<category><![CDATA[pretamo]]></category>
		<category><![CDATA[simulador hipoteca]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/12/10/simulador-de-hipoteca-iii-amortizacion/</guid>
		<description><![CDATA[Respondiendo al comentario de SirDrake, este post trata de explicar como usar mi hoja de Simulador de hipoteca (bajar la hoja) para simular amortizaciones. Ademas de explicar como hacerlo, tambien voy a comparar, gracias a la hoja, dos tipos de amortizaciones: con reduccion de tiempo o de cuota. Recordemos los datos de nuetro ejemplo (ver [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=179&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Respondiendo al comentario de <a href="http://adumont.serveblog.net/2007/09/20/simulador-de-hipoteca-ii-revision-del-tipo-de-interes/#comment-17025">SirDrake</a>, este post trata de explicar como usar mi hoja de Simulador de hipoteca (<a href="http://adumont.serveblog.net/wp-content/uploads/2006/11/simuladorhipoteca0.zip">bajar la hoja</a>) para simular amortizaciones. Ademas de explicar como hacerlo, tambien voy a comparar, gracias a la hoja, dos tipos de amortizaciones: con reduccion de tiempo o de cuota.</p>
<p>Recordemos los datos de nuetro ejemplo (ver el <a href="http://adumont.serveblog.net/2007/09/20/simulador-de-hipoteca-ii-revision-del-tipo-de-interes/#comment-17025">post original</a> para mas detalles): se trata de un prestamo hipotecario de  240,000.00 € a 25 años. Nos sale a pagar unos  146,031.08 € de intereses.</p>
<p>Vamos a simular el efecto de realizar una amortizacion de  12,000.00 € a final del primer año de hipoteca (mes 12).</p>
<p>Conozco 2 tipos de amortización de prestamo:</p>
<ul>
<li>Reducción de tiempo: se reduce el tiempo del prestamo, manteniendose las cuotas mensuales,</li>
<li>Reducción de cuota: se reducen las cuotas mensuales, manteniendose la duracion del prestamo.</li>
</ul>
<p>Vamos a ver como usar mi hoja para simular ambos tipos de amortizacion, y asi ver como se comporta nuestro prestamo:</p>
<p><u><strong>Amortizacion en tiempo</strong></u></p>
<p>Ponemos la cantidad que vamos a amortizar en la columna &#8220;Am.Extra&#8221; (ver flecha roja en el pantallazo):</p>
<p style="overflow:auto;">
<img src="http://adumont.serveblog.net/wp-content/uploads/shot0007.gif" style="max-width:894px;" alt="Amortización con reducción de tiempo" />
</p>
<p>Reduccion del tiempo de prestamo: Podemos ver en la columa &#8220;Reduc. Meses&#8221; que la duracion total del prestamo se va a reducir de 24 meses, es decir 2 años menos en este caso (lo importante es que son dos años menos que vamos a pagar intereses al banco). Esto tambien queda reflejado en la columna &#8220;Quedan Meses&#8221;.</p>
<p>Vemos que la siguiente cuota se mantiene mas o menos igual (pasa de  1,286.77 € a  1,286.15 €). Realmente no es igual porque la hoja la recalcula y vemos que difiere un poco. Algunos bancos no recalculan la cuota mensual tras una amortizacion. En este caso, solo basta con poner manualmente la cuota que calcula el banco.</p>
<p>Vemos que la parte de intereses de la cuota si que ha reducido de unos 43€ mensuales, de  812.32 € a  769.18 € (son 43€ mas que amortizamos cada mes en vez de darselos al banco).</p>
<p>Lo mas interesante de esta amortizacion es lo que nos vamos a ahorrar de intereses a lo largo del prestamo (celda F3, &#8220;Intereses&#8221;): vemos que pasa de 146,031.08 € a 126,984.25 €, es decir que <strong>amortizando 12,000.00 €, nos ahorraremos 19,046.83 € de intereses</strong>!</p>
<p><u><strong>Amortización en cuota</strong></u></p>
<p>Al igual que en la amortizacion en tiempo, ponemos la cantidad que vamos a amortizar en la columna &#8220;Am.Extra&#8221; (ver flecha roja en el pantallazo):</p>
<p style="overflow:auto;">
<img src="http://adumont.serveblog.net/wp-content/uploads/shot0008.gif" style="max-width:894px;" alt="Amortización con reducción de cuota" />
</p>
<p>Sin embargo, lo que pretendemos es que se recalcule la cuota (a la baja), sin reducir el tiempo del prestamo. Para hacer esto con mi hoja, hay que frozarla a que no reduzca en tiempo, poniendo manualmente en la celda correspondiente de la columna &#8220;Quedan Meses&#8221; el valor que queremos: en nuestro caso si el mes 12 nos quedaban 289 cuotas, el mes siguiente tenemos que forzar el valor a 288 cuotas(meses) (ver flecha roja).</p>
<p>En este caso vemos que <strong>la cuota mensual se reduce de unos 65€</strong> (pasa de  1,286.77 € a  1,220.90 €).</p>
<p>La cantidad total de intereses que paguaremos tambien se reduce, pero menos que con una amortizacion en tiempo, como se puede ver: pasa de 146,031.08 € a 139,059.98 €, es decir que nos ahorraremos unos 6,971.10 € (frente a los 19,046.83 € que no ahorraremos si amrtizamos con reduccion de tiempo).</p>
<p><u><strong>Conclusión</strong></u></p>
<p>Como podemos ver, <strong>a largo plazo la opcion mas interesante es hacer una amortizacion con reduccion de tiempo</strong>, y no de cuota (siempre y cuando uno se lo pueda permitir). Si lo que necesita uno es ahorrase dinero de forma inmediata, entonces puede interesar la opcion de reducir cuota, pero creo que hay que tener presente la consecuencia sobre el precio en intereses a largo plazo.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/179/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/179/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=179&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/12/10/simulador-de-hipoteca-iii-amortizacion/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>

		<media:content url="http://adumont.serveblog.net/wp-content/uploads/shot0007.gif" medium="image">
			<media:title type="html">Amortización con reducción de tiempo</media:title>
		</media:content>

		<media:content url="http://adumont.serveblog.net/wp-content/uploads/shot0008.gif" medium="image">
			<media:title type="html">Amortización con reducción de cuota</media:title>
		</media:content>
	</item>
		<item>
		<title>Lucía, Nov 2007</title>
		<link>http://adumont.wordpress.com/2007/11/30/lucia-nov-2007/</link>
		<comments>http://adumont.wordpress.com/2007/11/30/lucia-nov-2007/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 13:45:24 +0000</pubDate>
		<dc:creator>adumont</dc:creator>
				<category><![CDATA[Internet & Blogging]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Lucia]]></category>

		<guid isPermaLink="false">http://adumont.serveblog.net/2007/11/30/lucia-nov-2007/</guid>
		<description><![CDATA[¡Os presento mi hija, Lucía! Update 30/11 17:40: En una primera version del video habia elegido la musica sin escucharla. Despues me di cuenta que era muy cañera y no pegaba mucho con el espiritu del video&#8230; Esta es ahora una version mas tierna . Gracias Carlos por la idea.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=178&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>¡Os presento mi hija, Lucía!</p>
<p><u>Update 30/11 17:40</u>: <em>En una <a href="http://animoto.com/play/b298aadb9853c7b21c2bc436ae167015">primera version</a> del video habia elegido la musica sin escucharla. Despues me di cuenta que era muy cañera y no pegaba mucho con el espiritu del video&#8230; Esta es ahora una version mas tierna <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</em></p>
<p>Gracias <a href="http://cafetera.etsit.upv.es/~carlos/carblog/2007/11/24/animoto-animar-tus-fotos-online/">Carlos </a>por la idea.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/adumont.wordpress.com/178/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/adumont.wordpress.com/178/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adumont.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adumont.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adumont.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adumont.wordpress.com&amp;blog=674984&amp;post=178&amp;subd=adumont&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adumont.wordpress.com/2007/11/30/lucia-nov-2007/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c5cbed4004fc60e871825f9ae8de4ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adumont</media:title>
		</media:content>
	</item>
	</channel>
</rss>
