﻿<?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/tag/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>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>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>Unable to create backup session: Specified file is not accessible</title>
		<link>http://preocupao.net/unable-to-create-backup-session-specified-file-is-not-accessible/</link>
		<comments>http://preocupao.net/unable-to-create-backup-session-specified-file-is-not-accessible/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 21:00:28 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/?p=17</guid>
		<description><![CDATA[This error happens in Plesk when you try to make a backup from the web interface. The cause is that Plesk can´t write in the temporal folder specified to storage backups because the owner is root: ll /var/lib/psa/dumps/ drwx------ 9 &#8230; <a href="http://preocupao.net/unable-to-create-backup-session-specified-file-is-not-accessible/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This error happens in Plesk when you try to make a backup from the web interface.</p>
<p>The cause is that Plesk can´t write in the temporal folder specified to storage backups because the owner is root:</p>
<p><code>ll /var/lib/psa/dumps/<br />
drwx------  9 root root   4096 Apr  1 14:21 tmp</code></p>
<p>To fix this change the ownership of the folder:</p>
<p><code>chown psaadm.psaadm /var/lib/psa/dumps/tmp</code></p>
<p>Now you can do backups in Plesk.</p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/unable-to-create-backup-session-specified-file-is-not-accessible/feed/</wfw:commentRss>
		<slash:comments>0</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>
		<item>
		<title>Can&#039;t do setuid (cannot exec sperl)</title>
		<link>http://preocupao.net/cant-do-setuid-cannot-exec-sperl/</link>
		<comments>http://preocupao.net/cant-do-setuid-cannot-exec-sperl/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 20:07:59 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.preocupao.net/cant-do-setuid-cannot-exec-sperl/</guid>
		<description><![CDATA[If running a perl script you get an error like this: Can't do setuid (cannot exec sperl) In Debian install perl-suid apt-get install perl-suid In Centos install perl-suidperl yum install perl-suidperl]]></description>
			<content:encoded><![CDATA[<p>If running a perl script you get an error like this:</p>
<p><code>Can't do setuid (cannot exec sperl)</code></p>
<p>In Debian install perl-suid</p>
<p><code>apt-get install perl-suid</code></p>
<p>In Centos install perl-suidperl</p>
<p><code>yum install perl-suidperl</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/cant-do-setuid-cannot-exec-sperl/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHPMyAdmin error with cPanel</title>
		<link>http://preocupao.net/phpmyadmin-error-with-cpanel/</link>
		<comments>http://preocupao.net/phpmyadmin-error-with-cpanel/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 20:00:48 +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/phpmyadmin-error-with-cpanel/</guid>
		<description><![CDATA[Existing configuration file (./config.inc.php) is not readable. This problem happens when you try to log in PHPMyAdmin in this scenario: lsattr /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php ----i-------- config.inc.php ls -l /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php -rwx------ 1 cpanel cpanel 36109 Nov 10 2006 config.inc.php The solution: chattr -i &#8230; <a href="http://preocupao.net/phpmyadmin-error-with-cpanel/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Existing configuration file (./config.inc.php) is not readable.</p>
<p>This problem happens when you try to log in PHPMyAdmin in this scenario:</p>
<p><code>lsattr /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php<br />
----i-------- config.inc.php<br />
ls -l /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php<br />
-rwx------ 1 cpanel cpanel 36109 Nov 10 2006 config.inc.php</code></p>
<p>The solution:</p>
<p><code>chattr -i /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php<br />
chgrp cpanel-phpmyadmin /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php</code></p>
]]></content:encoded>
			<wfw:commentRss>http://preocupao.net/phpmyadmin-error-with-cpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

