<?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>Fogo na Caixa dAgua &#187; Featured Articles</title>
	<atom:link href="http://www.fogonacaixadagua.com.br/category/featured-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fogonacaixadagua.com.br</link>
	<description>http://www.fogonacaixadagua.com.br</description>
	<lastBuildDate>Tue, 20 Sep 2011 21:39:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CLI: Converter um PDF para uma imagem</title>
		<link>http://www.fogonacaixadagua.com.br/2010/04/cli-converter-um-pdf-para-uma-imagem/</link>
		<comments>http://www.fogonacaixadagua.com.br/2010/04/cli-converter-um-pdf-para-uma-imagem/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 03:18:04 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/?p=1431</guid>
		<description><![CDATA[Ter um PDF é bom, é prático e tudo o mais, mas é necessário ter um programa específico para poder abrir os arquivos .pdf como o Acrobat Reader, o evince e outros. As vezes não é necessário ou não é desejado ter um programa específico para poder abrir PDFs, sendo mais prático, no entanto, utilizar [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2010/04/cli-converter-um-pdf-para-uma-imagem/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><p>Ter um PDF é bom, é prático e tudo o mais, mas é necessário ter um programa específico para poder abrir os arquivos .pdf como o Acrobat Reader, o evince e outros.</p>
<p>As vezes não é necessário ou não é desejado ter um programa específico para poder abrir PDFs, sendo mais prático, no entanto, utilizar o próprio navegador que suporta abrir as imagens diretamente sem auxílio externo.</p>
<p>Caso essa seja a sua necessidade, converter os PDFs que estejam num servidor ou o que seja, vou mostrar abaixo como converter PDF para imagem através da linha de comando do Linux utilizando o programa ImageMagick.</p>
<h2>Instalando o ImageMagick no CentOS / Red Hat</h2>
<p>No Red Hat / CentOS é bem simples:</p>
<pre class="brush: shell">
yum install ImageMagick
</pre>
<p>Será instalado o ImageMagick e todas as dependências. Não se assuste se dentre elas ter alguma biblioteca do x.org, é necessário para várias bibliotecas de imagem.</p>
<h2>Convertendo o PDF em imagem</h2>
<p>Para converter o PDF propriamente dito para um arquivo de imagem, simplesmente execute o comando <tt>convert</tt> mais o destino, por exemplo:</p>
<pre class="brush: shell">
convert Relatorio2010.pdf Relatorio2010.png
</pre>
<p>Será gerado uma imagem do PDF no formato .png, mas caso seja necessário que o PDF seja convertido para JPEG, altere a extensão do arquivo de destino:</p>
<pre class="brush: shell">
convert Relatorio2010.pdf Relatorio2010.jpg
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2010/04/cli-converter-um-pdf-para-uma-imagem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba com Antivírus ClamAV no Red Hat 5.x / CentOS 5.x</title>
		<link>http://www.fogonacaixadagua.com.br/2010/03/samba-com-antivirus-clamav-no-red-hat-centos/</link>
		<comments>http://www.fogonacaixadagua.com.br/2010/03/samba-com-antivirus-clamav-no-red-hat-centos/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 21:51:48 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Seguranca]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/?p=1317</guid>
		<description><![CDATA[Não é preciso descrever como é importante em um ambiente onde haja computadores Windows envolvidos que é necessário ter um antivírus no servidor de arquivos Linux ou FreeBSD com o Samba. Essa versão do artigo irá cobrir Red Hat / CentOS versão 5.x. Pré-requisitos Instalação mínima do CentOS e RedHat 5.3 Utilizando o repositório Yum [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2010/03/samba-com-antivirus-clamav-no-red-hat-centos/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><p>Não é preciso descrever como é importante em um ambiente onde haja computadores Windows envolvidos que é necessário ter um antivírus no servidor de arquivos Linux ou FreeBSD com o Samba.</p>
<p>Essa versão do artigo irá cobrir Red Hat / CentOS versão 5.x.</p>
<h2>Pré-requisitos</h2>
<ul>
<li><a href="http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/">Instalação mínima do CentOS e RedHat 5.3</a></li>
<li><a href="http://www.fogonacaixadagua.com.br/2009/08/utilizando-o-repositorio-yum-rpmforge/">Utilizando o repositório Yum RPMforge</a></li>
</ul>
<h2>1.0 Instalando o ClamAV</h2>
<p>É necessário o repositório Yum RPMforge estar instalado e configurado. Veja &#8220;Pré-requisitos&#8221;.</p>
<pre class="brush: shell">yum install clamav clamav-db clamd
</pre>
<h3>1.1 Configurando o clamd</h3>
<p>Após a instalação do clamav, edite o arquivo <tt>/etc/clamd.conf</tt> e adeque as suas necessidades.</p>
<p>Para uma utilização geral, a seguinte configuração é suficiente:</p>
<p><strong>Arquivo: </strong><tt>/etc/clamd.conf</tt></p>
<pre class="brush: plain">LogFile /var/log/clamav/clamd.log
LogFileMaxSize 0
LogTime yes
LogSyslog yes
PidFile /var/run/clamav/clamd.pid
TemporaryDirectory /var/tmp
DatabaseDirectory /var/clamav
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket yes
TCPSocket 3310
TCPAddr 127.0.0.1
MaxConnectionQueueLength 30
MaxThreads 50
ReadTimeout 300
User root
AllowSupplementaryGroups yes
ScanPE yes
ScanELF yes
DetectBrokenExecutables yes
ScanOLE2 yes
ScanMail yes
ScanArchive yes
ArchiveBlockEncrypted no
</pre>
<p>Por que o usuário &#8216;root&#8217;? Porque por padrão o Clamd roda como usuário &#8216;clamav&#8217; e quando o Samba chamar o clamav e for necessário apagar algum arquivo com vírus ele não vai ter permissão.</p>
<p>Inicar e garantir que iniciará no boot:</p>
<pre class="brush: plain">
chkconfig --levels 35 clamd on
service clamd start
</pre>
<pre class="brush: plain">Starting Clam AntiVirus Daemon:                            [  OK  ]
</pre>
<h3>1.2 Configurando freshclam para atualizações</h3>
<p>Editar o arquivo de configuração do freshclam que ficará parecido com o seguinte:</p>
<p><strong>Arquivo:</strong> <tt>/etc/freshclam.conf</tt></p>
<pre class="brush: plain; gutter: true">DatabaseDirectory /var/clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogTime yes
DatabaseMirror db.br.clamav.net
DatabaseMirror database.clamav.net
DatabaseOwner root
NotifyClamd /etc/clamd.conf
SubmitDetectionStats /etc/clamd.conf
</pre>
<p>Criar o arquivo de log pro Freshclam</p>
<pre class="brush:plain">
touch /var/log/clamav/freshclam.log
chown clamav:clamav /var/log/clamav/freshclam.log
</pre>
<p>Caso seu servidor não tenha acesso diretamente à internet mas você possui um proxy na rede, coloque os seguintes parâmetros no arquivo <tt>/etc/freshclam.conf</tt> com as informações do proxy.</p>
<p><strong>Arquivo:</strong> <tt>/etc/freshclam.conf</tt></p>
<pre class="brush: plain">HTTPProxyServer 192.168.1.1
HTTPProxyPort 3128
HTTPProxyUsername user
HTTPProxyPassword s3nh4
</pre>
<p>Após isso, a permissão do arquivo <tt>/etc/freshclam.conf</tt> deverá ser <tt>0600</tt>.</p>
<pre class="brush: shell">chmod 0600 /etc/freshclam.conf
</pre>
<p>Pode-se executar o comando <tt>freshclam</tt> para atualizar a assinatura de vírus.</p>
<pre class="brush: shell">freshclam
</pre>
<h2>2.0 Instalando o Samba</h2>
<p>A versão que vem por padrão com o Red Hat / CentOS não é possível utilizar em conjunto com o vscan, por isso será necessário compilar o Samba para que tenha suporte ao samba-vscan.</p>
<h4>2.0.1 RPMs 64 bits gerados</h4>
<p>Se o seu SO é 64 bits, então os pacotes do Samba eu compilei e estou disponbilizando aqui, pra facilitar o trabalho e não ser necessário instalar o ambiente de desenvolvimento no servidor.</p>
<ul>
<li><a href="http://www.virtualxp.org/downloads/samba-3.0.33/x86_64/samba-3.0.33-3.14.x86_64.rpm">samba-3.0.33-3.14.x86_64.rpm</a></li>
<li><a href="http://www.virtualxp.org/downloads/samba-3.0.33/x86_64/samba-client-3.0.33-3.14.x86_64.rpm">samba-client-3.0.33-3.14.x86_64.rpm</a></li>
<li><a href="http://www.virtualxp.org/downloads/samba-3.0.33/x86_64/samba-common-3.0.33-3.14.x86_64.rpm">samba-common-3.0.33-3.14.x86_64.rpm</a></li>
</ul>
<p>Caso queira compilar, prossiga para o próximo passo</p>
<h4>2.0.2 Preparando o Samba para gerar o pacote .rpm</h4>
<p>Faça o download do RPM source do samba:</p>
<pre class="brush: plain">cd ~
wget http://netops.nexicom.net/centos/5.4/updates/SRPMS/samba-3.0.33-3.14.el5.src.rpm</pre>
<p>Instalar os arquivos:</p>
<pre class="brush: plain">rpm -ivh samba-3.0.33-3.14.el5.src.rpm
</pre>
<p>É necessário descompacatar o .tar.gz do código fonte e depois compactá-lo.</p>
<pre class="brush:shell">cd /usr/src/redhat/SOURCES
tar zxvf samba-3.0.33.tar.gz
cd samba-3.0.33/source
./autogen.sh &amp;&amp; ./configure
make proto
</pre>
<p>Se ao tentar compilar o Samba, ao executar os comandos acima você tiver a seguinte mensagem:</p>
<pre class="brush: plain">
./autogen.sh &#038;&#038; ./configure
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/version.h' created for Samba("3.0.33")
./autogen.sh: running autoheader -I. -Ilib/replace
./autogen.sh: running autoconf -I. -Ilib/replace
Now run ./configure and then make.
SAMBA VERSION: 3.0.33
LIBREPLACE_LOCATION_CHECKS: START
...
LIBREPLACE_LOCATION_CHECKS: END
LIBREPLACE_CC_CHECKS: START
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
</pre>
<p>É por que não tem os pacotes de desenvolvimento instalado, para resolver isso, instale-os:</p>
<pre class="brush: plain">
yum install rpm-build gcc gcc-c++ make autoconf automake libtool</pre>
<h3>2.1 Fazer o download do vscan</h3>
<h4>2.1.1 Binário 64bits do vscan</h4>
<p>Caso seu SO seja 64 bits, estou dispobilizando a biblioteca do vscan-clamav já compilada.</p>
<ul>
<li><a href="http://www.virtualxp.org/downloads/samba-vscan-0.3.6c-beta5/x86_64/vscan-clamav.so">vscan-clamav.so</a></li>
</ul>
<p>Caso seja 32 bits ou queira compilar o código fonte, prossiga para o próximo tópico.</p>
<h4>2.1.2 Compilando pelo código fonte</h4>
<pre class="brush: shell">cd ~
wget http://www.openantivirus.org/download/samba-vscan-0.3.6c-beta5.tar.gz
</pre>
<p>Descompactar:</p>
<pre class="brush: shell">tar zxvf ~/samba-vscan-0.3.6c-beta5.tar.gz -C /usr/src
</pre>
<p>Compilar o samba-vscan:</p>
<pre class="brush: shell">cd /usr/src/samba-vscan-0.3.6c-beta5/
./configure --with-libclamav --with-samba-source=/usr/src/redhat/SOURCES/samba-3.0.33/source/
</pre>
<p>Ao final, você terá algo como:</p>
<pre class="brush: plain">** Configuration summary for samba-vscan 0.3.6c beta5 :

 Compile samba-vscan for Samba      : "3.0.33"
 Compile samba-vscan with sources in: /usr/src/redhat/SOURCES/samba-3.0.33/source/
 Compile samba-vscan backends       : oav sophos fprotd fsav trend icap mksd kavp clamav nai antivir
 Use GLOBAL_LIBS                    : -lmagic
 Use libmksd as                     : builtin
 Use libkavdc as                    : builtin
</pre>
<p>Hora de começar a compilar o samba-vscan:</p>
<pre class="brush: shell">cd /usr/src/samba-vscan-0.3.6c-beta5
make
</pre>
<p>Por enquanto é isso. Não execute <tt>make install</tt>.</p>
<h3>2.1 Gerando o .rpm para o samba com vscan</h3>
<h4>2.1.1 Gerar o .rpm do samba</h4>
<p>Agora é necessário compactar o diretório <tt>samba-3.0.33</tt> novamente pra gerar o .rpm com tudo certo dentro.</p>
<p>Instalar dependências:</p>
<pre class="brush: shell">yum install cups-devel gnutls-devel pam-devel readline-devel ncurses-devel libacl-devel openldap-devel openssl-devel
</pre>
<pre class="brush: shell">cd /usr/src/redhat/SOURCES/
mv samba-3.0.33.tar.gz samba-3.0.33.tar.gz.orig
tar zcvf samba-3.0.33.tar.gz samba-3.0.33
</pre>
<p>Gerar o .rpm do samba-3.0.33:</p>
<pre class="brush: shell">cd /usr/src/redhat/SPECS/
rpmbuild -bb samba.spec
</pre>
<p>Ao final do processo, você terá algo como:</p>
<pre class="brush: plain">Wrote: /usr/src/redhat/RPMS/x86_64/samba-3.0.33-3.14.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-client-3.0.33-3.14.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-common-3.0.33-3.14.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-swat-3.0.33-3.14.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/samba-debuginfo-3.0.33-3.14.x86_64.rpm
...
</pre>
<p>Para instalar, utilizaremos o próprio <tt>rpm</tt>.</p>
<pre class="brush: plain">rpm -iUvh /usr/src/redhat/RPMS/x86_64/samba-3.0.33-3.14.x86_64.rpm /usr/src/redhat/RPMS/x86_64/samba-client-3.0.33-3.14.x86_64.rpm /usr/src/redhat/RPMS/x86_64/samba-common-3.0.33-3.14.x86_64.rpm
</pre>
<p>Eu já tinha o samba instalado e nesse caso não me deixou instalar por cima e finalizou com as seguintes mensagens:</p>
<pre class="brush: plain">Preparing...                ########################################### [100%]
	package samba-common-3.0.33-3.15.el5_4.1.x86_64 (which is newer than samba-common-3.0.33-3.14.x86_64) is already installed
	package samba-3.0.33-3.15.el5_4.1.x86_64 (which is newer than samba-3.0.33-3.14.x86_64) is already installed
	package samba-client-3.0.33-3.15.el5_4.1.x86_64 (which is newer than samba-client-3.0.33-3.14.x86_64) is already installed
</pre>
<p>Nesse caso é seguro executar o <tt>rpm</tt> com o parâmetro <tt>--force</tt></p>
<pre class="brush: plain">rpm -iUvh --force /usr/src/redhat/RPMS/x86_64/samba-3.0.33-3.14.x86_64.rpm /usr/src/redhat/RPMS/x86_64/samba-client-3.0.33-3.14.x86_64.rpm /usr/src/redhat/RPMS/x86_64/samba-common-3.0.33-3.14.x86_64.rpm
</pre>
<pre class="brush: plain">Preparing...                ########################################### [100%]
   1:samba-common           ########################################### [ 33%]
   2:samba                  ########################################### [ 67%]
   3:samba-client           ########################################### [100%]
</pre>
<h2>3.0 Configuração do vscan</h2>
<p>No diretório <tt>/etc/samba</tt> crie o arquivo de configuração para o samba-vscan (um exemplo desse arquivo está em: <tt>/usr/src/samba-vscan-0.3.6c-beta5/clamav/vscan-clamav.conf)</tt></p>
<p><strong>Arquivo: </strong><tt>/etc/samba/vscan-clamav.conf</tt></p>
<pre class="brush:plain">max file size = 0
verbose file logging = no
scan on open = yes
scan on close = yes
deny access on error = yes
deny access on minor error = yes
send warning message = yes
infected file action = delete
quarantine directory  = /tmp
quarantine prefix = vir-
max lru files entries = 100
lru file entry lifetime = 5
exclude file types =
exclude file regexp =
clamd socket name = /var/run/clamav/clamd.sock
scan archives = yes
libclamav max files in archive = 1000
libclamav max archived file size = 10485760
libclamav max recursion level = 5
</pre>
<h3>64 bits</h3>
<p>Copie a lib gerada do vscan para o ClamAV que está em <tt>/usr/src/samba-vscan-0.3.6c-beta5/</tt></p>
<pre class="brush: plain">cd /usr/src/samba-vscan-0.3.6c-beta5/
cp vscan-clamav.so /usr/lib64/samba/vfs
</pre>
<h3>32 bits</h3>
<p>Copie a lib gerada do vscan para o ClamAV que está em <tt>/usr/src/samba-vscan-0.3.6c-beta5/</tt></p>
<pre class="brush: plain">cd /usr/src/samba-vscan-0.3.6c-beta5/
cp vscan-clamav.so /usr/lib/samba/vfs</pre>
<h2>4.0 Configuração do Samba para utilizar o vscan</h2>
<p>Edite o arquivo <tt>/etc/samba/smb.conf</tt> e adicione as entradas em <tt>[global]</tt></p>
<p><strong>Arquivo: </strong><tt>/etc/samba/smb.conf</tt></p>
<pre class="brush: plain">        vfs object = vscan-clamav
        vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
</pre>
<p>Pronto.</p>
<p>Só falta iniciar ou reiniciar o Samba:</p>
<pre class="brush: shell">service smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
</pre>
<p>Os logs dos arquivos scanneados são mostrados em <tt>/var/log/messages</tt>.</p>
<h2>5.0 Não permitir que o yum atualize o Samba</h2>
<p>É interessante não permitir que o yum atualize o Samba, se isso acontecer, as alterações feitas pelo samba-vscan quando compilamos ele serão perdidas e você perderá as funcionalidade de antivírus do Samba.</p>
<p>Para fazer isso, é bem simples, adicione a seguinte linha no arquivo <tt>/etc/yum.conf</tt> na sessão <tt>[main]</tt></p>
<pre class="brush: plain">
exclude=samba*
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2010/03/samba-com-antivirus-clamav-no-red-hat-centos/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to install GOsa2 on RedHat / CentOS (rpm based)</title>
		<link>http://www.fogonacaixadagua.com.br/2010/03/how-to-install-gosa2-on-redhat-centos-rpm-based/</link>
		<comments>http://www.fogonacaixadagua.com.br/2010/03/how-to-install-gosa2-on-redhat-centos-rpm-based/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:29:26 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[GOsa2]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/2010/03/how-to-install-gosa2-on-redhat-centos-rpm-based/</guid>
		<description><![CDATA[1.0 About this The goal of this article is to be a base for a complete installarion of GOsa2, it will be used by future articles on what maters with integrating with others services. 2.0 What GOsa2 means? GOsa2 is the constrict form for GOnicus System Administration. From author&#8217;s site gosa-project.org A mighty System-/Config-management frontend [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2010/03/how-to-install-gosa2-on-redhat-centos-rpm-based/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><h2>1.0 About this</h2>
<p>The goal of this article is to be a base for a complete installarion of GOsa2, it will be used by future articles on what maters with integrating with others services.</p>
<h2>2.0 What GOsa2 means?</h2>
<p>GOsa2 is the constrict form for GOnicus System Administration.<br />
 From author&#8217;s site gosa-project.org</p>
<blockquote><p>A mighty System-/Config-management frontend using LDAP as a backend. It is able to manage POSIX, Samba, Mail, Kolab, FAX, Asterisk and many more services.</p>
</blockquote>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-1.png"><img class="aligncenter size-medium wp-image-1245" title="Screenshot-1" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-1-300x197.png" alt="" width="300" height="197" /></a></p>
<h2>3.0 Prerequisites</h2>
<ul>
<li><a href="http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/">A minimal install of CentOS e RedHat 5.3</a> (This guide is in Portuguese only :( )</li>
<li>Apache 2.2.x</li>
<li>PHP 5.2</li>
<li>OpenLDAP</li>
<li>Repository yum EPEL</li>
</ul>
<h2>4.0 Instaling pre-requisites</h2>
<p>As said before, I&#8217;m assuming that you already have an installation of CentOS or Red Hat, therefore, I&#8217;ll be covering the system requisites to get a functional GOsa2.</p>
<h4>4.1 Installing the yum EPEL repository</h4>
<pre class="brush: shell">rpm -ivh http://virtualxp.org/downloads/epel-release-5-3.noarch.rpm
</pre>
<h4>4.2 Setting the repository for GOsa2</h4>
<p>Go to <tt>/etc/yum.repos.d</tt> and create the file <tt>GOsa2.repo</tt> with your favorite text editor.<br />
 File: <tt>/etc/yum.repos.d/GOsa2.repo</tt></p>
<pre class="brush: text">[GOsa]
name=GOsa Repository
baseurl=http://oss.gonicus.de/pub/gosa/redhat
enabled=1
gpgcheck=0
</pre>
<h4>4.3 Setting the repository for PHP 5.2</h4>
<p>GOsa2 needs the PHP 5.2 to run, however, there&#8217;s no PHP 5.2 on official repository. With that said, we need to set up a third party repository. For this article I&#8217;ll be using the repository from <a title='Original Link: http://www.jasonlitka.com/yum-repository/'  href="http://www.fogonacaixadagua.com.br/?5DR0pKUz">Utter Ramblings</a>. It&#8217;s a nice and reliable repo, you can use it with no fear.<br />
 Go to <tt>/etc/yum.repos.d</tt> and with your favorite text editor create a file called <tt>utterramblings.repo</tt>.<br />
 File: <tt>/etc/yum.repos.d/utterramblings.repo</tt></p>
<pre class="brush:text">[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
</pre>
<p>This repo already have a version of Apache 2.2.x (2.2.14 at this momment) that we&#8217;ll be using.</p>
<h4>4.4 Installing OpenLDAP Server</h4>
<p>We&#8217;ll use the offical version (which means the one into the repository or Media).<br />
 To accomplish this, execute the following command:</p>
<pre class="brush: shell">yum install openldap openldap-clients openldap-servers
</pre>
<h2>5.0 Installing GOsa2 via yum</h2>
<p>With the prerequisites satisfied, continue the installation of GOsa2</p>
<p>There are a couple of plugins availiable from GOsa2 respository, doing a search over it, it is possible to get an idea of which of them you really need to install. Install those that suit to your environment.</p>
<pre class="brush: shell">yum search gosa
</pre>
<p>WARNING: Avoid to install the package <tt>gosa-desktop</tt>, as it will install Gnome and X.org as dependence.</p>
<p>Below are the packs that we will use in this article. Feel free to alter it.</p>
<pre class="brush: shell">yum install gosa-schema.noarch gosa-plugin-systems.noarch gosa-plugin-sudo.noarch gosa-plugin-squid.noarch gosa-plugin-samba.noarch gosa-plugin-rolemanagement.noarch gosa-plugin-pureftpd.noarch gosa-plugin-mail.noarch gosa-plugin-log.noarch gosa-plugin-ldapmanager.noarch gosa-plugin-dns.noarch gosa-plugin-dhcp.noarch gosa-plugin-connectivity.noarch gosa-plugin-addressbook.noarch gosa-help-en.noarch gosa.noarch
</pre>
<h4>5.1 Edit PHP (php.ini) params to suit GOsa2</h4>
<p>To GOsa2 run happy, it&#8217;s necessary to alter 2 parameters in file <tt>/etc/php.ini</tt>. Edit it and save it.</p>
<p>Before:</p>
<ul>
<li>expose_php = On</li>
<li>magic_quotes_gpc = Off</li>
</ul>
<p>After:</p>
<ul>
<li>expose_php = Off</li>
<li>magic_quotes_gpc = On</li>
</ul>
<h4>5.2 Making sure the services start at boot time</h4>
<pre class="brush:shell">chkconfig --levels 35 ldap on
chkconfig --levels 35 httpd on
</pre>
<h2>6.0 Setting OpenLDAP to suit GOsa2 needs</h2>
<p>With all those work we have done so far, now it&#8217;s a critical time, but simple to do.<br />
 Will be necessary to suit OpenLDAP to talk to GOsa2, this means showing the right <tt>schemas</tt> to OpenLDAP.<br />
 Make a backup copy from the original <tt>slapd.conf</tt> file.</p>
<pre class="brush: shell">cd /etc/openldap
cp slapd.conf slapd.conf.orig
</pre>
<p>To generate the <tt>cn=Manager</tt> password hash.</p>
<pre class="brush: shell">slappasswd -h {SSHA}
New password:
Re-enter new password:
{SSHA}Nag4FWwXLoGO/WpdpFJUlMVCBYwB94wt
</pre>
<p>The result will be the hash from the entered password, this case I used &#8220;fogonacaixadagua&#8221;. Keep this hash, we will use it soon.</p>
<p>Now, make your <tt>/etc/openldap/slapd.conf</tt> look like the one below:<br />
 File: <tt>/etc/openldap/slapd.conf</tt></p>
<pre class="brush: text">include         /etc/openldap/schema/corba.schema
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/dyngroup.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/java.schema
include         /etc/openldap/schema/misc.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/openldap.schema
include         /etc/openldap/schema/ppolicy.schema

include /etc/openldap/schema/gosa/samba3.schema
include /etc/openldap/schema/gosa/pureftpd.schema
include /etc/openldap/schema/gosa/gofon.schema
include /etc/openldap/schema/gosa/gosystem.schema
include /etc/openldap/schema/gosa/goto.schema
include /etc/openldap/schema/gosa/gosa-samba3.schema
include /etc/openldap/schema/gosa/gofax.schema
include /etc/openldap/schema/gosa/goserver.schema
include /etc/openldap/schema/gosa/goto-mime.schema
include /etc/openldap/schema/gosa/trust.schema
include /etc/openldap/schema/gosa/dnszone.schema
include /etc/openldap/schema/gosa/gosa_custom.schema

pidfile		/var/run/openldap/slapd.pid
argsfile	/var/run/openldap/slapd.args

database	bdb
suffix		"dc=FogoNaCaixadAgua"
rootdn		"cn=Manager,dc=FogoNaCaixadAgua"

# Senha gerada pelo comando slappasswd -h {SSHA}
rootpw		{SSHA}Nag4FWwXLoGO/WpdpFJUlMVCBYwB94wt

directory	/var/lib/ldap

index entryCSN,entryUUID eq
index uid,mail eq
index gosaMailAlternateAddress,gosaMailForwardingAddress eq
index cn,sn,givenName,ou pres,eq,sub
index objectClass pres,eq
index uidNumber,gidNumber,memberuid eq
index gosaSubtreeACL,gosaObject,gosaUser pres,eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq

cachesize 100000
</pre>
<p>To copy some schemas that aren&#8217;t on schemas&#8217; dir:</p>
<pre class="brush: shell">cp /usr/share/gosa/plugins/pureftpd/contrib/pureftpd.schema /etc/openldap/schema/gosa
cp /usr/share/gosa/plugins/dns/contrib/dnszone.schema /etc/openldap/schema/gosa
</pre>
<p>Create the file <tt>/etc/openldap/schema/gosa_custom.schema</tt> with the following content:</p>
<p>File: <tt>/etc/openldap/schema/gosa_custom.schema</tt></p>
<pre class="brush: plain">#$Id: authldap.schema,v 1.8 2005/03/20 19:10:30 mrsam Exp $
#
# OID prefix: 1.3.6.1.4.1.25981
#
# Attributes: 1.3.6.1.4.1.25981.1.1
#
# Depends on: gosa.schema and cosine.schema

attributetype ( 1.3.6.1.4.1.25981.1.1.1 NAME 'gosaMailHome'
	DESC 'The absolute path to the mail message stor directory in a virtual mail setup.'
        EQUALITY caseExactIA5Match
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

#
# Objects: 1.3.6.1.4.1.25981.1.2
#

objectclass ( 1.3.6.1.4.1.25981.1.2.1 NAME 'gosaVirtualMailAccount' SUP top AUXILIARY
	DESC 'Objectclass to mark Virtual MailAccounts for GOsa (v2.4)'
        MAY ( gosaMailHome ) )
</pre>
<h2>7.0 Starting OpenLDP</h2>
<p>With OpenLDAP server configured and the schemas on the right place, copy DB_CONFIG.example to LDAP&#8217;s dir:</p>
<pre class="brush: shell">cd /etc/openldap
cp DB_CONFIG.example /var/lib/ldap/DB_CONFIG
</pre>
<p>Now, you can start OpenLDAP and you can verify if it&#8217;s gonna ok.</p>
<pre class="brush: shell">service ldap start
Checking configuration files for slapd:  config file testing succeeded
                                                           [  OK  ]
Starting slapd:                                            [  OK  ]
</pre>
<h2>8.0 Starting Apache</h2>
<p>Apache was installed with the GOsa2. The GOsa2 package created the config file to apache, this file can be found at <tt>/etc/httpd/conf.d/gosa-apache.conf</tt></p>
<p>File: <tt>/etc/httpd/conf.d/gosa-apache.conf</tt></p>
<pre class="brush: plain"># Include GOsa to your web service
Alias /gosa /usr/share/gosa/html

    php_admin_flag engine on
    php_admin_flag register_globals off
    php_admin_flag allow_call_time_pass_reference off
    php_admin_flag expose_php off
    php_admin_flag zend.ze1_compatibility_mode off
    php_admin_flag register_long_arrays off
    php_admin_flag magic_quotes_gpc on
    php_admin_value upload_tmp_dir /var/spool/gosa/
    php_admin_value session.cookie_lifetime 0
    include /etc/gosa/gosa.secrets

   PHP_Fix_Pathinfo_Enable 1

     Options +ExecCGI
     AddHandler fcgid-script .php
     FCGIWrapper /var/www/php-fcgi/php-fcgi-starter .php
     include /etc/gosa/gosa.secrets
</pre>
<p>Isnt&#8217; recommended to edit it, do it only if it&#8217;s really necessary.<br />
 Time to start Apache:</p>
<pre class="brush: shell">service httpd start
Starting httpd:                                            [  OK  ]
</pre>
<h2>9.0 Setting GOsa2 through Web interface</h2>
<p>After starting Apache, access through of server IP.</p>
<h4>9.1 Initial screen of GOsa2 set up</h4>
<pre>http://192.168.11.13/gosa/
</pre>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-2.png"><img class="aligncenter size-full wp-image-1257" title="Screenshot-2" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-2.png" alt="" width="991" height="590" /></a></p>
<p>Note the highlighted part on image, it&#8217;s necessary to execute the above command to GOsa2 installer know that you have control over server.</p>
<pre class="brush: shell">echo -n 93esjraq6baopmpchl1qsksc84 &gt; /tmp/gosa.auth
</pre>
<p>After you executed the command, click &#8220;Next&#8221;.</p>
<h4>9.2 Language selection</h4>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-3.png"><img class="aligncenter size-full wp-image-1260" title="Screenshot-3" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-3.png" alt="" width="791" height="630" /></a></p>
<p>Pick up the correct one and Click &#8220;Next&#8221;.</p>
<h4>9.3 Environment checking</h4>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-4.png"><img class="aligncenter size-full wp-image-1262" title="Screenshot-4" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-4.png" alt="" width="774" height="680" /></a></p>
<p>If you got any error here, get back to: 5.1 Edit PHP (php.ini) params to suit GOsa2.</p>
<p>After all field being marked with Ok, click &#8220;Next&#8221;.</p>
<h4>License agreement</h4>
<p>This screen you must accept the license.<br />
 <a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-5.png"><img class="alignEscolha a linguagem e clique em " title="Screenshot-5" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-5.png" alt="" width="808" height="638" /></a><br />
 After you check it, click &#8220;Next.</p>
<h4>9.4 LDAP Connection</h4>
<p>Here you set the connection between GOsa2 and OpenLDAP that we configured before.</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-6.png"><img class="aligncenter size-full wp-image-1265" title="Screenshot-6" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-6.png" alt="" width="808" height="645" /></a><br />
 The parts tha need to be changed are marked in 1 and 2:<br />
 1. Put the conext to Manager user: &#8220;cn=Manager,dc=FogoNaCaixadAgua&#8221;<br />
 2. Password hash, &#8220;fogonacaixadagua&#8221;</p>
<p>Click &#8220;Next&#8221;".</p>
<h4>9.5 Schema validation</h4>
<p>Yeah!<br />
 <a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-7.png"><img class="aligncenter size-full wp-image-1266" title="Screenshot-7" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-7.png" alt="" width="808" height="621" /></a><br />
 Click &#8220;Next&#8221;.</p>
<h4>9.6 Setting GOsa2 1/3</h4>
<p>Let the default ones and click &#8220;Next&#8221;.<br />
 <a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-8.png"><img class="aligncenter size-full wp-image-1267" title="Screenshot-8" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-8.png" alt="" width="808" height="719" /></a></p>
<h4>9.7 Setting GOsa2 2/3</h4>
<p>Some settings to GOsa2.<br />
 <a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-9.png"><img class="aligncenter size-full wp-image-1268" title="Screenshot-9" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-9.png" alt="" width="791" height="756" /></a><br />
 Below I&#8217;ll explain the changes done, based on the number into above picture, change them as show.<br />
 1. the context that will have the Workstations info from Windows Domain.<br />
 2. Timezone for GOsa2.<br />
 3. Enable Copy &amp; Paster, it&#8217;s a nice function, very interesting when you change some entry into an Organizational Unit, for example.<br />
 4. Enable snapshots, they are useful to revert some bat change, for example<br />
 5. Put the Manager password, &#8220;fogonacaixadagua&#8221;.</p>
<p>Click &#8220;Next&#8221; after you finish it.</p>
<h4>9.8 Setting GOsa2 3/3</h4>
<p>Last part on setting GOsa2.</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-10.png"><img class="aligncenter size-full wp-image-1269" title="Screenshot-10" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-10.png" alt="" width="790" height="840" /></a></p>
<p>1. Enter your SNMP community, if you have one in your network, otherwise put &#8216;public&#8217;.<br />
 2. To enable the SUDO config from GOsa2 Interface</p>
<p>Click &#8220;Next&#8221;.</p>
<h4>9.9 Inspecting OpenLDAP</h4>
<p>In this screen will have a full check to verify if you have some tree in LDAP, as we started from scratch, it have nothing, because of this you see a lot of &#8220;Fails&#8221;. Do not worry, soon it will be all Green ;)</p>
<p>To create a root object, click the button as highlighted on pic below:</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-11.png"><img class="aligncenter size-full wp-image-1270" title="Screenshot-11" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-11.png" alt="" width="792" height="837" /></a></p>
<p>After clicking &#8220;Try to create a root object&#8221; look that the things are starting to getting better :D</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-12.png"><img class="aligncenter size-full wp-image-1271" title="Screenshot-12" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-12.png" alt="" width="811" height="739" /></a></p>
<p>First click the button &#8220;Migrate&#8221;, in &#8220;Inspecting object classes in root object&#8221; then you will be redirected to the following page:</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-13.png"><img class="aligncenter size-full wp-image-1272" title="Screenshot-13" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-13.png" alt="" width="361" height="397" /></a></p>
<p>Click &#8220;Migrate&#8221;.</p>
<p>Getting back to LDAP Inspection page, click the unique button shown.</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-14.png"><img class="aligncenter size-full wp-image-1273" title="Screenshot-14" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-14.png" alt="" width="636" height="335" /></a></p>
<p>This time it&#8217;s to create a password for the user &#8216;admin&#8217; that will log into GOsa2 interface. Enter a password, here is &#8220;fogonacaixadagua&#8221; then click &#8220;Apply&#8221;</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-15.png"><img class="aligncenter size-full wp-image-1274" title="Screenshot-15" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-15.png" alt="" width="630" height="244" /></a></p>
<p>All nice and green, as I promised you.</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-16.png"><img class="aligncenter size-full wp-image-1276" title="Screenshot-16" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-16.png" alt="" width="645" height="648" /></a></p>
<p>Time to go to the last part. Click &#8220;Next&#8221;.</p>
<h4>9.10 Send a feedback</h4>
<p>You are on your own.</p>
<p>Finnished, click &#8220;Next&#8221;.</p>
<h3>9.11 Almost END</h3>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-17.png"><img class="aligncenter size-full wp-image-1277" title="Screenshot-17" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-17.png" alt="" width="644" height="323" /></a></p>
<p>Download the config file to your computer and then copy it to <tt>/etc/gosa</tt> on server side, apply the permissions as shown by installer.</p>
<pre class="brush: shell">scp ~/temp/gosa.conf root@192.168.11.13:/etc/gosa
</pre>
<p>After, on GOsa2 server</p>
<pre class="brush: shell">chown root:apache /etc/gosa/gosa.conf
chmod 640 /etc/gosa/gosa.conf
</pre>
<p>Click &#8220;Next&#8221; on final step to confirm that the config file is there.</p>
<p>You will be awarded with the login screen, use the &#8216;admin&#8217; user and the password defined in the install process to login.</p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-18.png"><img class="aligncenter size-full wp-image-1278" title="Screenshot-18" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-18.png" alt="" width="809" height="510" /></a></p>
<p><a href="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-19.png"><img class="aligncenter size-full wp-image-1280" title="Screenshot-19" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2010/03/Screenshot-19.png" alt="" width="811" height="632" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2010/03/how-to-install-gosa2-on-redhat-centos-rpm-based/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Centralized LOG with rSyslog recording in MySQL DB and Web UI for queries</title>
		<link>http://www.fogonacaixadagua.com.br/2009/09/centralized-log-with-rsyslog-recording-in-mysql-db-and-web-ui-for-queries/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/09/centralized-log-with-rsyslog-recording-in-mysql-db-and-web-ui-for-queries/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 13:35:54 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Seguranca]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/2009/09/centralized-log-with-rsyslog-recording-in-mysql-db-and-web-ui-for-queries/</guid>
		<description><![CDATA[Having a centralized logging is a prerequisite if you want to have your logs intacts. But having the events recorded in plain files is virtually impossible for queries. Because of this, I will show you how to configure rsyslog to write events in MySQL DB and a web interface for queries with filters to facilitate [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/09/centralized-log-with-rsyslog-recording-in-mysql-db-and-web-ui-for-queries/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><p>Having a centralized logging is a prerequisite if you want to have your logs intacts. But having the events recorded in plain files is virtually impossible for queries.</p>
<p>Because of this, I will show you how to configure rsyslog to write events in MySQL DB and a web interface for queries with filters to facilitate viewing of the logs without have to access the console for such task.</p>
<p>The focus of this post is on CentOS / Red Hat, but it can be used in other distributions with a few modifications in the process.</p>

<a href="http://www.fogonacaixadagua.com.br/wp-content/gallery/instalacao-rsyslog/screenshot_phplogcon01.png" title="" class="shutterset_singlepic39" >
	<img class="ngg-singlepic" src="http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/39__320xfloat=_screenshot_phplogcon01.png" alt="screenshot_phplogcon01" title="screenshot_phplogcon01" />
</a>


<a href="http://www.fogonacaixadagua.com.br/wp-content/gallery/instalacao-rsyslog/screenshot-7.png" title="" class="shutterset_singlepic40" >
	<img class="ngg-singlepic" src="http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/40__320xfloat=_screenshot-7.png" alt="screenshot-7" title="screenshot-7" />
</a>

<p><span id="more-830"></span></p>
<h3>Prerequisites</h3>
<ul>
<li><a title="Permanent Link to Instalação mínima do CentOS e RedHat 5.3" title='Original Link: ../2009/08/instalacao-minima-do-centos-e-redhat-5-3/'  href="http://www.fogonacaixadagua.com.br/?skrMlJVS"> Instalação mínima do CentOS e RedHat 5.3 </a></li>
</ul>
<p>It may be interesting for you to use a web-based repository for Yum for this follow the instructions in this post</p>
<ul>
<li><a title="Permanent Link to CentOS 5: Utilizando repositório Yum da internet" title='Original Link: ../2009/09/centos-5-utilizando-repositorio-yum-da-internet/'  href="http://www.fogonacaixadagua.com.br/?rWy0zLsK">CentOS 5: Utilizando repositório Yum da internet </a></li>
</ul>
<h3>Installing the necessary packages</h3>
<pre class="brush: shell">yum install rsyslog.i386 rsyslog-mysql.i386 mysql-server php php-mysql php-gd httpd mod_ssl</pre>
<p>Making sure that the services will start at boot</p>
<pre class="brush: shell">chkconfig --levels 35 rsyslog on
chkconfig --levels 35 httpd on
chkconfig --levels 35 mysqld on</pre>
<h3>Setting rSyslog</h3>
<p>As <tt>syslog</tt> comes by default with CentOS 5 / Red Hat 5, it is necessary to disable it because both of them uses the same port to listen for write request (UDP 514). rSyslog won&#8217;t start if <tt>syslog</tt> is active.</p>
<pre class="brush: shell">service syslog stop
chkconfig --del syslog</pre>
<div style="border-style: none; margin: 1em 5em; padding: 0.2em; background-color: #bbffbb;">
<div style="float: left;"><img style="border-width: 0px; color: #003399;" src="http://www.fogonacaixadagua.com.br/images/Info.png" alt="" width="32" height="32" /></div>
<div style="margin-left: 36px;"><strong>Note</strong></p>
<p><br class="spacer_" /></p>
<p>rSyslog uses the same syntax as <tt>syslog.conf</tt>. So, if you have a customized configuration you can copy <tt>syslog.conf</tt> over <tt>rsyslog.conf</tt>, just remember to rename the original <tt>rsyslog.conf</tt> to <tt>rsyslog.conf.orig</tt> just in case something goes wrong then you can rollback to the original one.</p>
</div>
</div>
<p>To rSyslog have access to MySQL it&#8217;s necessary to load the <tt>ommysql</tt> plugin, add this line at the begin of the <tt>/etc/rsyslog.conf</tt> file.</p>
<pre class="brush: plain">$ModLoad ommysql.so</pre>
<h4>Creating a MySQL database for rSyslog</h4>
<p>Before everything, it&#8217;s needed to start MySQL service</p>
<pre class="brush: shell">service mysqld start</pre>
<p>As <tt>root</tt>, lets create the access for the user from rSyslog to connect do database</p>
<pre class="brush: shell">mysql</pre>
<pre class="brush: sql">mysql> CREATE USER 'rsyslog'@'localhost' IDENTIFIED BY 'P45sword';
mysql> GRANT ALL PRIVILEGES ON Syslog.* TO 'rsyslog'@'localhost' WITH GRANT OPTION;</pre>
<p>Now, create the database that will be used by rSyslog</p>
<p>As root, run</p>
<pre class="brush: shell">mysql < /usr/share/doc/rsyslog-mysql-2.0.6/createDB.sql</pre>
<p>Back to the file, <tt>/etc/rsyslog.conf</tt> add this line before the rsyslog directives</p>
</pre>
<pre class="brush: plain">*.*    :ommysql:localhost,Syslog,rsyslog,P45sword</pre>
<p>This is the syntax:</p>
<pre class="brush: plain">   :ommysql:database-server,database-name,database-userid,database-password</pre>
<p>Where</p>
<ul>
<li> <strong>ommysql: </strong>is the plugin name</li>
<li> <strong>database-server: </strong>MySQL db server address (tipicaly localhost)</li>
<li> <strong>database-name: </strong>database</li>
<li> <strong>database-userid: </strong>the user allowed to connect to MySQL</li>
<li> <strong>database-password: </strong>user password</li>
</ul>
<p>At the end of this process, the file <tt>/etc/rsyslog.conf</tt> will look like</p>
<pre class="brush: plain">$ModLoad ommysql.so

*.*                      :ommysql:localhost,Syslog,rsyslog,P45sword

*.info;mail.none;authpriv.none;cron.none                /var/log/messages
authpriv.*                                              /var/log/secure
mail.*                                                  -/var/log/maillog
cron.*                                                  /var/log/cron
*.emerg                                                 *
uucp,news.crit                                          /var/log/spooler
local7.*                                                /var/log/boot.log</pre>
<h4>Allowing remote connections to rSyslog</h4>
<p>Edit the <tt>/etc/sysconfig/rsyslog</tt> file and add the parameter <tt>-r</tt> at line 6</p>
<pre class="brush: plain; gutter: false">SYSLOGD_OPTIONS="-r -m 0"</pre>
<p>It&#8217;s possible to start rsyslog right now, so you can see if everything gonna ok</p>
<pre class="brush: shell; gutter: false">service rsyslog start</pre>
<p>Watch the log <tt>/var/log/messages</tt>, if everything is ok, a message from rsyslog starting may look like this one, without error</p>
<pre class="brush: plain; gutter: true">Sep 22 18:42:23 master rsyslogd: [origin software="rsyslogd" swVersion="2.0.6" x -pid="2779" x-info="http://www.rsyslog.com"][x-configInfo udpReception="Yes" udp Port="514" tcpReception="No" tcpPort="0"] restart
Sep 22 18:42:23 master kernel: rklogd 2.0.6, log source = /proc/kmsg started.</pre>
<h3>Installing the Web UI client for rSyslog</h3>
<p>With the rsyslog service ok, comes the part where we configure the web interface to make de filters, queries etc.</p>
<p>Download the frontend phpLogCon to your server</p>
<pre class="brush: shell">wget http://www.virtualxp.org/downloads/phplogcon-2.6.4.tar.gz</pre>
<p>Extract to <tt>/usr/src</tt></p>
<pre class="brush: shell">tar zxvf phplogcon-2.6.4.tar.gz -C /usr/src</pre>
<p>Go to directory where you extracted it, in this case <tt>/usr/src/phplogcon-2.6.4</tt> and copy the directory <tt>src</tt> to <tt>/var/www/html</tt></p>
<pre class="brush: shell">cp -R src /var/www/html/syslog
cd /var/www/html/syslog
touch config.php
chown apache config.php</pre>
<p>If you haven&#8217;t started apache yet, you can do it now</p>
<pre class="brush: shell">service httpd start</pre>
<pre class="brush: shell">Starting httpd:                                            [  OK  ]</pre>
<p>Access your web browser pointing to server address <tt>http://172.20.32.205/syslog</tt>, replace the address with your server.</p>
<p><img class="aligncenter size-full wp-image-799" title="Screenshot" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot.png" alt="Screenshot" width="670" height="573" /></p>
<p>Note the error, it&#8217;s normal and awaited. Click in &#8220;here&#8221; to start  configuring phpLogCon.</p>
<p><img class="aligncenter size-full wp-image-800" title="Screenshot-1" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-1.png" alt="Screenshot-1" width="667" height="573" /></p>
<p>The installer will check the OS for the prerequisites to start the program. Click &#8220;Next&#8221;.</p>
<p><img class="aligncenter size-full wp-image-801" title="Screenshot-2" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-2.png" alt="Screenshot-2" width="666" height="575" /></p>
<p>The test was done on the phpLogCon has write access to config.php file that we created and defined the permission. Click &#8220;Next&#8221; to continue.</p>
<p><img class="aligncenter size-full wp-image-802" title="Screenshot-3" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-31.png" alt="Screenshot-3" width="668" height="692" /></p>
<p>On Basic Configuration, let the default options selected. Click &#8220;Next&#8221;.</p>
<p><img class="aligncenter size-full wp-image-803" title="Screenshot-4" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-4.png" alt="Screenshot-4" width="668" height="692" /></p>
<p>This is the most important part, it&#8217;s here that will be configured the data sources from Syslog.</p>
<p>Change the field &#8220;<strong>Source Type</strong>&#8221; to &#8220;MySQL&#8221; and fill the fields on block  &#8220;Database Type Options&#8221;, like the figure above.</p>
<p>Click Next.</p>
<p><img class="aligncenter size-full wp-image-806" title="Screenshot-5" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-5.png" alt="Screenshot-5" width="670" height="523" /></p>
<p>Ready! All okie dokie now!</p>
<p>Click &#8220;Finish!&#8221; and you will be redirected to the main screen for the phpLogCon.</p>

<a href="http://www.fogonacaixadagua.com.br/wp-content/gallery/instalacao-rsyslog/screenshot-6.png" title="" class="shutterset_singlepic38" >
	<img class="ngg-singlepic" src="http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/38__640x_screenshot-6.png" alt="screenshot-6" title="screenshot-6" />
</a>

<h3>Setting clients to log on Syslog server</h3>
<p>On Linux clientes that you wanna log on a Syslog server, you must configure <tt>/etc/syslog.conf</tt> and add the following line:</p>
<pre class="brush: plain; gutter: false">*.*                   @syslog_server</pre>
<p>Where, &#8220;syslog_server&#8221; is the hostname or IP Address from syslog server.</p>
<p>With this done, you need to restart Syslog service on host client</p>
<pre class="brush: shell">service syslog restart</pre>
<p>Those procedures are for Red Hat / CentOS servers clients. You should adapt to you distribution.</p>
<p>Please, leave a comment showing the procedure for your client! It will be very helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/09/centralized-log-with-rsyslog-recording-in-mysql-db-and-web-ui-for-queries/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>iotop, your best friend when LED of HD stays on</title>
		<link>http://www.fogonacaixadagua.com.br/2009/09/iotop-your-best-friend-when-led-of-hd-stays-on/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/09/iotop-your-best-friend-when-led-of-hd-stays-on/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 01:38:45 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshoot]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[python25]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/2009/09/iotop-your-best-friend-when-led-of-hd-stays-on/</guid>
		<description><![CDATA[The server is slow to hell, badly accessing remotely, a simple ls it&#8217;s enougth to take a lot of seconds running&#8230; openning a program, no way&#8230; lot of minutes, time to take a cup of coffee. You, don&#8217;t understanding what&#8217;s goin on, go get a look at the server, sometimes wishing to reset it, then, [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/09/iotop-your-best-friend-when-led-of-hd-stays-on/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><p>The server is slow to hell, badly accessing remotely, a simple <tt>ls</tt> it&#8217;s enougth to take a lot of seconds running&#8230; openning a program, no way&#8230; lot of minutes, time to take a cup of coffee.</p>
<p>You, don&#8217;t understanding what&#8217;s goin on, go get a look at the server, sometimes wishing to reset it, then, surprisely see that the HD LED look&#8217;s like the POWER one, but, Red&#8230;</p>
<p><span id="more-685"></span></p>
<p>In situations like that where are a lot of disk activities, come the question &#8220;What now?&#8221;, how to verify what is doing such a lot of disk access?</p>
<p>I will show you <em>how to install iotop</em> on Linux Red Hat / CentOS servers.</p>
<p>For that, there&#8217;s a very handy tool, <strong><em>iotop</em></strong>,<strong><em> </em></strong>it have a very nice CLI interface that show the I/O data. Utilize the very own values that kernel pass throught and show us in a very fancy interface :)</p>
<p><img class="aligncenter size-medium wp-image-478" title="Screenshot-root@localhost:-usr-src-iotop-0.3.1" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-root@localhost-usr-src-iotop-0.3.1-277x300.png" alt="Screenshot-root@localhost:-usr-src-iotop-0.3.1" width="277" height="300" /></p>
<ul>
<li><a title='Original Link: http://freshmeat.net/projects/iotop'  href="http://www.fogonacaixadagua.com.br/?8EAU5fQw" target="_blank">http://freshmeat.net/projects/iotop</a></li>
</ul>
<p>Needs to have <tt>Python >= 2.5</tt> and kernel <tt>Linux >= 2.6.20</tt> with those options enabled</p>
<ul>
<li>CONFIG_TASKSTATS</li>
<li>CONFIG_TASK_DELAY_ACCT</li>
<li>CONFIG_TASK_IO_ACCOUNTING</li>
</ul>
<h3>Pre-requisites</h3>
<ul>
<li><a href="http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/">CentOS / RedHat 5.3 minimal installation</a> (Portuguese only)</li>
<li><a href="http://www.fogonacaixadagua.com.br/2009/09/how-to-compile-a-new-kernel-in-linux-centos-red-hat/">Compiling a new kernel (2.6.30.5) in Linux CentOS 5.3 / Red Hat 5.3</a></li>
</ul>
<pre class="brush: shell">wget http://guichaz.free.fr/iotop/files/iotop-0.3.1.tar.bz2
tar jxvf iotop-0.3.1.tar.bz2 -C /usr/src
cd /usr/src/iotop-0.3.1/</pre>
<p>To execute the program without installing it, just call via CLI:</p>
<pre class="brush: shell">./iotop.py</pre>
<p>In case that the following error comes:</p>
<pre class="brush: shell">Traceback (most recent call last):
  File "./iotop.py", line 8, in ?
    from iotop.ui import main
  File "/usr/src/iotop-0.3.1/iotop/ui.py", line 12, in ?
    from iotop.data import find_uids, TaskStatsNetlink, ProcessList
  File "/usr/src/iotop-0.3.1/iotop/data.py", line 12, in ?
    from iotop import ioprio, vmstat
  File "/usr/src/iotop-0.3.1/iotop/ioprio.py", line 1, in ?
    import ctypes</pre>
<p>It&#8217;s because you haven&#8217;t the <tt>python</tt> installed os it isn&#8217;t the 2.5 version. It&#8217;s necessary to install it.</p>
<h4>Installing Python 2.5 on Red Hat 5.3 / CentOS 5.3</h4>
<p>Red Hat 5 / CentOS 5 comes with python 2.4 by default. It isn&#8217;t cool to simply install the new version over the default one, instead, I&#8217;m disponibilizing here the RPMs of python 2.5 for Red Hat 5 / CentOS 5 that will be installed in his own directory <tt>/usr/bin/python25</tt>, so, the scripts that Yum and others scripts made use of python 2.4 won&#8217;t get hurt.</p>
<ul>
<li><a href="http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-2.5.1-fogonacaixadagua2.i386.rpm"> python25-2.5.1-fogonacaixadagua2.i386.rpm</a> <tt>wget http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-2.5.1-fogonacaixadagua2.i386.rpm</tt></li>
<li><a href="http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-devel-2.5.1-fogonacaixadagua2.i386.rpm"> python25-devel-2.5.1-fogonacaixadagua2.i386.rpm</a> <tt>wget  http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-devel-2.5.1-fogonacaixadagua2.i386.rpm</tt></li>
<li><a href="http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-libs-2.5.1-fogonacaixadagua2.i386.rpm"> python25-libs-2.5.1-fogonacaixadagua2.i386.rpm</a> <tt>wget  http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-libs-2.5.1-fogonacaixadagua2.i386.rpm</tt></li>
<li><a href="http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-test-2.5.1-fogonacaixadagua2.i386.rpm"> python25-test-2.5.1-fogonacaixadagua2.i386.rpm</a> <tt>wget  http://www.virtualxp.org/downloads/python25/RPMS/i386/python25-test-2.5.1-fogonacaixadagua2.i386.rpm</tt></li>
</ul>
<p>The news is, always that you need to use the new version of python 2.5 you&#8217;ll have to change the interpretor <tt>PATH</tt> that call python25. It&#8217;s better than the whole system going unstable, isn&#8217;t it? ;)</p>
<h3>Executing iotop.py</h3>
<p>With <tt>python25</tt> installed, it&#8217;s time to modify the script <tt>iotop.py</tt> and change the interpreter on the first line, from:</p>
<pre class="brush: shell">#!/usr/bin/python</pre>
<p>to</p>
<pre class="brush: shell">#!/usr/bin/python25</pre>
<p>Ok, time to run the script</p>
<pre class="brush: shell">./iotop.py</pre>
<p>If any of the pre-requisites won&#8217;t be safisfied, a message like this one will show informing what is missing</p>
<pre class="brush: plain; gutter: false">Could not run iotop as some of the requirements are not met:
- Python >= 2.5 for AF_NETLINK support: Found
- Linux >= 2.6.20 with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING): Not found</pre>
<p>Python 2.5 it&#8217;s OK, but kernel isn&#8217;t.</p>
<p>Simple, compiling kernel with those options:</p>
<p>To compile the new kernel, there&#8217;s a post here that explains it, here I&#8217;ll show you just which options to be considered, compile and install the kernel it&#8217;s with you now ;)</p>
<ul>
<li><a href="http://www.fogonacaixadagua.com.br/2009/09/compilando-um-novo-kernel-no-linux-centos-5-3-red-hat-5-3/">Compiling a new kernel (2.6.30.5) in Linux CentOS 5.3 / Red Hat 5.3</a> (Portuguese only)</li>
</ul>
<pre class="brush: plain; gutter: false">General setup  --->
...
[*] Export task/process statistics through netlink (EXPERIMENTAL)
[*]   Enable per-task delay accounting (EXPERIMENTAL)
[*]   Enable extended accounting over taskstats (EXPERIMENTAL)
[*]     Enable per-task storage I/O accounting (EXPERIMENTAL)
...</pre>
<p><img class="alignnone size-full wp-image-434" title="Screenshot-3" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-3.png" alt="Screenshot-3" width="402" height="77" /></p>
<h3>Kernel 2.6.30.5 (rpm) with process statistics ready to be used with iotop</h3>
<ul>
<li><a href="http://www.virtualxp.org/downloads/kernel-2.6.30.5/RPMS/i386/IOTASKS/kernel-2.6.30.5fogonacaixadagua-1.i386.rpm"> kernel-2.6.30.5fogonacaixadagua-1.i386.rpm</a> <tt>wget http://www.virtualxp.org/downloads/kernel-2.6.30.5/RPMS/i386/IOTASKS/kernel-2.6.30.5fogonacaixadagua-1.i386.rpm</tt></li>
</ul>
<p>To install</p>
<pre class="brush: shell">rpm -ivh kernel-2.6.30.5fogonacaixadagua-1.i386.rpm</pre>
<p>in case you already installed this kernel before, will need to generate again an image <tt>initrd</tt> and use the flag <tt>--force</tt> with <tt>rpm -ivh --force</tt> command.</p>
<h3>iotop running</h3>
<p><img class="aligncenter size-full wp-image-478" title="Screenshot-root@localhost:-usr-src-iotop-0.3.1" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/09/Screenshot-root@localhost-usr-src-iotop-0.3.1.png" alt="Screenshot-root@localhost:-usr-src-iotop-0.3.1" width="509" height="551" /></p>
<h3>Installing iotop</h3>
<p>Into the directory you extracted <tt>iotop-0.3.1</tt> run the command<br />
 <tt>./setup.py install</tt></p>
<pre class="brush: plain; gutter: true">cd /usr/src/iotop-0.3.1
./setup.py install</pre>
<p>How it was installed python 2.5, if you run <tt>/usr/bin/iotop</tt> the following error will be gracefuly show to you</p>
<pre class="brush: bash; gutter: false">Traceback (most recent call last):
File "/usr/bin/iotop", line 4, in <module>
import pkg_resources
ImportError: No module named pkg_resources</module></pre>
<p>To resolve that one, it&#8217;s quite simple, into directory where you extracted iotop, in this case <tt>/usr/src/iotop-0.3.1</tt> copy the entire directory <tt>iotop</tt> to <tt>/usr/lib/python-2.5</tt></p>
<pre class="brush: shell; gutter: true">cd /usr/src/iotop-0.3.1
cp -Rp iotop /usr/lib/python2.5/</pre>
<p>And after that, edit the file <tt>/usr/bin/iptop</tt> and modify the line of interpreter</p>
<p>from</p>
<pre class="brush: shell; gutter: true">#!/usr/bin/python</pre>
<p>to</p>
<pre class="brush: bash; gutter: true">#!/usr/bin/python25</pre>
<p>Ok, iotop running!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/09/iotop-your-best-friend-when-led-of-hd-stays-on/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Instalando e configurando o serviço SNMPd no Red Hat 5.3 / CentOS 5.3</title>
		<link>http://www.fogonacaixadagua.com.br/2009/09/instalando-e-configurando-o-servico-snmpd-no-red-hat-5-3-centos-5-3/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/09/instalando-e-configurando-o-servico-snmpd-no-red-hat-5-3-centos-5-3/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 18:18:07 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Monitoração]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/?p=515</guid>
		<description><![CDATA[SNMP é usado como parte de monitoramento de utilização de recursos em dispositivos ligados na rede, informa utilização de CPU, tráfego de rede, status de serviços e etc. Estou escrevendo esse artigo por que será pré-requisito na configuração e instalação do Cacti para &#8220;grafar&#8221; os recursos dos dispositivos monitorados. Pré-requisitos Instalação mínima do CentOS e [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/09/instalando-e-configurando-o-servico-snmpd-no-red-hat-5-3-centos-5-3/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div></div><p>SNMP é usado como parte de monitoramento de utilização de recursos em dispositivos ligados na rede, informa utilização de CPU, tráfego de rede, status de serviços e etc.</p>
<p>Estou escrevendo esse artigo por que será pré-requisito na configuração e instalação do Cacti para &#8220;grafar&#8221; os recursos dos dispositivos monitorados.</p>
<p><span id="more-515"></span></p>
<h3>Pré-requisitos</h3>
<ul>
<li><a title='Original Link: ../2009/08/instalacao-minima-do-centos-e-redhat-5-3/'  href="http://www.fogonacaixadagua.com.br/?skrMlJVS">Instalação mínima do CentOS e RedHat 5.3</a></li>
</ul>
<h3>Instalação do serviço SNMPd</h3>
<p>A instalação será feita via Yum</p>
<pre class="brush: shell; gutter: false">yum install net-snmp.i386 net-snmp-libs.i386 net-snmp-utils.i386</pre>
<pre class="brush: shell; gutter: false">...
Installed: net-snmp.i386 1:5.3.2.2-5.el5_3.2 net-snmp-libs.i386 1:5.3.2.2-5.el5_3.2 net-snmp-utils.i386 1:5.3.2.2-5.el5_3.2
Dependency Installed: lm_sensors.i386 0:2.10.7-4.el5
Complete!</pre>
<p>É interessante garantir que o serviço será iniciado no boot</p>
<pre class="brush: shell; gutter: false">chkconfig --levels 35 snmpd on</pre>
<h3>Configurando o serviço SNMP</h3>
<p>Depois de instalado, o SNMP precisa ser configurado para responder a uma comunidade e em que modo ele irá responder.</p>
<p>Também é interessante colocar uma descrição de quem é o responsável pelo servidor e onde está localizado o equipamento.</p>
<p>Para iniciar a configuração, vá ao diretório <tt>/etc/snmp</tt> e apague o arquivo original que está lá ou renomeie, caso queira futuramente consultá-lo.</p>
<pre class="brush: shell; gutter: true">cd /etc/snmp
mv snmpd.conf snmpd.conf.orig</pre>
<p>Inicie o processo de configuração com o comando <tt>snmpconf</tt>, faz parte do pacote <tt>net-snmp-utils</tt> e é uma mão na roda, diga-se de passagem</p>
<pre class="brush: shell; gutter: true">cd /etc/snmp
snmpconf</pre>
<p>Uma série de questionários será apresentada.</p>
<p>Na primeira fase</p>
<pre class="brush: plain; gutter: false">I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

   1:  snmpd.conf
   2:  snmp.conf
   3:  snmptrapd.conf

Other options: quit

Select File: 1</pre>
<p>Selecione <tt>1</tt> para gerar o arquivo <tt>snmpd.conf</tt> que é o responsável por colher as métricas de utilização de recursos do SO.</p>
<p>Aqui nessa sessão da configuração tem uma pegadinha: nem sempre a ordem apresentada é a mesma, então, preste atenção na opção escolhida.</p>
<pre class="brush: plain; gutter: false">The configuration information which can be put into snmpd.conf is divided
into sections.  Select a configuration section for snmpd.conf
that you wish to create:

   1:  Monitor Various Aspects of the Running Host
   2:  Access Control Setup
   3:  Extending the Agent
   4:  Trap Destinations
   5:  System Information Setup
   6:  Agent Operating Mode

Other options: finished

Select section: 2</pre>
<p>A primeira configuração é informações de acesso, então é a opção <tt>2</tt> &#8220;Access Control Setup&#8221;</p>
<pre class="brush: plain; gutter: false">Section: Access Control Setup
Description:
  This section defines who is allowed to talk to your running
  snmp agent.

Select from:

   1:  a SNMPv3 read-write user
   2:  a SNMPv3 read-only user
   3:  a SNMPv1/SNMPv2c read-only access community name
   4:  a SNMPv1/SNMPv2c read-write access community name

Other options: finished, list

Select section: 3</pre>
<p>Permitir acesso somente leitura aos dados do servidor. Evita algumas surpresas :)</p>
<p>Opção escolhida: <tt>3</tt> &#8220;SNMPv1/SNMPv2c read-only access community name&#8221;</p>
<pre class="brush: plain; gutter: false">Configuring: rocommunity
Description:
  a SNMPv1/SNMPv2c read-only access community name
    arguments:  community [default|hostname|network/bits] [oid]

The community name to add read-only access for: 5nMPC0mmunity</pre>
<p>Nome da comunidade, não coloque &#8220;public&#8221; por que é muito manjada, e qualquer network scanner vai testar por isso, escolha uma mais difícil, colocando números e letras maiúsculas e minúsculas, evite colocar símbolos como <tt>$, #, %</tt> etc, vai confundir e gerar problemas futuros para scripts e para o próprio Cacti. Se utilizar o Nagios então, tá perdido ;)</p>
<p>O nome escolhido aqui foi <tt><em>5nMPC0mmunity</em></tt></p>
<pre class="brush: plain; gutter: false">The hostname or network address to accept this community name from [RETURN for all]:</pre>
<p>Quem vai ter acesso ao serviço SNMP, se pressionar <tt></tt> direto vai liberar pra todos que souberem o nome da comunidade, caso queira restringir a um host apenas, coloque o <tt>IP do host</tt>, se é para um rede, coloque a rede aqui no formato <tt>192.168.0.0/24</tt></p>
<pre class="brush: plain; gutter: false">The OID that this community should be restricted to [RETURN for no-restriction]:</pre>
<p>Se quer permitir a visualização de apenas alguns recursos, coloque o OID do recurso aqui, no caso, vou deixar liberado para todos os recursos serem visualizados <tt></tt></p>
<p>Finalizada a configuração de controle de acesso, vai voltar para a sessão própria. Como está terminado escreva <tt>finished</tt> ou apenas <tt>f</tt> para sair e voltar ao menu principal.</p>
<pre class="brush: plain; gutter: false">Section: Access Control Setup
Description:
  This section defines who is allowed to talk to your running
  snmp agent.

Select from:

   1:  a SNMPv3 read-write user
   2:  a SNMPv3 read-only user
   3:  a SNMPv1/SNMPv2c read-only access community name
   4:  a SNMPv1/SNMPv2c read-write access community name

Other options: finished, list

Select section: finished</pre>
<p>Próxima fase, informar detalhes do dispositivo, como contato e localização física.</p>
<pre class="brush: plain; gutter: false">The configuration information which can be put into snmpd.conf is divided
into sections.  Select a configuration section for snmpd.conf
that you wish to create:

   1:  Monitor Various Aspects of the Running Host
   2:  Access Control Setup
   3:  Extending the Agent
   4:  Trap Destinations
   5:  System Information Setup
   6:  Agent Operating Mode

Other options: finished

Select section: 5</pre>
<p>Escolha a opção <tt>5</tt> &#8220;System Information Setup&#8221; e pressione</p>
<pre class="brush: plain; gutter: false">Section: System Information Setup
Description:
  This section defines some of the information reported in
  the "system" mib group in the mibII tree.

Select from:

   1:  The [typically physical] location of the system.
   2:  The contact information for the administrator
   3:  The proper value for the sysServices object.

Other options: finished, list

Select section: 1</pre>
<p>Opção escolhida <tt>1</tt>, para informações de localização do equipamento</p>
<pre class="brush: plain; gutter: false">Configuring: syslocation
Description:
  The [typically physical] location of the system.
    Note that setting this value here means that when trying to
    perform an snmp SET operation to the sysLocation.0 variable will make
    the agent return the "notWritable" error code.  IE, including
    this token in the snmpd.conf file will disable write access to
    the variable.
    arguments:  location_string

The location of the system: Data Center, Rack 3</pre>
<p>Informado onde está o equipamento <tt>Data Center, Rack 3</tt>, pressione  quando terminar.</p>
<p>Voltando para a tela de configuração com informações do equipamento, selecione a opção <tt>2</tt> para dizer quem é o responsável</p>
<pre class="brush: plain; gutter: false">Section: System Information Setup
Description:
  This section defines some of the information reported in
  the "system" mib group in the mibII tree.

Select from:

   1:  The [typically physical] location of the system.
   2:  The contact information for the administrator
   3:  The proper value for the sysServices object.

Other options: finished, list

Select section: 2</pre>
<pre class="brush: plain; gutter: false">Configuring: syscontact
Description:
  The contact information for the administrator
    Note that setting this value here means that when trying to
    perform an snmp SET operation to the sysContact.0 variable will make
    the agent return the "notWritable" error code.  IE, including
    this token in the snmpd.conf file will disable write access to
    the variable.
    arguments:  contact_string

The contact information: Daniel Kühl Lima</pre>
<p>Informe alguns dados que facilitem a localização do responsável. Aqui foi informado <tt>Daniel Kühl Lima</tt>. Pressione  quando terminar e voltará para a tela de configuração de informações.</p>
<pre class="brush: plain; gutter: false">Section: System Information Setup
Description:
  This section defines some of the information reported in
  the "system" mib group in the mibII tree.

Select from:

   1:  The [typically physical] location of the system.
   2:  The contact information for the administrator
   3:  The proper value for the sysServices object.

Other options: finished, list

Select section: finished</pre>
<p>Sessão terminada, dá pra sair dessa tela e voltar ao menu principal. Escreve <tt>finished</tt> ou <tt>f</tt> para sair.</p>
<p>Voltando para o menu principal, e como está tudo configurado como desejamos,  escreva <tt>finished</tt> ou <tt>f</tt> para salvar e terminar a tarefa.</p>
<pre class="brush: plain; gutter: false">The configuration information which can be put into snmpd.conf is divided
into sections.  Select a configuration section for snmpd.conf
that you wish to create:

   1:  Monitor Various Aspects of the Running Host
   2:  Access Control Setup
   3:  Extending the Agent
   4:  Trap Destinations
   5:  System Information Setup
   6:  Agent Operating Mode

Other options: finished

Select section: finished</pre>
<pre class="brush: plain; gutter: false">I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

   1:  snmpd.conf
   2:  snmp.conf
   3:  snmptrapd.conf

Other options: quit

Select File: quit</pre>
<p>Escreva <tt>quit</tt> para sair de vez.</p>
<h3>Iniciando o serviço SNMP</h3>
<p>Com o serviço configurado é hora de iniciar.</p>
<pre class="brush: shell; gutter: true">service snmpd start</pre>
<pre class="brush: shell; gutter: true">Starting snmpd:                                            [  OK  ]</pre>
<h3>Verificando o funcionamento</h3>
<p>Pra verificar se está tudo a contento, execute o comando a seguir que irá se conectar ao serviço SNMP e retornará as métricas do sistema.</p>
<pre class="brush: shell; gutter: true">snmpwalk -c 5nMPC0mmunity -v2c localhost</pre>
<pre>SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.30.5-fogonacaixadagua #7 SMP Fri Sep 11 11:32:29 BRT 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (13823) 0:02:18.23
SNMPv2-MIB::sysContact.0 = STRING: "Daniel Kühl Lima"
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: "Data Center, Rack 3"
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (9) 0:00:00.09

...</pre>
<p>No final do processo o arquivo <tt>/etc/snmp/snmpd.conf</tt> ficou assim:</p>
<pre>
###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  5nMPC0mmunity  

###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  "Data Center, Rack 3"

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  "Daniel Kühl Lima"
</pre>
<p>Pronto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/09/instalando-e-configurando-o-servico-snmpd-no-red-hat-5-3-centos-5-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>DNS SRV records com Bind</title>
		<link>http://www.fogonacaixadagua.com.br/2009/09/dns-srv-records-com-bind/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/09/dns-srv-records-com-bind/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 20:26:59 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/?p=394</guid>
		<description><![CDATA[Os únicos serviços que utilizam entradas SRV atualmente são SIP, LDAP, XMPP (jabber), Kerberos, NTP e alguns outros. Não são muitos. A vantagem de ter entradas SRV no DNS é a simplificação de uma &#8220;alta-disponibilidade&#8221; via round-robin e também em passar o endereço dos serviços diretamente para a aplicação que irá utilizá-los. A sintaxe para [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/09/dns-srv-records-com-bind/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.fogonacaixadagua.com.br/2009/09/dns-srv-records-com-bind/&amp;layout=box_count&amp;show_faces=true&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div></div><p>Os únicos serviços que utilizam entradas SRV atualmente são SIP, LDAP, XMPP (jabber), Kerberos, NTP e alguns outros. Não são muitos.</p>
<p>A vantagem de ter entradas SRV no DNS é a simplificação de uma &#8220;alta-disponibilidade&#8221; via round-robin e também em passar o endereço dos serviços diretamente para a aplicação que irá utilizá-los.</p>
<p><span id="more-394"></span></p>
<p>A sintaxe para entradas SRV no Bind é:</p>
<pre class="brush: plain; gutter: false">_Serviço._Proto.Name TTL Classe SRV Prioridade Peso Porta Destino</pre>
<p>Onde:</p>
<ul>
<li><strong>Serviço: </strong>nome simbólico para o serviço</li>
<li><strong>Proto: </strong>protocolo do serviço; usualmente é TCP ou UDP.</li>
<li><strong>Name: </strong>o domínio para o qual a entrada é válida</li>
<li><strong>TTL: </strong>Time to live da entrada</li>
<li><strong>Classe: </strong>sempre é IN nesse caso</li>
<li><strong>Prioridade: </strong>a prioridade para o host de destino, valores menores significam maior preferência.</li>
<li><strong>Peso: </strong>um peso relativo à entrada com a mesma prioridade</li>
<li><strong>Porta: </strong>oa porta UDP ou TCP na qual o serviço será encontrado.</li>
<li><strong>Destino: </strong>é a entrada do DNS para o host que está provendo o serviço.</li>
</ul>
<p>Uma entrada SRV no Bind se parece com a seguinte:</p>
<pre class="brush: plain; gutter: false">_sip._tcp.exemplo.com.br. 86400 IN SRV 0 5 5060 192.168.1.1</pre>
<div style="border: 1px solid #ffcc00; margin: 1em 5em; padding: 0.2em; background-color: #ffffcc;">
<div style="float: left;"><img style="border-width: 0px; color: #003399;" src="/images/Alerta2.png" alt="" width="32" height="32" /></div>
<div style="margin-left: 36px;"><strong>Atenção</strong><br />
Aliases ou CNAMEs não podem ser usados como destinos válidos!</div>
</div>
<pre class="brush: plain; gutter: false">_sip._tcp.exemplo.com.br. 86400 IN SRV 10 60 5060 192.168.1.1
_sip._tcp.exemplo.com.br. 86400 IN SRV 10 20 5060 192.168.1.2
_sip._tcp.exemplo.com.br. 86400 IN SRV 10 10 5060 192.168.1.3
_sip._tcp.exemplo.com.br. 86400 IN SRV 10 10 5066 192.168.1.4
_sip._tcp.exemplo.com.br. 86400 IN SRV 20 0 5060 192.168.1.5</pre>
<p>As quatro primeiras entradas compartilham uma prioridade 10, então o valor do campo &#8220;Peso&#8221; será usado pelos clientes para determinal qual servidor (host e porta) será contactado. A soma dos quatro valores é 100, então 192.168.1.1 será utilizado 60% do tempo. Os dois hosts 192.168.1.3 e 192.168.1.4 serão utilizados 20% das requisições para cada (10% do total das requisições) onde metade vai para 192.168.1.3 na porta 5060 e outra metade vai para 192.168.1.4 porta 5066.</p>
<p>Se o host 192.168.1.1 ficar indisponível, essas duas máquina sobressalentes irão compartilhar a carga igualmente.</p>
<p>Se todos os quatro servidores com prioridade 10 ficarem indisponíveis, a entrada para próximo valor da prioridade será escolhido, que é 192.168.1.5. Essa deve ser um máquina em outra localização física, presumivelmente não vulnerável e testada.</p>
<div style="border: 1px solid #ffcc00; margin: 1em 5em; padding: 0.2em; background-color: #ffffcc;">
<div style="float: left;"><img style="border-width: 0px; color: #003399;" src="/images/Alerta2.png" alt="" width="32" height="32" /></div>
<div style="margin-left: 36px;"><strong>Atenção</strong><br />
Deve ser notado que o balanceamento de carga para entradas SRV é limitada, uma vez que a informação é estática. A carga dos servidores em questão também não é levado em conta.</div>
</div>
<h4>Exemplo para entrada http</h4>
<pre class="brush: plain; gutter: false">_http._tcp.www.fogonacaixadagua.com.br.  IN  SRV  5         50     80  www.fogonacaixadagua.com.br.
_http._tcp.www.fogonacaixadagua.com.br.  IN  SRV  5         50     80  www2.fogonacaixadagua.com.br.
_http._tcp.www.fogonacaixadagua.com.br.  IN  SRV  10        100    8080 www3.virtualxp.org.</pre>
<h4>Exemplo para entrada NTP</h4>
<pre class="brush: plain; gutter: false">_ntp._udp         IN         SRV         5         100        123         192.168.1.42
_ntp._udp         IN         SRV         10       100        123         192.168.1.15</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/09/dns-srv-records-com-bind/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pacote RPM do OpenSSH 5.2p1</title>
		<link>http://www.fogonacaixadagua.com.br/2009/09/pacote-rpm-do-openssh-5-2p1/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/09/pacote-rpm-do-openssh-5-2p1/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 00:21:12 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://www.fogonacaixadagua.com.br/?p=361</guid>
		<description><![CDATA[Atendendo a pedidos, estou aqui disponibilizando o pacote RPM do OpenSSH 5.2p1, com o pacote RPM em mão é muito mais simples atualizar o openssh no Linux do que em cada estação ter que compilar e fazer as alterações nos arquivos de inicialização. Posts relacionados Instalação mínima do CentOS e RedHat 5.3 Instalando OpenSSH 5.2p1 [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/09/pacote-rpm-do-openssh-5-2p1/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.fogonacaixadagua.com.br/2009/09/pacote-rpm-do-openssh-5-2p1/&amp;layout=box_count&amp;show_faces=true&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div></div><p>Atendendo a pedidos, estou aqui disponibilizando o pacote RPM do OpenSSH 5.2p1, com o pacote RPM em mão é muito mais simples atualizar o openssh no Linux do que em cada estação ter que compilar e fazer as alterações nos arquivos de inicialização.</p>
<h4>Posts relacionados</h4>
<ul>
<li><a href="http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/">Instalação mínima do CentOS e RedHat 5.3</a></li>
<li><a href="http://www.fogonacaixadagua.com.br/2009/09/instalando-openssh-5-2-no-redhat-centos-5-3/">Instalando OpenSSH 5.2p1 no RedHat / CentOS 5.3</a></li>
</ul>
<h4>Baixando os RPMs e instalando</h4>
<pre class="brush: shell">cd ~
wget http://www.virtualxp.org/downloads/openssh-5.2p1/RPMS/openssh-5.2p1-29.i386.rpm http://www.virtualxp.org/downloads/openssh-5.2p1/RPMS/openssh-clients-5.2p1-29.i386.rpm http://www.virtualxp.org/downloads/openssh-5.2p1/RPMS/openssh-server-5.2p1-29.i386.rpm</pre>
<p>Com os RPMs no diretório local (<tt>$HOME</tt>), para instalar existem dois jeitos, um é utilizando o próprio comando <tt>rpm</tt> outro é utilizando o Yum.</p>
<p>Vou mostrar aqui os dois jeitos.</p>
<h4>Instalando via rpm</h4>
<pre class="brush: shell">rpm -iUvh openssh*rpm</pre>
<h4>Instalando via Yum</h4>
<pre class="brush: shell">yum install --nogpgcheck openssh*rpm</pre>
<p>A grande vantagem de utilizar o comando yum é que havendo alguma dependência ele irá satisfaze-la automagicamente, sem necessidade de baixar pacotes adicionais.</p>
<h4>Código fonte do RPM (SRPM)</h4>
<p>O arquivo SRPM do openssh pode ser baixo pelo link <a href="http://www.virtualxp.org/downloads/openssh-5.2p1/RPMS/openssh-5.2p1-29.src.rpm"> openssh-5.2p1-29.src.rpm</a></p>
<h4>Arquivo SPEC</h4>
<p>O arquivo SPEC com os detalhes para compilar com o comando <tt>rpmbuild -ba</tt> pode ser obtido diretamente pelo link <a href="http://www.virtualxp.org/downloads/openssh-5.2p1/SPECS/openssh.spec"> openssh.spec</a></p>
<p>Para compilar com o openssh utilizando esse arquivo <tt>.spec</tt>, baixe o código fonte do openssh por aqui <a href="http://www.virtualxp.org/downloads/openssh-5.2p1/openssh-5.2p1.tar.gz"> openssh-5.2p1.tar.gz</a> e copie para o diretório /usr/src/redhat/SOURCES.</p>
<p>Depois do fonte estar no diretório, executar o comando</p>
<pre class="brush: shell">rpmbuid -ba openssh.spec</pre>
<p>Gerará o <tt>.rpm</tt> binário e o rpm com o código fonte.</p>
<p>Já o comando</p>
<pre class="brush: shell">rpmbuild -bb openssh.spec</pre>
<p>gerará apenas os binários <tt>.rpm</tt> do openssh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/09/pacote-rpm-do-openssh-5-2p1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Instalação mínima do CentOS e RedHat 5.3</title>
		<link>http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/</link>
		<comments>http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 03:32:32 +0000</pubDate>
		<dc:creator>Daniel Kühl Lima</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Imagem]]></category>
		<category><![CDATA[Instalação]]></category>
		<category><![CDATA[Mínima]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Virtualização]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtualxp.org/portal/?p=121</guid>
		<description><![CDATA[Como a distribuição básica utiilizada nesse site é  baseada no CentOS 5.3 / RedHat 5.3, vou colocar nesse artigo o processo de instalação mínima, requerida para as configurações e instalações dos serviços. Frequêntemente durante a explicação em um post será feita uma referência a esse artigo como pré-requisito para a conclusão da configuração da ferramenta [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:left;"><div class="socialize-in-button socialize-in-button-vertical"><script type="text/javascript">
			<!-- 
				tweetmeme_url = "http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/";
				tweetmeme_source = "tweetmeme";
				tweetmeme_style = "normal";
				
			//-->
			</script>
                        <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/&amp;layout=box_count&amp;show_faces=true&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div></div><p>Como a distribuição básica utiilizada nesse site é  baseada no CentOS 5.3 / RedHat 5.3, vou colocar nesse artigo o processo de instalação mínima, requerida para as configurações e instalações dos serviços.</p>
<p>Frequêntemente durante a explicação em um post será feita uma referência a esse artigo como pré-requisito para a conclusão da configuração da ferramenta descrita.</p>
<p>A instalação mínima foi escolhida por que o foco é na configuração de serviços para servidor, não sendo necessário e também não sendo recomendado a instalação ambiente gráfico X.org, a não ser que um determinado serviço necessite; isto será devidamente explicado no processo de instalação ou configuração do serviço.</p>
<p>Ou seja, como instalar o CentOS 5.3 e o Red Hat 5.3.</p>
<p><strong>Observação importante</strong>: <em>o procedimento aqui listado serve tanto para a instalação do CentOS como para o Red Hat, não havendo diferenças</em>.</p>
<p>Também estou disponibilizando aqui uma imagem gerada no VMWare Server 2.0.1 para ser utlizada por que quiser. Se quiser baixa-la direto, utilize o link</p>
<ul>
<li><a href="http://virtualxp.org/media/VM/VMware-CentOS-5.3.zip">Imagem para VMware do CentOS 5.3.</a></li>
<li>Usuário: root</li>
<li>Senha: root</li>
</ul>
<p>A descrição da imagem para o VMWare está no final do post.</p>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>DVD de instalação</h3>
<p>A mídia de instalação do CentOS 5.3 pode ser obtida no endereço:</p>
<ul>
<li><a title='Original Link: http://mirror.steadfast.net/centos/5.3/isos/i386/CentOS-5.3-i386-bin-DVD.iso'  href="http://www.fogonacaixadagua.com.br/?tM7Z5kyo">Imagem do DVD versão 32 bits</a></li>
<li><a title='Original Link: http://mirror.steadfast.net/centos/5.3/isos/x86_64/CentOS-5.3-x86_64-bin-DVD.iso'  href="http://www.fogonacaixadagua.com.br/?i40mC0je">Imagem do DVD versão 64 bits</a></li>
</ul>
<p><span id="more-121"></span></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Boot inicial</h3>
<p>Com posse das mídias de instalação, insira o DVD de instalação e dê o boot através dele.</p>
<p>As telas do boot do DVD de cada versão são as seguintes:</p>

<a href="http://www.fogonacaixadagua.com.br/wp-content/gallery/instalacao-centosrhel-5-3/Screenshot-4.png" title="" class="shutterset_singlepic20" >
	<img class="ngg-singlepic" src="http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/20_watermark_320x_Screenshot-4.png" alt="Screenshot-4" title="Screenshot-4" />
</a>

<ul>
<li> Tela inicial do boot do Red Hat EL 5.3</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>

<a href="http://www.fogonacaixadagua.com.br/wp-content/gallery/instalacao-centosrhel-5-3/Screenshot.png" title="" class="shutterset_singlepic26" >
	<img class="ngg-singlepic" src="http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/26_watermark_320x_Screenshot.png" alt="Screenshot" title="Screenshot" />
</a>

<ul>
<li>Tela inicial do boot do CentOS 5.3</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Iniciando o processo de instalação</h3>
<p>Após o boot inicial com a mídia de instalação, o processo da instalação terá início.</p>
<h4>Parte texto</h4>
<p><img class="aligncenter size-full wp-image-597" title="Picture 2" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-21.png" alt="Picture 2" width="720" height="402" /></p>
<ul>
<li>O instalador irá solicitar um teste na mídia, se você tem dúvidas quanto a qualidade da gravação é interessante realizar o teste para não se frustar durante a instalação. Caso tenha certeza que a mídia e a gravação estão OK, pule essa parte selecionando &#8220;Skip&#8221;.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h4>Parte gráfica</h4>
<p>O instalador do CentOS tentará detectar a placa de vídeo e carregar o driver apropriado para o início da instalação no modo Gráfico. Casos ele não consiga, a instalação ocorrerá no modo texto.</p>
<p><img class="aligncenter size-full wp-image-598" title="Picture 3" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-3.png" alt="Picture 3" width="720" height="369" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-599" title="Picture 4" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-4.png" alt="Picture 4" width="799" height="602" /></p>
<ul>
<li>Agora a instalação começou pra valer :) Clique em Next para ir pra próxima tela.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Idioma do sistema</h3>
<p><img class="aligncenter size-full wp-image-600" title="Picture 5" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-5.png" alt="Picture 5" width="798" height="600" /></p>
<ul>
<li>Selecione o idioma e clique em &#8220;Next&#8221;.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Mapa do teclado</h3>
<p><img class="aligncenter size-full wp-image-601" title="Picture 6" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-6.png" alt="Picture 6" width="798" height="601" /></p>
<ul>
<li>Selecione o mapa do teclado e clique em &#8220;Próximo&#8221;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Particionamento do disco</h3>
<p><img class="aligncenter size-full wp-image-602" title="Picture 7" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-7.png" alt="Picture 7" width="799" height="601" /></p>
<ul>
<li>Quando o HD não contém uma partição reconhecida pelo CentOS / RedHat, ele mostrará essa tela dizendo que irá inicilizar todo o disco para que seja reconhecido. Como é a primeira instalação do SO nesse disco, escolha  &#8220;Sim&#8221;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-603" title="Picture 8" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-8.png" alt="Picture 8" width="798" height="600" /></p>
<ul>
<li>Para fins desse post, o esquema de particionamento será deixado o padrão. Caso você queria customizar o esquema de particionamento, essa é a hora.</li>
<li>Para customizar o partionamento, marque o checkbox &#8220;Rever e modificar o layout do particionamento&#8221; e ao clicar em &#8220;Próximo&#8221; será mostrada a tela pra acertar o esquema de partição manualmente</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-604" title="Picture 9" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-9.png" alt="Picture 9" width="799" height="600" /></p>
<ul>
<li>Clique em &#8220;Sim&#8221; para aceitar o padrão e zerar o disco</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Configuração de rede</h3>
<p><img class="aligncenter size-full wp-image-605" title="Picture 10" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-10.png" alt="Picture 10" width="797" height="600" /></p>
<ul>
<li>Caso na sua rede não exista um servidor DHCP, edite sua configuração de rede nessa tela, caso contrário pode-se prosseguir com a configuração padrão que utiliza DHCP.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Configuração manual do IP durante a instalação</h3>
<p><img class="aligncenter size-full wp-image-606" title="Picture 11" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-11.png" alt="Picture 11" width="798" height="600" /></p>
<ul>
<li>Configuração manual do IP durante a instalação, informe os valores corretos para a sua rede.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Fuso horário</h3>
<p><img class="aligncenter size-full wp-image-607" title="Picture 12" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-12.png" alt="Picture 12" width="798" height="600" /></p>
<ul>
<li>Escolha o fuso horário da sua região clicando no mapa mundi.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Senha do usuário root</h3>
<p><img class="aligncenter size-full wp-image-608" title="Picture 13" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-13.png" alt="Picture 13" width="798" height="602" /></p>
<ul>
<li>Defina uma senha para o usuário &#8216;root&#8217;; deve ser maior que 6 dígitos</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Seleção de grupo de programas</h3>
<p><img class="aligncenter size-full wp-image-609" title="Picture 14" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-14.png" alt="Picture 14" width="799" height="599" /></p>
<ul>
<li>Para a instalação mínima, não aceitaremos os &#8220;Group Lists&#8221; fornecidos pelo instalador, ao invés disso, customizaremos a instalação para que atenda nosso requisito de &#8220;mínimo&#8221;.</li>
<li>Selecione a opção &#8220;Personalizar agora&#8221; e clique em &#8220;Próximo&#8221;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Customizando a instalação</h3>
<p>Agora é a hora de customizar a instalação e deixá-la com o mínimo possível de programas.</p>
<p>Caso haja necessidade de futuramente instalar algum software, isto será possível através do &#8220;yum&#8221;. Nos posts onde haja a necessidade de tal instalação será explicado.</p>
<p>Deixe os softwares selecionados conforme as imagens das telas a seguir.</p>
<p>No final do processo, o mínimo de software necessário estará selecionado e o X.org não será instalado.</p>
<p><img class="aligncenter size-full wp-image-610" title="Picture 15" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-15.png" alt="Picture 15" width="797" height="599" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-611" title="Picture 16" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-16.png" alt="Picture 16" width="798" height="602" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-612" title="Picture 17" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-17.png" alt="Picture 17" width="797" height="601" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-613" title="Picture 18" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-18.png" alt="Picture 18" width="798" height="600" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-614" title="Picture 19" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-19.png" alt="Picture 19" width="797" height="599" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-615" title="Picture 20" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-20.png" alt="Picture 20" width="798" height="600" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-616" title="Picture 21" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-211.png" alt="Picture 21" width="797" height="600" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-617" title="Picture 22" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-22.png" alt="Picture 22" width="798" height="599" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-618" title="Picture 23" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-23.png" alt="Picture 23" width="345" height="225" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-619" title="Picture 24" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-24.png" alt="Picture 24" width="798" height="601" /></p>
<ul>
<li>A seleção dos programas está OK, clique em &#8220;Próximo&#8221; para a instalação começar.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Formatação e progresso da instalação</h3>
<p><img class="aligncenter size-full wp-image-620" title="Picture 25" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-25.png" alt="Picture 25" width="563" height="396" /></p>
<ul>
<li>Formatação das partições.</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-621" title="Picture 26" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-26.png" alt="Picture 26" width="565" height="388" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Início da instalação do Linux no HD</h3>
<p><img class="aligncenter size-full wp-image-622" title="Picture 27" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-27.png" alt="Picture 27" width="798" height="599" /></p>
<ul>
<li>O processo não vai demorar muito, afinal, são poucos pacotes para a instalação mínima</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Conclusão da instalação e reboot</h3>
<p><img class="aligncenter size-full wp-image-623" title="Picture 28" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-28.png" alt="Picture 28" width="796" height="600" /></p>
<ul>
<li>Instalação concluída!</li>
<li>Clique em &#8220;Reinicializar&#8221;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Boot do Linux após a instalação</h3>
<p><img class="aligncenter size-full wp-image-624" title="Picture 29" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-29.png" alt="Picture 29" width="638" height="479" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Configuração da primeira inicialização pós-instalação</h3>
<p><img class="aligncenter size-full wp-image-625" title="Picture 30" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-30.png" alt="Picture 30" width="713" height="399" /></p>
<ul>
<li>Método de autenticação dos usuários, a princípio não é necessário fazer nenhum alteração aqui, a não ser que você já tenha um outro esquema</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-626" title="Picture 31" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-31.png" alt="Picture 31" width="714" height="398" /></p>
<ul>
<li>É interessante aqui nessa tela &#8220;Configuração do firewall&#8221; entrar para fazer algumas alterações, selecione essa opção e com a tecla &lt;TAB&gt; vá em &#8220;Executar Ferramenta&#8221; e pressione &lt;ENTER&gt;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-627" title="Picture 32" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-32.png" alt="Picture 32" width="719" height="401" /></p>
<ul>
<li>Desabilite o Firewall selecionar com a tecla &lt;TAB&gt; a opção &#8220;( ) Desabilitado&#8221;, para selecioná-la aperte &lt;ESPAÇO&gt; em cima</li>
<li>Por motivos de funcionalidade, desabilite o SELinux, com a tecla &lt;TAB&gt; vá até ela e com os direcionais do teclado deixe selecionado a opção &#8220;Desabilitado&#8221;, feito isso, vá com a tecla &lt;TAB&gt; até o botão &#8220;OK&#8221; e apeter &lt;ENTER&gt; para sair</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<p><img class="aligncenter size-full wp-image-628" title="Picture 33" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-33.png" alt="Picture 33" width="717" height="398" /></p>
<ul>
<li>Ok para sair, com a tecla &lt;TAB&gt; vá até o botão &#8220;Sair&#8221; e pressione &lt;ENTER&gt;</li>
</ul>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Instalação concluída, Linux pronto para ser usado</h3>
<p><img class="aligncenter size-full wp-image-629" title="Picture 34" src="http://www.fogonacaixadagua.com.br/wp-content/uploads/2009/08/Picture-34.png" alt="Picture 34" width="718" height="400" /></p>
<p>&nbsp; &nbsp; &nbsp;</p>
<h3>Imagem do CentOS para VMware</h3>
<p>No link a seguir está a imagem &#8220;crua&#8221; de uma instalação mínima do CentOS 5.3.</p>
<p>As especificações da instalação são:</p>
<ul>
<li>8Gb de HD</li>
<li>256Mb de RAM</li>
<li>Rede DHCP em modo Bridge</li>
<li>Tamanho compactado: 400mb</li>
<li>Split do HD em 2Gb</li>
<li>Descompactada, a VM ocupa 1.4Gb.</li>
<li>Usuário: root</li>
<li>Senha: root</li>
<li>Idioma: Inglês</li>
</ul>
<p><a href="http://virtualxp.org/media/VM/VMware-CentOS-5.3.zip">Imagem para VMware do CentOS 5.3.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogonacaixadagua.com.br/2009/08/instalacao-minima-do-centos-e-redhat-5-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

