<?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>OFF TOPIC!</title>
	<atom:link href="http://www.luizxx.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.luizxx.com</link>
	<description>Luizxx Expansion Set</description>
	<lastBuildDate>Fri, 16 Jul 2010 04:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OpenSuSE 11.3</title>
		<link>http://www.luizxx.com/archives/743</link>
		<comments>http://www.luizxx.com/archives/743#comments</comments>
		<pubDate>Fri, 16 Jul 2010 04:12:27 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[OpenSuse]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=743</guid>
		<description><![CDATA[A versão 11.3 do OpenSuSE foi lançada trazendo inúmeras atualizações e melhorias no sistema, entre elas Kernel 2.6.34, suporte nativo a MariaDB, Gnome 2.30.1 e KDE SC 4.4.4 nas versões de 32 e 64 bits. Obs. Está disponível também no sistema o preview do Gnome 3.0! Mais informações no site oficial do projeto&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full  wp-image-744" title="OpenSuSE 11.3" src="http://www.luizxx.com/wp-content/uploads/2010/07/Opensuse_8.png" alt="OpenSuSE 11.3" width="125" height="125" />A versão 11.3 do OpenSuSE foi lançada trazendo inúmeras atualizações e melhorias no sistema, entre elas Kernel 2.6.34, suporte nativo a MariaDB, Gnome 2.30.1 e KDE SC 4.4.4 nas versões de 32 e 64 bits.</p>
<p><strong>Obs.</strong> Está disponível também no sistema o preview do Gnome 3.0!</p>
<p>Mais informações no <a title="OpenSuSE" href="http://www.opensuse.org/" target="_blank">site oficial</a> do projeto&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/743/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Erlang] Mnesia Overload Events</title>
		<link>http://www.luizxx.com/archives/721</link>
		<comments>http://www.luizxx.com/archives/721#comments</comments>
		<pubDate>Thu, 24 Jun 2010 14:56:03 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[erlang]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=721</guid>
		<description><![CDATA[Normally when running an Erlang application (like Ejabberd) using Mnesia internal database in a heavy loaded environment you run into the following log message: =ERROR REPORT==== 23-Jun-2010::00:59:19 === Mnesia(node@server): ** WARNING ** Mnesia is overloaded: {dump_log, write_threshold} This warning event is usually shown when using mnesia disc_copies tables and doing a lot of writes to [...]]]></description>
			<content:encoded><![CDATA[<p>Normally when running an Erlang application (like Ejabberd) using Mnesia internal database in a heavy loaded environment you run into the following log message:</p>
<p><code>=ERROR REPORT==== 23-Jun-2010::00:59:19 ===<br />
Mnesia(node@server): ** WARNING ** Mnesia is overloaded: {dump_log, write_threshold}</code></p>
<p>This warning event is usually shown when using mnesia disc_copies tables and doing a lot of writes to disk all at once (considering you are using asynchronous writes), and of course it can get really annoying when they start happening every second. We can drastically reduce the occurrence of this error changing 2 configuration parameters, the <em>dc_dump_limit</em> and <em>dump_log_write_threshold</em>. </p>
<p><strong>dc_dump_limit</strong><br />
This parameter controls how often disc_copies tables are dumped from memory, the default value is 4 that means if the log size is greater than the table size divided per 4 (table size / 4) it starts the dump. You can make dumps happen more often increasing this value.</p>
<p><strong>dump_log_write_threshold</strong><br />
This parameter defines the maximum number of writes to the transaction log before a new dump is performed, using the default value 100 a new transaction log dump is performed after every 100 writes. You can increase this value giving more time to the write process to finish, but be sure that you have enough RAM on your server to maintain the transactions running.</p>
<p><strong>And now, what does it mean?</strong><br />
Mnesia activity is recorded in transaction logs, that gets dumped to table logs, which in turn are dumped to table files on disk. By increasing the <em>dump_log_write_threshold</em>, transaction logs are dumped much less often, giving more time to the last dump be completed before the next dump is triggered. By the way, increasing the <em>dc_dump_limit</em> helps ensure that the disk table is dumped form the logs more often.</p>
<p>You can configure the parameters using the following syntax:</p>
<p><code>{mnesia, [{dc_dump_limit, 40}, {dump_log_write_threshold, 50000}]}</code><br />
<em>* Remember to change the values according to your needs!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/721/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[ejabberd] Reload module via Erlang console</title>
		<link>http://www.luizxx.com/archives/706</link>
		<comments>http://www.luizxx.com/archives/706#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:38:41 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[erlang]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=706</guid>
		<description><![CDATA[It is possible to reload some ejabberd modules from disk without restarting ejabberd service. This allows you to modify erlang source files (.erl) and reload them without the need of restarting. Obs. Reloading modules is also possible via the web interface since ejabberd 0.9.1. Open an Erlang console on the ejabberd node with: # ejabberdctl [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to reload some ejabberd modules from disk without restarting ejabberd service.<br />
This allows you to modify erlang source files (.erl) and reload them without the need of restarting.</p>
<p><strong>Obs.</strong> Reloading modules is also possible via the web interface since ejabberd 0.9.1.</p>
<p>Open an Erlang console on the ejabberd node with:<br />
# ejabberdctl debug</p>
<p>And select the module you wish to compile with:<br />
<em>c(mod_version).</em></p>
<p>If you just want to reload the .beam file (without recompiling the module), use:<br />
<em>l(mod_version).</em></p>
<p><strong>Obs.</strong> <em>Replace &#8220;mod_version&#8221; with the name of the file you want to recompile / reload.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/706/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export user list in ejabberd</title>
		<link>http://www.luizxx.com/archives/695</link>
		<comments>http://www.luizxx.com/archives/695#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:19:18 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[erlang]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=695</guid>
		<description><![CDATA[There are lots of ways to upgrade ejabberd service without downtime, but sometimes when managing a corporate instant messaging server we need to reformulate our entire messaging architecture in a new server and we can just export all users and passwords to a list and then import them to the new server using just the [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of ways to upgrade ejabberd service without downtime, but sometimes when managing a corporate instant messaging server we need to reformulate our entire messaging architecture in a new server and we can just export all users and passwords to a list and then import them to the new server using just the command line and mod_cltextra / mod_admin module.</p>
<p>There&#8217;s no automated way to export all users like <a href="http://www.igniterealtime.org/projects/openfire/index.jsp">Openfire</a> does, but we can dump our entire database, consider that you are using the internal erlang mnesia database, to a text file and filter just the values we want (in this case, users and passwords) using the following steps:</p>
<ol>
<li>Dump the database to a text file:</li>
<blockquote><p># ejabberd_ctl ejabberd@localhost dump /tmp/mnesia.dump</p></blockquote>
<li>Filter the dump to get only registered users</li>
<blockquote><p># cat /tmp/mnesia.dump | grep &#8216;{passwd,{&#8216; > /tmp/tmplist.txt</p></blockquote>
<li>Convert your temporary generated file to the format you prefer, in this case getting a list (username, hostname, password):<br />
<blockquote><p># sed -e &#8216;s/{passwd,{&#8220;//g;s/&#8221;,&#8221;/ /g;s/&#8221;},&#8221;/ /g;s/&#8221;}.//g&#8217; /tmp/tmplist.txt > /tmp/userlist.txt</p></blockquote>
</ol>
<p><strong>Obs.</strong> The database registers that store user information in the dump have the following format:<br />
<em>{passwd,{&#8220;USER&#8221;,&#8221;VIRTUAL-HOST&#8221;},&#8221;PASSWORD&#8221;}.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/695/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Nokia N85] Problema com câmera de vídeo</title>
		<link>http://www.luizxx.com/archives/654</link>
		<comments>http://www.luizxx.com/archives/654#comments</comments>
		<pubDate>Sun, 28 Mar 2010 23:34:17 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=654</guid>
		<description><![CDATA[Realmente os celulares Nokia NSeries fazem filmes e fotos com altíssima qualidade, porém o N85 normalmente apresenta problemas na gravação de vídeos durante as primeiras utilizações deixando várias pausas no meio do vídeo durante sua exibição, a princípio pensei ser um problema com a execução do vídeo diretamente no celular porém ao copiar o vídeo [...]]]></description>
			<content:encoded><![CDATA[<p>Realmente os celulares Nokia NSeries fazem filmes e fotos com altíssima qualidade, porém o N85 normalmente apresenta problemas na gravação de vídeos durante as primeiras utilizações deixando várias pausas no meio do vídeo durante sua exibição, a princípio pensei ser um problema com a execução do vídeo diretamente no celular porém ao copiar o vídeo e executar ele no laptop as pausas continuavam sem parar.</p>
<p>Dando uma pesquisada mais a fundo encontrei mais pessoas que tinham o mesmo problema, e também encontrei uma solução muito simples que funcionou em praticamente 100% dos casos. Simplesmente faça um backup completo do memory card e realize a formatação dele diretamente pelo celular para refazer a tabela de alocação de arquivos.</p>
<p>Esse problema acontece devido a formatação inicial presente no memory card que interrompe a gravação contínua do fluxo de dados enquanto os blocos são realocados.</p>
<p>Após a formatação do memory card simplesmente restaure seus arquivos e começe a gravar os vídeos normalmente, todos eles serão gravados e executados sem as terríveis pausas!</p>
<p><strong>Obs.</strong> Após o restore dos arquivos é interessante desligar e ligar o aparelho para que todas as aplicações sejam carregadas novamente.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/654/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[OpenSUSE] Ativando flash player no Google Chrome</title>
		<link>http://www.luizxx.com/archives/647</link>
		<comments>http://www.luizxx.com/archives/647#comments</comments>
		<pubDate>Tue, 23 Feb 2010 22:28:05 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[OpenSuse]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=647</guid>
		<description><![CDATA[Recentemente instalei o Google Chrome em meu desktop com OpenSUSE 11.2 instalado, e assim que comecei a utilizá-lo percebi que a instalação padrão do flash player não funcionava. Verificando a estrutura de diretórios do pacote, percebi que a pasta dos plugins do Chrome não fazia referência a pasta de plugins do sistema (/usr/lib/browser-plugins/) e também [...]]]></description>
			<content:encoded><![CDATA[<p>Recentemente instalei o Google Chrome em meu desktop com OpenSUSE 11.2 instalado, e assim que comecei a utilizá-lo percebi que a instalação padrão do flash player não funcionava.</p>
<p>Verificando a estrutura de diretórios do pacote, percebi que a pasta dos plugins do Chrome não fazia referência a pasta de plugins do sistema (/usr/lib/browser-plugins/) e também não tinha nenhum plugin instalado localmente.<br />
Desta forma fica fácil chegar-mos na solução do problema, simplesmente vamos criar um link simbólico apontando para o diretório correto:</p>
<blockquote><p>cd /opt/google/chrome<br />
ln -s /usr/lib/browser-plugins/ plugins</p></blockquote>
<p>Para descobrir se está funcionando corretamente, simplesmente abra uma nova aba e navegue algum site que utilize Flash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/647/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Iptables] Armazenando regras no Debian Linux</title>
		<link>http://www.luizxx.com/archives/600</link>
		<comments>http://www.luizxx.com/archives/600#comments</comments>
		<pubDate>Sun, 14 Feb 2010 13:28:38 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=600</guid>
		<description><![CDATA[Configurar regras de firewall com iptables é uma tarefa bem comum no cotidiano de qualquer administrador de sistemas Linux, porém assim como outros tipos de configuração o serviço possui suas recomendações de acordo com a distribuição utilizada. Primeiramente vamos criar um arquivo temporário para a validação das regras: # vim /etc/iptables.test.rules E então colocamos nossas [...]]]></description>
			<content:encoded><![CDATA[<p>Configurar regras de firewall com <em>iptables</em> é uma tarefa bem comum no cotidiano de qualquer administrador de sistemas Linux, porém assim como outros tipos de configuração o serviço possui suas recomendações de acordo com a distribuição utilizada.</p>
<p>Primeiramente vamos criar um arquivo temporário para a validação das regras:</p>
<p># vim /etc/iptables.test.rules</p>
<p>E então colocamos nossas regras dentro dele seguindo o padrão do próprio iptables, como no exemplo abaixo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">*</span>filter
&nbsp;
 <span style="color: #666666; font-style: italic;"># Allows loopback traffic and drop all traffic to 127/8 that doesn't use lo0</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> lo <span style="color: #660033;">-j</span> ACCEPT
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">!</span> lo <span style="color: #660033;">-d</span> 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span> <span style="color: #660033;">-j</span> REJECT
&nbsp;
 <span style="color: #666666; font-style: italic;"># Accepts all established inbound connections</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> ESTABLISHED,RELATED <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
 <span style="color: #666666; font-style: italic;"># Allows all outbound traffic</span>
 <span style="color: #666666; font-style: italic;"># You could modify this to only allow certain traffic</span>
 <span style="color: #660033;">-A</span> OUTPUT <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
 <span style="color: #666666; font-style: italic;"># Allows HTTP and HTTPS connections from anywhere</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">80</span> <span style="color: #660033;">-j</span> ACCEPT
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">443</span> <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
 <span style="color: #666666; font-style: italic;"># Allows SSH connections</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> NEW <span style="color: #660033;">--dport</span> <span style="color: #000000;">22</span> <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
 <span style="color: #666666; font-style: italic;"># Allow ping</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> icmp <span style="color: #660033;">-m</span> icmp <span style="color: #660033;">--icmp-type</span> <span style="color: #000000;">8</span> <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
 <span style="color: #666666; font-style: italic;"># log iptables denied calls (access via 'dmesg' command)</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-m</span> limit <span style="color: #660033;">--limit</span> <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>min <span style="color: #660033;">-j</span> LOG <span style="color: #660033;">--log-prefix</span> <span style="color: #ff0000;">&quot;iptables denied: &quot;</span> <span style="color: #660033;">--log-level</span> <span style="color: #000000;">7</span>
&nbsp;
 <span style="color: #666666; font-style: italic;"># Reject all other inbound - default deny unless explicitly allowed policy:</span>
 <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-j</span> REJECT
 <span style="color: #660033;">-A</span> FORWARD <span style="color: #660033;">-j</span> REJECT
&nbsp;
 COMMIT</pre></div></div>

<p>Após a criação do arquivo com suas regras carregue-as com:</p>
<p># iptables-restore < /etc/iptables.test.rules</p>
<p>Verifique se as regras estão corretas e se é necessária alguma alteração, e caso seja necessário simplesmente repita os procedimentos citados acima.</p>
<p>Depois de todas as regras carregadas corretamente salve-as em um arquivo definitivo como no exemplo abaixo:</p>
<p># iptables-save > /etc/iptables.up.rules</p>
<p>Para garantir que nossas regras sejam carregadas durante o boot do sistema é necessário criar uma entrada para o <em>iptables</em> juntamente com os scripts de inicialização da rede:</p>
<p># vim /etc/network/if-pre-up.d/iptables</p>
<p>Adicionando o seguinte conteúdo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables-restore <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>iptables.up.rules</pre></div></div>

<p>Não podemos esquecer de dar permissão de execução para nosso script de chamada:</p>
<p># chmod +x /etc/network/if-pre-up.d/iptables</p>
<p>Outra maneira muito comum de armazenar e carregar regras de iptables em sistemas Linux é com a utilização de um script de init, por exemplo <em>/etc/init.d/firewall</em>, adicionando sua inicialização nos <em>runlevels</em> do sistema.</p>
<p>Lembrando que todos os procedimentos e informações a respeito deste tipo de configuração em sistemas Debian Linux podem ser encontrados no wiki e também na documentação oficial do Debian em <a href="http://wiki.debian.org">http://wiki.debian.org/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/600/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurando timezone (/etc/localtime)</title>
		<link>http://www.luizxx.com/archives/623</link>
		<comments>http://www.luizxx.com/archives/623#comments</comments>
		<pubDate>Fri, 29 Jan 2010 22:08:26 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=623</guid>
		<description><![CDATA[O timezone configurado através do /etc/localtime pode ser utilizado em qualquer distribuição Linux e normalmente todos os utilitários e ferramentas disponíveis nas distros para este fim simplesmente fazem a manipulação correta deste arquivo e mantém a lista de timezones atualizada. O arquivo /etc/localtime na maioria das vezes é um link simbólico para o arquivo correto [...]]]></description>
			<content:encoded><![CDATA[<p>O timezone configurado através do /etc/localtime pode ser utilizado em qualquer distribuição Linux e normalmente todos os utilitários e ferramentas disponíveis nas distros para este fim simplesmente fazem a manipulação correta deste arquivo e mantém a lista de timezones atualizada. O arquivo <em>/etc/localtime</em> na maioria das vezes é um link simbólico para o arquivo correto de timezone dentro da pasta com os timezones disponíveis no sistema.</p>
<p>Para alterar o timezone atual, primeiramente entre no diretório /etc:<br />
<em># cd /etc</em></p>
<p>Crie/recrie o link simbólico localtime fazendo referência ao arquivo correto:<br />
<em># ln -sf /usr/share/zoneinfo/EST localtime</em></p>
<p>Em algumas distribuições (Red Hat like) o path dos arquivos de timezone é:<br />
<em>/usr/share/zoneinfo/dirname/zonefile.</em></p>
<p>Segue um exemplo para configurar o timezone da máquina para São Paulo / Brasil:<br />
<em># cd /etc<br />
# ln -sf /usr/share/zoneinfo/America/Sao_Paulo localtime</em></p>
<p>Você pode utilizar a variável de ambiente TZ para setar a data correta nas aplicações:<br />
<em>$ export TZ=America/Sao_Paulo<br />
$ date</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/623/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configurando Timezone em Red Hat Linux</title>
		<link>http://www.luizxx.com/archives/598</link>
		<comments>http://www.luizxx.com/archives/598#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:35:58 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=598</guid>
		<description><![CDATA[Dando continuidade ao último post, agora é a vez da configuração de timezone em sistemas baseados em Red Hat Linux. Em sistemas Red Hat / CentOS / Fedora temos o utilitário system-config-date que pode ser utilizado para automatizar todo o processo através de uma interface bem simples e amigável. Para instalar e configurar o timezone [...]]]></description>
			<content:encoded><![CDATA[<p>Dando continuidade ao último post, agora é a vez da configuração de timezone em sistemas baseados em Red Hat Linux. Em sistemas Red Hat / CentOS / Fedora temos o utilitário <em>system-config-date</em> que pode ser utilizado para automatizar todo o processo através de uma interface bem simples e amigável.</p>
<p>Para instalar e configurar o timezone através do utilitário, simplesmente prossiga com:<br />
<em># yum install system-config-date</em><br />
<em># system-config-date</em></p>
<p>Após finalizar as configurações de timezone elas entrarão em vigor imediatamente. </p>
<p>Além da configuração realizada através do utilitário também é possível utilizar o método genérico de configuração de timezone através do /etc/localtme, que assim que possível irei disponibilizar no próximo e último post da série de timezone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/598/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurando Timezone no Debian Linux</title>
		<link>http://www.luizxx.com/archives/561</link>
		<comments>http://www.luizxx.com/archives/561#comments</comments>
		<pubDate>Thu, 14 Jan 2010 03:28:24 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=561</guid>
		<description><![CDATA[Normalmente cada distribuição Linux tem seu próprio método de configuração para o timezone, que geralmente é bem simples, porém muitas vezes encontro servidores com timezone configurado de forma incorreta, o que pode trazer problemas durante a execução de diversas aplicações. Como grande parte das distribuições atuais seguem o padrão Red Hat ou Debian, vou postar [...]]]></description>
			<content:encoded><![CDATA[<p>Normalmente cada distribuição Linux tem seu próprio método de configuração para o timezone, que geralmente é bem simples, porém muitas vezes encontro servidores com timezone configurado de forma incorreta, o que pode trazer problemas durante a execução de diversas aplicações.</p>
<p>Como grande parte das distribuições atuais seguem o padrão Red Hat ou Debian, vou postar aqui inicialmente os métodos para configuração do timezone na plataforma Debian e no próximo artigo os procedimentos para Red Hat / CentOS.</p>
<p>Primeiramente verifique em qual timezone seu sistema está configurado com:</p>
<blockquote><p>luizxx@kanu:~# tzconfig<br />
<em>Your current time zone is set to America/Sao_Paulo<br />
Do you want to change that? [n]:</em></p></blockquote>
<p>Caso o timezone apresentado esteja incorreto pressione y para configurá-lo corretamente seguindo as instruções apresentadas na tela.</p>
<p>Caso você queira configurar o timezone de um local dentro do Brasil, instale o pacote tz-brasil para agilizar as configurações de horário de verão:</p>
<blockquote><p>luizxx@kanu:~# apt-get install tz-brasil</p></blockquote>
<p>No Debian temos algumas particularidades na estrutura de configuração dependendo da versão do sistema operacional, na versão Etch e posteriores o arquivo /etc/localtime é uma cópia idêntica do datafile original, já nas versões anteriores ao Sarge ele é um link para o arquivo original, como apresentado no exemplo abaixo:</p>
<p><em>Debian Etch:</em><br />
<em>$ diff -s /etc/localtime /usr/share/zoneinfo/`cat /etc/timezone`<br />
Files /etc/localtime and /usr/share/zoneinfo/America/New_York are identical</em></p>
<p><em>Debian Sarge:</em><br />
<em>$ ls -l /etc/localtime<br />
lrwxrwxrwx    1 root     root           48 Mar 31 11:19 /etc/localtime -> /usr/share/zoneinfo/America/Sao_Paulo</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/561/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grosstadtgeflüster</title>
		<link>http://www.luizxx.com/archives/548</link>
		<comments>http://www.luizxx.com/archives/548#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:50:28 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Alternative]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=548</guid>
		<description><![CDATA[Depois de um longo tempo sem novos posts de música segue mais uma ótima alternativa de banda alemã&#8230; Uma ótima mistura de música eletrônica com rock alternativo de primeira! Recomendo a todos! Grossstadtgeflüster &#8211; Ich muss gar nix at Yahoo! Video]]></description>
			<content:encoded><![CDATA[<p>Depois de um longo tempo sem novos posts de música segue mais uma ótima alternativa de banda alemã&#8230;<br />
Uma ótima mistura de música eletrônica com rock alternativo de primeira! Recomendo a todos!</p>
<div><center><object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=3856454&#038;vid=1031081&#038;lang=en-us&#038;intl=us&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v2/w975/1031081_320_240.jpeg&#038;embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=3856454&#038;vid=1031081&#038;lang=en-us&#038;intl=us&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v2/w975/1031081_320_240.jpeg&#038;embed=1" ></embed></object><br /></center><a href="http://video.yahoo.com/watch/1031081/3856454">Grossstadtgeflüster &#8211; Ich muss gar nix</a> at <a href="http://video.yahoo.com" >Yahoo! Video</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/548/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LVM em Red Hat Kickstart</title>
		<link>http://www.luizxx.com/archives/530</link>
		<comments>http://www.luizxx.com/archives/530#comments</comments>
		<pubDate>Thu, 01 Oct 2009 04:57:44 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[Kickstart]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=530</guid>
		<description><![CDATA[Normalmente ao preparar um esquema de particionamento para um kickstart utilizamos diretamente partições primárias e/ou extendidas no disco, porém é possível fazer todo o preparo diretamente com a utilização de LVM de uma forma bem simples e prática. Considere o esquema de particionamento abaixo: Não LVM: /boot &#8211; 128MB LVM: / &#8211; 10GB /home &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Normalmente ao preparar um esquema de particionamento para um <em>kickstart</em> utilizamos diretamente partições primárias e/ou extendidas no disco, porém é possível fazer todo o preparo diretamente com a utilização de LVM de uma forma bem simples e prática.</p>
<p>Considere o esquema de particionamento abaixo:</p>
<p><strong>Não LVM:</strong><br />
/boot &#8211; 128MB</p>
<p><strong>LVM:</strong><br />
/ &#8211; 10GB<br />
/home &#8211; 20GB<br />
/var &#8211; 35GB<br />
swap &#8211; 8GB</p>
<p>As entradas no kickstart para limpar a tabela de partições e aplicar o esquema acima serão as seguintes:</p>
<blockquote><p>clearpart &#8211;all<br />
part /boot &#8211;fstype ext3 &#8211;size=128<br />
part pv.4 &#8211;size=0 &#8211;grow<br />
volgroup VolGroup00 pv.4<br />
logvol / &#8211;fstype ext3 &#8211;name=root &#8211;vgname=VolGroup00 &#8211;size=10240<br />
logvol /home &#8211;fstype ext3 &#8211;name=usr &#8211;vgname=VolGroup00 &#8211;size=20480<br />
logvol /var &#8211;fstype ext3 &#8211;name=var &#8211;vgname=VolGroup00 &#8211;size=35840<br />
logvol swap &#8211;fstype swap &#8211;name=swap &#8211;vgname=VolGroup00 &#8211;size=8192</p></blockquote>
<p>Caso você queira fixar a partição /boot em um determinado disco (por exemplo /dev/sda) é possível adicionando a opção <em>&#8220;&#8211;ondisk=sda&#8221;</em> na linha referente ao /boot. A opção <em>&#8211;grow</em> especificada ao criar o <em>pv</em> (phisical volume) informa que todo o restante do disco será utilizado para o LVM.</p>
<p>Mais informações sobre opções disponíveis para kickstart podem ser encontradas na <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html">documentação oficial Red Hat</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/530/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox running Red Hat Guests</title>
		<link>http://www.luizxx.com/archives/523</link>
		<comments>http://www.luizxx.com/archives/523#comments</comments>
		<pubDate>Fri, 28 Aug 2009 13:53:49 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=523</guid>
		<description><![CDATA[Recently I was using a Red Hat guest on my notebook&#8217;s VirtualBox, but with the VM started I noticed that one of my 2 core processor was lost, getting 60% to 100% of CPU load with the guest system totally idle. While testing the same VirtualBox with a Debian and an ArchLinux guest (simultaneously), the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was using a Red Hat guest on my notebook&#8217;s VirtualBox, but with the VM started I noticed that one of my 2 core processor was lost, getting 60% to 100% of CPU load with the guest system totally idle. While testing the same VirtualBox with a Debian and an ArchLinux guest (simultaneously), the processor usage didn&#8217;t beat 10% of processor use with the guests idle.</p>
<p>Looking for some information on <a href="http://forums.virtualbox.org/viewtopic.php?t=7022">VirtualBox forums</a> and on <a href="http://bugs.centos.org/view.php?id=2189">CentOS bugtracker</a>, I found some information that shows up how to solve this problem in a very simple way, just changing the default <em>divider</em> kernel parameter to 10 (adjusting the system clock rate to 100Hz) directly at boot time.</p>
<blockquote><p><strong>Note:</strong> Since Red Hat Enterprise Linux 5.1 / CentOS 5.1 the default system clock rate that is set to 1000Hz and can be changed at boot time, with no need to recompile you kernel, remember that Xen guests don’t need the system clock rate to be modified because they already have a 250Hz kernel.</p></blockquote>
<p>For those that are not familiar changing kernel parameters, just edit your grub <em>menu.lst</em> file (usually /boot/grub/menu.lst), add <em><strong>divider=10</strong></em> in the end of the kernel line and reboot your system.</p>
<p>Ps. Sorry for the long time without new posts&#8230; Now I&#8217;m back! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/523/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python-MySQLdb Upgrade Problem</title>
		<link>http://www.luizxx.com/archives/512</link>
		<comments>http://www.luizxx.com/archives/512#comments</comments>
		<pubDate>Wed, 22 Jul 2009 20:05:49 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=512</guid>
		<description><![CDATA[Recently I got an error while running some Python scripts on a Red Hat Enterprise Linux 3, specifically when importing the MySQLdb module, with the the following error: ImportError: cannot import name ImmutableSet After some research I found that when upgrading the module to version 1.2.1 (or newer) the file sets.py, that was used on [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I got an error while running some Python scripts on a Red Hat Enterprise Linux 3, specifically when importing the MySQLdb module, with the the following error:</p>
<p><code>ImportError: cannot import name ImmutableSet</code></p>
<p>After some research I found that when upgrading the module to version 1.2.1 (or newer) the file <em>sets.py</em>, that was used on 1.2.0 or prior versions, still on system and this doesn&#8217;t contain <em>ImmutableSet</em> that&#8217;s defined as a default bult-in set in the recent versions of MySQLdb.</p>
<p>To solve this problem (tested on Python 2.4 and 2.6) just remove the <em>sets.py</em> from your MySQLdb installation directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/512/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing Gnome Panel Font Color</title>
		<link>http://www.luizxx.com/archives/504</link>
		<comments>http://www.luizxx.com/archives/504#comments</comments>
		<pubDate>Tue, 21 Jul 2009 11:16:48 +0000</pubDate>
		<dc:creator>Luiz</dc:creator>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[Gnome]]></category>

		<guid isPermaLink="false">http://www.luizxx.com/?p=504</guid>
		<description><![CDATA[Sometimes we want to create or change the Gnome panel background color, but when we use a dark or black background is quite dificult to see the fonts at the main menu and clock for example. To solve this problem, we can simple change the panel font colors directly editing the .gtkrc-2.0 file in our [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we want to create or change the Gnome panel background color, but when we use a dark or black background is quite dificult to see the fonts at the main menu and clock for example. To solve this problem, we can simple change the panel font colors directly editing the .gtkrc-2.0 file in our home directory:</p>
<blockquote><p>luizxx@Revy ~ $ vi .gtkrc-2.0</p></blockquote>
<p>Then add the following lines to your file:</p>
<blockquote><p>
style &#8220;modpanel&#8221;<br />
{<br />
fg[NORMAL] = &#8220;#FFFFFF&#8221;<br />
}<br />
widget &#8220;*PanelWidget*&#8221; style &#8220;modpanel&#8221;<br />
widget &#8220;*PanelApplet*&#8221; style &#8220;modpanel&#8221;<br />
widget &#8220;*fast-user-switch-applet*&#8221; style &#8220;modpanel&#8221;</p></blockquote>
<p>Now you can logout and logon to activate the changes, or you can simply reload the panel with:</p>
<blockquote><p>luizxx@Revy ~ $ killall gnome-panel</p></blockquote>
<p>Note that you can change the <em>fg[NORMAL]</em> value to any color you want to use, from #000000 to #FFFFFF.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizxx.com/archives/504/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
