<?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>Vive-libre.com &#187; UBUNTU</title>
	<atom:link href="http://vive-libre.com/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://vive-libre.com/blog</link>
	<description>Un espacio, para la libertad.</description>
	<lastBuildDate>Thu, 24 Dec 2009 18:25:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Squid Proxy: Acl para bloquear msn</title>
		<link>http://vive-libre.com/blog/2009/03/12/squid-proxy-acl-para-bloquear-msn/</link>
		<comments>http://vive-libre.com/blog/2009/03/12/squid-proxy-acl-para-bloquear-msn/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 03:20:38 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PROXY]]></category>
		<category><![CDATA[SEGURIDAD]]></category>
		<category><![CDATA[SQUID]]></category>
		<category><![CDATA[UBUNTU]]></category>
		<category><![CDATA[BLOQUEO]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[REGLAS]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2009/03/12/squid-proxy-acl-para-bloquear-msn/</guid>
		<description><![CDATA[Hay varias formas para boquear el acceso al msn, ya sea por iptables o en este caso por el proxy, esta es una que yo uso y me ha funcionado muy bien.
PLAIN TEXT
CODE:




acl msn_port port 1863


acl msn_method method POST


acl msn_url url_regex -i gateway.dll


acl msn_messenger rep_mime_type -i ^application/x-msn-messenger$


acl red_local src 192.168.2.0/24


acl plus src "/etc/squid/plus.lst"


&#160;


http_access deny red_local [...]]]></description>
			<content:encoded><![CDATA[<p>Hay varias formas para boquear el acceso al msn, ya sea por iptables o en este caso por el proxy, esta es una que yo uso y me ha funcionado muy bien.</p>
<div class="igBar"><span id="lcode-7"><a href="#" onclick="javascript:showPlainTxt('code-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-7">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_port port <span style="color:#800000;color:#800000;">1863</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_method method POST</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_url url_regex -i gateway.<span style="">dll</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_messenger rep_mime_type -i ^application/x-msn-messenger$</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl red_local src <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">0</span>/<span style="color:#800000;color:#800000;">24</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl plus src <span style="color:#CC0000;">"/etc/squid/plus.lst"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_method msn_url</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_port</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_messenger </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Esto quiere decir lo siguiente</p>
<p>Vamos a bloquear todas las posibles salidas que pueda tener el msn, una sera bloquear las conexiones que se realicen por el puerto 1863</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_port port <span style="color:#800000;color:#800000;">1863</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tambien bloquearemos el metodo de POST  y la gateway.dll</p>
<div class="igBar"><span id="lcode-9"><a href="#" onclick="javascript:showPlainTxt('code-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-9">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_method method POST</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_url url_regex -i gateway.<span style="">dll</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tambien lo bloquearemos el mime, por este metodo se puede bloquear cualquer aplicacion solo hay que indicar el mime  correspondiente.</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showPlainTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl msn_messenger rep_mime_type -i ^application/x-msn-messenger$ </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Indicamos dos reglas mas que nos permitiran definir las red interna y una lista de Ip a las cuales se les concedera el acceso a esta aplicacion, esta lista es una archivo de texto plano con las direcciones ip en forma de lista, en nuestro caso la lista esta en el directorio /etc//etc/squid/ y se llama plus.lst</p>
<div class="igBar"><span id="lcode-11"><a href="#" onclick="javascript:showPlainTxt('code-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-11">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl red_local src <span style="color:#800000;color:#800000;">192</span>.<span style="color:#800000;color:#800000;">168</span>.<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">0</span>/<span style="color:#800000;color:#800000;">24</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">acl plus src <span style="color:#CC0000;">"/etc/squid/plus.lst"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora solo hay que aplicar las reglas denegamos el acceso al puerto, por el metodo Post, gateway y mime, a todas las ip conformadas por la red_local 192.168.2.0/24 que sean diferentes de las ip en el archivo plus.lst</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showPlainTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_method msn_url</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_port</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http_access deny red_local !plus msn_messenger </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Espero les sea de utilidad</p>
<p>Saludos</p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2009/03/12/squid-proxy-acl-para-bloquear-msn/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Error en Ruby on Rails: no such file to load &#8212; sqlite3</title>
		<link>http://vive-libre.com/blog/2008/10/17/error-en-ruby-on-rails-no-such-file-to-load-sqlite3/</link>
		<comments>http://vive-libre.com/blog/2008/10/17/error-en-ruby-on-rails-no-such-file-to-load-sqlite3/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:31:47 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PROGRAMACION]]></category>
		<category><![CDATA[RUBY]]></category>
		<category><![CDATA[UBUNTU]]></category>
		<category><![CDATA[ERRORES]]></category>
		<category><![CDATA[RAILS]]></category>
		<category><![CDATA[TIPS]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2008/10/17/error-en-ruby-on-rails-no-such-file-to-load-sqlite3/</guid>
		<description><![CDATA[Este error es muy comun cuando empezamos a trabajar con Rails, y no te nemos grandes conocimientos sobre el tema, al momento que nosotros creamos un proyecto en rails con el comando
PLAIN TEXT
CODE:




rails my_proyect


create


create  app/controllers


create  app/helpers


create  app/models


create  app/views/layouts


create  config/environments


create  config/initializers


create  db


create  doc


create  lib


create  lib/tasks


create  log


create  public/images


create  public/javascripts


create  public/stylesheets


create  script/performance


create  script/process


create  test/fixtures


create  test/functional


create  test/integration


create  test/unit


create  vendor


create  [...]]]></description>
			<content:encoded><![CDATA[<p>Este error es muy comun cuando empezamos a trabajar con Rails, y no te nemos grandes conocimientos sobre el tema, al momento que nosotros creamos un proyecto en rails con el comando</p>
<div class="igBar"><span id="lcode-18"><a href="#" onclick="javascript:showPlainTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rails my_proyect</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/controllers</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/helpers</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/models</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/views/layouts</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/environments</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/initializers</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  db</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  doc</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  lib</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  lib/tasks</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  log</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/images</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/stylesheets</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/performance</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/process</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  test/fixtures</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  test/functional</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  test/integration</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  test/unit</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  vendor</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  vendor/plugins</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  tmp/sessions</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  tmp/sockets</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  tmp/cache</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  tmp/pids</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  Rakefile</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  README</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/controllers/application.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  app/helpers/application_helper.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  test/test_helper.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/database.<span style="">yml</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/routes.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/initializers/inflections.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/initializers/mime_types.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/initializers/new_rails_defaults.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/boot.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/environment.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/environments/production.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/environments/development.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  config/environments/test.<span style="">rb</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/about</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/console</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/dbconsole</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/destroy</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/generate</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/performance/benchmarker</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/performance/profiler</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/performance/request</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/process/reaper</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/process/spawner</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/process/inspector</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/runner</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/server</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  script/plugin</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/dispatch.<span style="">rb</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/dispatch.<span style="">cgi</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/dispatch.<span style="">fcgi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/<span style="color:#800000;color:#800000;">404</span>.<span style="">html</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/<span style="color:#800000;color:#800000;">422</span>.<span style="">html</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/<span style="color:#800000;color:#800000;">500</span>.<span style="">html</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/index.<span style="">html</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/favicon.<span style="">ico</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/robots.<span style="">txt</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/images/rails.<span style="">png</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts/prototype.<span style="">js</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts/effects.<span style="">js</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts/dragdrop.<span style="">js</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts/controls.<span style="">js</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  public/javascripts/application.<span style="">js</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  doc/README_FOR_APP</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  log/server.<span style="">log</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  log/production.<span style="">log</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  log/development.<span style="">log</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create  log/test.<span style="">log</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Nos crea por default en la carpeta config de nuestro proyecto un archivo llamado database.yml el cual contiene algo parecido</p>
<div class="igBar"><span id="lcode-19"><a href="#" onclick="javascript:showPlainTxt('code-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-19">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># SQLite version <span style="color:#800000;color:#800000;">3</span>.<span style="">x</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#   gem install sqlite3-ruby <span style="color:#006600; font-weight:bold;">&#40;</span>not necessary on OS X Leopard<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">development:</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: sqlite3</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: db/development.<span style="">sqlite3</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">timeout: <span style="color:#800000;color:#800000;">5000</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Warning: The database defined as <span style="color:#CC0000;">"test"</span> will be erased and</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># re-generated from your development database when you run <span style="color:#CC0000;">"rake"</span>.</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Do not set this db to the same as development or production.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">test</span>:</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: sqlite3</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: db/test.<span style="">sqlite3</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">timeout: <span style="color:#800000;color:#800000;">5000</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">production:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: sqlite3</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: db/production.<span style="">sqlite3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">timeout: <span style="color:#800000;color:#800000;">5000</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Este archivo nos indica la configuracion que tomara Rails para acceder a la base de datos, podemos observar que nos hacen la indicacion de que hay que instalar sqlite3-ruby esto lo hacemos con el comando.</p>
<div class="igBar"><span id="lcode-20"><a href="#" onclick="javascript:showPlainTxt('code-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-20">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gem install sqlite3-ruby </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Pero si nosotros usamos otra base de datos por ejemplo en mysql, hay que cambiar la configuracion, para poder acceder a mysql y no a sqlite.</p>
<div class="igBar"><span id="lcode-21"><a href="#" onclick="javascript:showPlainTxt('code-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-21">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">development:</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: mysql</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: recetario</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">username: root</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">password: sigmaboy</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host: localhost</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Warning: The database defined as <span style="color:#CC0000;">"test"</span> will be erased and</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># re-generated from your development database when you run <span style="color:#CC0000;">"rake"</span>.</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Do not set this db to the same as development or production.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">test</span>:</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: mysql</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: recetario</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">username: root</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">password: sigmaboy</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host: localhost</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">production:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adapter: mysql</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">database: recetario</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">username: root</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">password: sigmaboy</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">host: localhost </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Con esto podemos solucionar el error de</p>
<div class="igBar"><span id="lcode-22"><a href="#" onclick="javascript:showPlainTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">no such file to load -- sqlite3 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p> <img src='http://vive-libre.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2008/10/17/error-en-ruby-on-rails-no-such-file-to-load-sqlite3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mini How-to de configuracion de: Conky, El monitor&#8230;</title>
		<link>http://vive-libre.com/blog/2008/10/10/mini-how-to-de-configuracion-de-conky-el-monitor/</link>
		<comments>http://vive-libre.com/blog/2008/10/10/mini-how-to-de-configuracion-de-conky-el-monitor/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 17:23:42 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[OCIO]]></category>
		<category><![CDATA[UBUNTU]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2008/10/10/mini-how-to-de-configuracion-de-conky-el-monitor/</guid>
		<description><![CDATA[Conky es un monitor de sistema como muchos otros, lo que lo hace especial y que le da la ventaja sobre los demas, es la gran capacidad de configuracion que tiene, desde unos cuantos mensajes en modo texto, hasta graficas y barras de estado de los diferentes aspectos de nuestra PC la memoria swap, ram, [...]]]></description>
			<content:encoded><![CDATA[<p>Conky es un monitor de sistema como muchos otros, lo que lo hace especial y que le da la ventaja sobre los demas, es la gran capacidad de configuracion que tiene, desde unos cuantos mensajes en modo texto, hasta graficas y barras de estado de los diferentes aspectos de nuestra PC la memoria swap, ram, los sistemas de archivo, procesos, procesadores, etc..</p>
<p>En este articulo, vamos a ver desde la instalacion hasta la configuracio basica del archivo conkyrc, que es el archivo de configuracion del conky.</p>
<p>La instalacion, como cualquier otra aplicacion de ubuntu,  la instalamos con apt-get</p>
<div class="igBar"><span id="lcode-55"><a href="#" onclick="javascript:showPlainTxt('code-55'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-55">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo apt-get install conky </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El archivo de configuracion .conkyrc se localiza en el directorio personal, como pueden notar al tener el punto antes del nombre nos indica que es un archivo oculto, ahora vamos a ver el siguiente ejemplo:</p>
<p>Este es el mio:</p>
<p><a href="http://picasaweb.google.com/blue.star.boy/Varios/photo?authkey=gLhHZgfYNYk#5203386185786680642"><img src="http://lh6.ggpht.com/blue.star.boy/SDYkKtD9ZUI/AAAAAAAAA6I/su-S9d8BuNc/s800/Conky.png" /></a></p>
<p>Y este es el codigo</p>
<div class="igBar"><span id="lcode-56"><a href="#" onclick="javascript:showPlainTxt('code-56'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-56">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">alignment top_right</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background no</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cpu_avg_samples <span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">net_avg_samples <span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">update_interval <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">default_color white</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">default_shade_color black</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">default_outline_color blue</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">draw_borders no</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">draw_shades no</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border_margin <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border_width <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gap_x <span style="color:#800000;color:#800000;">20</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gap_y <span style="color:#800000;color:#800000;">20</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">minimum_size <span style="color:#800000;color:#800000;">200</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">maximum_width <span style="color:#800000;color:#800000;">200</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">override_utf8_locale yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use_xft yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xftfont Terminus:size=<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xftalpha <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window_transparent yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use_spacer yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">double_buffer yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">no_buffers yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">TEXT</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ffffff<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font Zekton:style=Bold:pixelsize=<span style="color:#800000;color:#800000;">30</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>time %H:%M:%S<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #FFCC66<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font Zekton:style=Bold:pixelsize=<span style="color:#800000;color:#800000;">12</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>time %A %d de %B<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #33CCFF<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font weather:size=<span style="color:#800000;color:#800000;">60</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>execi <span style="color:#800000;color:#800000;">600</span> ~/scripts/conditions.<span style="">sh</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>execi <span style="color:#800000;color:#800000;">1200</span> ~/scripts/pogodynka.<span style="">sh</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>O $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Encendido: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$uptime</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>Q $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Kernel:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$kernel</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>A $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #00FF99<span style="color:#006600; font-weight:bold;">&#125;</span>CPU-<span style="color:#800000;color:#800000;">1</span>:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>cpu cpu0<span style="color:#006600; font-weight:bold;">&#125;</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>cpugraph cpu0 <span style="color:#800000;color:#800000;">20</span>,<span style="color:#800000;color:#800000;">200</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>A $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #00FF99<span style="color:#006600; font-weight:bold;">&#125;</span>CPU-<span style="color:#800000;color:#800000;">2</span>:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>cpu cpu1<span style="color:#006600; font-weight:bold;">&#125;</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>cpugraph cpu1 <span style="color:#800000;color:#800000;">20</span>,<span style="color:#800000;color:#800000;">200</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>A $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #00FF99<span style="color:#006600; font-weight:bold;">&#125;</span>CPU-<span style="color:#800000;color:#800000;">3</span>:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>cpu cpu2<span style="color:#006600; font-weight:bold;">&#125;</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>cpugraph cpu2 <span style="color:#800000;color:#800000;">20</span>,<span style="color:#800000;color:#800000;">200</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#800000;color:#800000;">8</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #FF3333<span style="color:#006600; font-weight:bold;">&#125;</span>TOP CPU:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ddaa00<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#800000;color:#800000;">8</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #FF3333<span style="color:#006600; font-weight:bold;">&#125;</span>TOP MEM:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ddaa00<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>MEM:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $memperc% $mem/$memmax</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>membar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SWAP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $swapperc% $swap/$swapmax</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>swapbar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>ROOT:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SDA1:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SDA5:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>WIFI: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>IP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>addr eth1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Senal: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>wireless_link_qual_perc eth1<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>wireless_link_bar <span style="color:#800000;color:#800000;">4</span> eth1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>DOWN: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>downspeed eth1<span style="color:#006600; font-weight:bold;">&#125;</span> k/s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>UP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>upspeed eth1<span style="color:#006600; font-weight:bold;">&#125;</span> k/s</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>downspeedgraph eth1 <span style="color:#800000;color:#800000;">25</span>,<span style="color:#800000;color:#800000;">90</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignr<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>upspeedgraph eth1 <span style="color:#800000;color:#800000;">25</span>,<span style="color:#800000;color:#800000;">90</span> 0000ff ff0000<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>TOTAL: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>totaldown eth1<span style="color:#006600; font-weight:bold;">&#125;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>TOTAL: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>totalup eth1<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lo primero que hay que hacer es lo siguiente, como podran ver el conky tiene unas imagenes en los monitores como iconos, estas solo letras de fuentes especiales entonces instalaremos estas fuentes en nuestro sistema las fuentes a usar son weather y  StyleBats, las encuentran <a href="http://www.vive-libre.com/blog/etc/Fuentes.tar.gz" title="Fuentes" target="_blank">[aqui] </a></p>
<p>Hay que desempaquetar y copiar las fuentes al directorio correspondiente</p>
<div class="igBar"><span id="lcode-57"><a href="#" onclick="javascript:showPlainTxt('code-57'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-57">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">tar -xzf Fuentes.<span style="">tar</span>.<span style="">gz</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Nos cambiamos al directorio que acabamos de crear y copiamos las fuentes a una carpeta que crearemos que se llamara misfuentes</p>
<div class="igBar"><span id="lcode-58"><a href="#" onclick="javascript:showPlainTxt('code-58'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-58">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd Fuentes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo mkdir /usr/share/fonts/truetype/misfuentes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo cp weather.<span style="">ttf</span> StyleBats.<span style="">ttf</span> PizzaDude\ Bullets.<span style="">ttf</span> /usr/share/fonts/truetype/misfuentes </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Le indicamos al sistema que actualice las fuentes</p>
<div class="igBar"><span id="lcode-59"><a href="#" onclick="javascript:showPlainTxt('code-59'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-59">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fc-cache -f -v </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para poder ver el estado del clima en el conky vamos a usar los siguientes script:</p>
<p>Ahora veremos la configuracion de Conky, en lo que se refiere a comportamiento y caracteristicas del sistema.</p>
<div class="igBar"><span id="lcode-60"><a href="#" onclick="javascript:showPlainTxt('code-60'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-60">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Margen y tamano del borde en pixeles</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border_margin <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border_width <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Este es el espacio que tendra de margen el conky con respecto a la pantalla, en estas cordenadas tendra el espacio sufisiente para aparecer debajo de la barra superior del escritorio, expresado en pixeles</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gap_x <span style="color:#800000;color:#800000;">20</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gap_y <span style="color:#800000;color:#800000;">20</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Indicamos el ancho del monitor del conky en pixeles</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">minimum_size <span style="color:#800000;color:#800000;">200</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">maximum_width <span style="color:#800000;color:#800000;">200</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Forzar el uso de UTF8</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">override_utf8_locale yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Si usamos UTF8 es necesario usar xft</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use_xft yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Indicamos la fuente y tamano a usar en el monitor</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xftfont Terminus:size=<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Trasparencia que tendra el texto XFT</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xftalpha <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Ejecutarlo en su propia ventana en lugar de usar el escritorio <span style="color:#006600; font-weight:bold;">&#40;</span>requerido con nautilus<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Usar transparencio con own_window yes/no</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window_transparent yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Si pusiste yes en own_window, entonces estos hints del gestor de ventana puede ser tilizado</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#Esto es para que se visualize en los demas escritorios, si los usamos</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use_spacer yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">double_buffer yes</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">no_buffers yes </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Despues de la configuracion del Conky, sigue una seccion llamada TEXT, todo lo que pongamos despues de esta seccion se visualizara en pantalla, desde un texto como hola, hasta un monitor de X servicio de la computadora, empecemos por algo sencillo.</p>
<p>Para esto se usa una serie de variables o mas bien funciones, a las cuales les pasamos ciertos parametros, y como resultado obtenemos un monitor.</p>
<p>Empesemos con esto:</p>
<div class="igBar"><span id="lcode-61"><a href="#" onclick="javascript:showPlainTxt('code-61'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-61">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>time %H:%M:%S<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Aqui estamos invocando a la funcio time, el %H indica las horas el ":" lo imprime tal cual despues %M minutos y %S segundos. Si no le ponemos ninguna variable de formato tomara los valores declarados por default.</p>
<div class="igBar"><span id="lcode-62"><a href="#" onclick="javascript:showPlainTxt('code-62'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-62">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ffffff<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font Zekton:style=Bold:pixelsize=<span style="color:#800000;color:#800000;">30</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>time %H:%M:%S<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Aqui estamos dando algo de formato, a la hora,la primera variable indica el color de la fuente a usa en hexadesimal #ffffff se puede sustituir por cualquier otro valor correspondiente a un color</p>
<div class="igBar"><span id="lcode-63"><a href="#" onclick="javascript:showPlainTxt('code-63'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-63">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ffffff<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Despues indicamos otra fuente, estilo y tamano a usar</p>
<div class="igBar"><span id="lcode-64"><a href="#" onclick="javascript:showPlainTxt('code-64'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-64">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>font Zekton:style=Bold:pixelsize=<span style="color:#800000;color:#800000;">30</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y por ultimo le indicamos que la alineacion sera centrada (solo existe centrada y derecha ${alignr}).</p>
<div class="igBar"><span id="lcode-65"><a href="#" onclick="javascript:showPlainTxt('code-65'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-65">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y la variable a la que se le asigna todo este formato</p>
<div class="igBar"><span id="lcode-66"><a href="#" onclick="javascript:showPlainTxt('code-66'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-66">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>time %H:%M:%S<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Cabe hacer la aclaracion que este formato es unicamente para esta linea, todas las variables monitores etc.., que se pongan en ese renglon tendra ese formato, si se pone un renglon abajo y no se indica el formato adoptara los valores por default, por eso se repite el formato, encada reglon.</p>
<p>La siguiente linea es la de la fecha</p>
<div class="igBar"><span id="lcode-67"><a href="#" onclick="javascript:showPlainTxt('code-67'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-67">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #FFCC66<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font Zekton:style=Bold:pixelsize=<span style="color:#800000;color:#800000;">12</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>time %A %d de %B<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como se daran cuenta se repite la seccion del formato que se le dara a esta variable, color, fuente, estilo, tamaño y alineacion.</p>
<p>El %A indica el dia de la semana %d el dia en fecha, "de" se imprime tal cual en pantalla, y %B es el mes.</p>
<p>La siguiente linea es la que ejecuta el script conditions.sh y pogodynka.sh que si han el tutorial deberia estar en la carpeta scripts dentro de la carpeta personal en home.</p>
<div class="igBar"><span id="lcode-68"><a href="#" onclick="javascript:showPlainTxt('code-68'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-68">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #33CCFF<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font weather:size=<span style="color:#800000;color:#800000;">60</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>execi <span style="color:#800000;color:#800000;">600</span> ~/scripts/conditions.<span style="">sh</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignc<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>execi <span style="color:#800000;color:#800000;">1200</span> ~/scripts/pogodynka.<span style="">sh</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p> Esta variable execi indica que se ejecutara un script con pid # en la ruta tal donde  ~ es un alias para la ruta del directorio personal, por lo que no hay q cambiarlo</p>
<p>${execi 600 ~/scripts/conditions.sh}</p>
<p>${execi 1200 ~/scripts/pogodynka.sh} La siguiente linea sigue el mismo esquema que las anteriores, la variable $uptime indica el tiempo que la computadora ha esto encendida.</p>
<div class="igBar"><span id="lcode-69"><a href="#" onclick="javascript:showPlainTxt('code-69'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-69">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>O $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Encendido: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$uptime </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea hace referencia a la variable $kernel que nos da la imformacion del kernel que estamos usando</p>
<div class="igBar"><span id="lcode-70"><a href="#" onclick="javascript:showPlainTxt('code-70'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-70">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>Q $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Kernel:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$kernel </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente  variable nos dara elporcentaje del uso del cpuX donde X puede ser desde 0 hasta el n procesador que tenga su micro en el ejemplo se tienen 3 procesadores por eso se repite las mismas lineas y cambia a cpu0,cpu1,cpu2,</p>
<div class="igBar"><span id="lcode-71"><a href="#" onclick="javascript:showPlainTxt('code-71'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-71">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>font StyleBats:size=<span style="color:#800000;color:#800000;">14</span><span style="color:#006600; font-weight:bold;">&#125;</span>A $<span style="color:#006600; font-weight:bold;">&#123;</span>font<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #00FF99<span style="color:#006600; font-weight:bold;">&#125;</span>CPU-<span style="color:#800000;color:#800000;">1</span>:$<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>cpu cpu0<span style="color:#006600; font-weight:bold;">&#125;</span>% </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea nos dibujara una grfica de barra del uso del cpuX igual que la linea anterior hay que indicar cual es el numero del cpu del cual queremos la grafica,  el siguiente numero (20) es el ancho despues el (200)  la longitud de la barra, por ultimose indica un degradado de color para esto se indica en que color inicia (ff0000) y en que color termina (0000ff) estos colores seran en hexadecimal .</p>
<div class="igBar"><span id="lcode-72"><a href="#" onclick="javascript:showPlainTxt('code-72'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-72">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>cpugraph cpu0 <span style="color:#800000;color:#800000;">20</span>,<span style="color:#800000;color:#800000;">200</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Las siguientes lineas indican los tres  procesosprincipales que se estan ejecutando, la variable ${top name 1} indica el nombre del proceso 1 y la variable ${top cpu 1} el uso que esta haciendo del cpu dicho proceso, y asi consecutivamente.</p>
<div class="igBar"><span id="lcode-73"><a href="#" onclick="javascript:showPlainTxt('code-73'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-73">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ddaa00<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top name <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top cpu <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Al igual que el Top Cpu  el Top Mem hace lo mismo solo que con los procesos y su uso de la memoria</p>
<div class="igBar"><span id="lcode-74"><a href="#" onclick="javascript:showPlainTxt('code-74'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-74">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #ddaa00<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color lightgrey<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem name <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>top_mem mem <span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea usa dos variables que nos indica el uso de la memoria, la variable $memperc% nos da el porcentaje del uso de la memoria y la variable  $mem/$memmax dos da el uso de la memoria contra el total de memoria disponible</p>
<div class="igBar"><span id="lcode-75"><a href="#" onclick="javascript:showPlainTxt('code-75'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-75">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>MEM:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $memperc% $mem/$memmax </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente line dibuja una grafica del uso de la memoria como parametro solo recibe el ancho y lago de la barra</p>
<div class="igBar"><span id="lcode-76"><a href="#" onclick="javascript:showPlainTxt('code-76'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-76">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>membar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea usa dos variables que nos indica el uso de la memoria swap,  la variable $swapperc% nos da el porcentaje del uso de la memoria swap usada y la variable  $swap/$swapmax dos da el uso de la memoria contra el total de memoria swap disponible.</p>
<div class="igBar"><span id="lcode-77"><a href="#" onclick="javascript:showPlainTxt('code-77'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-77">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SWAP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span> $swapperc% $swap/$swapmax </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea al igual que la de memoria dibuja una grafiaca de barra con el ancho y largo indicado</p>
<div class="igBar"><span id="lcode-78"><a href="#" onclick="javascript:showPlainTxt('code-78'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-78">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>swapbar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguientes lineas dan la imformacion de espacio en disco La variable ${fs_free /} indica el espacio disponoble en disco duro, la variable ${fs_size /} indica en cantidades el espacio usado y el disponible de todo el disco duro o el sistema de archivos usado.</p>
<div class="igBar"><span id="lcode-79"><a href="#" onclick="javascript:showPlainTxt('code-79'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-79">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>ROOT:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguente linea solo dibuja una grafia de barra del uso delsistema de archivos o D.D. del tamaño y largo indicado</p>
<div class="igBar"><span id="lcode-80"><a href="#" onclick="javascript:showPlainTxt('code-80'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-80">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Las siguientes lineas siguientes indican como la linea anterior el espacio disponible en otros discos duros, estos discos deben de estar montados y la diferencia es que hay que indicar el directorio en dondese han montado los discos duros, en este casso hay dos discos duros sda1 y sda5</p>
<p>La variable  ${fs_free /media/sda1} indica el espacio disponible en dicho disco, montado en dicha direccion en este caso el directorio donde se monto fue /media/sda1</p>
<p>La variable ${fs_bar 4,200 /media/sda1} dibuja una grafica de barra del espacio en disco oviamente indicandole la ruta donde se monto</p>
<div class="igBar"><span id="lcode-81"><a href="#" onclick="javascript:showPlainTxt('code-81'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-81">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SDA1:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /media/sda1<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>SDA5:&nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_free /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span>/$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_size /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>fs_bar <span style="color:#800000;color:#800000;">4</span>,<span style="color:#800000;color:#800000;">200</span> /media/sda5<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea indica la  direccion Ip de la interfas de red deseada la variable ${addr eth1} es la que regresa la pireccion ip de la interfas de red eth1 la cual se puede cambir por cualquiera que este disponible en este caso eth1 es la tarjeta de red wireless</p>
<div class="igBar"><span id="lcode-82"><a href="#" onclick="javascript:showPlainTxt('code-82'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-82">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>WIFI: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>IP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>addr eth1<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea da el porcentaje de la potencia de la señal y una grafica de la misma donde la variable ${wireless_link_qual_perc eth1} nos indica el porcentaje y ${wireless_link_bar 4 eth1} la grafica de la señal de la tarjeta eth1, para saber las interfases de red disponibles usar el comando iwconfig para tarjetas wireless y ifconfig para tarjetas ethernet</p>
<div class="igBar"><span id="lcode-83"><a href="#" onclick="javascript:showPlainTxt('code-83'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-83">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>Senal: $<span style="color:#006600; font-weight:bold;">&#123;</span>color <span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>wireless_link_qual_perc eth1<span style="color:#006600; font-weight:bold;">&#125;</span> $<span style="color:#006600; font-weight:bold;">&#123;</span>wireless_link_bar <span style="color:#800000;color:#800000;">4</span> eth1<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea nos da la velosidad de subida y descarga de nuestra interfas de red en kb la variable ${downspeed eth1} nos indica la velosidad de descarga y ${upspeed eth1} la velosidad de subida de la tarjeta de red eth1</p>
<div class="igBar"><span id="lcode-84"><a href="#" onclick="javascript:showPlainTxt('code-84'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-84">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>DOWN: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>downspeed eth1<span style="color:#006600; font-weight:bold;">&#125;</span> k/s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>UP: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>upspeed eth1<span style="color:#006600; font-weight:bold;">&#125;</span> k/s </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La siguiente linea dibuja dos graficas que indican la velosidad de descarga  y subida la variable ${downspeedgraph eth1 25,90 ff0000 0000ff} hace la grafica eth1 es la tarjeta de red que monitorea 25 y 90 son el ancho y alto de la grafica y ff0000 0000ff el color inicial y final con el que se dibujara la grafica, de la misma manera para ${upspeedgraph eth1 25,90 0000ff ff0000}</p>
<div class="igBar"><span id="lcode-85"><a href="#" onclick="javascript:showPlainTxt('code-85'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-85">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>downspeedgraph eth1 <span style="color:#800000;color:#800000;">25</span>,<span style="color:#800000;color:#800000;">90</span> ff0000 0000ff<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>alignr<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>color #888888<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>upspeedgraph eth1 <span style="color:#800000;color:#800000;">25</span>,<span style="color:#800000;color:#800000;">90</span> 0000ff ff0000<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La ultima linea nos indicara el total en Mb de datos enviados y recividos la variable ${totaldown eth1} es la que indicara el total de datos descargados de la tarjeta de red eth1 y la variable  ${totalup eth1} para los datos enviados.</p>
<div class="igBar"><span id="lcode-86"><a href="#" onclick="javascript:showPlainTxt('code-86'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-86">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>TOTAL: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>totaldown eth1<span style="color:#006600; font-weight:bold;">&#125;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$<span style="color:#006600; font-weight:bold;">&#123;</span>color #0077ff<span style="color:#006600; font-weight:bold;">&#125;</span>TOTAL: $<span style="color:#006600; font-weight:bold;">&#123;</span>color #CCCCCC<span style="color:#006600; font-weight:bold;">&#125;</span>$<span style="color:#006600; font-weight:bold;">&#123;</span>totalup eth1<span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Con esto terminamos la descripcion del codigo de configuracion del conky existen muchas otras variables de comfiguracion disponibles, aqui se mostraron las mas basicas para poder obtener un monitor vistoso y funcional.</p>
<p>Si desean mas inforamcion y variables visiten las siguientes paginas <a href="http://conky.sourceforge.net/variables.html">http://conky.sourceforge.net/variables.html </a>y <a href="http://conky.sourceforge.net/config_settings.html">http://conky.sourceforge.net/config_settings.html</a></p>
<p>Espero haya sido explicito y no muy redundante.</p>
<p>Saludos</p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2008/10/10/mini-how-to-de-configuracion-de-conky-el-monitor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Como cambiar la contraseña de MySQL</title>
		<link>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/</link>
		<comments>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 22:27:23 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[UBUNTU]]></category>
		<category><![CDATA[USUARIOS]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/</guid>
		<description><![CDATA[Hay veces que al instalar el mysql, tenemos el problema de
Error
MySQL ha dicho:
#1045 - Access denied for user: 'user@localhost' (Using password: YES)
Si olvidamos la contrasena o de plano nunca la tuvimos y necesitamos logearnos en mysql. La solucion es la siguiente.
Primero hay que deterner el servidor de mysql
PLAIN TEXT
CODE:




/etc/init.d/mysql stop 






Despues iniciaremos el servidor en [...]]]></description>
			<content:encoded><![CDATA[<p>Hay veces que al instalar el mysql, tenemos el problema de</p>
<p>Error<br />
MySQL ha dicho:</p>
<p>#1045 - Access denied for user: 'user@localhost' (Using password: YES)</p>
<p>Si olvidamos la contrasena o de plano nunca la tuvimos y necesitamos logearnos en mysql. La solucion es la siguiente.</p>
<p>Primero hay que deterner el servidor de mysql</p>
<div class="igBar"><span id="lcode-90"><a href="#" onclick="javascript:showPlainTxt('code-90'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-90">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql stop </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Despues iniciaremos el servidor en modo seguro, ignorando las tablas de permisos</p>
<p>/usr/bin/mysqld_safe --skip-grant-tables &amp;</p>
<p>Con esto podemos entrar a mysq, le indicamos que la tabla a usar es mysql y ejecutamos una consulta que nos permitira cambiar la contrasena actual del usuario que necesitemos , despues de ejecutar la consulta, reiniciamos los privilegios, por ultimo salimos.</p>
<div class="igBar"><span id="lcode-91"><a href="#" onclick="javascript:showPlainTxt('code-91'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-91">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mysql</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">use mysql;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">UPDATE user SET Password=PASSWORD<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'nueva_contraseña'</span><span style="color:#006600; font-weight:bold;">&#41;</span> WHERE User=\<span style="color:#CC0000;">"root<span style="color:#000099; font-weight:bold;">\"</span>;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">flush privileges;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#CC0000;">exit </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y solo nos queda detener el de nuevo el servidoe de mysql y volverlo a iniciar</p>
<div class="igBar"><span id="lcode-92"><a href="#" onclick="javascript:showPlainTxt('code-92'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-92">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql stop</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql start </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Esto lo he provado en ubuntu 7.4 y 7.10</p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2008/04/06/como-cambiar-la-contrasena-de-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini How-to Ubuntu, Java y MySQL Parte 4</title>
		<link>http://vive-libre.com/blog/2008/04/06/mini-how-to-ubuntu-java-y-mysql-parte-4/</link>
		<comments>http://vive-libre.com/blog/2008/04/06/mini-how-to-ubuntu-java-y-mysql-parte-4/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 05:58:12 +0000</pubDate>
		<dc:creator>yovany</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[UBUNTU]]></category>
		<category><![CDATA[CODIGO]]></category>

		<guid isPermaLink="false">http://vive-libre.com/blog/2008/04/06/mini-how-to-ubuntu-java-y-mysql-parte-4/</guid>
		<description><![CDATA[Que tal pues seguimos con la saga, en esta parte veremos como hacer consultas desde la interfas grafica, empecemos.
Consultas a MySQL desde interfas grafica con NETBEANS.
Para empesar hay que crear un archivo nuevo,  Formulario GUI JAVA &#62; Formulario JFrame &#62;

Despues le asignamos un nombre que en este caso sera CONSULTAS y le damos terminar.

Ya [...]]]></description>
			<content:encoded><![CDATA[<p>Que tal pues seguimos con la saga, en esta parte veremos como hacer consultas desde la interfas grafica, empecemos.</p>
<p>Consultas a MySQL desde interfas grafica con NETBEANS.</p>
<p>Para empesar hay que crear un archivo nuevo,  Formulario GUI JAVA &gt; Formulario JFrame &gt;</p>
<p><img src="http://lh5.google.com/blue.star.boy/R-xRqwrZ52I/AAAAAAAAA1g/m1rq2JOLwn8/s800/Pantallazo-17.png" /></p>
<p>Despues le asignamos un nombre que en este caso sera CONSULTAS y le damos terminar.</p>
<p><img src="http://lh4.google.com/blue.star.boy/R-xRqgrZ51I/AAAAAAAAA1Y/VbHQtSD6os4/s800/Pantallazo-18.png" /></p>
<p>Ya que tenemos nuestro JFrame vamos a garegar una caja de texto un boton y una tabla que es donde vamos a visualizar los resultados de la consulta, al final obtendremos algo asi.</p>
<p><img src="http://lh6.google.com/blue.star.boy/R-xUBArZ53I/AAAAAAAAA1o/4P1KJKM2fek/s800/Pantallazo-20.png" /></p>
<p>Ahora, recordando la estructura de la base de datos que hemos estado usando, los campos que tenemos disponibles son los siguientes:</p>
<p>CREATE TABLE DATOS<br />
<span style="color: #006600; font-weight: bold">(</span><br />
NOMBRE VARCHAR<span style="color: #006600; font-weight: bold">(</span><span style="color: #800000">25</span><span style="color: #006600; font-weight: bold">)</span>,<br />
TELEFONO VARCHAR<span style="color: #006600; font-weight: bold">(</span><span style="color: #800000">15</span><span style="color: #006600; font-weight: bold">)</span>,<br />
CORREO VARCHAR<span style="color: #006600; font-weight: bold">(</span><span style="color: #800000">25</span><span style="color: #006600; font-weight: bold">)</span>,<br />
TWITTER VARCHAR<span style="color: #006600; font-weight: bold">(</span><span style="color: #800000">30</span><span style="color: #006600; font-weight: bold">)</span><br />
<span style="color: #006600; font-weight: bold">)</span>;</p>
<p>Los resultados que vamos a obtener de la consulta, los vamos a recibir en la tabla, por lo mismo la tabla debe de tener las mismas columnas, estas tablas no son tan dinamicas, como los arreglos en C o demas lenguajes, (o al menos no le he encontrado la forma : ) si saben se aceptan sugerencias ). Para modificar las propiedades de la tabla como columnas, filas, y tipos de datos que albergaran las columnas hay que seleccionar el objeto tabla, y dirigirse a la columna derecha, donde se encuantra la seccion de propiedades, ahi buscaremos el atributo de "MODEL", este atributo no tiene ningun valor, pero tiene un boton al final de campo con tres puntos [...], al dar click en el boton nos mostrara el menu, de la propiedades de la tabla.</p>
<p><img src="http://lh6.google.com/blue.star.boy/R-xazArZ56I/AAAAAAAAA10/FzUbeLa5hTs/s800/Pantallazo-21.png" /></p>
<p>En esta ventana modificaremos el nombre de las columnas que tiene la tabla segun sea el caso, y el tipo de datos que contendra la columna, lo podemos dejar como Object, pero lo cambiaremos a String. En la pestana de Valores predeterminados podremos ver una vista previa de la tabla, ademas de poder agregar columnas y filas con los botones que se encuentran en la parte inferior izquierda. Al termniar obtendremos esto:</p>
<p><img src="http://lh4.google.com/blue.star.boy/R-xccgrZ57I/AAAAAAAAA18/h9z0v_Mx9hQ/s800/Pantallazo-22.png" /></p>
<p>Teniedo el formulario listo, empezaremos con la programacion de la consulta a mysql. Cambiaremos el nombre de la caja de texto para manejarlo mas facil, para nuestro caso se llamara txtNombre.</p>
<p>Agregaremos un evento al boton de tipo mouseReleased para hacer la consulta y ahi debe ir el siguiente codigo:</p>
<div class="igBar"><span id="lcode-94"><a href="#" onclick="javascript:showPlainTxt('code-94'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-94">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">int j=<span style="color:#800000;color:#800000;">0</span>,i=<span style="color:#800000;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Esta es la cadena a ejecutar en el servido de mysql se le pasa como parametro txtNombre, que es la caja de texto //donde se introduce el nombre a buscar, con el metodo getTex(), para obtener el texto introducido, y toStrin() para //convertir a String la cadena de la caja del texto.</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">String cadena=<span style="color:#CC0000;">"SELECT * FROM DATOS WHERE NOMBRE LIKE '%"</span>+txtNobre.<span style="">getText</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="">toString</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>+<span style="color:#CC0000;">"%';"</span>;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//No olvidar que las conexiones siempre se manejan dentro de try, para el manejo de excepciones de lo contrario siempre //les manejara un error aun que el codigo este bien</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">try</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Le indicamos el&nbsp; driver a usar</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Class.<span style="">forName</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"com.mysql.jdbc.Driver"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="">newInstance</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Le indicamos los datos correspondientes en la cadena de conexion, ip del servido, Base de datos usuario y pass</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">conexion=DriverManager.<span style="">getConnection</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"jdbc:mysql://127.0.0.1:3306/AGENDA"</span>,<span style="color:#CC0000;">"user"</span>,<span style="color:#CC0000;">"passwd"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sentencia=conexion.<span style="">createStatement</span><span style="color:#006600; font-weight:bold;">&#40;</span>ResultSet.<span style="">TYPE_SCROLL_INSENSITIVE</span>,ResultSet.<span style="">CONCUR_READ_ONLY</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Aqui ejecutamos la sentencia de la consulta</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">resultado=sentencia.<span style="">executeQuery</span><span style="color:#006600; font-weight:bold;">&#40;</span>cadena<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Mientras la consulta arroje resultados va entrar al while</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">while<span style="color:#006600; font-weight:bold;">&#40;</span>resultado.<span style="">next</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//El for nos servira para ir recorriendo los datos que recojimos de la consulta, el contador comienza en uno (no en cero //como los areglos en C) el indice i nos servira para ir pasando de columna en columna, tanto en la tabla como en los //resultados de la consulta,el indice j sera para ir saltando de fila en fila despues de cada recorrido de columnas</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">for<span style="color:#006600; font-weight:bold;">&#40;</span>i=<span style="color:#800000;color:#800000;">1</span>;i&amp;lt;=<span style="color:#800000;color:#800000;">4</span>;i++<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Tabla.<span style="">setValueAt</span><span style="color:#006600; font-weight:bold;">&#40;</span>resultado.<span style="">getString</span><span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span>,j,i-<span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">j=j+<span style="color:#800000;color:#800000;">1</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Por ultimo el catch para manejar las excepciones si entra al catch mandaremos a imprimir la variable e que es donde se //guardara el mensaje de la excepcion</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">catch<span style="color:#006600; font-weight:bold;">&#40;</span>Exception e<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JOptionPane.<span style="">showMessageDialog</span><span style="color:#006600; font-weight:bold;">&#40;</span>null,<span style="color:#CC0000;">"error: "</span>+e<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#498BFE;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y aqui esta la prueba (Las etiquetas estan al reves pero nada de importancia <img src='http://vive-libre.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ).</p>
<p><img src="http://lh4.google.com/blue.star.boy/R_lJkQrZ58I/AAAAAAAAA2g/IGdGUGIzpzM/s800/Pantallazo-23.png" /><br />
Y listo espero les sirva de ayuda, comentarios, quejas o sujerencias ya saben a donde <img src='http://vive-libre.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Saludos</p>
]]></content:encoded>
			<wfw:commentRss>http://vive-libre.com/blog/2008/04/06/mini-how-to-ubuntu-java-y-mysql-parte-4/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
