<?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/"
	>

<channel>
	<title>David Toribio &#187; linux</title>
	<atom:link href="http://david.toribio.eu/categoria/it/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://david.toribio.eu</link>
	<description>Blog personal David Toribio</description>
	<lastBuildDate>Sun, 06 May 2012 07:13:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>ImageMagick, php en Centos 5</title>
		<link>http://david.toribio.eu/2011/07/21/imagemagick-php-en-centos-5/</link>
		<comments>http://david.toribio.eu/2011/07/21/imagemagick-php-en-centos-5/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 10:32:20 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[imagick php]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=619</guid>
		<description><![CDATA[Revisar que tenemos instalados los siguientes paquetes: php-pear php-devel ImageMagick ImageMagick-devel gcc A continuación hacemos: pecl install imagick echo &#8220;extension=imagick.so&#8221; > /etc/php.d/imagick.ini /etc/init.d/httpd restart COmprobamos si todo esta en su sitio: php -m &#124; grep imagick]]></description>
			<content:encoded><![CDATA[<p>Revisar que tenemos instalados los siguientes paquetes:</p>
<blockquote><p>
php-pear<br />
php-devel<br />
ImageMagick<br />
ImageMagick-devel<br />
gcc
</p></blockquote>
<p>A continuación hacemos:</p>
<blockquote><p>pecl install imagick<br />
echo &#8220;extension=imagick.so&#8221; > /etc/php.d/imagick.ini<br />
/etc/init.d/httpd restart
</p></blockquote>
<p>COmprobamos si todo esta en su sitio:</p>
<blockquote><p> php -m | grep imagick</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2011/07/21/imagemagick-php-en-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Utilidades divertidas que nunca te vienen a la cabeza</title>
		<link>http://david.toribio.eu/2010/09/14/utilidades-divertidas-que-nunca-te-vienen-a-la-cabeza/</link>
		<comments>http://david.toribio.eu/2010/09/14/utilidades-divertidas-que-nunca-te-vienen-a-la-cabeza/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:19:14 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[utils]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=579</guid>
		<description><![CDATA[nmap : scanea puertos abiertos lsof : list de ficheros abiertos, conexiones de red y algo mas mtr : un tracert dinámico buenísimo, lo mejor de lo mejor w : quien hay conectado y que hace? iptraf : Estadísticas en tiempo real de trafico de red]]></description>
			<content:encoded><![CDATA[<ul>
<li>nmap : scanea puertos abiertos</li>
<li>lsof : list de ficheros abiertos, conexiones de red y algo mas</li>
<li>mtr : un tracert dinámico buenísimo, lo mejor de lo mejor</li>
<li>w : quien hay conectado y que hace?</li>
<li>iptraf : Estadísticas en tiempo real de trafico de red</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2010/09/14/utilidades-divertidas-que-nunca-te-vienen-a-la-cabeza/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RackTables : Inventario de tu DataCenter, asset  e ips</title>
		<link>http://david.toribio.eu/2010/09/05/racktables-inventario-de-tu-datacenter-asset-e-ips/</link>
		<comments>http://david.toribio.eu/2010/09/05/racktables-inventario-de-tu-datacenter-asset-e-ips/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 20:19:47 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[Aplicaciones]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Monitorizar]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[PCRE]]></category>
		<category><![CDATA[racktable]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=582</guid>
		<description><![CDATA[Para inventariar tus cables, equipos, racks, enchufes etc una cosa simple, un poco verde, pero razonablemente eficaz es racktables. Básicamente es la típica aplicación LAMP con autoinstalador para rematar la instalación en un panel PHP. Sin embargo tienen un requerimiento un poco puñetero. Para resolver el requerimiento hay que compilar un componente para lo cual [...]]]></description>
			<content:encoded><![CDATA[<p>Para inventariar tus cables, equipos, racks, enchufes etc una cosa simple, un poco verde, pero razonablemente eficaz es <a href="http://racktables.org/">racktables</a>.</p>
<p>Básicamente es la típica aplicación LAMP con autoinstalador para rematar la instalación en un panel PHP. Sin embargo tienen un requerimiento un poco puñetero.</p>
<p>Para resolver el requerimiento hay que compilar un componente para lo cual detallo los pasos para ir al grano:</p>
<p>Regenerar el RPM: nos bajáramos el rpm source del paquete en cuestión que se llamara algo parecido a:</p>
<blockquote><p>pcre-6.6-2.el5_1.7.src.rpm</p></blockquote>
<p>Os recomiendo un yum update previo y que busquéis el paquete exacto con un:</p>
<blockquote><p>rpm -qa | grep pcre</p></blockquote>
<p>Os instalais el src.rpm con algo asi como:</p>
<blockquote><p>$ rpm -ivh pcre-6.6-2.el5_1.7.src.rpm</p></blockquote>
<p>Esto te colocara unos archivos en algún stio parecido a:  ~/src/rpm/SOURCES y ~/src/rpm/SPECS</p>
<p>Yo he abierto el archivo  ~/src/rpm/SPECS/pcre.spec y he editado la linea:</p>
<blockquote><p>%configure &#8211;enable-utf8</p></blockquote>
<p>La editor para que quede algo parecido I changed it to include the Unicode properties option:</p>
<blockquote><p>%configure &#8211;enable-utf8 &#8211;enable-unicode-properties</p></blockquote>
<p>A continuación genero el nuevo rpm</p>
<blockquote><p>$ rpmbuild -ba ~/src/rpm/SPECS/pcre.spec</p></blockquote>
<p>Y vere algo parecido a:</p>
<blockquote><p>Wrote: ~/src/rpm/SRPMS/pcre-6.6-2.7.src.rpm<br />
Wrote: ~/src/rpm/RPMS/x86_64/pcre-6.6-2.7.x86_64.rpm<br />
Wrote: ~/src/rpm/RPMS/x86_64/pcre-devel-6.6-2.7.x86_64.rpm<br />
Wrote: ~/src/rpm/RPMS/x86_64/pcre-debuginfo-6.6-2.7.x86_64.rpm</p></blockquote>
<p>Una vez acabado hago un update del rpm usando el que he generado de nuevo</p>
<blockquote><p># rpm -Uvh ~/src/rpm/RPMS/x86_64/pcre-6.6-2.7.x86_64.rpm</p></blockquote>
<p>Ejecuto un test para ver is a quedado bien:</p>
<blockquote><p>$ pcretest -C<br />
PCRE version 6.6 06-Feb-2006<br />
Compiled with<br />
UTF-8 support<br />
Unicode properties support<br />
Newline character is LF<br />
Internal link size = 2<br />
POSIX malloc threshold = 10<br />
Default match limit = 10000000<br />
Default recursion depth limit = 10000000<br />
Match recursion uses stack</p></blockquote>
<p>Buena suerte y que lo paséis bien.</p>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2010/09/05/racktables-inventario-de-tu-datacenter-asset-e-ips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;/bin/sh is needed by&#8221; metele un &#8220;rpm &#8211;rebuildb&#8221;</title>
		<link>http://david.toribio.eu/2010/02/19/binshisneededby/</link>
		<comments>http://david.toribio.eu/2010/02/19/binshisneededby/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 09:51:02 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[VZ]]></category>
		<category><![CDATA[rpm yum virtuozzo vz]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=523</guid>
		<description><![CDATA[  a veces al actualizar paquetes protesta y todo esta en orden ¿que es? regenera la BBDD de los rpm   [root@hn15 CU-2.6.18-028stab068.3]# rpm -ivh *.rpm error: Failed dependencies:         /bin/sh is needed by vzkernel-2.6.18-028stab068.3.x86_64         /bin/sh is needed by vzkernel-devel-2.6.18-028stab068.3.x86_64         /bin/sh is needed by vzmodules-2.6.18-028stab068.3.x86_64 [root@hn15 CU-2.6.18-028stab068.3]# rpm -ivh *.rpm &#8211;force error: Failed [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>a veces al actualizar paquetes protesta y todo esta en orden ¿que es? regenera la BBDD de los rpm</p>
<p> </p>
<p>[root@hn15 CU-2.6.18-028stab068.3]# rpm -ivh *.rpm<br />
error: Failed dependencies:<br />
        /bin/sh is needed by vzkernel-2.6.18-028stab068.3.x86_64<br />
        /bin/sh is needed by vzkernel-devel-2.6.18-028stab068.3.x86_64<br />
        /bin/sh is needed by vzmodules-2.6.18-028stab068.3.x86_64<br />
[root@hn15 CU-2.6.18-028stab068.3]# rpm -ivh *.rpm &#8211;force<br />
error: Failed dependencies:<br />
        /bin/sh is needed by vzkernel-2.6.18-028stab068.3.x86_64<br />
        /bin/sh is needed by vzkernel-devel-2.6.18-028stab068.3.x86_64<br />
        /bin/sh is needed by vzmodules-2.6.18-028stab068.3.x86_64<br />
[root@hn15 CU-2.6.18-028stab068.3]# rpm &#8211;rebuilddb<br />
[root@hn15 CU-2.6.18-028stab068.3]# rpm -ivh *.rpm<br />
Preparing&#8230;                ########################################### [100%]<br />
   1:vzkernel               ########################################### [ 33%]<br />
   2:vzkernel-devel         ########################################### [ 67%]<br />
   3:vzmodules              ########################################### [100%]<br />
[root@hn15 CU-2.6.18-028stab068.3]#</p>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2010/02/19/binshisneededby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sustituir un disco en un entorno RAID linux</title>
		<link>http://david.toribio.eu/2010/01/03/sustituir-un-disco-en-un-entorno-raid-linux/</link>
		<comments>http://david.toribio.eu/2010/01/03/sustituir-un-disco-en-un-entorno-raid-linux/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 08:54:49 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[raid]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=513</guid>
		<description><![CDATA[ Un pequeño apunte sobre los pasos a sguir para sustituir un disco que falla en un sistema linux, yo suelo usar centos, pero es valido para cualquier distri, cuando usamos RAID y el swap sin RAID. Los pasos son desacivar el swap, sacar los volumenes de ese disco fisico del RAID (que logicamente trendras degradado) y [...]]]></description>
			<content:encoded><![CDATA[<p> Un pequeño apunte sobre los pasos a sguir para sustituir un disco que falla en un sistema linux, yo suelo usar centos, pero es valido para cualquier distri, cuando usamos RAID y el swap sin RAID.</p>
<p>Los pasos son desacivar el swap, sacar los volumenes de ese disco fisico del RAID (que logicamente trendras degradado) y a continuación cambiarlo fisiciamente, regenrar las particiones y levantarlo todo.</p>
<ul>
<li>swapoff /dev/sd1</li>
<li>mdadm -f /dev/md0 /dev/sde2</li>
<li>mdadm -r /dev/md0 /dev/sde2</li>
<li>**** retirar el disco</li>
<li>sfdisk -d /dev/sdb | sfdisk /dev/sde</li>
<li>mdadm -a /dev/md0 /dev/sdg2</li>
<li>mkswap /dev/sdg1</li>
<li>swapon /dev/sdg1</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2010/01/03/sustituir-un-disco-en-un-entorno-raid-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>yum update python fails</title>
		<link>http://david.toribio.eu/2009/09/27/yum-update-python-fails/</link>
		<comments>http://david.toribio.eu/2009/09/27/yum-update-python-fails/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 22:47:57 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=510</guid>
		<description><![CDATA[Ultimamente me encuentro que a menudo me estan fallando &#8220;yum update&#8221; por el tema python, una cosa extraña. finalmente he buscado un camino simple para resolverlo y este es el camino: # yum clean all # yum &#8211;disablerepo=* &#8211;enablerepo=base &#8211;enablerepo=updates update yum* rpm* # yum update python # yum update]]></description>
			<content:encoded><![CDATA[<p>Ultimamente me encuentro que a menudo me estan fallando &#8220;yum update&#8221; por el tema python, una cosa extraña. finalmente he buscado un camino simple para resolverlo y este es el camino:</p>
<blockquote><p>
# yum clean all<br />
# yum &#8211;disablerepo=* &#8211;enablerepo=base &#8211;enablerepo=updates update yum* rpm*<br />
# yum update python<br />
# yum update
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2009/09/27/yum-update-python-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS falla por /dev/random</title>
		<link>http://david.toribio.eu/2009/07/31/dns-falla-por-devrandom/</link>
		<comments>http://david.toribio.eu/2009/07/31/dns-falla-por-devrandom/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 15:10:51 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=488</guid>
		<description><![CDATA[ -bash-3.2# /etc/init.d/named start Starting named: named: could not open pre-chroot entropy source /dev/random: file not found [ OK ] la solución: mknod -m 0444 /dev/random c 1 8]]></description>
			<content:encoded><![CDATA[<p> -bash-3.2# /etc/init.d/named start<br />
Starting named: named: could not open pre-chroot entropy source /dev/random: file not found<br />
[ OK ]</p>
<p>la solución:</p>
<p>mknod -m 0444 /dev/random c 1 8</p>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2009/07/31/dns-falla-por-devrandom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limite 2TB en PERC6/i</title>
		<link>http://david.toribio.eu/2009/04/01/limite-2t-en-perc6i/</link>
		<comments>http://david.toribio.eu/2009/04/01/limite-2t-en-perc6i/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:15:24 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[perc6]]></category>
		<category><![CDATA[sata]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=437</guid>
		<description><![CDATA[Hoy estaba peleandome con un Dell 2950 qu elleva de serie una PERC6/i Le he instalado 6 discos de 1,5T y he creado 2 Volumenes en RAID6, un de 250Gigas para el root, swat etc y el resto un volumen para meterle &#8220;chicha&#8221; Sin emabrgo o sorpresa cuando al crear la partición /dev/sdb1 supuesta de [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy estaba peleandome con un Dell 2950 qu elleva de serie una PERC6/i</p>
<p>Le he instalado 6 discos de 1,5T y he creado 2 Volumenes en RAID6, un de 250Gigas para el root, swat etc y el resto un volumen para meterle &#8220;chicha&#8221;</p>
<p>Sin emabrgo o sorpresa cuando al crear la partición /dev/sdb1 supuesta de algo asi como 5,75T se formateaba a 2T, solución:</p>
<p>Pasar olimpicamente de la partición y hacer un &#8220;mkfs.ext3 /dev/sdb -L tocho&#8221;</p>
<blockquote><p> <br />
]# mkfs.ext3 /dev/sdb -L vz<br />
mke2fs 1.39 (29-May-2006)<br />
/dev/sdb is entire device, not just one partition!<br />
Proceed anyway? (y,n) y<br />
Filesystem label=vz<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
699531264 inodes, 1399062528 blocks<br />
69953126 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=4294967296<br />
42696 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
16384 inodes per group<br />
Superblock backups stored on blocks:<br />
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br />
        102400000, 214990848, 512000000, 550731776, 644972544</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2009/04/01/limite-2t-en-perc6i/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creando VLAN en centos</title>
		<link>http://david.toribio.eu/2009/03/30/creando-vlan-en-centos/</link>
		<comments>http://david.toribio.eu/2009/03/30/creando-vlan-en-centos/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 08:32:49 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=432</guid>
		<description><![CDATA[Para crear VLANs en linux simplemente tenemos que crear nuevos subinterfaces con el nombre del fisico con la directriz VLAN=yes es:  network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.522 # DEVICE=eth0.522 VLAN=yes BOOTPROTO=static IPADDR=10.1.2.19 NETMASK=255.255.255.224 ONBOOT=yes [network-scripts]# haces un ifup eth0.522 y a funcionar.]]></description>
			<content:encoded><![CDATA[<p>Para crear VLANs en linux simplemente tenemos que crear nuevos subinterfaces con el nombre del fisico con la directriz VLAN=yes</p>
<p>es:</p>
<blockquote><p> network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.522<br />
#<br />
DEVICE=eth0.522<br />
VLAN=yes<br />
BOOTPROTO=static<br />
IPADDR=10.1.2.19<br />
NETMASK=255.255.255.224<br />
ONBOOT=yes<br />
[network-scripts]#</p></blockquote>
<p>haces un ifup eth0.522 y a funcionar.</p>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2009/03/30/creando-vlan-en-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crear un USB Stick Installer para CENTOS</title>
		<link>http://david.toribio.eu/2009/03/29/crear-un-usb-stick-installer-para-centos/</link>
		<comments>http://david.toribio.eu/2009/03/29/crear-un-usb-stick-installer-para-centos/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 09:14:03 +0000</pubDate>
		<dc:creator>Dueño</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://david.toribio.eu/?p=428</guid>
		<description><![CDATA[Tener llaves USB como fuente de instalación es un metodo comodo, falla menos que los CD y no tienes el problema de que el servidor te hace un EJECT del CD. Estas instrucciones osn para generar desde un Windows: 1. Te bajas la ultima release de: https://fedorahosted.org/liveusb-creator/ 2. Te bajar la distribución en cuestión que [...]]]></description>
			<content:encoded><![CDATA[<p>Tener llaves USB como fuente de instalación es un metodo comodo, falla menos que los CD y no tienes el problema de que el servidor te hace un EJECT del CD.</p>
<p>Estas instrucciones osn para generar desde un Windows:</p>
<p>1. Te bajas la ultima release de: <a href="https://fedorahosted.org/liveusb-creator/">https://fedorahosted.org/liveusb-creator/</a></p>
<p>2. Te bajar la distribución en cuestión que te interesa, cualquiera de la orbita redhat, Fedora,  centos etc.</p>
<p>3. prepara tu USB stick vacio de tamaño mayor al de la ISO que has elegido.</p>
<p>4. ejecutas el liveusb-creator y no hay perdida.</p>
]]></content:encoded>
			<wfw:commentRss>http://david.toribio.eu/2009/03/29/crear-un-usb-stick-installer-para-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

