﻿<?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>Jonathan López &#187; Linux</title>
	<atom:link href="http://preocupao.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://preocupao.net</link>
	<description>Internet y software libre</description>
	<lastBuildDate>Thu, 09 Dec 2010 23:28:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Virtual Richard M. Stallman</title>
		<link>http://preocupao.net/virtual-richard-m-stallman/</link>
		<comments>http://preocupao.net/virtual-richard-m-stallman/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 21:00:44 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Richard Stallman]]></category>
		<category><![CDATA[vrms]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=216</guid>
		<description><![CDATA[La aplicación Virtual Richard M. Stallman conocida popularmente como vrms es un software que analiza los paquetes instalados en nuestro sistema y nos indica, en caso de haberlos, cuales no son libres por completo. Instalamos el software de la forma &#8230; <a href="http://preocupao.net/virtual-richard-m-stallman/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>La aplicación <em>Virtual Richard M. Stallman</em> conocida popularmente como <a title="vrms" href="http://vrms.alioth.debian.org/">vrms</a> es un software que analiza los paquetes instalados en nuestro sistema y nos indica, en caso de haberlos, cuales no son libres por completo.</p>
<p>Instalamos el software de la forma habitual y lo ejecutamos:</p>
<p><code># apt-get install vrms<br />
# vrms<br />
No non-free or contrib packages installed on Legolas!  rms would be proud.</code></p>
<p><a title="Richard Stallman" href="http://es.wikipedia.org/wiki/Richard_Stallman">Richard Stallman</a> esta orgulloso de nosotros!</p>
<p>Sin embargo, si instalamos un paquete que pertenezca a los repositorios <em>contrib</em> o <em>non-free</em> el resultado cambia:</p>
<p><code># apt-get install unrar<br />
# vrms<br />
Non-free packages installed on Legolas<br />
unrar                     Unarchiver for .rar files (non-free version)<br />
Reason: Modifications problematic<br />
1 non-free packages, 0.3% of 396 installed packages.</code></p>
<p>Lo mejor será desinstalar rápido <em>unrar</em> antes de que Stallman me haga una <a href="http://www.youtube.com/watch?v=9sJUDx7iEJw">canción protesta</a>.</p>
<p>Enlace a la pagina del paquete de <a title="vrms" href="http://packages.debian.org/lenny/vrms">Debian</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/virtual-richard-m-stallman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilar el kernel en Debian</title>
		<link>http://preocupao.net/compilar-el-kernel-en-debian/</link>
		<comments>http://preocupao.net/compilar-el-kernel-en-debian/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:00:21 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Kernel]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=199</guid>
		<description><![CDATA[Corta lista de pasos para compilar el kernel en Debian de forma rápida y sencilla utilizando las herramientas de la distribución. Bajar la versión de kernel que se quiere utilizar y ubicarlo en /usr/src cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.gz tar xvzf &#8230; <a href="http://preocupao.net/compilar-el-kernel-en-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Corta lista de pasos para compilar el kernel en Debian de forma rápida y sencilla utilizando las herramientas de la distribución.</p>
<p>Bajar la versión de kernel que se quiere utilizar y ubicarlo en <em>/usr/src</em></p>
<p><code>cd /usr/src<br />
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.gz<br />
tar xvzf linux-2.6.28.tar.gz<br />
cd linux-2.6.28<br />
</code><br />
Comenzar la configuración del kernel con una interfaz hecha con ncurses. Es necesario tener instalado el paquete <em>libncurses5-dev</em>.</p>
<p><code>make menuconfig<br />
make-kpkg clean<br />
make-kpkg --initrd kernel_image kernel_headers</code></p>
<p>Instalar los paquetes de debian que se habrán creado en el directorio superior.</p>
<p><code>cd ..<br />
dpkg -i linux-image-2.6.28.7_2.6.28.7-10.00.Custom_i386.deb<br />
dpkg -i linux-headers-2.6.28.7_2.6.28.7-10.00.Custom_i386.deb</code></p>
<p>Ahora solo queda reiniciar con el nuevo kernel, no es necesario modificar nada en el gestor de arranque.</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/compilar-el-kernel-en-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Utilidades DNS</title>
		<link>http://preocupao.net/utilidades-dns/</link>
		<comments>http://preocupao.net/utilidades-dns/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 23:09:22 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bind]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[fpdns]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=152</guid>
		<description><![CDATA[Herramientas útiles para trabajar con servidores DNS. Comprobar la sintaxis del archivo de una zona: # named-checkzone preocupao.net /var/named/preocupao.net.db zone preocupao.net/IN: loaded serial 2008070900 OK Comprobar la configuración de Bind: # named-checkconf /etc/named.conf Averiguar un servidor DNS remoto: fpdns -D &#8230; <a href="http://preocupao.net/utilidades-dns/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Herramientas útiles para trabajar con servidores DNS.</p>
<p>Comprobar la sintaxis del archivo de una zona:</p>
<p><code># named-checkzone preocupao.net /var/named/preocupao.net.db<br />
zone preocupao.net/IN: loaded serial 2008070900<br />
OK</code></p>
<p>Comprobar la configuración de Bind:</p>
<p><code># named-checkconf /etc/named.conf</code></p>
<p>Averiguar un servidor DNS remoto:</p>
<p><code>fpdns -D preocupao.net<br />
fingerprint (preocupao.net, 82.194.80.30): ISC BIND 9.2.3rc1 -- 9.4.0a0 [recursion enabled]<br />
fingerprint (preocupao.net, 82.194.64.30): ISC BIND 9.2.3rc1 -- 9.4.0a0 [recursion enabled]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/utilidades-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error ejecutando apt-get update</title>
		<link>http://preocupao.net/error-ejecutando-apt-get-update/</link>
		<comments>http://preocupao.net/error-ejecutando-apt-get-update/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:25:18 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=143</guid>
		<description><![CDATA[Error que se obtiene al actualizar la lista de paquetes disponibles para ser actualizados. # apt-get update ... Des:3 http://security.debian.org stable/updates/main Packages [364kB] 99% [3 Packages gzip 0] [Esperando las cabeceras] gzip: stdin: not in gzip format Err http://security.debian.org stable/updates/main &#8230; <a href="http://preocupao.net/error-ejecutando-apt-get-update/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Error que se obtiene al actualizar la lista de paquetes disponibles para ser actualizados.</p>
<p><code># apt-get update<br />
...<br />
Des:3 http://security.debian.org stable/updates/main Packages [364kB]<br />
99% [3 Packages gzip 0] [Esperando las cabeceras]<br />
gzip: stdin: not in gzip format<br />
Err http://security.debian.org stable/updates/main Packages<br />
El subproceso gzip devolvió un código de error (1)<br />
Obj http://debian.hostalia.net stable/main Packages<br />
Descargados 388B en 0s (836B/s)<br />
Imposible obtener http://security.debian.org/dists/stable/updates/main/binary-i386/Packages.gz  El subproceso gzip devolvió un código de error (1)<br />
Leyendo lista de paquetes... Hecho<br />
<!--</code--> E: Algunos archivos de índice no se han podido descargar, se han ignorado, o se ha utilizado unos antiguos en su lugar.</code></p>
<p>O su equivalente en inglés, error que llegó por mail vía cron.<br />
<code><br />
gzip: stdin: not in gzip format<br />
Failed to fetch http://security.debian.org/dists/stable/updates/main/binary-i386/Packages.gz   Sub-process gzip returned an error code (1)<br />
E: Some index files failed to download, they have been ignored, or  old ones used instead.</code></p>
<p>La solución, mas sencilla de lo que parecía en un principio, pasa por editar el archivo con nuestros <em>sources</em>.</p>
<p><code># vim /etc/apt/sources.list</code></p>
<p>Y cambiar <em>stable</em> por <em>etch</em> o lo que corresponda a nuestra distribución dependiendo de si usamos la rama estable, en pruebas o inestable.</p>
<p>Por último, actualizar de nuevo los paquetes.</p>
<p><code># apt-get update</code></p>
<p>Si es necesario, se puede devolver a su estado original el archivo <em>sources.list</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/error-ejecutando-apt-get-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reiniciar linux sin el comando reboot</title>
		<link>http://preocupao.net/reiniciar-linux-sin-el-comando-reboot/</link>
		<comments>http://preocupao.net/reiniciar-linux-sin-el-comando-reboot/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 23:55:23 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=110</guid>
		<description><![CDATA[Cómo realizar un reinicio forzoso en linux En ocasiones especiales, mas bien complicadas, es necesario reiniciar un equipo pero no están disponibles los binarios para tal efecto, como podría ser reboot. En ese caso tenemos una sencilla alternativa. Para realizar &#8230; <a href="http://preocupao.net/reiniciar-linux-sin-el-comando-reboot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Cómo realizar un reinicio forzoso en linux</p>
<p>En ocasiones especiales, mas bien complicadas, es necesario reiniciar un equipo pero no están disponibles los binarios para tal efecto, como podría ser reboot. En ese caso tenemos una sencilla alternativa.</p>
<p>Para realizar un reinicio:</p>
<p><code>echo b &gt; /proc/sysrq-trigger</code></p>
<p>Para apagar el equipo:</p>
<p><code>echo o &gt; /proc/sysrq-trigger</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/reiniciar-linux-sin-el-comando-reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Argument list too long</title>
		<link>http://preocupao.net/argument-list-too-long/</link>
		<comments>http://preocupao.net/argument-list-too-long/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 01:09:26 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=19</guid>
		<description><![CDATA[After run rm -f * you get the error /bin/rm: Argument list too long Possible options: Use xargs. Xargs pass a list of arguments to a command. This deletes all the files listed: ls &#124;xargs rm Use find. You can &#8230; <a href="http://preocupao.net/argument-list-too-long/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After run rm -f * you get the error /bin/rm: Argument list too long</p>
<p>Possible options:</p>
<p>Use xargs. Xargs pass a list of arguments to a command. This deletes all the files listed:</p>
<p><code>ls |xargs rm</code></p>
<p>Use find. You can use the find command to make some actions with the found elements.</p>
<p><code>find . -exec rm {} \;</code></p>
<p>If you don´t remember any of the above options, always can remove the whole directory and create it again. Caution with the subfolders!</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/argument-list-too-long/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Could not connect to database for SQL SessionHandler</title>
		<link>http://preocupao.net/could-not-connect-to-database-for-sql-sessionhandler/</link>
		<comments>http://preocupao.net/could-not-connect-to-database-for-sql-sessionhandler/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 21:00:57 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Horde]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=16</guid>
		<description><![CDATA[When you try to login in Horde you see this error: A fatal error has occurred Could not connect to database for SQL SessionHandler. Details have been logged for the administrator. There are some different reasons that causes this error. &#8230; <a href="http://preocupao.net/could-not-connect-to-database-for-sql-sessionhandler/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you try to login in Horde you see this error:</p>
<p>A fatal error has occurred<br />
Could not connect to database for SQL SessionHandler.<br />
Details have been logged for the administrator.</p>
<p>There are some different reasons that causes this error. This is a checklist to solve the problem.</p>
<p><span id="more-16"></span><br />
First, check the <em>/etc/my.cnf</em> and remove <em>skip-innodb</em> if its in there.</p>
<p>Second, repair Horde database</p>
<p><code>mysqlcheck --auto-repair horde</code></p>
<p>Third, enter mysql and check what socket file is using mysql:</p>
<p><code># mysql<br />
mysql> show variables like 'socket';</code></p>
<p>You must see something like this:</p>
<p><code>socket        /var/lib/mysql/mysql.sock</code></p>
<p>Edit the config file:</p>
<p><code>vi /usr/local/cpanel/base/horde/config/conf.php</code></p>
<p>Change the following two lines from:</p>
<p><code>$conf['sql']['hostspec'] = 'localhost';<br />
$conf['sessionhandler']['params']['hostspec'] = 'localhost';</code></p>
<p>to:</p>
<p><code>$conf['sql']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';<br />
$conf['sessionhandler']['params']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/could-not-connect-to-database-for-sql-sessionhandler/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Obtener información de un certificado SSL</title>
		<link>http://preocupao.net/obtener-informacion-de-un-certificado-ssl/</link>
		<comments>http://preocupao.net/obtener-informacion-de-un-certificado-ssl/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 22:15:54 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=15</guid>
		<description><![CDATA[Para obtener la información de un certificado SSL desde la consola podemos utilizar openssl. En determinadas ocasiones si no se tiene acceso a un navegador web puede resultar complicado comprobar los datos de un certificado SSL. Esta operacion que es &#8230; <a href="http://preocupao.net/obtener-informacion-de-un-certificado-ssl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Para obtener la información de un certificado SSL desde la consola podemos utilizar openssl.</p>
<p>En determinadas ocasiones si no se tiene acceso a un navegador web puede resultar complicado comprobar los datos de un certificado SSL. Esta operacion que es trivial con cualquier navegador, puede resultar algo mas compleja desde la consola.</p>
<p><span id="more-15"></span><br />
Si tratamos de visualizar un certificado ssl con cualquiera de las herramientas habituales para mostrar texto, nos encontraremos con unas cuantas lineas con caracteres incomprensibles similares a estos:</p>
<p><code>-----BEGIN CERTIFICATE-----<br />
MIIFcDCCBFigAwIBAgIQGDFbr68WSxIWTD8wU9UAZTANBgkqhkiG9w0BAQUFADCB<br />
3DELMAkGA1UEBhMCR0IxFzAVBgNVBAoTDkNvbW9kbyBMaW1pdGVkMR0wGwYDVQQ<br />
...<br />
-----END CERTIFICATE-----</code></p>
<p>Para conocer los datos del certificado y comprobar que todo esta correcto podemos utilizar la herramienta openssl:</p>
<p><code>openssl x509 -noout -text -in www.dominio.com.crt</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/obtener-informacion-de-un-certificado-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#2002 &#8211; The server is not responding &#8211; phpmyadmin Error</title>
		<link>http://preocupao.net/2002-the-server-is-not-responding-phpmyadmin-error/</link>
		<comments>http://preocupao.net/2002-the-server-is-not-responding-phpmyadmin-error/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 21:07:53 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHPMyAdmin]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=14</guid>
		<description><![CDATA[This is a common error in cPanel, here is the fix: First edit the config file /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php Then, change the two following lines from $cfg['Servers'][$i]['socket'] = ”; $cfg['Servers'][$i]['connect_type'] = 'tcp'; to $cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock'; $cfg['Servers'][$i]['connect_type'] = 'socket'; Finish restarting mysql &#8230; <a href="http://preocupao.net/2002-the-server-is-not-responding-phpmyadmin-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a common error in cPanel, here is the fix:</p>
<p>First edit the config file /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php</p>
<p>Then, change the two following lines from</p>
<p><code>$cfg['Servers'][$i]['socket'] = ”;<br />
$cfg['Servers'][$i]['connect_type'] = 'tcp';</code></p>
<p>to</p>
<p><code>$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock';<br />
$cfg['Servers'][$i]['connect_type'] = 'socket';</code></p>
<p>Finish restarting mysql</p>
<p><code>/etc/init.d/mysql restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/2002-the-server-is-not-responding-phpmyadmin-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim error</title>
		<link>http://preocupao.net/exim-error/</link>
		<comments>http://preocupao.net/exim-error/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 19:47:30 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Exim]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/exim-error/</guid>
		<description><![CDATA[failed to open DB file /var/spool/exim/db/wait-remote_smtp: Permission denied The problem: # ll /var/spool/exim/db/wait-remote_smtp -rw-r----- 1 root root 12288 Mar 26 06:00 /var/spool/exim/db/wait-remote_smtp Easy fix: # chown mailnull.mail /var/spool/exim/db/wait-remote_smtp # ll /var/spool/exim/db/wait-remote_smtp -rw-r----- 1 mailnull mail 12288 Mar 26 06:00 /var/spool/exim/db/wait-remote_smtp]]></description>
			<content:encoded><![CDATA[<p>failed to open DB file /var/spool/exim/db/wait-remote_smtp: Permission denied</p>
<p>The problem:</p>
<p><code># ll /var/spool/exim/db/wait-remote_smtp<br />
-rw-r-----  1 root root 12288 Mar 26 06:00 /var/spool/exim/db/wait-remote_smtp</code></p>
<p>Easy fix:</p>
<p><code># chown mailnull.mail /var/spool/exim/db/wait-remote_smtp<br />
# ll /var/spool/exim/db/wait-remote_smtp<br />
-rw-r-----  1 mailnull mail 12288 Mar 26 06:00 /var/spool/exim/db/wait-remote_smtp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/exim-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

