<?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>Desert Zarzamora</title>
	<atom:link href="http://zarzamora.com.mx/feed" rel="self" type="application/rss+xml" />
	<link>http://zarzamora.com.mx</link>
	<description>However, there is no real definition of a desert.</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:22:36 +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>Aplicaciones Qt en VNC y en pantalla local</title>
		<link>http://zarzamora.com.mx/archivo-historico/1257</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1257#comments</comments>
		<pubDate>Mon, 30 Jan 2012 23:22:36 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beagle]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1257</guid>
		<description><![CDATA[The QVNCServer is not a full VNC server, but is a Qt display driver where the output is made available as a VNC Server on the network interface. The &#8220;VNC server&#8221; is not a separate process, and is simpler than a full VNC server in that it can only handle 1 VNC client at a [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>The QVNCServer is not a full VNC server, but is a Qt display driver where the output is made available as a VNC Server on the network interface. The &#8220;VNC server&#8221; is not a separate process, and is simpler than a full VNC server in that it can only handle 1 VNC client at a time and it only supports VNC clients that connect with a depth of 32bpp. </em></p></blockquote>
<p>Para lanzar una aplicación solo en VNC:</p>
<blockquote>
<pre><code>  appname -qws -display "VNC::"   appname -qws -display "VNC::size=640x480:depth=32:0" </code></pre>
</blockquote>
<p>Para verla en VNC y tambien en el linux frambefuffer (/dev/fbo) en este caso el driver de pantalla es sm501:</p>
<blockquote>
<pre><code>  appname -qws -display "Multi: sm501: VNC::" </code></pre>
</blockquote>
<p>(Deben usarse doble dos-puntos para VNC  si no se da argumento)</p>
<p>Se pueden lanzar varios VNC&#8217;s uno para cada aplicación en diferentes puertos:</p>
<pre>
appname1 -qws                   --renders to the local display  
appname2 -qws -display VNC::0   --renders to VNC port 5900  
appname3 -qws -display VNC::1   --renders to VNC port 5901  
appname4 -qws -display VNC::2   --renders to VNC port 5902</pre>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1257/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Beagleboard bootargs a prueba de tontos</title>
		<link>http://zarzamora.com.mx/archivo-historico/1252</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1252#comments</comments>
		<pubDate>Fri, 27 Jan 2012 23:12:55 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1252</guid>
		<description><![CDATA[Esto es un volcado de printenv para tener bootargs que arrancan desde mmc o bien desde nand de manera automática. OMAP3 beagleboard.org # printenv bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi bootdelay=10 baudrate=115200 loadaddr=0x82000000 console=ttyS2,115200n8 vram=12M [...]]]></description>
			<content:encoded><![CDATA[<p>Esto es un volcado de printenv para tener bootargs que arrancan desde mmc o bien desde nand de manera automática.</p>
<pre>OMAP3 beagleboard.org # printenv
bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi
bootdelay=10
baudrate=115200
loadaddr=0x82000000
console=ttyS2,115200n8
vram=12M
<strong>dvimode</strong>=1024x768MR-16@60
defaultdisplay=dvi
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
mmcargs=setenv bootargs console=${console} vram=${vram} omapfb.mode=dvi:${<strong>dvimode</strong>} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}
nandargs=setenv bootargs console=${console} vram=${vram} omapfb.mode=dvi:${<strong>dvimode</strong>} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}
stdin=serial
stdout=serial
stderr=serial
dieid#=776200040000000004037f660701701e

Environment size: 1160/131068 bytes</pre>
<p>Algunas otras resoluciones de pantalla posibles son (<a href="http://elinux.org/BeagleBoardFAQ#Display_resolutions_.231">sacadas de aqui</a>):</p>
<ul>
<li>omapfb.mode=dvi:1024x768MR-16@60</li>
<li>omapfb.mode=dvi:1280x720MR-16@60 (for 720p HDTV with 1:1 pixel mapping)</li>
<li>omapfb.mode=dvi:1280x1024MR-16@60 (tested on revB7, actual output is 57MHZ and may not work on some devices)</li>
<li>omapfb.mode=dvi:1360x768MR-16@60 (works nice on 720p HDMI TV which crops edges due to overscan)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qt para Beagleboard</title>
		<link>http://zarzamora.com.mx/archivo-historico/1233</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1233#comments</comments>
		<pubDate>Thu, 26 Jan 2012 23:20:12 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1233</guid>
		<description><![CDATA[Al incio no tenia idea de que cosa era un toolchain o para qué servía. Ahora entiendo que es el conjunto de herramientas para compilar para plataformas que no son la misma en la que estas desarrollando. Obvio nadie va a usar una Beagleboard como su workstation, desarrollar y compilar ahi mismo, eso seria simple, [...]]]></description>
			<content:encoded><![CDATA[<p>Al incio no tenia idea de que cosa era un toolchain o para qué servía. Ahora entiendo que es el conjunto de herramientas para compilar para plataformas que no son la misma en la que estas desarrollando. Obvio nadie va a usar una Beagleboard como su workstation, desarrollar y compilar ahi mismo, eso seria simple, pero tremendamente lento (peor si fuera una Raspberry Pi). Lo mejor es usar tu compu (x86) y compilar usando un <em>toolchain</em> para la Beagle (ARM). Por eso es importante el toolchain.</p>
<p>Lo más facil es crearte <a title="Narcissus Beagleboard" href="http://narcissus.angstrom-distribution.org/" target="_blank">una imágen de Beagle a la medida usando Narcissus</a>. No te fijes en que la página de Angstrom esta fea, ni en que la actualizan 1 vez cada año, el software sirve muy bien y no esta obsoleto ni abandonado pues los paquetes de opkg se actualizan con frecuencia. Baja tu Angstrom, instálalo en tu Beagle y haz que corra, hay tutoriales para eso. Tambien hay tutoriales para hacer red via usb con g_ether.</p>
<h2>Instala el toolchain de Angstrom</h2>
<p>Es fácil, se descomprime y ya. Yo usé la versión <em>angstrom-2011.03-i686-linux-armv5te-linux-gnueabi-toolchain.tar.bz2</em> que no trae Qt, obvio pq yo instalaré una versión más nueva, mide como 40 o 50 megas.</p>
<pre># cd /
# tar -jxvf /tmp/angstrom-2011.03-i686-linux-armv5te-linux-gnueabi-toolchain.tar.bz2</pre>
<p>No temas, no ensuciará el sistema, solo instalará algunas cosas en /usr/local/angstrom y otras en /var/lib/opkg/, puedes usar <em>mc</em> para indagar si es que tienes curiosidad.</p>
<p>Hay que bajar Qt, yo usé la version estable mas nueva (4.8.0) pero las instrucciones sirven para cualquier versión y pronto saldrá Qt 5 y entonces todos querran rehacer este turorial para Raspberry Pi, que es casi igual que para Beagle.</p>
<p>Cuidado, esta compilación <strong>no usará OpenGL ES</strong> 2.0 (porque aun no se como hacerlo bien, jeje).</p>
<h2>Compilando Qt</h2>
<p>Detalles de Qt:</p>
<ul>
<li>No documentación ni ejemplos ni traducciones, etc. Eso lo tienes en tu versión de escritorio.</li>
<li>Quitamos muchas otras cosas inútiles como cups, gtk, y soporte Qt3.</li>
<li>Soporte para ratón incluído pues esta versión ejecutará sin X11/Xorg</li>
<li>QWS y soporte para linux framebuffer</li>
<li>Servidor integrado de pantalla remota VNC para que puedas ver lo que sale en la beagle desde tu PC.
<pre>/opt/miApp/bin/miApp -qws -display VNC:0</pre>
</li>
<li>¡Multimedia!</li>
<li>Scripting ¡y QML!</li>
<li>No WebKit para acelerar la compilación, aunque puedes incluirlo si lo  necesitas.</li>
<li>PNG, JPG, TIFF y MNG directo dentro de Qt</li>
</ul>
<h3>Compilar Qt para ARM</h3>
<p>Se necesita un mkspec especial. Esto es simplemente una receta que le dice al compilador la manera correcta de compilar Qt para ARM. El source (.tar.gz) o tu clon de Qt trae una carpeta llamada mkspecs, ahi estan organizados muchos. Crearemos uno nuevo dentro de la subcarpeta qws.</p>
<h4>Crear un makespec para la Beagle</h4>
<p>Crear el directorio [qt-source]/mkspecs/qws/linux-DM3730-g++  el nombre lo copié de otro tutorial (por eso dice DM3730), es irrelevante así que déjalo tal cual para que puedas hacer copy/paste de todo lo que sigue.</p>
<pre># cd mkspecs/qws
# mkdir linux-DM3730-g++ 
# cd linux-DM3730-g++</pre>
<p>Y ahi crear 2 archivos con el siguiente contenido:</p>
<p>Archivo <strong>mkspecs/qws/linux-DM3730-g++/qmake.conf</strong>, 21 líneas efectivas (contando comentarios e ignorando lineas vacías). Ignora los comentarios de &#8220;modifications to xxx&#8221;, no hay que modificar nada, nomas copia y pega las siguientes líneas en el archivo qmake.conf nuevo:</p>
<pre># -------------- qmake.conf --------------
# qmake configuration for building with arm-linux-g++
#
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
# Angstrom toolchain
QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
QMAKE_CC = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/gcc
QMAKE_CXX = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK_SHLIB = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++

# modifications to linux.conf
QMAKE_AR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/ar cqs
QMAKE_OBJCOPY = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/objcopy
QMAKE_STRIP = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/strip

load(qt_config)
# -------------- FIN: qmake-conf --------------</pre>
<p>Nota que las rutas indican /usr/local/angstrom, tal cual debería ocurrir si no modificaste nada de</p>
<p>Archivo <strong>mkspecs/qws/linux-DM3730-g++/qplatformdefs.h</strong>,   solo tendrá una línea:</p>
<pre>#include "../../linux-g++/qplatformdefs.h"</pre>
<p>Ahora configura Qt con los módulos necesarios y sin los módulos irrelevantes:</p>
<pre># ./configure -opensource -confirm-license -prefix /opt/Qt-4.8.0_ARM -no-qt3support -embedded arm -little-endian -xplatform qws/linux-DM3730-g++ -nomake examples -nomake demos -nomake docs -nomake translations -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-qt3support -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -no-javascript-jit -script -scripttools -declarative -declarative-debug -no-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-nis -no-iconv -no-pch -no-opengl -no-openvg -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-mitshm -no-xinput -no-xkb -no-xmlpatterns -no-webkit -no-sql-sqlite -no-sql-sqlite2 -multimedia -audio-backend -qt-gfx-vnc -qt-gfx-linuxfb</pre>
<p>Ver en las notas finales parte de la salida del ./configure&#8230; Luego compilar e instalar.</p>
<pre># make &amp;&amp; make install</pre>
<p>Eso instalará todo en tu PC en /opt/Qt-4.8.0_ARM. Ahora crea un .tar y mandalo a la Beagle. En la Beagle crea la carpeta /opt si no existe y ahi mismo coloca lo de tu PC que esta en /opt/Qt-4.8.0_ARM.  Tendras lo mismo em ambos lados.</p>
<p>¡Qt está instalado en tu Beagle! Ahora configura algunos detalles necesarios para evitar dolores de cabeza.</p>
<p><strong>Note:</strong> If filesystem was created using the narcissus progam, libstdc++.so.6 will be missing within the &#8220;/lib&#8221; directory of the target filesystem. This *.so file is needed to run Qt:</p>
<pre># opkg update
# opkg install libstdc++6</pre>
<h3>Configurar lo necesario en la Beagle</h3>
<p>Edita en la Beagle: /etc/profile y coloca al final:</p>
<pre># Qt for ARM
export LD_LIBRARY_PATH=/opt/Qt-4.8.0_ARM/lib</pre>
<p>Crea un usuario para tu Beagle, por comodidad yo usé &#8220;beagle&#8221;:</p>
<pre># adduser beagle</pre>
<p>Cambia permisos y grupo de /opt (para deployment via Qt Creator):</p>
<pre># chown root:beagle /opt
# chmod g+rwx /opt</pre>
<p>Para ejecutar aplicaciones sin X/Xorg con el parámetro -<em>qws</em> en el framebuffer con el usuario beagle, se necesita que esté en el grupo &#8216;video&#8217;. Edita directamente /etc/group para que la linea quede:</p>
<pre>video:*:44:beagle</pre>
<p>A lo mejor no es un 44, con cuidado en tu Beagle, ponle el que tenga. Aún así marcará error en la tty (el teclado) y en el audio y en otras cosas, habrá que editar las reglas de udev y poner todo como grupo beagle, eso es mas efectivo.</p>
<p>Una alternativa más fácil es hacer deploy como root, con eso todo funciona bien y no hay problemas de permisos ni grupos.</p>
<h3>Notas</h3>
<p>Pos si hace falta, entre lo que arrojó el ./configure salió:</p>
<pre>Building on: qws/linux-x86-g++
Building for: qws/linux-DM3730-g++
Architecture: arm
Host architecture: i386</pre>
<pre>Build .................. libs
Configuration .......... cross_compile release shared dll embedded stl neon exceptions_off minimal-config small-config medium-config large-config full-config no-pkg-config embedded reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png no-gif freetype zlib multimedia audio-backend svg script scripttools declarative release
Debug .................. no
Qt 3 compatibility ..... no
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... no
Phonon module .......... no
Multimedia module ...... yes
SVG module ............. yes
WebKit module .......... no
JavaScriptCore JIT ..... no
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ no
MMX/3DNOW/SSE/SSE2/SSE3. no/no/no/no/no
SSSE3/SSE4.1/SSE4.2..... no/no/no
AVX..................... no
iWMMXt support ......... no
NEON support ........... yes
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... no
NIS support ............ no
CUPS support ........... no
Iconv support .......... no
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... no
GIF support ............ no
TIFF support ........... plugin (qt)
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
MNG support ............ plugin (qt)
zlib support ........... yes
Session management ..... no
Embedded support ....... arm
Freetype2 support ...... auto (yes)
Graphics (qt) .......... linuxfb multiscreen vnc linuxfb
Graphics (plugin) ......
Decorations (qt) ....... styled windows default
Decorations (plugin) ...
Keyboard driver (qt) ... tty
Keyboard driver (plugin) ..
Mouse driver (qt) ...... linuxinput
Mouse driver (plugin) .. linuxtp pc
OpenGL support ......... no
OpenVG support ......... no
OpenSSL support ........ no
Alsa support ........... no
ICD support ............ no
libICU support ......... no</pre>
<pre>Finding project files. Please wait...</pre>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1233/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VNC para Qt Embedded (QWS) con resolución personalizada</title>
		<link>http://zarzamora.com.mx/archivo-historico/1255</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1255#comments</comments>
		<pubDate>Thu, 26 Jan 2012 23:17:20 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[beagle]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1255</guid>
		<description><![CDATA[Ejecuta la aplicacion usando los parámetros: ./miApp  -qws -display VNC:0  -geometry 1024x768+0+0 Si tu aplicación ejecuta en pantalla completa no es  necesario el -geometry. Pero para que realmente funcione debe existir una variable de ambiente QWS_SIZE=1024x768 Por ejemplo, se puede hacer # QWS_SIZE=1024x768 ./miApp  -qws -display VNC:0  -geometry 1024x768+0+0]]></description>
			<content:encoded><![CDATA[<p>Ejecuta la aplicacion usando los parámetros:</p>
<pre>./miApp  -qws -display VNC:0  -geometry 1024x768+0+0</pre>
<p>Si tu aplicación ejecuta en pantalla completa no es  necesario el -geometry. Pero para que realmente funcione debe existir una variable de ambiente</p>
<pre>QWS_SIZE=1024x768</pre>
<p>Por ejemplo, se puede hacer</p>
<pre># QWS_SIZE=1024x768 ./miApp  -qws -display VNC:0  -geometry 1024x768+0+0</pre>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access to the Beagleworld for my little Beagle</title>
		<link>http://zarzamora.com.mx/archivo-historico/1229</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1229#comments</comments>
		<pubDate>Wed, 25 Jan 2012 18:39:37 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1229</guid>
		<description><![CDATA[So you have made a wrong choice and bought a Beagleboard without ethernet, looked so cheap, oh no&#8230;damn! Let&#8217;s fix that easily. I assume you already have a booting card with some version of Angstrom and that you know what you are doing, so i won&#8217;t enter into trivial details. You will need: On the [...]]]></description>
			<content:encoded><![CDATA[<p>So you have made a wrong choice and bought a Beagleboard without ethernet, looked so cheap, oh no&#8230;damn!</p>
<p>Let&#8217;s fix that easily. I assume you already have a booting card with some version of Angstrom and that you know what you are doing, so i won&#8217;t enter into trivial details. You will need:</p>
<p>On the Beagleboard:</p>
<ul>
<li>We will use g_ether in auto insertion (next step) but you could
<pre>modprobe -v g_ether</pre>
<p>yourself, the first time just in case</li>
<li>Fix the address for auto setup at /etc/network/interfaces:</li>
</ul>
<pre># Ethernet/RNDIS gadget (g_ether) or LAN9514
 auto usb0
   iface usb0 inet static
   pre-up modprobe g_ether
   address 192.168.3.2
   netmask 255.255.255.0
   gateway 192.168.3.1
   post-down rmmod g_ether</pre>
<ul>
<li>Setup your real nameserver IP&#8221;s at /etc/resolv.conf</li>
</ul>
<p>On your desktop</p>
<ul>
<li>You also  need &#8216;g_ether&#8217;, so
<pre>modprobe g_ether</pre>
<p>And maybe you wan to add &#8216;g_ether&#8217; to /etc/modules for auto-loading on boot.</p>
<p>You will see on the beagle a &#8220;link becomes ready&#8221; message on the dmesg output, look at it via serial.</li>
<li>You can use Network Manager and setup a fixed ip (192.168.3.1) for that interface or use any other tool for that.</li>
</ul>
<p>Now you must be able to ping from both sides.</p>
<p>Internet Access</p>
<p>This needs additional configuration on the desktop. This a useful script:</p>
<pre># Assuming:
#-BEAGLE---+---DESKTOP PC------&gt;
#-usb0-----|---usb0--eth0--&gt;internet
#
echo "Remove any previous NAT setup"</pre>
<pre>iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain

echo "Setup NAT to forward packets from usb0 &lt;---&gt; eth0"
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface usb0 -j ACCEPT

echo "Enable packet forwarding in the kernel"
echo 1 &gt;&gt; /proc/sys/net/ipv4/ip_forward</pre>
<p>Now your beagle will have access to the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1229/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Before the night falls</title>
		<link>http://zarzamora.com.mx/archivo-historico/1227</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1227#comments</comments>
		<pubDate>Tue, 24 Jan 2012 18:21:41 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[extraño]]></category>
		<category><![CDATA[interesante]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1227</guid>
		<description><![CDATA[Maybe you could think this blog is dead. But as a friend does with his Bar, I will go right into demise before letting my toy rot. Keeping a blog alive is incredibly cheaper than keeping a real Bar, but not less time consuming. Anyway, I was just taking a break, thinking about life and [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you could think this blog is dead. But as a friend does with his Bar, I will go right into demise before letting my toy rot. Keeping a blog alive is incredibly cheaper than keeping a real Bar, but not less time consuming. Anyway, I was just taking a break, thinking about life and stuff.</p>
<p>I was in several parts of my little egg-shaped world since the last post, maybe, if you behave, i will tell you.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1227/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preguntas y Respuestas del Gran Colisionador (LHC)</title>
		<link>http://zarzamora.com.mx/archivo-historico/1206</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1206#comments</comments>
		<pubDate>Sun, 28 Aug 2011 22:11:28 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cern]]></category>
		<category><![CDATA[collider]]></category>
		<category><![CDATA[español]]></category>
		<category><![CDATA[hadron]]></category>
		<category><![CDATA[large]]></category>
		<category><![CDATA[triptico]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1206</guid>
		<description><![CDATA[Tríptico informativo en español del Large Hadron Collider del CERN. Útil para repartir entre los amigos no-iniciados y esclarecer rápidamente las dudas que puedan tener.]]></description>
			<content:encoded><![CDATA[<p>Tríptico informativo en español del Large Hadron Collider del CERN. Útil para repartir entre los amigos no-iniciados y esclarecer rápidamente las dudas que puedan tener.</p>
<p><a href="http://zarzamora.com.mx/wp-content/uploads/2011/08/LHC_preguntas_respuestas.jpg"><img class="aligncenter size-large wp-image-1207" title="LHC_preguntas_respuestas" src="http://zarzamora.com.mx/wp-content/uploads/2011/08/LHC_preguntas_respuestas-1024x728.jpg" alt="" width="600" height="427" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EDIS Interactive tiene un Qt Ambassador</title>
		<link>http://zarzamora.com.mx/archivo-historico/1195</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1195#comments</comments>
		<pubDate>Tue, 23 Aug 2011 23:02:18 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ambassador]]></category>
		<category><![CDATA[edis]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[multitouch]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1195</guid>
		<description><![CDATA[Ahora soy un Qt Ambassador. En la página de Qt se listan los beneficios. Ademas los proyectos de EDIS apareceran en la pagina de Ambassador Showcase. Por ahi he encontrado que hay un paquete de bienvenida para los Ambassadors, que incluye playera, stickers y otras cosas. ¿Me tocará un paquete de esos?. Por cierto, soy [...]]]></description>
			<content:encoded><![CDATA[<p>Ahora soy un Qt Ambassador. En la página de Qt se listan <a href="http://qt.nokia.com/qt-in-use/ambassadors/qtambassador/">los beneficios</a>. Ademas los proyectos de <a title="EDIS Interactive" href="http://edis.mx">EDIS</a> apareceran en la pagina de <a href="http://qt.nokia.com/qt-in-use/ambassadors/showcase/">Ambassador Showcase</a>.<br />
<img class="size-full wp-image-1196 aligncenter" title="qt_ambassador_logo" src="http://zarzamora.com.mx/wp-content/uploads/2011/08/qt_ambassador_logo.png" alt="" width="224" height="224" /></p>
<p>Por ahi he encontrado que hay un paquete de bienvenida para los Ambassadors, que incluye playera, stickers y otras cosas. ¿Me tocará un paquete de esos?.</p>
<p>Por cierto, soy el primer Qt Ambassador Mexicano <img src='http://zarzamora.com.mx/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1195/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>El 5 y sus trapitos</title>
		<link>http://zarzamora.com.mx/archivo-historico/1185</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1185#comments</comments>
		<pubDate>Tue, 01 Mar 2011 16:15:42 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1185</guid>
		<description><![CDATA[Hay muchas características interesantes del número 5. 5 es el menor número de reinas requeridas para atacar todos los cuadras de un tablero de ajedrez. 5 es el único primo que es la diferencia de dos cuadrados de primos 5 es el único primo que es miembro de 2 pares de primos gemelos. 5 es [...]]]></description>
			<content:encoded><![CDATA[<p><a title="five by woodleywonderworks, on Flickr" href="http://www.flickr.com/photos/wwworks/3196112134/"><img class="alignright" src="http://farm4.static.flickr.com/3461/3196112134_aa09fbfefa.jpg" alt="five" width="321" height="321" /></a><br />
Hay muchas características interesantes del número 5.</p>
<ul>
<li>5 es el menor número de reinas requeridas para atacar todos los cuadras de un tablero de ajedrez.</li>
<li>5 es el único primo que es la diferencia de dos cuadrados de primos</li>
<li>5 es el único primo que es miembro de 2 pares de primos gemelos.</li>
<li>5 es el único numero que es la suma de los primos anteriores a él</li>
<li>5 es el número de sólidos platónicos</li>
<li>5 es el grado mas chico en el cual las raíces polinomiales no se encuentran en forma cerrada</li>
<li>5 es el primo mas chico impar que no es primo Gaussiano</li>
<li>5 es el menor número de vértices necesarios para crear un grafo no planar</li>
<li>El único poligono con el mismo número de vértices y diagonales es un pentágono.</li>
<li>5 Es el primer <em>primo seguro</em> (de la forma 2p+1)</li>
<li>La<a href="http://en.wikipedia.org/wiki/5_%28number%29"> Wikipedia tiene más cosas acerca del 5</a>, muchas de las cuales me cuesta trabajo comprender sin ponerme a estudiar.</li>
</ul>
<p>¡Y 5 es el número de minutos que me faltaron!</p>
<p>(Photo <strong id="yui_3_3_0_1_12989965766991387">By <a href="http://www.flickr.com/photos/wwworks/">woodleywonderworks</a></strong>)</p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1185/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why? Why do you persist?</title>
		<link>http://zarzamora.com.mx/archivo-historico/1176</link>
		<comments>http://zarzamora.com.mx/archivo-historico/1176#comments</comments>
		<pubDate>Sat, 12 Feb 2011 04:47:34 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[edis]]></category>
		<category><![CDATA[persist]]></category>
		<category><![CDATA[sillicon valley]]></category>
		<category><![CDATA[why]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=1176</guid>
		<description><![CDATA[Smith will try to break you, he does not understand you&#8230; Why, Mr. Anderson? Why, why, why? Why do you do it? Why, why get up? Why keep fighting? Do you believe you’re fighting for something, for more than your survival? Can you tell me what it is, do you even know? Is it freedom, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1179  aligncenter" title="why_mr_anderson" src="http://zarzamora.com.mx/wp-content/uploads/2011/02/why_mr_anderson.jpg" alt="" width="383" height="299" /><em></em></p>
<p><em>Smith will try to break you, he does not understand you&#8230;</em></p>
<blockquote><p><strong>Why, Mr. Anderson? Why, why, why? Why do you do it? Why, why get up? Why keep fighting?</strong> Do you believe you’re fighting for something, for more than your survival? Can you tell me what it is, do you even know? Is it freedom, or truth, perhaps peace, could it be for love? <strong>Illusions</strong>, Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose! And all of them as artificial as the matrix itself, although only a human mind could invent something as insipid as love.<strong> You must be able to see it Mr. Anderson, you must know it by now</strong>. You can’t win, it’s pointless to keep fighting! Why, Mr. Anderson, why? Why do you persist?</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/1176/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

