<?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>Mis Historias &#187; Open Source</title>
	<atom:link href="http://www.pamchi.com/category/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pamchi.com</link>
	<description>Por mal ni más ya no voy a ceder ya no me vas a convencer solo yo en contra de los demás y tiemblo, te muestro los dientes y muerdo. Déjame respirar!!! Deja de lastimar!!! ¡¡¡Y te reto a que me hagas daño!!!</description>
	<lastBuildDate>Sat, 28 Jan 2012 18:43:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>MEGAUPLOAD</title>
		<link>http://www.pamchi.com/2012/01/25/megaupload/</link>
		<comments>http://www.pamchi.com/2012/01/25/megaupload/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 01:51:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[pamchi]]></category>
		<category><![CDATA[Vida]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1782</guid>
		<description><![CDATA[LOS DUEÑOS DEL MUNDO (LOS GRINGOS!!!!) NO SE DAN CUENTA QUE LO QUE ESTAN PROBOCANDO ES PERDER EL CONTROL DE TODAS LAS COMPUTADORAS DEL MUNDO QUE USAN MICROSOFT WINDOWS . . . EL DÍA QUE LOS USUARIOS NO PUEDAN SEGUIR HACIENDO USO DE LA PIRATERIA VAN A CRUZAR LAS FRONTERAS INFORMÁTICAS Y EMPEZARAN A UTILIZAR [...]]]></description>
			<content:encoded><![CDATA[<p>LOS DUEÑOS DEL MUNDO (LOS GRINGOS!!!!) NO SE DAN CUENTA QUE LO QUE ESTAN PROBOCANDO ES PERDER EL CONTROL DE TODAS LAS COMPUTADORAS DEL MUNDO QUE USAN MICROSOFT WINDOWS . . . EL DÍA QUE LOS USUARIOS NO PUEDAN SEGUIR HACIENDO USO DE LA PIRATERIA VAN A CRUZAR LAS FRONTERAS INFORMÁTICAS Y EMPEZARAN A UTILIZAR SISTEMAS LIBRES COMO GNU/LINUX . . . A LARGA VIDA AL SOFTWARE LIBRE QUE NO DEPENDE DE HACK&#8217;S, SERIALES O SITIOS COMO MEGAUPLOAD YA QUE TODO SE ENCUENTRA EN SERVIDORES 100% PUBLICOS Y LEGALES . . . (lo que si voy a extrañar son mis series y peliculas&#8230;. jejejeje pero ni modo&#8230;. no hay dos glorias&#8230;)</p>
<p><iframe width="480" height="274" src="http://www.youtube.com/embed/o0Wvn-9BXVc" frameborder="0" allowfullscreen></iframe></p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2012%2F01%2F25%2Fmegaupload%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2012/01/25/megaupload/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>funciones vi (vim)</title>
		<link>http://www.pamchi.com/2011/10/17/funciones-vi-vim/</link>
		<comments>http://www.pamchi.com/2011/10/17/funciones-vi-vim/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 22:48:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1717</guid>
		<description><![CDATA[vi &#8211; vi filename.txt vi -R filename.txt (solo lectura) Recomendacion: editar .vimrc &#8212; contenido &#8212; set opcion]]></description>
			<content:encoded><![CDATA[<p>vi<br />
&#8211;</p>
<p>vi filename.txt<br />
vi -R filename.txt (solo lectura)</p>
<p>Recomendacion: editar .vimrc<br />
&#8212; contenido &#8212;<br />
set opcion <&#8212;- una linea por cada opcion</p>
<p>Ctr+F  Adelanta una pagina<br />
Ctr+D  Adelanta 1/2 pagina<br />
Ctr+B  Retrocede una pagina<br />
Ctr+U  Retrocede 1/2 pagina<br />
Gtr+G  Informacion de posicion actual<br />
Shift ZZ<br />
Shift A &#8211; Cursor al final de la linea APPEND</p>
<p>:set showmode (Muestra el modo actual)<br />
:set nu       (Agrega numero de linea)<br />
:w   Guardar Cambios<br />
:wq  Guardar Cambios y Sale<br />
 <img src='http://www.pamchi.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' />    Guardar Cambios y Sale<br />
:q   Salir<br />
:q!  Salir ignorando modificaciones<br />
:#   Salta al # linea<br />
:$   Salta al final del doc<br />
:s/texto/nuevotexto replaza hasta la 1a ocurrencia<br />
:s/texto/nuevotexto/g replaza en toda la linea<br />
:a,bs/texto/nuevotexto/g replaza en toda la linea<br />
desde la linea #a hasta la #b<br />
:%s/texto/nuevotexto remplaza en todo el doc</p>
<p>i = Insert<br />
a = Append<br />
o = Agregar linea despues del cursor<br />
O = Agregar linea antes del cursor<br />
u = Undo / deshacer ultima accion<br />
Ctr+R = Redo<br />
r = Remplazar caracter<br />
J = Une lineas actual con siguiente<br />
$ = Mueve Cursor al Final de linea<br />
0 = Mueve Cursor al Final de linea<br />
#x = Eliminar caracter<br />
#dw = Elimina palabra<br />
d$ = Elimina del cursor hasta el fin de linea<br />
#dd = Elimina la linea actual<br />
#yw = Copiar palabra<br />
#yy = Copiar linea actual<br />
#p  = Pegar despues del cursor<br />
#P  = Pegar antes del cursor<br />
/texto = Buscar texto<br />
w,b = Moverse por palabras<br />
),( = Moverse por oraciones<br />
},{ = moverse por parrafos</p>
<p>n = ir a siguiente resultado<br />
N = ir a anterior resultado</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F10%2F17%2Ffunciones-vi-vim%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/10/17/funciones-vi-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt-get con proxy en ubuntu / debian</title>
		<link>http://www.pamchi.com/2011/08/09/apt-get-con-proxy-en-ubuntu-debian/</link>
		<comments>http://www.pamchi.com/2011/08/09/apt-get-con-proxy-en-ubuntu-debian/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 05:30:39 +0000</pubDate>
		<dc:creator>pamchi</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1696</guid>
		<description><![CDATA[en el archivo /etc/apt/apt.conf Agregar las siguientes líneas Acquire::http::proxy "http://192.168.0.1:3128/"; Acquire::https::proxy "https://192.168.0.1:3128/"; Facebook]]></description>
			<content:encoded><![CDATA[<p>en el archivo</p>
<pre>/etc/apt/apt.conf </pre>
<p>Agregar las siguientes líneas</p>
<pre>Acquire::http::proxy "http://192.168.0.1:3128/";
Acquire::https::proxy "https://192.168.0.1:3128/";</pre>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F08%2F09%2Fapt-get-con-proxy-en-ubuntu-debian%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/08/09/apt-get-con-proxy-en-ubuntu-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>awstats</title>
		<link>http://www.pamchi.com/2011/07/08/awstats/</link>
		<comments>http://www.pamchi.com/2011/07/08/awstats/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 23:10:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1685</guid>
		<description><![CDATA[http://www.debian-administration.org/articles/277 + http://www.debianadmin.com/apache-log-file-analyzer-using-awstats-in-debian.html Facebook]]></description>
			<content:encoded><![CDATA[<p>http://www.debian-administration.org/articles/277</p>
<p>+</p>
<p>http://www.debianadmin.com/apache-log-file-analyzer-using-awstats-in-debian.html</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F07%2F08%2Fawstats%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/07/08/awstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>habemus Ubuntu/Linux Natty Narwhal (11.04) ! ! !</title>
		<link>http://www.pamchi.com/2011/04/28/habemus-ubuntulinux-natty-narwhal-11-04/</link>
		<comments>http://www.pamchi.com/2011/04/28/habemus-ubuntulinux-natty-narwhal-11-04/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 18:17:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1642</guid>
		<description><![CDATA[Y vamos a dar inicio a una nueva tradición; a partir de ahora vamos a crear una especie de &#8220;mirror&#8221; para las distribuciones de debian y de ubuntu en este humilde servidor. Así que hoy le damos la mas cordial bienvenida a: Ubuntu 11.04 Natty Narwhal LINK DE DESCARGA PARA LA VERSIÓN 32 BITS LINK [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pamchi.com/wp-content/uploads/2011/04/Ubuntu-11-narwhal-narwhal.jpg"><img class="aligncenter size-medium wp-image-1643" title="Ubuntu-11-narwhal-narwhal" src="http://www.pamchi.com/wp-content/uploads/2011/04/Ubuntu-11-narwhal-narwhal-300x186.jpg" alt="" width="300" height="186" /></a><br />
Y vamos a dar inicio a una nueva tradición; a partir de ahora vamos a crear una especie de &#8220;mirror&#8221; para las distribuciones de debian y de ubuntu en este humilde servidor.</p>
<p>Así que hoy le damos la mas cordial bienvenida a:</p>
<p><strong>Ubuntu 11.04 Natty Narwhal</strong><br />
<a href="http://www.pamchi.com/downloads/ubuntu-11.04-desktop-i386.iso" target="_blank"> LINK DE DESCARGA PARA LA VERSIÓN 32 BITS</a><br />
<a href="http://www.pamchi.com/downloads/ubuntu-11.04-desktop-amd64.iso" target="_blank"> LINK DE DESCARGA PARA LA VERSIÓN 64 BITS</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F04%2F28%2Fhabemus-ubuntulinux-natty-narwhal-11-04%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/04/28/habemus-ubuntulinux-natty-narwhal-11-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>20 años de linux&#8230;.. HAPPY B-DAY!!!!!</title>
		<link>http://www.pamchi.com/2011/04/12/20-anos-de-linux-happy-b-day/</link>
		<comments>http://www.pamchi.com/2011/04/12/20-anos-de-linux-happy-b-day/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 16:10:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1622</guid>
		<description><![CDATA[Just a hobby, won&#8217;t be anyting big&#8230;&#8230;. mjm&#8230;&#8230;.. Facebook]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/5ocq6_3-nEw" frameborder="0" allowfullscreen></iframe></p>
<p>Just a hobby, won&#8217;t be anyting big&#8230;&#8230;. mjm&#8230;&#8230;..</p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F04%2F12%2F20-anos-de-linux-happy-b-day%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/04/12/20-anos-de-linux-happy-b-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Que de tu vida amigo&#8230; tu seas él único actor&#8230;</title>
		<link>http://www.pamchi.com/2011/03/13/que-de-tu-vida-amigo-tu-seas-el-unico-actor/</link>
		<comments>http://www.pamchi.com/2011/03/13/que-de-tu-vida-amigo-tu-seas-el-unico-actor/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 23:21:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Música]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[pamchi]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Rock and Roll]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1560</guid>
		<description><![CDATA[Hace ya algún tiempo que no compartía música de esta banda española&#8230; sus letras es una invitación a la libertad de pensamiento, de sentimiento y de conductas&#8230; creo que es el mayor regalo que pudo habernos hecho el creador&#8230; que nacieramos en un mundo libre, donde somos dueños de nuestras decisiones y por lo tanto [...]]]></description>
			<content:encoded><![CDATA[<p><iframe title="YouTube video player" width="425" height="349" src="http://www.youtube.com/embed/eKbCeoJFMU8" frameborder="0" allowfullscreen></iframe></p>
<p>Hace ya algún tiempo que no compartía música de esta banda española&#8230; sus letras es una invitación a la libertad de pensamiento, de sentimiento y de conductas&#8230; creo que es el mayor regalo que pudo habernos hecho el creador&#8230; que nacieramos en un mundo libre, donde somos dueños de nuestras decisiones y por lo tanto de nuestro destino&#8230; no creo que haya ninguna estrella que trace el curso de nuestras vidas; mas sin embargo creo que están en el cielo para que las usemos como un mapa de ubicación.</p>
<p>Por cierto ha sido un fin de semana de arduo trabajo . . . pero la mejor recompensa está cuando podamos encender nuestr@s equipos y ver que todos los sistemas estén funcionando adecuadamente (vtiger y http-request)<br />
<a href="http://www.pamchi.com/wp-content/uploads/2011/03/DSC00249.jpg"><img src="http://www.pamchi.com/wp-content/uploads/2011/03/DSC00249-300x225.jpg" alt="" title="DSC00249" width="300" height="225" class="aligncenter size-medium wp-image-1561" /></a></p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F03%2F13%2Fque-de-tu-vida-amigo-tu-seas-el-unico-actor%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/03/13/que-de-tu-vida-amigo-tu-seas-el-unico-actor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error de conexiones a un servidor / nf_conntrack: table full, dropping packet</title>
		<link>http://www.pamchi.com/2011/02/04/error-de-conexiones-a-un-servidor-nf_conntrack-table-full-dropping-packet/</link>
		<comments>http://www.pamchi.com/2011/02/04/error-de-conexiones-a-un-servidor-nf_conntrack-table-full-dropping-packet/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 01:14:53 +0000</pubDate>
		<dc:creator>pamchi</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1466</guid>
		<description><![CDATA[Durante una semana pasamos buscando soluciones para este problema; les voy a describir la situación: Queríamos hacer una conexión desde un servidor de aplicaciones a otro servidor en el que teníamos nuestro servidor de base de datos (mysql) y nos daba el siguiente error: reading initial communication packet', system error: 111 El asunto es que [...]]]></description>
			<content:encoded><![CDATA[<p>Durante una semana pasamos buscando soluciones para este problema; les voy a describir la situación:</p>
<p>Queríamos hacer una conexión desde un servidor de aplicaciones a otro servidor en el que teníamos nuestro servidor de base de datos (mysql) y nos daba el siguiente error:</p>
<pre>reading initial communication packet', system error: 111</pre>
<p>El asunto es que no nos dejaba conectarnos, revisamos la configuración / log&#8217;s del servidor de aplicaciones y no encontramos ningún otro indicio; buscamos (hablo en plural porque fuimos 3 (el desarrollador y el director de TI y yo)) como locos&#8230;. degenerados&#8230;. desquisiados&#8230;.. por todo el internet cual podía ser la solución y no encontrabamos nada que nos pudiera servir, incluso llegamos a pensar que podía ser un bug de debian el culpable&#8230;&#8230; (a ese nivel de locura llevamos conclusiones).</p>
<p>Nos pasamos a la base de datos y modificamos cuanto valor se nos puso enfrente y no logramos nada . . .</p>
<p>En conclusión todo estaba perdido y nuestra aplicación no estaba funcionando exitosamente <img src='http://www.pamchi.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Revisando los log&#8217;s del servidor de la base de datos encontré que el siguiente error se repetía continuamente:</p>
<pre>nf_conntrack: table full, dropping packet</pre>
<p>Lo que sucede es que el sistema operativo lleva una tabla en la que almacena la información de las conexiones abiertas del sistema en general (no importa si es en la eth0, eth1, etc), y esa tabla tiene una capacidad máxima de 16,384 conexiones, por lo tanto lo que procede es aumentarle la capacidad de la siguiente manera:</p>
<p>Editamos el archivo /etc/sysctl.conf y agregamos la siguiente línea:</p>
<pre>net.ipv4.netfilter.ip_conntrack_max = 32768</pre>
<p>Donde le indicamos que ahora el tamaño máximo será de 32,768 conexiones.</p>
<p>Ahora para aplicar los cambios: </p>
<pre>sysctl -p</pre>
<p>Y procedemos a revisar que los cambios hayan sido aplicados</p>
<pre>/proc/sys/net/netfilter/nf_conntrack_max</pre>
<p>Y listo . . .  (eso hace una semana nos hubiera ahorrado un montón de dolores de cabeza :0) ) </p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F02%2F04%2Ferror-de-conexiones-a-un-servidor-nf_conntrack-table-full-dropping-packet%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/02/04/error-de-conexiones-a-un-servidor-nf_conntrack-table-full-dropping-packet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Generar certificados SSL con openssl (Apache + mod_ssl)</title>
		<link>http://www.pamchi.com/2011/01/23/generar-certificados-ssl-con-openssl-apache-mod_ssl/</link>
		<comments>http://www.pamchi.com/2011/01/23/generar-certificados-ssl-con-openssl-apache-mod_ssl/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 02:10:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Seguridad]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1452</guid>
		<description><![CDATA[Tomado de: http://slacksite.com/apache/certificate.php Y lo he colocado en este espacio a manera de recordatorio&#8230;. Saludos&#8230;. Introduction This document is intended to be a quick guide to generating and installing an SSL certificate on an Apache web server with the mod_ssl module. While this is not an overly difficult process, it does involve running several long [...]]]></description>
			<content:encoded><![CDATA[<p>Tomado de: <a href="http://slacksite.com/apache/certificate.php">http://slacksite.com/apache/certificate.php</a></p>
<p>Y lo he colocado en este espacio a manera de recordatorio&#8230;.</p>
<p>Saludos&#8230;.</p>
<p><strong>Introduction</strong><br />
This document is intended to be a quick guide to generating and installing an SSL certificate on an Apache web server with the mod_ssl module. While this is not an overly difficult process, it does involve running several long commands with numerous options. This document should be all that you need to walk you through the process of generating the certificate and installing it in your web server.<br />
This document does not attempt to discuss compiling or installing Apache and mod_ssl. For detailed instructions on that topic, please see &#8220;Building Apache with mod_ssl and Other Modules&#8221;. This document also does not attempt to discuss detailed configuration of SSL hosts in Apache. Details will be provided on setting up a basic SSL virtual host that should work in nearly all standard circumstances. Ralf Engelschall, the author of mod_ssl, maintains excellent documentation at http://www.modssl.org/docs. For information on more advanced configurations or special situations, please refer to the full documentation. In addition, the openssl toolkit provides fairly extensive man pages, which are also available in HTML format at http://www.openssl.org/docs/</p>
<p><span id="more-1452"></span></p>
<p><strong>Brief SSL Primer</strong><br />
This section will serve as a very brief introduction to SSL, the Secure Socket Layer. Cryptography is a very extensive topic which literally fills volumes of texts. The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process. There may be some small inaccuracies in an effort to present the information in the easiest possible format.<br />
Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).<br />
SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server&#8217;s private key, it can be decrypted only using its corresponding public key, ensuring that the data only could have come from the server.<br />
If SSL utilizes public key cryptography to encrypt the data stream traveling over the Internet, why is a certificate necessary? The technical answer to that question is that a certificate is not really necessary&#8211;the data is secure and cannot easily be decrypted by a third party. However, certificates do serve a crucial role in the communication process. The certificate, signed by a trusted Certificate Authority (CA), ensures that the certificate holder is really who he claims to be. Without a trusted signed certificate, your data may be encrypted, however, the party you are communicating with may not be whom you think. Without certificates, impersonation attacks would be much more common.</p>
<p><strong>Generating a Private Key and CSR</strong><br />
The openssl toolkit is used to generate an RSA Private Key and CSR (Certificate Signing Request). It can also be used to generate self-signed certificates which can be used for testing purposes or internal usage. The utility used to do all of these tasks is known simply as openssl. It should be installed in the /usr/local/ssl/bin directory. You may want to add this directory to your PATH, or copy or link the openssl utility to a directory that is already in your PATH so that you do not have to type the full path to the executable. The examples below will assume that openssl is in a location that is accessible to you without using the full path to the command.<br />
The first step is to create your RSA Private Key. This key is a 1024 bit RSA key which is encrypted using Triple-DES and stored in a PEM format so that it is readable as ASCII text. We will use several files as random seed enhancers which will help to make the key more secure. Text files that have been compressed with a utility such as gzip are good choices. The key is generated using the following command, where file1:file2:etc represents the random compressed files.</p>
<pre>$ openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024</pre>
<p>The command will prompt you for a pass-phrase and then store the key in the file server.key. It is critical that the pass-phrase be secure and not forgotten. If either the key is lost, or the pass-phrase is forgotten, the certificate will be useless! It cannot be stressed enough how important the private key is to the certificate. If the private key and pass-phrase are compromised, the certificate will have to be revoked, costing you the price of the certificate all over again if you have paid an authority for the certificate. It may be a wise idea to back this file up to secure media, such as tape or diskette.<br />
One unfortunate side-effect of the pass-phrased private key is that Apache will ask for the pass-phrase each time the web server is started. Obviously this is not necessarily convenient as someone will not always be around to type in the pass-phrase, such as after a reboot or crash. mod_ssl includes the ability to use an external program in place of the built-in pass-phrase dialog, however, this is not necessarily the most secure option either. It is possible to remove the Triple-DES encryption from the key, thereby no longer needing to type in a pass-phrase. If the private key is no longer encrypted, it is critical that this file only be readable by the root user! If your system is ever compromised and a third party obtains your unencrypted private key, the corresponding certificate will need to be revoked. With that being said, use the following command to remove the pass-phrase from the key:</p>
<pre>$ openssl rsa -in server.key -out server.pem</pre>
<p>Once the private key is generated a Certificate Signing Request can be generated. The CSR is then used in one of two ways. Ideally, the CSR will be sent to a Certificate Authority, such as Thawte or Verisign who will verify the identity of the requestor and issue a signed certificate. The second option is to self-sign the CSR, which will be demonstrated in the next section.<br />
During the generation of the CSR, you will be prompted for several pieces of information. These are the X.509 attributes of the certificate. One of the prompts will be for &#8220;Common Name (e.g., YOUR name)&#8221;. It is important that this field be filled in with the fully qualified domain name of the server to be protected by SSL. If the website to be protected will be https://www.server.com, then enter www.server.com at this prompt. The command to generate the CSR is as follows:</p>
<pre>$ openssl req -new -key server.key -out server.csr</pre>
<p>A sample CSR generation session is shown below, with sample responses shown in bold:</p>
<pre>$ openssl req -new -key server.key -out server.csr</pre>
<p>Using configuration from /usr/local/ssl/openssl.cnf<br />
Enter PEM pass phrase:Enter pass phrase here<br />
You are about to be asked to enter information that will be incorporated into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank.<br />
For some fields there will be a default value, If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;</p>
<pre>Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New Hampshire
Locality Name (eg, city) []:Nashua
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Domain.com, Inc.
Organizational Unit Name (eg, section) []:.

Common Name (eg, YOUR name) []:www.domain.com
Email Address []:webmaster@domain.com

Please enter the following 'extra' attributes to be sent with your certificate request
A challenge password []:
An optional company name []:</pre>
<p><strong>Generating a Self-Signed Certificate<br />
</strong> At this point you will need to generate a self-signed certificate because you either don&#8217;t plan on having your certificate signed by a CA, or you wish to test your new SSL implementation while the CA is signing your certificate. In my experience dealing with Thawte, it can take up to a week or more before receiving your signed certificate. The time it takes to receive the certificate will vary based on how quickly they receive your required documentation. This temporary certificate will generate an error in the client browser to the effect that the signing certificate authority is unknown and not trusted.<br />
To generate a temporary certificate which is good for 60 days, issue the following command:</p>
<pre>$ openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt</pre>
<p><strong>Installing the Private Key and Certificate<br />
</strong> When Apache with mod_ssl is installed, it creates several directories in the Apache config directory. The location of this directory will differ depending on how Apache was compiled. If using my instructions on compiling Apache, the config directory is /usr/local/apache/etc. The directories mod_ssl creates include ssl.crt, ssl.csr, and ssl.key. These are good locations to store server certificates, CSRs, and private keys, respectively. If there will be multiple SSL enabled hosts on one server, it may be good practice to name the files with the fully qualified domain name of the SSL enabled host.<br />
When adding SSL enabled virtualhosts to the web server, I prefer to keep all of the SSL virtualhosts in a separate file. This insures that all SSL hosts can be easily found in one location and helps to keep the httpd.conf file from growing too large. The SSL virtualhosts will be kept in a file called ssl.conf. In order for Apache to recognize and parse this file, it must be included in the httpd.conf file with the following directive:</p>
<pre>Include /usr/local/apache/etc/ssl.conf</pre>
<p><strong>Configuring SSL Enabled Virtual Hosts<br />
</strong> Extensive examples of SSL configurations for a virtualhost are included as part of the /usr/local/apache/etc/httpd.conf.default file installed with mod_ssl. Please refer to this file and to the mod_ssl documentation for more detailed information on configuration options. A basic SSL enabled virtualhost will appear as follows in the ssl.conf file:</p>
<pre># SSL Virtual Hosts

ServerAdmin webmaster@domain.com
DocumentRoot /usr/local/apache/share/htdocs
ServerName www.domain.com
ScriptAlias /cgi-bin/ /usr/local/apache/share/htdocs/cgi-bin/
SSLEngine on
SSLCertificateFile /usr/local/apache/etc/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/etc/ssl.key/server.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /usr/local/apache/var/log/ssl_request_log \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</pre>
<p>This will create an SSL virtualhost named www.domain.com, which is accessed via port 443 (the standard port for https) on the default IP address of the web server. It is possible to add as many additional virtualhosts as there are IP addresses that the web server listens to. Simply add additional virtualhost blocks inside of the  and  tags. Due to the nature of the SSL encryption of the HTTP traffic, it is NOT possible to have name-based (HTTP1.1) SSL virtual hosts. To create a new SSL virtualhost on a different IP address, simply replace _default_ with the IP address of the virtualhost.<br />
After adding the virtualhost to the ssl.conf file, Apache must be killed and restarted in order for it to recognize the new virtualhost. Unfortunately, this is one of the rare instances where a simple HUP signal will not work. After restarting the server, depending on whether the encrypted or unencrypted key was used, Apache will prompt you for the pass-phrase(s) of the SSL virtualhost(s). Enter the pass-phrase(s) and the web server will start.<br />
Now, point your favorite browser to the new virtualhost you just created, remembering to use https:// instead of http://, and you should be greeted with a warning dialog if you are using the self-signed certificate. Acknowledge the dialog and the page will continue to load, protected by SSL. The status bar of your browser should be graced by the &#8216;lock&#8217; icon, which signifies the page is protected via SSL. <strong>This is all there is to it!</strong></p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F01%2F23%2Fgenerar-certificados-ssl-con-openssl-apache-mod_ssl%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/01/23/generar-certificados-ssl-con-openssl-apache-mod_ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creación de usuarios en mysql</title>
		<link>http://www.pamchi.com/2011/01/18/creacion-de-usuarios-en-mysql/</link>
		<comments>http://www.pamchi.com/2011/01/18/creacion-de-usuarios-en-mysql/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 21:10:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to's]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.pamchi.com/?p=1443</guid>
		<description><![CDATA[FORMA 1: mysql&#62; GRANT SELECT, INSERT ON test.* TO 'adolfo'@'localhost' IDENTIFIED BY 'pass_adolfo'; FORMA 2: mysql&#62; CREATE USER 'fernando'@'localhost' IDENTIFIED BY 'fer_pass'; FORMA 3: INSERT INTO user VALUES('localhost','mariano',PASSWORD('pass_mariano'),'Y','Y', 'N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N', 'N','N','N','','','','',0,0,0,0); NOTA: No sirve de nada crear un usuario si no le asignamos los permisos correspondientes en las bases/tablas necesarias. GRANT ALL ON test.* TO 'adolfo'@'%' [...]]]></description>
			<content:encoded><![CDATA[<p>FORMA 1:</p>
<pre>mysql&gt; GRANT SELECT, INSERT ON test.* TO 'adolfo'@'localhost' IDENTIFIED BY 'pass_adolfo';</pre>
<p>FORMA 2:</p>
<pre>mysql&gt; CREATE USER 'fernando'@'localhost' IDENTIFIED BY 'fer_pass';</pre>
<p>FORMA 3:</p>
<pre>INSERT INTO user VALUES('localhost','mariano',PASSWORD('pass_mariano'),'Y','Y',
'N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N',
'N','N','N','','','','',0,0,0,0);</pre>
<p>NOTA:<br />
No sirve de nada crear un usuario si no le asignamos los permisos correspondientes en las bases/tablas necesarias.</p>
<pre>GRANT ALL ON test.* TO 'adolfo'@'%' IDENTIFIED BY 'pass_adolfo';</pre>
<p>NOTA2:<br />
También debemos tomar en cuenta que siempre despues de un cambio debemos hacer un reload de los permisos:</p>
<pre>FLUSH PRIVILEGES;</pre>
<p>Fuente: <a href="http://cambrico.net/mysql/como-crear-un-usuario-en-mysql-3-formas-diferentes">http://cambrico.net</a></p>
<div class="fullcircle-social-links" style="display: block;"><div class="fullcircle-linkshare"><a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.pamchi.com%2F2011%2F01%2F18%2Fcreacion-de-usuarios-en-mysql%2F" class="fb_share_button"  target="_blank" style="text-decoration:none;">Facebook</a></div></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.pamchi.com/2011/01/18/creacion-de-usuarios-en-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

