<?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>Remontti</title>
	<atom:link href="http://www.remontti.com.br/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.remontti.com.br/blog</link>
	<description>root@soulivre</description>
	<lastBuildDate>Thu, 12 Aug 2010 11:56:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Comparando 2 arquivos de texto e vendo suas diferenças</title>
		<link>http://www.remontti.com.br/blog/archives/767</link>
		<comments>http://www.remontti.com.br/blog/archives/767#comments</comments>
		<pubDate>Thu, 12 Aug 2010 11:53:46 +0000</pubDate>
		<dc:creator>Luno de Souza</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=767</guid>
		<description><![CDATA[O comando diff permite comparar o conteúdo de dois arquivos, exibindo as diferenças entre eles. A sintaxe é: #diff arquivo1.txt arquivo2.txt O resultado mostra apenas as diferenças. Linhas precedidas pelo sinal de &#60; indicam que o conteúdo existe somente em arquivo1. Linhas precedidas pelo sinal de &#62; indicam que o conteúdo existe somente em arquivo2.]]></description>
			<content:encoded><![CDATA[<p><strong>O comando diff permite comparar o conteúdo de dois arquivos, exibindo as diferenças entre eles.</strong><br />
A sintaxe é:</p>
<div>
<p><span style="color: #ff6600;">#diff arquivo1.txt arquivo2.txt</span></p>
<p>O resultado mostra apenas as diferenças.</p>
<p>Linhas precedidas pelo sinal de<strong> &lt; </strong>indicam que o conteúdo existe somente em arquivo1.<br />
Linhas precedidas pelo sinal de <strong>&gt;</strong> indicam que o conteúdo existe somente em arquivo2.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/767/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix: Fazendo Relay SMTP do Gmail/Google Apps</title>
		<link>http://www.remontti.com.br/blog/archives/736</link>
		<comments>http://www.remontti.com.br/blog/archives/736#comments</comments>
		<pubDate>Tue, 27 Jul 2010 23:18:50 +0000</pubDate>
		<dc:creator>Luno de Souza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Outros]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[Postfix SMTP Relay Gmail GoogleApps]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=736</guid>
		<description><![CDATA[Após: 2 dias, 12 tutoriais, sonhar com o problema, dores de cabeça constantes, leve vontade de matar alguem&#8230; Resolvi compartilhar com vocês uma solução definitiva de como usar o Postfix para fazer um Relay Server usando o SMTP do GMail ou Google Apps. Estou citando Google Apps, pois muitos usam seus dominios próprios no google [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Após:</strong> <em>2 dias, 12 tutoriais, sonhar com o problema, dores de cabeça constantes, leve vontade de matar alguem&#8230;</em><br />
Resolvi compartilhar com vocês uma solução definitiva de como usar o <strong>Postfix</strong> para fazer um<strong> Relay Server</strong> usando o <strong>SMTP do GMail</strong> ou <strong>Google Apps</strong>.<br />
Estou citando Google Apps, pois muitos usam seus dominios próprios no google apps (ex: <em>http://google.com/a/seudominio.com.br/</em>).</p>
<p>Veja o exemplo de topologia da rede em que foi implementada a solução.</p>
<div id="attachment_738" class="wp-caption aligncenter" style="width: 256px"><a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/07/SMTP_Relay-1.png"><img class="size-medium wp-image-738" title="Esquema da Rede" src="http://www.remontti.com.br/blog/wp-content/uploads/2010/07/SMTP_Relay-1-246x300.png" alt="" width="246" height="300" /></a><p class="wp-caption-text">Esquema da Rede</p></div>
<p><strong>O Problema:</strong> Determinados usuários fazem uso de um sistema e com ele gostariam de enviar e-mails, assim, agilizando o dia-a-dia. Mas o sistema em questão apenas pede 2 parâmetros: ip do servidor smtp + porta! ¬¬<br />
Meu primeiro pensamento foi <em>&#8220;eu adoraria dar uma tapa na cara do programador disso&#8221;</em> e o segundo pensamento foi&#8230;</p>
<p><strong>A Solução:</strong> Como o sistema apenas pede os parâmetros <em>ip do servidor</em> + <em>porta</em>, a solução escolhida por para conseguir enviar e-mails usando a próprio servidor da empresa seria um Relay SMTP repassando os e-mails ao GMail!<br />
Lembrando que, como a empresa usa o google apps, não havia um servidor postfix local, então, o postfix implementado nesta solução foi unicamente para ser um Relay SMTP <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p># não use o nome de seu dominio em um servidor relay</p>
<p><strong><span id="more-736"></span><br />
1º Passo: Criar os certificados necessários</strong></p>
<p>Iremos criar os certificados em uma pasta temporária, usar oque for necessário e deletar as sobras<br />
vá para seu home:<br />
<span style="color: #742600;"># cd ~</span></p>
<p>Crie o ceritificado CA usando:<br />
Os parâmetros usados devem ser modificados por você! <code><br />
Escolha sua senha!<br />
<span style="color: #742600;"># /usr/lib/ssl/misc/CA.pl -newca</span></code></p>
<blockquote><p>Making CA certificate …<br />
Generating a 1024 bit RSA private key<br />
…….++++++<br />
……………….++++++<br />
writing new private key to ‘./demoCA/private/cakey.pem’<br />
Enter PEM pass phrase: <strong>password</strong><br />
Verifying – Enter PEM pass phrase: <strong>password</strong><br />
—–<br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter ‘.’, the field will be left blank.<br />
—–<br />
Country Name (2 letter code) [US]:<strong>BR</strong><br />
State or Province Name (full name) [New York]:<strong>Sao Paulo</strong><br />
Locality Name (eg, city) []:<strong>Sao Paulo</strong><br />
Organization Name (eg, company) []:<strong>EMPRESA LTDA</strong></p>
<p>Organizational Unit Name (eg, section) []:<br />
Common Name (eg, YOUR name) []:<strong>Luno de Souza</strong><br />
Email Address []:<strong>username@email.com</strong></p></blockquote>
<blockquote><p>Please enter the following ‘extra’ attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:<br />
Using configuration from /usr/lib/ssl/openssl.cnf<br />
Enter pass phrase for ./demoCA/private/cakey.pem:<br />
Check that the request matches the signature<br />
Signature ok</p></blockquote>
<p><strong><br />
2º Passo: Criar os certificados do servidor</strong><br />
Os parâmetros usados devem ser modificados por você!<br />
Devem ser os mesmos que você colocou ao criar os certificados CA!!!<br />
Caso você opite por mudar &#8220;<code>SERVER-key.pem -out SERVER-req.pem" para outros nomes, lembre-se que essa alteração deverá ser feita em todo esse artigo <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</code><br />
<span style="color: #742600;"><code># openssl req -new -nodes -subj  '/CN=<strong>EMPRESA LTDA</strong>/O=<strong>APELIDO EMPRESA</strong>/C=<strong>BR</strong>/ST=<strong>SAO PAULO</strong>/L=<strong>SAO PAULO</strong>/emailAddress=<strong>username@mail.com</strong>' -keyout SERVER-key.pem -out SERVER-req.pem -days 3650</code></span></p>
<p><strong><br />
3º Passo: Assinar o certificado</strong><br />
Deverá usar senha senha!<br />
<span style="color: #742600;"># openssl ca -out <code>SERVER</code>-cert.pem -infiles <code>SERVER</code>-req.pem</span></p>
<p>Using configuration from<br />
/usr/lib/ssl/openssl.cnf<br />
Enter pass phrase for ./demoCA/private/cakey.pem:<br />
Check that the request matches the signature<br />
Signature ok</p>
<p><strong>4º Passo: Copiar os certificados para a pasta do Postfix com suas permições<br />
</strong><span style="color: #742600;"># cp demoCA/cacert.pem SERVER-key.pem SERVER-cert.pem /etc/postfix<br />
# chmod 644 /etc/postfix/SERVER-cert.pem /etc/postfix/cacert.pem<br />
# chmod 400 /etc/postfix/SERVER-key.pem</span></p>
<p><strong>5º Passo: Copiar os certificados para a pasta do Postfix com suas permições<br />
</strong>O Gmail usa o certificado Thawte Premium Server CA. Então adicione isso no final do arquivo /etc/postfix/cacert.pem<br />
<strong>OBS:</strong> Essa é a versão atual do certificado <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;<br />
MIIDNjCCAp+gAwIBAgIQNhIilsXjOKUgodJfTNcJVDANBgkqhkiG9w0BAQUFADCB<br />
zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ<br />
Q2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UE<br />
CxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhh<br />
d3RlIFByZW1pdW0gU2VydmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNl<br />
cnZlckB0aGF3dGUuY29tMB4XDTk2MDgwMTAwMDAwMFoXDTIxMDEwMTIzNTk1OVow<br />
gc4xCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcT<br />
CUNhcGUgVG93bjEdMBsGA1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNV<br />
BAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRo<br />
YXd0ZSBQcmVtaXVtIFNlcnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1z<br />
ZXJ2ZXJAdGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2<br />
aovXwlue2oFBYo847kkEVdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560<br />
ZXUCTe/LCaIhUdib0GfQug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j<br />
+ao6hnO2RlNYyIkFvYMRuHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/<br />
BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQBlkKyID1bZ5jA01CbH0FDxkt5r1DmI<br />
CSLGpmODA/eZd9iy5Ri4XWPz1HP7bJyZePFLeH0ZJMMrAoT4vCLZiiLXoPxx7JGH<br />
IPG47LHlVYCsPVLIOQ7C8MAFT9aCdYy9X9LcdpoFEsmvcsPcJX6kTY4XpeCHf+Ga<br />
WuFg3GQjPEIuTQ==<br />
&#8212;&#8211;END CERTIFICATE&#8212;&#8211;</p>
<p><strong>OBS: </strong>Caso você esteja em um futuro e acusar o erro de certificado inválido como aconteseu comigo, você deverá acessar: https://www.geotrust.com/resources/root-certificates/index.html ,  (Base-64 encoded X.509) e fazer download da &#8220;nova versão&#8221; do certificado!<br />
Após o download basta um cat Equifax_Secure_CA.pem &gt;&gt; /etc/posfix/cacert.pem</p>
<p><strong>6º Passo: Configurando o main.cf</strong><br />
Irei passar o meu atual main.cf que está em funcionamento, afinal não haverá problemas em usa-lo para fazer um &#8220;Relay Server&#8221;<br />
Fique atento as linhas em negrito e meus comentários nelas!</p>
<p>&#8212;&#8211;CORTE AQUI&#8212;&#8211;</p>
<p>smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)<br />
biff = no</p>
<p># appending .domain is the MUA&#8217;s job.<br />
append_dot_mydomain = no</p>
<p># Uncomment the next line to generate &#8220;delayed mail&#8221; warnings<br />
#delay_warning_time = 4h</p>
<p>readme_directory = no<br />
# mude para seu hostname<br />
myhostname = <strong>servnet2.localhost</strong><br />
alias_maps = hash:/etc/aliases<br />
alias_database = hash:/etc/aliases.db<br />
myorigin = /etc/mailname<br />
# não use o nome de seu dominio em um servidor relay<br />
mydestination = <strong>servnet1.localhost, localhost.localdomain, localhost</strong><br />
relayhost =<br />
transport_maps = hash:/etc/postfix/transport<br />
# coloque a range de ip usada em sua rede<br />
mynetworks = 127.0.0.0/8 <strong>192.168.12.0</strong>/24<br />
mailbox_command = procmail -a &#8220;$EXTENSION&#8221;<br />
mailbox_size_limit = 0<br />
recipient_delimiter = +<br />
inet_interfaces = all</p>
<p>## TLS Settings<br />
#<br />
smtp_tls_CAfile = /etc/postfix/cacert.pem<br />
smtp_tls_cert_file = /etc/postfix/SERVER-cert.pem<br />
smtp_tls_key_file = /etc/postfix/SERVER-key.pem<br />
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache<br />
smtp_use_tls = yes<br />
smtpd_tls_CAfile = /etc/postfix/cacert.pem<br />
smtpd_tls_cert_file = /etc/postfix/SERVER-cert.pem<br />
smtpd_tls_key_file = /etc/postfix/SERVER-key.pem<br />
smtpd_tls_received_header = yes<br />
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache<br />
smtpd_use_tls = yes<br />
tls_random_source = dev:/dev/urandom</p>
<p>#<br />
## SASL Settings<br />
#This is going in to THIS server<br />
smtpd_sasl_auth_enable = no<br />
<strong># usei essa opção para o postfix não pedir senha ao meu sistema!!!</strong><br />
smtp_auth_enable = no</p>
<p># We need this<br />
smtp_sasl_auth_enable = yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br />
smtpd_sasl_local_domain = $myhostname<br />
smtp_sasl_security_options = noanonymous<br />
smtp_sasl_tls_security_options = noanonymous<br />
smtpd_sasl_application_name = smtpdinet_protocols = ipv4<br />
&#8212;&#8211;CORTE AQUI&#8212;&#8211;</p>
<p><strong>7º Passo: Criando o arquivc transport</strong><br />
Crie o arquivo /etc/postfix/transport com o seguinte conteudo:<code><br />
# /etc/postfix/transport<br />
#<br />
# Relay de emails para o Gmail<br />
* smtp:[smtp.gmail.com]:587<br />
#</code></p>
<p><strong>8º Passo: Criando o arquivo sasl_passwd</strong><br />
Crie o arquivo /etc/postfix/sasl_passwd com o seguinte conteudo:<code><br />
# /etc/postfix/sasl_passwd<br />
# Caso use Gmail<br />
#[smtp.gmail.com]:587 usuario@seudominio.com.br:senha<br />
#<br />
# Caso tenha seu dominio no Google Apps<br />
[smtp.gmail.com]:587 usuario@seudominio.com.br:senha<br />
</code></p>
<p><strong>9º Passo: Criando arquivo generic e usando o postconf para criar os Hash&#8217;s</strong><code><br />
<span style="color: #7a2800;"> # touch generic</span><br />
<span style="color: #7a2800;"> # </span></code><span style="color: #7a2800;">postmap /etc/postfix/sasl_passwd;postmap /etc/postfix/generic</span></p>
<p><strong>10º Passo: Limpando os lixos e vamos ao teste! <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</strong><code>Limpando...<br />
<span style="color: #7a2800;"># cd ~</span><br />
<span style="color: #7a2800;"> # </span></code><span style="color: #7a2800;"><code>rm SERVER-req.pem </code><code>SERVER</code><code>-cert.pem </code><code>SERVER</code><code>-key.pem &amp;&amp; rm -r demoCA/</code></span></p>
<p>Testando&#8230;<br />
<span style="color: #7a2800;"> # echo &#8220;Test SMTP Relay&#8221; | mailx -s &#8216;Test 123&#8242; seumail@seudominio.com.br</span></p>
<p>Verificando o teste&#8230;<br />
<span style="color: #7a2800;"># tail -f /var/log/mail.log</span></p>
<p><strong>Se seguiu este tutorial passo-a-passo deverá correr tudo ok <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong><br />
<strong>Algumas dicas:</strong><br />
Verificando e-mail na fila e envio:<code><br />
<span style="color: #800000;"># postqueue -p</span><br />
ou<br />
<span style="color: #800000;"># mailq</span></code></p>
<p>Deletando todas as menssagens pendentes:<br />
<span style="color: #800000;"><code># postsuper -d ALL</code></span></p>
<p>Conclusões:<br />
EM CONSTRUÇÃO <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/736/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Processos com Htop (Debian)</title>
		<link>http://www.remontti.com.br/blog/archives/728</link>
		<comments>http://www.remontti.com.br/blog/archives/728#comments</comments>
		<pubDate>Mon, 05 Jul 2010 02:32:25 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[htop]]></category>
		<category><![CDATA[monitorar]]></category>
		<category><![CDATA[processos]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=728</guid>
		<description><![CDATA[Htop é um visualizador de processo muito para shell, oferecendo todas as funcionalidades, mais que o simples utilitário top faz, de uma maneira mais fácil e intuitiva. htop oferece menus de fácil utilização para a maioria das operações e também tem suporte para usar um mouse. É apenas um daqueles pequenos utilitários que torna a [...]]]></description>
			<content:encoded><![CDATA[<div dir="ltr">Htop é um visualizador de processo muito  para shell, oferecendo todas as funcionalidades, mais que o simples utilitário top faz, de uma maneira mais fácil e  intuitiva. htop oferece menus de fácil utilização para a maioria das  operações e também tem suporte para usar um mouse. É apenas um daqueles pequenos utilitários que torna a vida um  pouco mais fácil.<a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/07/htop.jpg"><br />
</a><a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/07/htop.jpg"><img class="size-medium wp-image-729 alignleft" style="margin: 15px;" title="htop" src="http://www.remontti.com.br/blog/wp-content/uploads/2010/07/htop-300x221.jpg" alt="" width="300" height="221" /></a><strong>Instalção</strong></div>
<div dir="ltr"># aptitude install htop</div>
<div dir="ltr">Agora para iniciar basta digitar o  seguinte comando a partir do seu terminal:</div>
<div dir="ltr"># htop</div>
<div dir="ltr"></div>
<div dir="ltr"><strong>Comandos  são suportados:</strong></div>
<div dir="ltr"><strong><br />
</strong></div>
<div dir="ltr"><strong>Arrows, PgUP, PgDn, Home, End</strong> <strong> </strong><strong><span style="color: #ff0000;">⇒</span> </strong>Percorra a lista de processos.</div>
<div dir="ltr"><strong>Espaço</strong><span style="color: #ff0000;"> <strong> </strong></span><strong><span style="color: #ff0000;">⇒</span> </strong>&#8220;Marca&#8221;: marca de um processo. Comandos que podem operar para &#8220;matar&#8221; um processo.</div>
<div dir="ltr"><strong>U<span style="color: #ff0000;"> </span></strong><span style="color: #ff0000;"><strong> </strong><strong>⇒</strong></span> &#8220;desmarcar&#8221; todos os processos (remover todas as tags adicionadas com a tecla Espaço).</div>
<div dir="ltr"><strong>F1, h</strong><span style="color: #ff0000;"><strong> </strong><strong>⇒ </strong></span>Ajuda<span id="more-728"></span></div>
<div dir="ltr"><strong>F2, S </strong><span style="color: #ff0000;"><strong> </strong></span><strong><span style="color: #ff0000;">⇒</span> </strong>tela de configuração. Lá você pode configurar metros exibido no topo lado da tela, bem como definir várias opções de tela, escolha entre os esquemas de cores e escolha o layout do exibido colunas.</div>
<div dir="ltr"><strong>F3, /<span style="color: #ff0000;"> </span></strong><span style="color: #ff0000;"><strong> </strong><strong>⇒ </strong></span>Processo de pesquisa: digite parte de uma linha de comando do processo<br />
e destaque da seleção será transferida para ele. Enquanto na pesquisa<br />
modo, pressionar esta tecla irá percorrer as ocorrências correspondentes.</div>
<div dir="ltr"><strong>F4, I </strong><span style="color: #ff0000;"><strong> </strong></span><strong><span style="color: #ff0000;">⇒</span> </strong>Inverter a ordem de  classificação</div>
<div dir="ltr"><strong>F5, t </strong><strong> </strong><strong><span style="color: #ff0000;">⇒</span> </strong>Organize  os processos de paternidade, e o layout mostrado como uma  árvore.</div>
<div dir="ltr"><strong>F7,], -<span style="color: #ff0000;"> </span></strong><span style="color: #ff0000;"><strong> </strong><strong>⇒ </strong></span>Aumentar a prioridade do  processo selecionado. Isso pode ser feito  apenas para o superusuário.</div>
<div dir="ltr"><strong>F8, [+ </strong><span style="color: #ff0000;"><strong>⇒ </strong></span>Diminua a prioridade do  processo selecionado.</div>
<div dir="ltr"><strong>F9, k </strong><span style="color: #ff0000;"><strong>⇒</strong></span> &#8220;Matar o processo&#8221;: envia  um sinal que é selecionado em um menu, para um<br />
ou um grupo de processos.  Se os processos foram  marcados.</div>
<div dir="ltr"><strong>F10, q </strong><span style="color: #ff0000;"><strong>⇒</strong></span> Sair</div>
<div dir="ltr"><strong>u</strong> <span style="color: #ff0000;"><strong>⇒</strong></span> mostra os  processos pertencentes a um usuário especificado.<br />
<strong>M</strong><strong> <span style="color: #ff0000;">⇒</span></strong> Ordenar por uso de  memória.<br />
<strong>P </strong><span style="color: #ff0000;"><strong>⇒</strong></span><strong> </strong>Ordenar por uso de  processador.<br />
<strong>T</strong> <span style="color: #ff0000;"><strong>⇒</strong></span> Ordenar por hora.</div>
<div dir="ltr"></div>
<div dir="ltr">Distribuição  Debian GNU / Linux (mas pode ser usado por outros).</div>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/728/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Temas para Gnome</title>
		<link>http://www.remontti.com.br/blog/archives/716</link>
		<comments>http://www.remontti.com.br/blog/archives/716#comments</comments>
		<pubDate>Sat, 05 Jun 2010 19:13:25 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[add-apt]]></category>
		<category><![CDATA[bisigi]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[temas]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=716</guid>
		<description><![CDATA[Para aqueles que gosta de um visual diferente, sempre instalo os temas da bisigi no meu ubuntu pessoal. Fica ai a dica, pois fui tentar instalar com os comando do site e passei por alguns erros, então seguindo desta maneira tudo foi perfeito; # sudo add-apt-repository ppa:bisigi Crie um novo arquivo. # vim bisigi.key -----BEGIN [...]]]></description>
			<content:encoded><![CDATA[<p>Para aqueles que gosta de um visual diferente, sempre instalo os temas da<a href="http://www.bisigi-project.org/?page_id=8&amp;lang=en#ubuntu" target="_blank"> bisigi</a> no meu ubuntu pessoal. Fica ai a dica, pois fui tentar instalar com os comando do site e passei por alguns erros, então seguindo desta maneira tudo foi perfeito;</p>
<p><span style="color: #ff6600;"># sudo add-apt-repository ppa:bisigi</span></p>
<p>Crie um novo arquivo.</p>
<p><span style="color: #ff6600;"># vim bisigi.key</span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">-----BEGIN</span> PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10
&nbsp;
mI0ESbZqaAEEAK68aXUddzAxUmMkB<span style="color: #000000; font-weight: bold;">/</span>zESfiK1laJ6OC0yrjfu8hDkHPrO4UgiT+7LU+49qBz
tQGJwaS<span style="color: #000000; font-weight: bold;">/</span>S2Y<span style="color: #000000; font-weight: bold;">/</span>Ya5mATPq08x7CTz35BnpKoaNDr5zcKeybKMYiY+LdKZRfJQqJ6IhIzINzb41
Lb7R9eJyXfYpRkXdWNbHrHvm1Z9fZuubnTjH1mMPABEBAAG0GExhdW5jaHBhZCBQUEEgZm9y
IEJpc2lnaYi2BBMBAgAgBQJJtmpoAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQbocc
SogVdN6PdQQAldkJkwZsJb6cRS2emDzImh3+p4lStpOHmvLsAE68oGmoiTGmDHOePP+UvfJh
lYp2kmg5M<span style="color: #000000; font-weight: bold;">/</span>P8d3hLfg4cXNCWJnTCfYAs42<span style="color: #000000; font-weight: bold;">/</span>A<span style="color: #000000; font-weight: bold;">/</span>1vymoEfhwo21PkiFhXM+6pfFULDlAMyrjeI
QZ+<span style="color: #007800;">NPDxvUsdpik5eBlU1jE2YTKxzlEkaVHxwFUw</span>=
=MFvp
<span style="color: #660033;">-----END</span> PGP PUBLIC KEY BLOCK-----</pre></div></div>

<p><span style="color: #ff6600;"># sudo apt-key add bisigi.key</span></p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://www.bisigi-project.org/?p=65&amp;lang=en"><img title="showtime" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin-297x300.jpg" alt="showtime" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=28&amp;lang=en"><img title="balanzan" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin1_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin1-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin1-297x300.jpg" alt="balanzan" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=1&amp;lang=en"><span id="more-716"></span><img title="infinity" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin2_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin2-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin2-297x300.jpg" alt="infinity" width="238" height="240" /></a> <a href="http://www.bisigi-project.org/?p=62&amp;lang=en"><img title="wild-shine" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin4_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin4-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin4-297x300.jpg" alt="wild-shine" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=58&amp;lang=en"><img title="exotic" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin5_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin5-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin5-297x300.jpg" alt="exotic" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=55&amp;lang=en"><img title="tropical" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin6_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin6-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin6-297x300.jpg" alt="tropical" width="238" height="240" /></a> <a href="http://www.bisigi-project.org/?p=51&amp;lang=en"><img title="bamboo zen" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/bamboo-zen_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin7-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin7-297x300.jpg" alt="bamboo zen" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=48&amp;lang=en"><img title="step-into-freedom" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/sif_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin8-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin8-297x300.jpg" alt="step-into-freedom" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=37&amp;lang=en"><img title="sunrise" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/sunrise_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin9-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin9-297x300.jpg" alt="sunrise" width="238" height="240" /></a> <a href="http://www.bisigi-project.org/?p=34&amp;lang=en"><img title="aquadreams" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin10_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin10-297x300.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin10-297x300.jpg" alt="aquadreams" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=112&amp;lang=en"><img title="orange" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin11_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin11.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/dessin11.jpg" alt="aquadreams" width="238" height="240" /></a><a title="Ellanna theme" href="http://www.bisigi-project.org/?p=209&amp;lang=en"><img title="ellanna" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/ellanna_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/ellanna.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/ellanna.jpg" alt="" width="238" height="240" /></a><a href="http://www.bisigi-project.org/?p=411&amp;lang=en"><img title="AirLines" onmouseover="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/airlines-pres_prelight.jpg';" onmouseout="this.src='http://www.bisigi-project.org/wp-content/uploads/2009/07/airlines-pres.jpg';" src="http://www.bisigi-project.org/wp-content/uploads/2009/07/airlines-pres.jpg" alt="" width="238" height="240" /></a></p>
<p style="text-align: center;">AquaDreams: sudo aptitude install aquadreams-theme<br />
Ubuntu Sunrise: sudo aptitude install  ubuntu-sunrise-theme<br />
Bamboo-Zen: sudo aptitude install bamboo-zen-theme<br />
Step into Freedom: sudo aptitude install step-into-freedom-theme<br />
Tropical: sudo aptitude install tropical-theme<br />
Exotic: sudo aptitude install exotic-theme<br />
Balanzan: sudo aptitude install balanzan-theme<br />
Wild Shine: sudo aptitude install wild-shine-theme<br />
Infinity: sudo aptitude install infinity-theme<br />
Showtime: sudo aptitude install showtime-theme<br />
Orange: sudo aptitude install orange-theme<br />
Ellanna: sudo aptitude install ellanna-theme<br />
AirLines: sudo aptitude install airlines-theme<br />
TODOS: sudo aptitude install bisigi-themes # ~ 100 mb</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/716/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MSN-Proxy v0.7 no Debian 5 (Atualizado)</title>
		<link>http://www.remontti.com.br/blog/archives/104</link>
		<comments>http://www.remontti.com.br/blog/archives/104#comments</comments>
		<pubDate>Sun, 18 Apr 2010 18:55:07 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[msn-proxy]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=104</guid>
		<description><![CDATA[Atualizado em 18/04/2010 Controle o uso do msn Messenger em sua rede. Desfrute de vários recursos, bem como log das conversas, aviso sobre o monitoramento, bloqueio exclusivo a determinado usuário, entre outros. A versão 0.6.3 não tínhamos suporte ao Messenger 9. Nesta nova versão algumas alterações foram feitas no sentido de resolver o problema de [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;"><em><span style="color: #800000;">Atualizado em 18/04/2010</span></em></p>
<p>Controle o uso do msn Messenger em sua rede. Desfrute de vários recursos, bem como log das conversas, aviso sobre o monitoramento, bloqueio exclusivo a determinado usuário, entre outros.<br />
A versão 0.6.3 não tínhamos suporte ao Messenger 9.<br />
Nesta nova versão algumas alterações foram feitas no sentido de resolver o problema de conexão para quem tem muitos contatos!</p>
<p><span id="more-104"></span><br />
Tenha instalado Apache2 + PHP5 + MySQL.<br />
Caso não tenha esses pacotes, instale com os comandos:</p>
<p><span style="color: #ff6600;"># aptitude install php5 libapache2-mod-php5 php5-gd php5-imagick php5-mysql<br />
# aptitude install apache2<br />
# aptitude install mysql-server phpmyadmin<br />
# mysqladmin -u root password SENHA-DO-MYSQL</span></p>
<p>Instalando os compiladores e lib do MySQL:<br />
<span style="color: #ff6600;"># aptitude install make gcc g++<br />
# aptitude install -f libmysqlclient15-dev</span></p>
<p>Instalando Libvent: Busque sempre por uma versão recente (http://monkey.org/~provos/libevent/)<br />
O libevent API fornece um mecanismo para executar uma função chamada quando um evento específico ocorre em um descritor de ficheiro ou após um tempo limite foi atingido.</p>
<p><span style="color: #ff6600;"># wget http://monkey.org/~provos/libevent-<span style="color: #000000;"><strong>1.4.13</strong></span>-stable.tar.gz <span style="color: #000000;">(verifique sempre se não existe uma nova versão)</span><br />
# tar -vxzf libevent-1.4.13-stable.tar.gz<br />
# cd libevent-1.4.13-stable<br />
# ./configure<br />
# make<br />
# make install<br />
# cd /usr/lib/<br />
# ln -s /usr/local/lib/libevent-1.4.so.2<br />
# ln -s /usr/local/lib/libevent-1.4.so.2.1.2<br />
</span></p>
<p>Instalando o MSN Proxy: (http://sourceforge.net/projects/msn-proxy/)</p>
<p><span style="color: #ff6600;"># wget http://ufpr.dl.sourceforge.net/sourceforge/msn-proxy/msn-proxy-0.7.tar.gz<br />
# tar -vxzf msn-proxy-0.7.tar.gz<br />
# cd msn-proxy<br />
# vim Makefile</span></p>
<blockquote><p>Se preferir pode usar a versão do SCM Repositories (Esta versão esta em desenvolviemtno)</p>
<pre>- Correcao de memory leaks.
 - Alteracao nos paths dos arquivos de configuracao.
 - Migracao para o autotools finalizada.
 - Alteracao no nome do binário para msn_proxy (compatibilidade com o autotools).
 - Adicionados indices em algumas tabelas do MySQL.</pre>
<p>Execute o comando abaixo p/ baixar.<em> </em></p>
<p><span style="color: #ff6600;"><strong><code># svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy  msn-prox </code></strong></span></p>
<p>(se o comando svn nao funcionar instale com <span style="color: #ff6600;"># </span><em><span style="color: #ff6600;">aptitude install subversio</span>)</em></p>
<p><span style="color: #ff6600;"># cd /msn-proxy/branches/msn-proxy-0.7</span></p>
<p><span style="color: #ff6600;"># vim  Makefile</span></p></blockquote>
<p>Aqui esta o pulo do gato, comente as linhas do FreeBSD:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># FreeBSD
</span><span style="color: #666666; font-style: italic;">#MYSQLINC=/usr/local/include
</span><span style="color: #666666; font-style: italic;">#MYSQLLIB=/usr/local/lib/mysql</span></pre></div></div>

<p>E adicione as seguintes linhas</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">MYSQLINC<span style="color: #339933;">=/</span>usr<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span><span style="color: #990000;">mysql</span>
MYSQLLIB<span style="color: #339933;">=/</span><span style="color: #000000; font-weight: bold;">var</span><span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span><span style="color: #990000;">mysql</span><span style="color: #339933;">/</span><span style="color: #990000;">mysql</span></pre></div></div>

<p>Vamos compilar e instalar.<br />
<span style="color: #ff6600;"># make<br />
# make install</span></p>
<p>Agora iremos mover a pasta <strong>php </strong>para no nosso diretório <strong>var</strong> e após renomear para <strong>msn-proxy</strong>, e em seguida criaremos a tabela msn-proxy e faremos algumas alterações para que o msn-proxy conecte ao mysql.<br />
<span style="color: #ff6600;"># cp -R php /var/www/<br />
# mv /var/www/php /var/www/msn-proxy</span></p>
<p># mysql -p<br />
(e digite a senha do root)</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">create database `msn-proxy`;
grant all privileges on `msn-proxy`.* to `msn-proxy`@localhost identified by 'SENHA';
flush privileges;
quit</pre></div></div>

<p>Preste atenção no  &#8221; <strong>` </strong>&#8221; e &#8221; <strong>&#8216;</strong> &#8221; tem diferenças sobre mysql comandos.</p>
<p><span style="color: #ff6600;"># vim /var/www/msn-proxy/mysql.inc.php</span></p>
<p>Altere:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;msn-proxy&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SENHA&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;msn-proxy&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$port</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3306</span><span style="color: #339933;">;</span></pre></div></div>

<p><span style="color: #ff6600;"># vim /usr/local/etc/msn-proxy/mysql/conf</span></p>
<p>Deixe assim:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">localhost|3306|msn-proxy|SENHA_USEUARIO_PROXY|msn-proxy</pre></div></div>

<p>Vamos executá-lo, nesta fase ele irá criar as tabelas em sua base.<br />
<span style="color: #ff6600;"># /usr/local/bin/msn-proxy</span></p>
<p>Se tudo ocorrer bem, terá a seguinte mensagem:</p>
<p><span style="color: #ff0000;"><strong>PUBLIC ACCESS on /usr/local/etc/msn-proxy/mysql/conf should be removed !!!¹<br />
fail to read mysql config (check defaults table)</strong></span></p>
<p><span style="color: #ff6600;"># chmod 600 /usr/local/etc/msn-proxy/mysql/conf<br />
# vim /usr/local/etc/msn-proxy/msn-proxy.conf</span></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;"> max_clients=10</pre></div></div>

<p>Por padrão vem controle para até 10 usuários, altere de acordo com suas necessidades.</p>
<p>Agora vamos direcionar a porta 1863 do msn, em nosso servidor, essa linha a baixo vc pode adicionala em seu firewall.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;"> /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1863 -j REDIRECT --to-port 1863</pre></div></div>

<p>Onde <strong>eth0</strong> é interface de qual faço nat para minha rede (gtw dos clientes da rede)  sendo desta forma termos que informa em nossa base o IP desta interface no banco de dados. Lembre-se <strong>eth0</strong> não é a  interface de entrada (internet), e sim a de saída (rede local).<br />
Suponhamos q 192.168.254.1 é o ip desta interface.</p>
<p><span style="color: #ff6600;"># mysql -p</span><br />
(e digite a senha do root)<br />
<span style="color: #ff6600;"><span style="color: #000000;">mysql&gt;</span> use msn-proxy;<br />
<span style="color: #000000;">mysql&gt;</span> show tables;</span></p>
<p>Apenas para confirmarmos que nossa tabela foi criada, se estiver irá aparecer isso:</p>
<p><span style="font-family: Courier;"><span style="color: #808080;"> </span></span></p>
<pre>+---------------------+
| Tables_in_msn-proxy |
+---------------------+
| contact_groups      |
| contacts            |
| defaults            |
| log                 |
| sb                  |
| users               |
+---------------------+
</pre>
<p>mysql&gt;<span style="color: #ff6600;"> INSERT INTO `defaults` ( `internal_host` , `connect` , `save_msg` , `save_contacts` , `commands` , `warnemail` , `warndn` , `warnmsg` , `msgfont` , `msgcolor` )<br />
VALUES (<br />
&#8217;192.168.254.1&#8242;, &#8216;YES&#8217;, &#8216;YES&#8217;, &#8216;YES&#8217;, &#8217;0&#8242;, &#8216;rudimar@remontti.com.br&#8217;, &#8216;Administrador do Sistema&#8217;, &#8216;Para sua segurança esta mensagem esta sendo monitorada.&#8217;, &#8216;Arial&#8217;, &#8216;black&#8217;<br />
);</span></p>
<p>Vamos ver se gravou?</p>
<p>mysql&gt; SELECT * FROM `defaults`;</p>
<p><span style="color: #808080;">| 192.168.254.1 | YES | YES | YES | 0 | rudimar@remontti.com.br | Administrador do Sistema | Para sua segurança esta mensagem esta sendo monitorada. | Arial | black |</span><br />
1 row in set (0.00 sec)</p>
<p>Se essa foi a reposta, está tudo pronto!<br />
mysql&gt; <span style="color: #ff6600;">quit</span></p>
<p>Iniciando  MSN Proxy:</p>
<p><span style="color: #ff6600;"># /usr/local/bin/msn-proxy &amp;<br />
# /usr/local/bin/msn-proxy -d &amp; (-d para ver os logs)</span></p>
<p>Sua administração é feita via web, lembra dos comandos:<br />
<span style="color: #888888;"><em> cp -R php /var/www/<br />
mv /var/www/php /var/www/msn-proxy</em></span><br />
Você copiou a pasta php que tinha no pacote de instalação para o diretório /var/www/ , bom agora bastar acessar via web para fazer a administração: http://ip-server/msn-proxy<br />
Com uma boa fuçada você irá descobrir como ele funciona.</p>
<p>Qualquer dúvida deixe seu comentário.</p>
<p><span style="font-size: xx-small;"><br />
Fontes:</p>
<p>http://sourceforge.net/projects/msn-proxy/</p>
<p>http://monkey.org/~provos/libevent/</p>
<p>Créditos: loos.br@gmail.com</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/104/feed</wfw:commentRss>
		<slash:comments>101</slash:comments>
		</item>
		<item>
		<title>Alterar porta padrão do WTS</title>
		<link>http://www.remontti.com.br/blog/archives/682</link>
		<comments>http://www.remontti.com.br/blog/archives/682#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:34:50 +0000</pubDate>
		<dc:creator>Neimar Lazaretti</dc:creator>
				<category><![CDATA[Registro]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[portas]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=682</guid>
		<description><![CDATA[A porta padrão do Terminal Server (WTS) é a porta 3389 TCP. Por questões de segurança ou necessidade por termos mais de um servidor com acesso remoto no caso de direcionamentos de portas via modem ou firewall temos q alterar esse numero da porta. Para efetuar esse procediemento: 1-Abra o Regedit (Iniciar &#62; Executar &#62; [...]]]></description>
			<content:encoded><![CDATA[<p><span>A porta padrão do  Terminal Server (WTS) é a porta  3389 TCP.<a href="../wp-content/uploads/2010/04/wts.jpg"><img title="wts" src="../wp-content/uploads/2010/04/wts.jpg" alt="" width="422" height="258" /></a></span></p>
<p><span>Por questões de segurança ou necessidade por termos mais de um servidor com acesso remoto no caso de direcionamentos de portas via modem ou firewall temos q alterar esse numero da porta.</span></p>
<p><span><br />
</span></p>
<p><span>Para efetuar esse procediemento:</span></p>
<p><span>1-Abra o Regedit (Iniciar &gt; Executar &gt; Digite <strong><em>regedit </em></strong>pressione Enter</span></p>
<p><span>2-Localize a chave:</span></p>
<p><span><em><strong>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal  Server\WinStations\RDP-Tcp</strong></em></span></p>
<p><span>3-Encontre a subchave nomeada <strong>PortNumber</strong>, ela exibe o valor (00000D3D) e (3389). </span></p>
<p><span>Abra essa chave selecione a opção <em><strong>HEX</strong></em></span></p>
<p><span>4-Quando visualizar o valor em inteiros (3389 no caso )altere  o número da porta e salve esse novo valor(OK).</span></p>
<p><span>Pronto,  ja foi alterado a porta.</span></p>
<p><span>5-<span style="text-decoration: underline;">Reinicie o Computador</span> e estará funcionando com a nova porta. Para acessar o micro remotamente use os paramentros: </span></p>
<p><span> IP:PortNumber</span></p>
<p><span>Ex: mstsc /v 192.168.0.100:55666<br />
</span></p>
<p><span><br />
</span></p>
<p><span>PS. Só pra lembrar essa dica vale pro XP, 2003, 2008(testado) 7 e vista devem vir na carona.</span></p>
<p><span>(Editado)<br />
</span></p>
<p><span>**********************************</span></p>
<p><span>DICA DO  MESTRE RONELSO: Quando vc altera uma porta vc deve liberar ela no firewall também. <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p><span>**********************************</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/682/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Gerando gráfico dos Ping (ms)</title>
		<link>http://www.remontti.com.br/blog/archives/669</link>
		<comments>http://www.remontti.com.br/blog/archives/669#comments</comments>
		<pubDate>Wed, 17 Mar 2010 22:45:18 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[graficos]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[mrtg-ping-probe]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[rede]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=669</guid>
		<description><![CDATA[Vou falar sobre o mrtg-ping-probe, é um módulo para MRTG 2.x. Ele é usado para monitorar o tempo de ida e volta e perda de pacotes para dispositivos de rede. Ele não é executado diretamente, mas é chamado pelo MRTG como um ajudante quando ele precisa para determinar o tempo ping para um host. Usado [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Vou falar sobre o mrtg-ping-probe,  é um módulo para MRTG 2.x. Ele é usado para monitorar o tempo de ida e volta e perda de pacotes para dispositivos de rede. Ele não é executado diretamente, mas é chamado pelo MRTG como um ajudante quando ele precisa para determinar o tempo ping para um host. Usado e testado no Debian 5, tenha o pacote mrtg ja instalado.<br />
<a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/03/ping-day.png"><img class="alignnone size-full wp-image-673" title="ping-day" src="http://www.remontti.com.br/blog/wp-content/uploads/2010/03/ping-day.png" alt="" width="500" height="135" /></a></p>
<table>
<tbody>
<tr>
<th></th>
<th scope="col">Máx</th>
<th scope="col">Média</th>
<th scope="col">Atual</th>
</tr>
<tr>
<th scope="row">Max:</th>
<td>134.0 ms (74.4%)</td>
<td>36.0 ms (20.0%)</td>
<td>36.0 ms (20.0%)</td>
</tr>
<tr>
<th scope="row">Min:</th>
<td>20.0 ms (11.1%)</td>
<td>18.0 ms (10.0%)</td>
<td>18.0 ms (10.0%)</td>
</tr>
</tbody>
</table>
<p>Instalando<br />
<strong># aptitude install mrtg-ping-probe</strong></p>
<p>Para usar o mrtg-ping-probe você precisa configurar o MRTG para chamá-lo, isto é feito no arquivo de configuração do MRTG, que é geralmente /etc/mrtg.conf<br />
<span id="more-669"></span><br />
Adicione o seguinte script em seu /etc/mrtg.cfg, onde 192.168.0.100 é o ip p/ qual sera feito os teste.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Title<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: TORRE Y
PageTop<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000; font-weight: bold;">&lt;</span>h1<span style="color: #000000; font-weight: bold;">&gt;</span>TORRE Y<span style="color: #000000; font-weight: bold;">&lt;/</span>h1<span style="color: #000000; font-weight: bold;">&gt;</span>
MaxBytes<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000;">180</span>
AbsMax<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000;">10000</span>
WithPeak<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: ymwd
Options<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: gauge,nobanner,transparent
Target<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">`</span>mrtg-ping-probe 192.168.0.100<span style="color: #000000; font-weight: bold;">`</span>
YLegend<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: round trip <span style="color: #000000; font-weight: bold;">time</span>
ShortLegend<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: ms
Legend1<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Maximum Round Trip Time <span style="color: #000000; font-weight: bold;">in</span> ms
Legend2<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Minimum Round Trip Time <span style="color: #000000; font-weight: bold;">in</span> ms
Legend3<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Maximal <span style="color: #000000;">5</span> Minute Maximum Round Trip Time <span style="color: #000000; font-weight: bold;">in</span> ms
Legend4<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Maximal <span style="color: #000000;">5</span> Minute Minimum Round Trip Time <span style="color: #000000; font-weight: bold;">in</span> ms
LegendI<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>:  Max:
LegendO<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.ping<span style="color: #7a0874; font-weight: bold;">&#93;</span>:  Min:
&nbsp;
Title<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Pacotes Perdidos TORRE Y
PageTop<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000; font-weight: bold;">&lt;</span>h1<span style="color: #000000; font-weight: bold;">&gt;</span>Pacotes Perdidos TORRE Y<span style="color: #000000; font-weight: bold;">&lt;/</span>h1<span style="color: #000000; font-weight: bold;">&gt;</span>
Target<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">`</span>mrtg-ping-probe <span style="color: #660033;">-t</span> <span style="color: #000000;">42</span> <span style="color: #660033;">-p</span> loss<span style="color: #000000; font-weight: bold;">/</span>loss 192.168.0.100<span style="color: #000000; font-weight: bold;">`</span>
MaxBytes<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000;">100</span>
AbsMax<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000;">101</span>
WithPeak<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: ymwd
Options<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: gauge,nobanner,transparent
Unscaled<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: dwmy
YLegend<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">%</span> Pacotes Perdidos
ShortLegend<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">%</span>
Legend1<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">%</span> Pacotes Perdidos
Legend2<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">%</span> Pacotes Perdidos
Legend3<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Maximal <span style="color: #000000;">5</span> Minute <span style="color: #000000; font-weight: bold;">%</span> Pacotes Perdidos
Legend4<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Maximal <span style="color: #000000;">5</span> Minute <span style="color: #000000; font-weight: bold;">%</span> Pacotes Perdidos
LegendI<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>:  <span style="color: #000000; font-weight: bold;">%</span> perda:
LegendO<span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.0.100.perda<span style="color: #7a0874; font-weight: bold;">&#93;</span>:  <span style="color: #000000; font-weight: bold;">%</span> perda:</pre></div></div>

<p>Salve, agora rode novamente o mrtg.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/669/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data e Hora certa</title>
		<link>http://www.remontti.com.br/blog/archives/660</link>
		<comments>http://www.remontti.com.br/blog/archives/660#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:24:37 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[hora]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ntpdate]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=660</guid>
		<description><![CDATA[Dica rápidinha, o comando ntpdate ajusta a data e a hora local do seu server fazendo consultando servidores NTP (Network Time Protocol) disponíveis na rede mundial. A precisão é de menos de um segundo. O comando é simples basta digitar: # ntpdate a.ntp.br Os servidores do NTP.br são os seguintes: (http://ntp.br/guia.html) Nome Endereço a.ntp.br 200.160.0.8 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/03/clock05.gif"><img class="size-full wp-image-666  alignright" title="clock05" src="http://www.remontti.com.br/blog/wp-content/uploads/2010/03/clock05.gif" alt="" width="194" height="295" /></a>Dica rápidinha, o comando ntpdate ajusta a data e a hora local do seu server fazendo consultando servidores NTP (Network Time Protocol) disponíveis na rede mundial. A precisão é de menos de um segundo.</p>
<p>O comando é simples basta digitar:</p>
<p><strong># <span style="color: #ff6600;">ntpdate a.ntp.br</span></strong></p>
<p><strong><span style="color: #ff6600;"><span style="color: #000000;"> </span><br />
</span></strong></p>
<p>Os servidores do NTP.br são os seguintes: (http://ntp.br/guia.html)</p>
<table border="0" cellspacing="6" cellpadding="2">
<tbody>
<tr>
<td>Nome</td>
<td>Endereço</td>
</tr>
<tr>
<td>a.ntp.br</td>
<td>200.160.0.8</td>
</tr>
<tr>
<td>b.ntp.br</td>
<td>200.189.40.8</td>
</tr>
<tr>
<td>c.ntp.br</td>
<td>200.192.232.8</td>
</tr>
</tbody>
</table>
<p>Voce pode usar outros endereços de servidores ntp públicos.</p>
<p>Abraço!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/660/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD v8.0 +  Apache + Mysql + PHP “FAMP”</title>
		<link>http://www.remontti.com.br/blog/archives/648</link>
		<comments>http://www.remontti.com.br/blog/archives/648#comments</comments>
		<pubDate>Mon, 04 Jan 2010 19:23:42 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache22]]></category>
		<category><![CDATA[famp]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=648</guid>
		<description><![CDATA[Primeiramente vamos instalar o mysql, para não ficarmos com dependências&#8230; para os amigos de primeira viagem no freebsd usamos os ports para instalação de pacotes, vamos suporte que eu esteja querendo instalar algum pacote e não sei seu diretório, entre em http://www.freshports.org/ e em search faça sua busca, não vou entrar em detalhes. Vamos à [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2010/01/postcard2.gif"><img class="size-full wp-image-655 alignleft" title="postcard2" src="http://www.remontti.com.br/blog/wp-content/uploads/2010/01/postcard2.gif" alt="" width="260" height="328" /></a>Primeiramente vamos instalar o mysql, para não ficarmos com dependências&#8230;  para os amigos de primeira viagem no freebsd usamos os ports para instalação de pacotes, vamos suporte que eu esteja querendo instalar algum pacote e não sei seu diretório, entre em http://www.freshports.org/ e em search faça sua busca, não vou entrar em detalhes. Vamos à instalação:</p>
<p><span id="more-648"></span></p>
<h2><strong>ATUALIZANDO PORTS</strong></h2>
<p><span style="color: #ff6600;"># portsnap fetch<br />
# portsnap extract<br />
# portsnap update</span></p>
<h2><strong>MYSQL </strong></h2>
<p><span style="color: #ff6600;"># cd /usr/ports/databases/mysql51-server/<br />
# make install clean</span></p>
<p>Options for libiconv (padrão)</p>
<p>O processo de compilação pode demorar vários minutos&#8230;</p>
<p>Agora vamos ativa-lo, após starta-lo e reiniciar nosso server para verificar se tudo esta ok.</p>
<p><span style="color: #ff6600;"># echo &#8216;mysql_enable=&#8221;YES&#8221;&#8216; &gt;&gt; /etc/rc.conf<br />
# /usr/local/etc/rc.d/mysql-server start<br />
# reboot<br />
Adicionando uma senha a seu usuário root<br />
# mysqladmin -u root password SUA_SENHA<br />
# history -c</span></p>
<h2><strong>APACHE</strong></h2>
<p><span style="color: #ff6600;"># cd /usr/ports/www/apache22/<br />
# make config </span></p>
<p>Quando for solicitado marque apenas as opções a baixo:</p>
<pre>Apache2 Options

[X] THREADS               Enable threads support in APR
[X] MYSQL                 Enable MySQL support for apr-dbd
[X] IPV6                  Enable IPv6 support
[X] BDB                   Enable BerkeleyDB dbm
[X] AUTH_BASIC            Enable mod_auth_basic
[X] AUTH_DIGEST           Enable mod_auth_digest
[X] AUTHN_FILE            Enable mod_authn_file
[X] AUTHN_DBD             Enable mod_authn_dbd
[X] AUTHN_DBM             Enable mod_authn_dbm
[X] AUTHN_ANON            Enable mod_authn_anon
[X] AUTHN_DEFAULT         Enable mod_authn_default
[X] AUTHN_ALIAS           Enable mod_authn_alias
[X] AUTHZ_HOST            Enable mod_authz_host
[X] AUTHZ_GROUPFILE       Enable mod_authz_groupfile
[X] AUTHZ_USER            Enable mod_authz_user
[X] AUTHZ_DBM             Enable mod_authz_dbm
[X] AUTHZ_OWNER           Enable mod_authz_owner
[X] AUTHZ_DEFAULT         Enable mod_authz_default
[X] CACHE                 Enable mod_cache
[X] DISK_CACHE            Enable mod_disk_cache
[X] FILE_CACHE            Enable mod_file_cache
[X] DAV                   Enable mod_dav
[X] DAV_FS                Enable mod_dav_fs
[X] ACTIONS               Enable mod_actions
[X] ALIAS                 Enable mod_alias
[X] ASIS                  Enable mod_asis
[X] AUTOINDEX             Enable mod_autoindex
[X] CERN_META             Enable mod_cern_meta
[X] CHARSET_LITE          Enable mod_charset_lite
[Y] DBD                   Enable mod_dbd
[X] DEFLATE               Enable mod_deflate
[X] DIR                   Enable mod_dir
[X] DUMPIO                Enable mod_dumpio
[X] ENV                   Enable mod_env
[X] EXPIRES               Enable mod_expires
[X] HEADERS               Enable mod_headers
[X] IMAGEMAP              Enable mod_imagemap
[X] INCLUDE               Enable mod_include
[X] INFO                  Enable mod_info
[X] LOG_CONFIG            Enable mod_log_config
[X] LOGIO                 Enable mod_logio
[X] MIME                  Enable mod_mime
[X] MIME_MAGIC            Enable mod_mime_magic
[X] NEGOTIATION           Enable mod_negotiation
[X] REWRITE               Enable mod_rewrite
[X] SETENVIF              Enable mod_setenvif
[X] SPELING               Enable mod_speling
[X] STATUS                Enable mod_status
[X] UNIQUE_ID             Enable mod_unique_id
[X] USERDIR               Enable mod_userdir
[X] USERTRACK             Enable mod_usertrack
[X] VHOST_ALIAS           Enable mod_vhost_alias
[X] FILTER                Enable mod_filter
[X] VERSION               Enable mod_version
[X] PROXY                 Enable mod_proxy
[X] SSL                   Enable mod_ssl
[X] SUEXEC                Enable mod_suexec
</pre>
<pre>Options for perl 5.8

[X] PERL_MALLOC    Use Perl malloc
[X] PERL_64BITINT  Use 64 bit integers (on i386)
[X] USE_PERL       Rewrite links in /usr/bin
</pre>
<pre>Options for m4 (não marque nada)
[ ] LIBSIGSEGV  Use libsigsegv for better diagnostics</pre>
<p><span style="color: #ff6600;"># make install clean clean-depends</span></p>
<p>Uma vez que o Apache está instalado corretamente, você deve configurar seu servidor. Primeiro, ativar o suporte a SSL e criar o certificado e arquivos fundamentais.</p>
<p><span style="color: #ff6600;"># echo &#8216;apache22_enable=&#8221;YES&#8221;&#8216; &gt;&gt; /etc/rc.conf</span></p>
<p><span style="color: #ff6600;"># echo &#8216;apache22ssl_enable=&#8221;YES&#8221;&#8216; &gt;&gt; /etc/rc.conf<br />
# echo &#8216;accf_http_ready=&#8221;YES&#8221;&#8216; &gt;&gt; /etc/rc.conf<br />
# kldload accf_http</span></p>
<p><span style="color: #ff6600;"># /usr/local/etc/rc.d/apache22 start</span></p>
<p><span style="color: #ff6600;"># cd /usr/local/etc/apache22/<br />
# openssl genrsa -des3 -out server.key 1024</span><br />
Generating RSA private key, 1024 bit long modulus<br />
.++++++<br />
&#8230;&#8230;&#8230;&#8230;&#8230;++++++<br />
e is 65537 (0&#215;10001)<br />
Enter pass phrase for server.key:<strong> SUA_SENHA</strong><br />
Verifying &#8211; Enter pass phrase for server.key: <strong>SUA_SENHA</strong></p>
<p><span style="color: #ff6600;"># openssl req -new -key server.key -out server.csr</span><br />
Enter pass phrase for server.key: <strong>SUA_SENHA</strong><br />
You are about to be asked to enter information that will be incorporated<br />
into your certificate request.<br />
What you are about to enter is what is called a Distinguished Name or a DN.<br />
There are quite a few fields but you can leave some blank<br />
For some fields there will be a default value,<br />
If you enter &#8216;.&#8217;, the field will be left blank.<br />
&#8212;&#8211;<br />
Country Name (2 letter code) [AU]:BR<br />
State or Province Name (full name) [Some-State]:Rio Grande do Sul<br />
Locality Name (eg, city) []:Fred. West.<br />
Organization Name (eg, company) [Internet Widgits Pty Ltd]:remontti<br />
Organizational Unit Name (eg, section) []:<br />
Common Name (eg, YOUR name) []:<br />
Email Address []:</p>
<p>Please enter the following &#8216;extra&#8217; attributes<br />
to be sent with your certificate request<br />
A challenge password []:<br />
An optional company name []:</p>
<p><span style="color: #ff6600;"># openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</span><br />
Signature ok<br />
subject=/C=BR/ST=Rio Grande do Sul/L=Fred. West./O=remontti<br />
Getting Private key<br />
Enter pass phrase for server.key: <strong>SUA_SENHA</strong></p>
<p><span style="color: #ff6600;"># chmod 0400 server.key server.crt<br />
# cd /usr/local/www/apache22/<br />
# mkdir ssl<br />
# cd /usr/local/etc/apache22/<br />
# vi httpd.conf</span></p>
<p>Comente as seguintes linhas:<br />
<span style="color: #3366ff;"><em>#LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so<br />
#LoadModule file_cache_module libexec/apache22/mod_file_cache.so<br />
#LoadModule cache_module libexec/apache22/mod_cache.so<br />
#LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so<br />
#ScriptAlias /cgi-bin/ &#8220;/usr/local/www/apache22/cgi-bin/&#8221;</em></span></p>
<p>Descomente:<br />
<span style="color: #3366ff;">Include etc/apache22/extra/httpd-ssl.conf </span> #(Fazendo isso quando vc reiniciar o serviço ou o Server será solicitado senha)<br />
<span style="color: #3366ff;">AddType text/html .shtml<br />
AddOutputFilter INCLUDES .shtml<br />
MIMEMagicFile etc/apache22/magic </span></p>
<p>Altere:<br />
<span style="color: #3366ff;">ServerAdmin seu@email.com<br />
DirectoryIndex index.html index.htm</span></p>
<p>Adicione:<br />
<span style="color: #3366ff;">ServerSignature Off</span></p>
<p># vi /usr/local/etc/apache22/extra/httpd-ssl.conf<br />
Se vc desejar trocar o diretório do DocumentRoot para o seu diretório entre outras de acordo com suas necessidades.<br />
DocumentRoot &#8220;/usr/local/www/apache22/XXXX&#8221;</p>
<p><span style="color: #ff9900;"># /usr/local/etc/rc.d/apache22 restart</span><br />
Enter pass phrase: <strong>SUA_SENHA do ssl</strong></p>
<h2><strong>PHP5 </strong></h2>
<p><span style="color: #ff6600;"># cd /usr/ports/lang/php5<br />
# make config </span></p>
<pre>Options for php5 5.2.12   

[X] CLI        Build CLI version
[X] CGI        Build CGI version
[X] APACHE     Build Apache module
[X] DEBUG      Enable debug
[X] SUHOSIN    Enable Suhosin protection system (not for jails)
[X] MULTIBYTE  Enable zend multibyte support
[X] IPV6       Enable ipv6 support
[X] MAILHEAD   Enable mail header patch
[X] REDIRECT   Enable force-cgi-redirect support (CGI only)
[X] DISCARD    Enable discard-path support (CGI only)
[X] FASTCGI    Enable fastcgi support (CGI only)
[X] PATHINFO   Enable path-info-check support (CGI only)</pre>
<p><span style="color: #ff6600;"># make install clean<br />
# cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini<br />
# echo &#8216;#CONFIGURACAO PHP5&#8242; &gt;&gt; /usr/local/etc/apache22/httpd.conf<br />
# echo &#8216;AddType application/x-httpd-php .php&#8217; &gt;&gt; /usr/local/etc/apache22/httpd.conf<br />
# echo &#8216;AddType application/x-httpd-php-source .phps&#8217; &gt;&gt; /usr/local/etc/apache22/httpd.conf<br />
# vi /usr/local/etc/apache22/httpd.conf</span></p>
<p>Adicione ao DirectoryIndex deixando assim:<br />
<span style="color: #3366ff;">DirectoryIndex index.html index.htm <strong>index.php</strong></span></p>
<p><span style="color: #ff6600;"># vi /usr/local/etc/php.ini</span><br />
<span style="color: #3366ff;">Altere: short_open_tag = On</span></p>
<h2>PHP5-Extensions</h2>
<p><span style="color: #ff6600;"># cd /usr/ports/lang/php5-extensions<br />
# make install clean</span></p>
<pre>PHP5-Extensions Options
[X] BZ2         bzip2 library support
[X] CTYPE       ctype functions
[X] CURL        CURL support
[X] DBA         dba support
[X] DOM         DOM support
[X] FILEINFO    fileinfo support
[X] FILTER      input filter support
[X] FTP         FTP support
[X] GD          GD library support
[X] HASH        HASH Message Digest Framework
[X] ICONV       iconv support
[X] IMAP        IMAP support
[X] JSON        JavaScript Object Serialization support
[X] MCRYPT      Encryption support
[X] MHASH       Crypto-hashing support
[X] MYSQL       MySQL database support
[X] PDO         PHP Data Objects Interface (PDO)
[X] PDO_SQLITE  PDO sqlite driver
[X] POSIX       POSIX-like functions
[X] SESSION     session support
[X] SHMOP       shmop support
[X] SIMPLEXML   simplexml support
[X] SOAP        SOAP support
[X] SOCKETS     sockets support
[X] SPL         Standard PHP Library
[X] SQLITE      sqlite support
[X] TOKENIZER   tokenizer support
[X] XML         XML support
[X] XMLREADER   XMLReader support
[X] XMLRPC      XMLRPC-EPI support
[X] XMLWRITER   XMLWriter support
[X] ZIP         ZIP support</pre>
<p>Deixe marcado o que esta por padrão para todas as próximas opções</p>
<p><span style="color: #ff6600;"># /usr/local/etc/rc.d/apache22 restart</span></p>
<h2>PhpMyAdmin</h2>
<p><span style="color: #ff6600;"># cd /usr/ports/databases/phpmyadmin211/</span></p>
<p><span style="color: #ff6600;"># make install clean</span></p>
<pre>Options for phpMyAdmin211 2.11.9.6

[ ] SUPHP     suPHP support
[X] BZ2       bzip2 library support
[X] GDGD 	  library support
[X] OPENSSL   OpenSSL support
[X] PDF       PDFlib support (implies GD)
[X] ZLIB      ZLIB support
[X] MCRYPT    MCrypt library support
[X] MBSTRING  Multi-byte character-set string support</pre>
<p><span style="color: #ff6600;"># cp /usr/local/www/phpMyAdmin211/libraries/config.default.php /usr/local/www/phpMyAdmin211/config.inc.php</span></p>
<p><span style="color: #ff6600;"># vim /usr/local/www/phpMyAdmin211/config.inc.php</span><br />
Altere: <span style="color: #3366ff;">$cfg['Servers'][$i]['auth_type'] = &#8216;config&#8217;;</span><br />
para: <span style="color: #3366ff;">$cfg['Servers'][$i]['auth_type'] = &#8216;<strong>http</strong>&#8216;;</span></p>
<p>Adicione no httpd.conf<br />
<span style="color: #ff6600;"># /usr/local/etc/apache22/httpd.conf</span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Alias <span style="color: #000000; font-weight: bold;">/</span>phpmyadmin <span style="color: #ff0000;">&quot;/usr/local/www/phpMyAdmin211/&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/local/www/phpMyAdmin211/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    Options none
    AllowOverride Limit
&nbsp;
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 ip_da_sua_rede
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Isso ai galera, abraço!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/648/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Instalanção FreeBSD 8.0 passo a passo</title>
		<link>http://www.remontti.com.br/blog/archives/639</link>
		<comments>http://www.remontti.com.br/blog/archives/639#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:59:58 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[instalaçõa]]></category>
		<category><![CDATA[passo a passo]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=639</guid>
		<description><![CDATA[O FreeBSD é um sistema operacional livre do tipo Unix descendente do BSD desenvolvido pela Universidade de Berkeley. Está disponível para as plataformas Intel x86, DEC Alpha, Sparc, PowerPC e PC98 assim como para as arquiteturas baseadas em processadores de 64bits IA-64 e AMD64. O FreeBSD fornece compatibilidade binária com muitas outras variações do Unix. [...]]]></description>
			<content:encoded><![CDATA[<p>O FreeBSD é um sistema operacional livre do tipo Unix descendente do BSD desenvolvido pela Universidade de Berkeley.</p>
<p>Está disponível para as plataformas Intel x86, DEC Alpha, Sparc, PowerPC e PC98 assim como para as arquiteturas baseadas em processadores de 64bits IA-64 e AMD64.</p>
<p>O FreeBSD fornece compatibilidade binária com muitas outras variações do Unix. O mesmo também é compativel com o OS GNU/Linux. A razão por trás disso está em poder utilizar programas desenvolvidos para Linux, geralmente comerciais, que só são distribuídos em forma binária e que por isso não podem ser portados para o FreeBSD sem a vontade de seus criadores.</p>
<p>Vamos a instalação&#8230;</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/1.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/1.gif"></a><br />
Default -> [enter]<br />
<span id="more-639"></span><br />
<a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/2.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/2.gif></a><br />
Brazil -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/3.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/3.gif"></a><br />
Brazil ISO (accent) -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/4.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/4.gif"></a><br />
Standart -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/5.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/5.gif"></a><br />
-> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/6.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/6.gif"></a><br />
-> [Yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/7.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/7.gif"></a><br />
-> [A]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/8.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/8.gif"></a><br />
-> [Q]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/9.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/9.gif"></a><br />
Standart -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/10.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/10.gif"></a><br />
-> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/11.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/11.gif"></a><br />
-> [A]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/12.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/12.gif"></a><br />
-> [Q]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/13.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/13.gif"></a><br />
All -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/14.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/14.gif"></a><br />
-> [Yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/15.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/15.gif"></a><br />
CD/DVD -> [Ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/16.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/16.gif"></a><br />
-> [Yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/17.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/17.gif"></a><br />
Aguarde&#8230; </p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/18.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/18.gif"></a><br />
-> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/19.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/19.gif"></a><br />
-> [Yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/20.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/20.gif"></a><br />
Selecione a interface da sua rede -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/21.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/21.gif"></a><br />
-> [No]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/22.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/22.gif"></a><br />
-> [No]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/24.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/24.gif"></a><br />
Preencha os campos&#8230;</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/25.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/25.gif"></a><br />
-> [yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/26.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/26.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/27.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/27.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/28.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/28.gif"></a><br />
-> [yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/29.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/29.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/30.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/30.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/31.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/31.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/32.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/32.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/33.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/33.gif"></a><br />
-> [yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/34.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/34.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/35.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/35.gif"></a><br />
America &#8212; North and South -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/36.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/36.gif"></a><br />
Brazil -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/37.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/37.gif"></a><br />
S &#038; SE Brazil &#8230; -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/38.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/38.gif"></a><br />
-> [yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/39.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/39.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/40.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/40.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/41.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/41.gif"></a><br />
User -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/42.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/42.gif"></a><br />
Crie um usuario com o Member groups (wheel) -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/43.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/43.gif"></a><br />
Exit -> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/44.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/44.gif"></a><br />
-> [ok]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/45.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/45.gif"></a><br />
Senha root -> [enter]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/46.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/46.gif"></a><br />
-> [no]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/47.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/47.gif"></a><br />
-> [Exit Install]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/48.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/48.gif"></a><br />
-> [Yes]</p>
<p><a href="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/49.gif"><br />
<img src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/49.gif"></a><br />
-> [ok]</p>
<p><strong>Produtos baseados no FreeBSD</strong></p>
<p>    * Darwin, o kernel do Mac OS X é em grande parte baseado no FreeBSD.<br />
    * OpenDarwin, um projeto completamente separado da Apple que foi inicialmente baseado no Darwin.<br />
    * PC-BSD é uma distribuição do FreeBSD projetada para uso desktop com instalador e gerenciador de pacotes simplificado.<br />
    * BSDeviant é uma distribuição live CD que cabe em um Mini-CD<br />
    * ClosedBSD<br />
    * GNU/kFreeBSD<br />
    * Debian GNU/kFreeBSD<br />
    * Ging é uma distribuição live CD baseada no Debian GNU/kFreeBSD, indiretamente baseada no FreeBSD.<br />
    * DragonFly BSD<br />
    * Firefly BSD<br />
    * O projeto FreeSBIE está produzindo distribuições live CD do FreeBSD, similares à distribuição Knoppix do Linux. O projeto FreeSBIE também inclui um conjunto de ferramentas para ajudá-lo a fazer seus próprios live file systems e CDROMs FreeSBIE.<br />
    * Frenzy é outro live CD baseado no FreeBSD, direcionado principalmente para usuários russos.<br />
    * PicoBSD é uma versão em disquete do FreeBSD.<br />
    * m0n0wall é um pacote de firewall baseado no FreeBSD.<br />
    * pfSense é um firewall/roteador basedo no m0n0wall e no FreeBSD.<br />
    * FreeNAS é um servidor NAS baseado no FreeBSD/m0n0wall.<br />
    * TrustedBSD<br />
    * Gentoo/FreeBSD<br />
    * DesktopBSD</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/639/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dica: Cores no FreeBSD</title>
		<link>http://www.remontti.com.br/blog/archives/585</link>
		<comments>http://www.remontti.com.br/blog/archives/585#comments</comments>
		<pubDate>Wed, 30 Dec 2009 17:14:03 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[colorido]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=585</guid>
		<description><![CDATA[Facilite a vida colorido os arquivos e diretorios do seu console no freebsd # echo &#8216;setenv EDITOR vi&#8217; &#62;&#62; /root/.cshrc # echo &#8216;setenv PAGER more&#8217; &#62;&#62; /root/.cshrc # echo &#8216;setenv BLOCKSIZE k&#8217;&#62;&#62; /root/.cshrc # echo &#8216;setenv TERM xterm-color&#8217; &#62;&#62; /root/.cshrc # echo &#8216;setenv CLICOLOR&#8217; &#62;&#62; /root/.cshrc Pronto! =) Veja o mundo colorido rsrsrsrs Feliz 2010! [...]]]></description>
			<content:encoded><![CDATA[<p>Facilite a vida colorido os arquivos e diretorios do seu console no freebsd</p>
<p><span style="color: #3366ff;"># echo &#8216;setenv EDITOR vi&#8217; &gt;&gt; /root/.cshrc<br />
# echo &#8216;setenv PAGER more&#8217; &gt;&gt; /root/.cshrc<br />
# echo &#8216;setenv BLOCKSIZE k&#8217;&gt;&gt; /root/.cshrc<br />
# echo &#8216;setenv TERM xterm-color&#8217; &gt;&gt; /root/.cshrc<br />
# echo &#8216;setenv CLICOLOR&#8217; &gt;&gt; /root/.cshrc</span></p>
<p><span style="color: #3366ff;"><span style="color: #000000;">Pronto! =) Veja o mundo colorido rsrsrsrs </span></span></p>
<p><span style="color: #3366ff;"><span style="color: #ff0000;"><em>Feliz 2010!</em></span><br />
</span></p>
<p style="text-align: center;">[ad code=1 align=center]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/585/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hora certa &#8211; Rede Mikrotik</title>
		<link>http://www.remontti.com.br/blog/archives/539</link>
		<comments>http://www.remontti.com.br/blog/archives/539#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:56:30 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Mikrotik]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=539</guid>
		<description><![CDATA[Deixando a hora certa em todos seus mikrotiks da rede. Primeiro vamos ao nosso servidor, nele vamos configurar p/ buscar a hora certa nos nossos servidores ntp.br. é tudo muito simples, vamos lá: /system ntp client set enabled=yes mode=unicast primary-ntp=200.160.0.8 secondary-ntp=200.189.40.8 200.160.0.8 (a.ntp.br.) 200.189.40.8 (b.ntp.br.) [ad code=1] Seu horario irá sincronizar autmaticamente. Em: /system clock [...]]]></description>
			<content:encoded><![CDATA[<p>Deixando a hora certa em todos seus mikrotiks da rede.<br />
Primeiro vamos ao nosso servidor, nele vamos configurar p/ buscar a hora certa nos nossos servidores ntp.br. é tudo muito simples, vamos lá:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>system ntp client
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">enabled</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #007800;">mode</span>=unicast primary-ntp=200.160.0.8 secondary-ntp=200.189.40.8</pre></div></div>

<blockquote><p><img class="alignnone size-full wp-image-541" title="1" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/1.png" alt="1" width="319" height="125" /></p></blockquote>
<p><em>200.160.0.8 (a.ntp.br.)<br />
200.189.40.8 (b.ntp.br.)</em><br />
<center>[ad code=1]</center><br />
<span id="more-539"></span><br />
Seu horario irá sincronizar autmaticamente. Em:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>system clock manual
<span style="color: #000000; font-weight: bold;">set</span> dst-delta=+00:00 dst-end=<span style="color: #ff0000;">&quot;jan/01/2020 00:00:00&quot;</span> dst-start=<span style="color: #ff0000;">&quot;jan/01/1970 00:00:00&quot;</span> time-zone=-02:00</pre></div></div>

<blockquote><p><img class="alignnone size-full wp-image-543" title="2_1" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/2_1.png" alt="2_1" width="311" height="198" /></p></blockquote>
<blockquote><p><img class="alignnone size-full wp-image-542" title="2" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/2.png" alt="2" width="311" height="198" /></p></blockquote>
<p>Perfeito, agora temos nosso servidor com a hora certa.<br />
Proximo passo, configurar p/ que nossos mikrotiks da rede atualizem a hora pelo nosso servidor. Simples, ainda no nosso server vamos ativar o Ntp Server.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>system ntp server
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">broadcast</span>=no <span style="color: #007800;">enabled</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #007800;">manycast</span>=no <span style="color: #007800;">multicast</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<blockquote><p><span style="color: #008080;"><img class="alignnone size-full wp-image-544" title="3" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/3.png" alt="3" width="158" height="94" /></span></p></blockquote>
<p>Agora em todos Mk da nossa rede configuramos da seguinte maneira.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>system ntp client
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">enabled</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #007800;">mode</span>=unicast primary-ntp=10.0.0.1</pre></div></div>

<blockquote><p><img class="alignnone size-full wp-image-540" title="4" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/12/4.png" alt="4" width="319" height="123" /></p></blockquote>
<p>Onde 10.0.0.1 é o ip do seu servidor.</p>
<p> <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/539/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Msn-Proxy &#8211; Interface web lenta</title>
		<link>http://www.remontti.com.br/blog/archives/528</link>
		<comments>http://www.remontti.com.br/blog/archives/528#comments</comments>
		<pubDate>Tue, 01 Dec 2009 13:15:06 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[controle]]></category>
		<category><![CDATA[lento]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[msn-proxy]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=528</guid>
		<description><![CDATA[O motivo pela lentidão é que o arquivo view.php fica fazendo loop de pesquisa no mysql, até encontrar o fechamento da janela, onde o loop para. O problema é que eventualmente quando você vai consultar as conversas de alguém com a janela ainda aberta, para tudo de funcionar até que a pessoa feche a janela [...]]]></description>
			<content:encoded><![CDATA[<p>O motivo pela lentidão é que o arquivo view.php fica fazendo loop de pesquisa no mysql, até encontrar o fechamento da janela, onde o loop para. O problema é que eventualmente quando você vai consultar as conversas de alguém com a janela ainda aberta, para tudo de funcionar até que a pessoa feche a janela ou a sessão do browser expire, e o loop do php pare de rodar.</p>
<p>O patch abaixo adiciona uma pesquisa contando os registros antes do loop, e altera o loop para não ser inifinito, e sim até o número de registros efetivamente encontrado no banco.</p>
<p>Patch contra a versão 0.7:<br />
<span id="more-528"></span><br />
<span style="color: #ff9900;"># cd /var/www/msn-proxy/</span></p>
<p><span style="color: #ff9900;"># vim view.patch</span></p>
<p>Adicione o seguinte em seu arquivo:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">--- view.php	2009-02-05 16:37:40.000000000 -0200
+++ view.php	2009-11-24 09:58:43.000000000 -0200
@@ -40,7 +40,13 @@
 <span style="color: #000000; font-weight: bold;">&lt;?php</span>
     <span style="color: #000088;">$date</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;;</span>
     <span style="color: #000088;">$eof</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #339933;">-</span>    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$sqlcount</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT COUNT(*) AS count FROM log WHERE sb_id = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sb_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' &quot;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sqlcount</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">+</span>        <span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span>    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$loop</span> <span style="color: #339933;">&lt;=</span> <span style="color: #000088;">$count</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #000088;">$sql</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * from log WHERE sb_id = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sb_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' &quot;</span><span style="color: #339933;">;</span>
 	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$date</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">9</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">86</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">8</span> <span style="color: #339933;">@@</span>
 	    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$eof</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
 		<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
 	<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">-</span>	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$eof</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-</span>	    <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #339933;">-</span>	<span style="color: #990000;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$eof</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>	<span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$loop</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mysql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span style="color: #ff9900;"># patch -p0 &lt; view.patch</span><br />
<span style="color: #808080;"><em>patching file view.php</em></span></p>
<address>Fonte:  http://sourceforge.net/projects/msn-proxy/</address>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/528/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Deixando o Prompt Colorido</title>
		<link>http://www.remontti.com.br/blog/archives/518</link>
		<comments>http://www.remontti.com.br/blog/archives/518#comments</comments>
		<pubDate>Thu, 26 Nov 2009 13:56:26 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutoriais]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[colorindo]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=518</guid>
		<description><![CDATA[Por padrão recebemos nosso prompt sem cores, algumas distro ele já esta colorido as pastas e diretórios, mas não da forma que vc vai ver agora. Antes: Depois: vim /root/.bashrc Adicione ou descomente as seguintes linhas. export LS_OPTIONS='--color=auto' eval &#34;`dircolors`&#34; alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' &#160; PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[01;31m\]@\[\033[01;36m\]\h\[\033[00m\]:\[\033[01;37m\]\w\[\033[01;32m\]\$\[\033[00m\] ' Salve, [...]]]></description>
			<content:encoded><![CDATA[<p>Por padrão recebemos nosso prompt sem cores, algumas distro ele já esta colorido as pastas e diretórios, mas não da forma que vc vai ver agora.</p>
<p style="text-align: center;">Antes:</p>
<p style="text-align: center;"><img class="size-full wp-image-520 aligncenter" title="normal" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/11/normal.png" alt="normal" width="570" height="309" /></p>
<p style="text-align: center;">Depois:</p>
<p style="text-align: center;"><img class="size-full wp-image-519 aligncenter" title="colorido" src="http://www.remontti.com.br/blog/wp-content/uploads/2009/11/colorido.png" alt="colorido" width="570" height="309" /></p>
<p><span id="more-518"></span>vim /root/.bashrc</p>
<p>Adicione ou descomente as seguintes linhas.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_OPTIONS</span>=<span style="color: #ff0000;">'--color=auto'</span>
 <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`dircolors`</span>&quot;</span>
 <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls $LS_OPTIONS'</span>
 <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">'ls $LS_OPTIONS -l'</span>
 <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">l</span>=<span style="color: #ff0000;">'ls $LS_OPTIONS -lA'</span>
&nbsp;
<span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[01;31m\]@\[\033[01;36m\]\h\[\033[00m\]:\[\033[01;37m\]\w\[\033[01;32m\]\$\[\033[00m\] '</span></pre></div></div>

<p><span style="color: #008080;"><em><span style="color: #000000;">Salve, faça logoff, entre novamente.</span></em></span></p>
<p><em>Só para entender melhor:</em></p>
<p><em>\u O nome do usuário atual<br />
\h Nome da máquina<br />
\W Nome do diretório atual<br />
\$ Caractere que diferencia um usuário comum do super-usuário<br />
\t A hora atual no formato de 24 horas hh:mm:ss<br />
\d A data atual no formato &#8220;Dia_da_semana Mês Dia&#8221;</em></p>
<p><em></em><span style="color: #000000;"> Você pode personalizar&#8230; explo abaixo coloca a hora na frente do comando.</span><em><span style="color: #000000;"> (<strong>\[\033[01;37m\]\t \</strong>)</span></em></p>
<blockquote><p>12:24:18 -<span style="color: #ffff00;"> root</span><span style="color: #ff0000;">@</span><span style="color: #00ffff;">dns</span>:~<span style="color: #00ff00;">#</span></p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'${debian_chroot:+($debian_chroot)}\[\033[01;37m\]\t \[\033[01;33m\]\u\[\033[01;31m\]@\[\033[01;36m\]\h\[\033[00m\]:\[\033[01;37m\]\w\[\033[01;32m\]\$\[\033[00m\] '</span></pre></div></div>

<p>\[\033[Z;YY;XXm\]<br />
Onde Z é o estilo dos caracteres, YY é a cor de fundo e XX a cor dos caracteres.</p>
<table border="1">
<tbody>
<tr>
<td>Cores</td>
<td>Caracteres</td>
<td>Fundo</td>
</tr>
<tr>
<td>Preto</td>
<td>30</td>
<td>40</td>
</tr>
<tr>
<td><span style="color: #ff0000;">Vermelho</span></td>
<td>31</td>
<td>41</td>
</tr>
<tr>
<td valign="top"><span style="color: #00ff00;">Verde</span></td>
<td valign="top">32</td>
<td valign="top">42</td>
</tr>
<tr>
<td valign="top"><span style="color: #ffff00;">Amarelo</span></td>
<td valign="top">33</td>
<td valign="top">43</td>
</tr>
<tr>
<td valign="top"><span style="color: #0000ff;">Azul</span></td>
<td valign="top">34</td>
<td valign="top">44</td>
</tr>
<tr>
<td valign="top"><span style="color: #800080;">Roxo</span></td>
<td valign="top">35</td>
<td valign="top">45</td>
</tr>
<tr>
<td valign="top"><span style="color: #00ffff;">Ciano</span></td>
<td valign="top">36</td>
<td valign="top">46</td>
</tr>
<tr>
<td valign="top"><span style="color: #808080;">Cinza</span></td>
<td valign="top">37</td>
<td valign="top">47</td>
</tr>
</tbody>
</table>
<p>Estilo dos Caracteres<br />
<span style="font-family: courier new,courier;">Normal 0</span><br />
<span style="font-family: courier new,courier;">Bold 1</span> Dá brilho as cores<br />
<span style="font-family: courier new,courier;">Undescore 4</span><br />
<span style="font-family: courier new,courier;">Blink 5</span> Pisca-pisca<br />
<span style="font-family: courier new,courier;">Inverse 7</span> Inverte cor de fundo<br />
<span style="font-family: courier new,courier;">Concealed 8</span></p>
<p><span style="color: #008080;"><span style="color: #000000;">Abraço!</span><em><span style="color: #000000;"><br />
</span></em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/518/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boletos falsos do Registro.br. Cuidado!!!</title>
		<link>http://www.remontti.com.br/blog/archives/513</link>
		<comments>http://www.remontti.com.br/blog/archives/513#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:02:04 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Segurança]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Domínio]]></category>
		<category><![CDATA[falso]]></category>
		<category><![CDATA[manutencao]]></category>
		<category><![CDATA[registro.br]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=513</guid>
		<description><![CDATA[Já vem a um tempinho que amigos e alguns clientes, vêem tirar algumas dúvidas referentes a boleto que são recebidos via correio expedidos pelo “registro.br” para manutenção de domínios. Fique atento normalmente esses não vem com nome de registro.br o último que recebi veio como registrar.br, no valor de R$ 135,00. Este golpe já é [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Já vem a um tempinho que amigos e alguns clientes, vêem tirar algumas dúvidas referentes a boleto que são recebidos via correio expedidos pelo “<a href="http://www.registro.br/" target="_blank">registro.br</a>” para manutenção de domínios. Fique atento normalmente esses não vem com nome de registro.br o último que recebi veio como registrar.br, no valor de R$ 135,00. Este golpe já é velho, e mesmo sendo antigo, muitas pessoas ainda caem nele quitam os títulos. Hoje recebi um e-mail do registro.br.</p>
<blockquote>
<p style="text-align: justify;">Prezado(a) Usuário(a),</p>
<p>Em razão de continuadas tentativas de iludir a  boa-fé dos usuários do<br />
Registro brasileiro, vimos alertar para que prestem  atenção aos<br />
boletos recebidos que não sejam provenientes de seu provedor  habitual<br />
de serviços DNS ou do próprio Registro brasileiro, sediado no  NIC.br.</p>
<p>Ressaltamos que nosso boleto bancário para pagamento de registro  e/ou<br />
manutenção de domínio tem o valor baseado em períodos anuais.  [1]</p>
<p>Os boletos emitidos pelo NIC .br possuem os seguintes  dados:</p>
<p>Cedente: NIC.br &#8211; CNPJ: 05.506.560/0001-36<br />
Banco: Santander  Banespa no. 033-7<br />
Agência: 0105<br />
Conta: 1303201-4</p>
<p>O NIC .br está  totalmente empenhado para que estas atividades sejam<br />
interrompidas. Todas as  medidas legais possíveis de serem utilizadas<br />
até o momento estão sendo  adotadas contra a(s) entidade(s) que vem<br />
efetuando estes abusos.</p>
<p>Caso  necessitem de mais informações, a nossa equipe de atendimento<br />
está a sua  disposição. [2]</p>
<p>Agradecemos a atenção,</p>
<p>Registro.br<br />
<a href="http://registro.br/">http://registro.br/</a></p>
<p>[1] <a href="http://registro.br/info/valor.html">http://registro.br/info/valor.html</a><br />
[2]  <a href="http://registro.br/contate.html">http://registro.br/contate.html</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/513/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Que vença o melhor!!</title>
		<link>http://www.remontti.com.br/blog/archives/510</link>
		<comments>http://www.remontti.com.br/blog/archives/510#comments</comments>
		<pubDate>Wed, 04 Nov 2009 21:38:45 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=510</guid>
		<description><![CDATA[Dando uma passadinha pelo youtube encontrei um vídeo com um comparativo do boot entre, vista 7, ubuntu 9.04 e ubuntu 9.10. [youtube]http://www.youtube.com/watch?v=88aal60AqBs[/youtube]]]></description>
			<content:encoded><![CDATA[<p>Dando uma passadinha pelo youtube encontrei um vídeo com um comparativo do boot entre, vista 7, ubuntu 9.04 e ubuntu 9.10.</p>
<p style="text-align: center;">[youtube]http://www.youtube.com/watch?v=88aal60AqBs[/youtube]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/510/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitorando status de serviços em seu servidor</title>
		<link>http://www.remontti.com.br/blog/archives/501</link>
		<comments>http://www.remontti.com.br/blog/archives/501#comments</comments>
		<pubDate>Fri, 30 Oct 2009 17:55:23 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tutoriais]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=501</guid>
		<description><![CDATA[Ai vai uma dica para quem quiser monitorar os serviços de seu servidor, ou então ate mesmo para saber se o servidor esta on ou off, use a criatividade, não investi neste script em layout, nem mesmo coloquei ele em uma tabela. A criatividade é por sua conta. Particularmente eu uso estre script em um [...]]]></description>
			<content:encoded><![CDATA[<p>Ai vai uma dica para quem quiser monitorar os serviços de seu servidor, ou então ate mesmo para saber se o servidor esta on ou off, use a criatividade, não investi neste script em layout, nem mesmo coloquei ele em uma tabela. A criatividade é por sua conta. Particularmente eu uso estre script em um sistema, interno da empresa, que se por ventura um dos servidores parar envio um sms para meu celular, bom como já mencionei&#8230; “use da sua criatividade”.</p>
<p>Primeiramente vamos criar nosso banco de dados para ficar algo mais interessante, e inserir alguns valores, depois vc pode criar um painel para administrar essas informação, ou usar o phpmyadmin para ejetar valores. <img src='http://www.remontti.com.br/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #990099; font-weight: bold;">IF <span style="color: #CC0099; font-weight: bold;">NOT</span> EXISTS</span> StatusPortas <span style="color: #FF00FF;">&#40;</span>
id <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span><span style="color: #000033;">,</span>
servico <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">255</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
ip <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">25</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
porta <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">7</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
<span style="color: #990099; font-weight: bold;">PRIMARY KEY</span>  <span style="color: #FF00FF;">&#40;</span>id<span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> StatusPortas <span style="color: #FF00FF;">&#40;</span>servico<span style="color: #000033;">,</span> ip<span style="color: #000033;">,</span> porta<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'Apache'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'remontti.com.br'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'80'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'FTP'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'remontti.com.br'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'21'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
<span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'Apache'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'remontti.com.br'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'80'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></div></div>

<p><span id="more-501"></span></p>
<p>Agora crie um arquivo com o seguite:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>html<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">head</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>META HTTP-EQUIV=<span style="color: #ff0000;">&quot;Refresh&quot;</span> <span style="color: #007800;">CONTENT</span>=<span style="color: #ff0000;">&quot;600&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;!</span>-- <span style="color: #000000;">600</span>=5min --<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span><span style="color: #c20cb9; font-weight: bold;">head</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>center<span style="color: #000000; font-weight: bold;">&gt;&lt;</span>h3<span style="color: #000000; font-weight: bold;">&gt;</span>Painel de Monitoramento<span style="color: #000000; font-weight: bold;">&lt;/</span>h3<span style="color: #000000; font-weight: bold;">&gt;&lt;/</span>center<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>?php
<span style="color: #007800;">$hostname_config</span> = <span style="color: #ff0000;">&quot;localhost&quot;</span>;
<span style="color: #007800;">$database_config</span> = <span style="color: #ff0000;">&quot;NOME-BANCO&quot;</span>;
<span style="color: #007800;">$username_config</span> = <span style="color: #ff0000;">&quot;USUER&quot;</span>;
<span style="color: #007800;">$password_config</span> = <span style="color: #ff0000;">&quot;SENHA&quot;</span>;
&nbsp;
<span style="color: #007800;">$config</span> = mysql_pconnect<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$hostname_config</span>, <span style="color: #007800;">$username_config</span>, <span style="color: #007800;">$password_config</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> or trigger_error<span style="color: #7a0874; font-weight: bold;">&#40;</span>mysql_error<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,E_USER_ERROR<span style="color: #7a0874; font-weight: bold;">&#41;</span>; 
&nbsp;
<span style="color: #007800;">$bd</span> = mysql_select_db<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$database_config</span>&quot;</span>, <span style="color: #007800;">$config</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
<span style="color: #007800;">$consulta</span> = mysql_query<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;SELECT * FROM StatusPortas ORDER by ip ASC&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">while</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$v</span> = mysql_fetch_array<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$consulta</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #007800;">$id</span> = <span style="color: #007800;">$v</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;id&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>;
<span style="color: #007800;">$servico</span> = <span style="color: #007800;">$v</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;servico&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>;
<span style="color: #007800;">$ip</span> = <span style="color: #007800;">$v</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;ip&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>;
<span style="color: #007800;">$porta</span> = <span style="color: #007800;">$v</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;porta&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>;
&nbsp;
<span style="color: #007800;">$stream</span> = <span style="color: #000000; font-weight: bold;">@</span>fsockopen <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$ip</span>, <span style="color: #007800;">$porta</span>, <span style="color: #007800;">$errono</span>, <span style="color: #007800;">$errostr</span>, <span style="color: #000000;">30</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$servico</span> -&gt; <span style="color: #007800;">$ip</span> -&gt; <span style="color: #007800;">$porta</span>&quot;</span>;
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$stream</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&lt;b&gt;&lt;font color=green&gt;Online&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&quot;</span>;
	<span style="color: #7a0874; font-weight: bold;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #7a0874; font-weight: bold;">&#123;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&lt;font color=red&gt;&quot;</span> . <span style="color: #007800;">$errostr</span> . <span style="color: #ff0000;">&quot;&lt;/font&gt;&lt;br /&gt;&quot;</span>;
	<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>table<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>body<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>html<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Envie ele para seu servidor&#8230; e uáláá&#8230;</p>
<p>Abraço a todos&#8230; não postei mais pois ultimamente estou na correria&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/501/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10</title>
		<link>http://www.remontti.com.br/blog/archives/497</link>
		<comments>http://www.remontti.com.br/blog/archives/497#comments</comments>
		<pubDate>Thu, 29 Oct 2009 01:47:59 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[distro]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=497</guid>
		<description><![CDATA[Ubuntu está disponível gratuitamente e pode enviar-lhe um CD da versão mais recente (9.10 (Karmic Koala)) sem nenhum custo extra, mas a entrega pode demorar até dez semanas, assim que você deve considerar baixar a imagem do CD se tiver uma ligação rápida à Internet. Eu ja pedi o meu!!! https://shipit.ubuntu.com/]]></description>
			<content:encoded><![CDATA[<div id="result_box" style="text-align: justify;" dir="ltr">Ubuntu está disponível gratuitamente e pode enviar-lhe um CD da versão mais recente (9.10 (Karmic Koala)) sem nenhum custo extra, mas a entrega pode demorar até dez semanas, assim que você deve considerar baixar a imagem do CD se tiver uma ligação rápida à Internet.</div>
<p>Eu ja pedi o meu!!!</p>
<p><a href="https://shipit.ubuntu.com/" target="_blank">https://shipit.ubuntu.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/497/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dicas para Squid</title>
		<link>http://www.remontti.com.br/blog/archives/486</link>
		<comments>http://www.remontti.com.br/blog/archives/486#comments</comments>
		<pubDate>Mon, 31 Aug 2009 16:15:33 +0000</pubDate>
		<dc:creator>Rudimar Remontti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[regras]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[squid.conf]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=486</guid>
		<description><![CDATA[Alguns amigos me pedem seguido algumas regras para squid, então vou deixar aqui as mais comuns&#8230; Primeiramente vamos criar uma pasta chamada &#8220;conf&#8221; dentro do nosso squid. # Ips Liberando acl IP_LIBERADO src &#8220;/etc/squid/conf/ips_liberado.cf&#8221; http_access allow IP_LIBERADO Crie o arquivo /etc/squid/conf/ips_liberado.cf e nele adicione os ips (um a baixo do outro) que não passaram por [...]]]></description>
			<content:encoded><![CDATA[<p>Alguns amigos me pedem seguido algumas regras para squid, então vou deixar aqui as mais comuns&#8230;</p>
<p>Primeiramente vamos criar uma pasta chamada &#8220;conf&#8221; dentro do nosso squid.</p>
<p><span style="color: #3366ff;"># Ips Liberando<br />
acl IP_LIBERADO src &#8220;/etc/squid/conf/ips_liberado.cf&#8221;<br />
http_access allow IP_LIBERADO</span></p>
<p>Crie o arquivo <strong>/etc/squid/conf/ips_liberado.cf</strong> e nele adicione os ips (um a baixo do outro) que não passaram por nenhuma regra, lembre de colocar essa regra antes de qlqr outra.<br />
Da mesma forma vc ira criar os arquivos nas próximas regras&#8230;<span id="more-486"></span></p>
<p><span style="color: #3366ff;"># IPs bloqueados<br />
acl IP_BLOQUEADO src &#8220;/etc/squid/conf/ips_bloqueados.cf&#8221;<br />
http_access deny IP_BLOQUEADO</span></p>
<p><span style="color: #3366ff;"># Bloqueando determinadas paginas para determinados ips</span><br />
<span style="color: #3366ff;">acl BL_SITE dstdom_regex &#8220;/etc/squid/conf/paginas_bloqueadas_ip.cf&#8221;<br />
acl BL_IP src &#8220;/etc/squid/conf/ips_paginas_bloqueadas.cf&#8221;<br />
http_access deny BL_SITE BL_IP<br />
deny_info http://ip-da-sua-rede/alerta.html BL_SITE BL_IP</span><br />
# Nesta última linha criamos uma pagina para o erro! Assim vc pode personalizar o erro.</p>
<p><span style="color: #3366ff;"># Vamos bloquear os downloads maior que 50 MB, e criar um arquivo com os ips que podem baixar sem restrições.<br />
acl SEM_CONTROLE src &#8220;/etc/squid/conf/ips_download_liberado.cf&#8221;<br />
reply_body_max_size 100 MB  all !SEM_CONTROLE</span></p>
<p># Agendando para liberar  determinados sites em determinado horário<br />
<span style="color: #3366ff;"># AGENDADO PARA 12:00 &#8211; 13:30<br />
acl AGENDA_12  url_regex -i &#8220;/etc/squid/conf/paginas_liberada_horario.cf&#8221;<br />
acl TIME_12  time MTWHFS 12:00-13:30<br />
http_access allow AGENDA_12  TIME_12</span></p>
<p><span style="color: #3366ff;"># Sites Bloqueados<br />
acl SITES_BLOQUEADOS dstdom_regex &#8220;/etc/squid/conf/sites_bloqueados.cf&#8221;<br />
http_access deny SITES_BLOQUEADOS<br />
deny_info http://rede.local/alerta SITES_BLOQUEADOS</span></p>
<p><span style="color: #3366ff;"># Bloqueio de extensão<br />
acl DOWNLOAD url_regex &#8220;/etc/squid/conf/ext_download.cf&#8221;<br />
http_access deny DOWNLOAD<br />
deny_info http://rede.local/alerta DOWNLOAD</span></p>
<p>No arquivo /etc/squid/conf/ext_download.cf adicione desta forma: ($.bat) cada extensão a baixo da outra.</p>
<p><span style="color: #3366ff;"># Palavras Bloqueadas<br />
acl PALAVRAS_BLOQUEADAS url_regex -i &#8220;/etc/squid/conf/bloqueio_palavras.cf&#8221;<br />
http_access deny PALAVRAS_BLOQUEADAS<br />
deny_info http://rede.local/alerta PALAVRAS_BLOQUEADAS</span></p>
<p><span style="color: #3366ff;"># Palavras liberadas<br />
acl PALAVRAS_LIBERADAS url_regex -i &#8220;/etc/squid/conf/libera_palavras.cf&#8221;<br />
http_access allow PALAVRAS_LIBERADAS</span></p>
<p>Isso ai, curto e grosso =P<br />
Desculpa nao postar mais, mas o problema é tempo mesmo!</p>
<p>Abraço</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/486/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alterar Permissões via Prompt</title>
		<link>http://www.remontti.com.br/blog/archives/471</link>
		<comments>http://www.remontti.com.br/blog/archives/471#comments</comments>
		<pubDate>Thu, 23 Jul 2009 01:22:50 +0000</pubDate>
		<dc:creator>Neimar Lazaretti</dc:creator>
				<category><![CDATA[Dicas]]></category>
		<category><![CDATA[MS-DOS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cacls]]></category>
		<category><![CDATA[Permissões]]></category>

		<guid isPermaLink="false">http://www.remontti.com.br/blog/?p=471</guid>
		<description><![CDATA[Buenas Buenas, primeiro post, vou postar hoje sobre as alterações  de permissão em arquivos do WINDOWS via prompt de comando, em uma visão básica, nada muito complexo. Vamos usar o comando  &#8220;cacls&#8221; para efetuar esse processo. O que é CACLS:  CACLS é um utilitário de linha de comando do Windows NT que é usado para [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Buenas Buenas, primeiro post, vou postar hoje sobre as alterações  de permissão em arquivos do WINDOWS via prompt de comando, em uma visão básica, nada muito complexo.</p>
<p style="text-align: justify;">Vamos usar o comando  &#8220;<strong>cacls</strong>&#8221; para efetuar esse processo.</p>
<p style="text-align: justify;">O que é CACLS:  CACLS é um utilitário de linha de comando do Windows NT que é usado para exibir ou modificar o arquivo ou listas de controle de acesso de diretório (ACLs). Pode ser usado para modificar as ACLs nos arquivos ou diretórios, com isso podemos  adicionar ou excluir um usuário ou grupo permissão sem modificar outras permissões existentes na interface gráfica (GUI) no Gerenciador de arquivos ou no Windows NT Explorer é feita apenas a substituição de ACLs.<span id="more-471"></span></p>
<p style="text-align: justify;">Vamos a prática!!!</p>
<p style="text-align: justify;">Abra uma prompt de comando (Iniciar &gt; Executar &gt; Digite cmd e Pressione ENTER)&#8230;</p>
<p style="text-align: justify;"><strong>Para Exibir</strong> as Permissões dos Arquivos utilize o comando:</p>
<p style="text-align: justify;">cacls &#8220;nomedoarquivo&#8221; (ou pasta)</p>
<p style="text-align: justify;">Será exibido as permissões dadas a esse arquivo. Sendo:</p>
<p style="text-align: justify;">R  Ler<br />
W  Gravar<br />
C  Alterar (gravar)<br />
F  Controle total</p>
<p style="text-align: justify;">e os parametros.</p>
<p style="text-align: justify;">/E &#8211; Edita as permissões</p>
<p style="text-align: justify;">/G &#8211; Concede direitos ao usuário especificado utiliza-se cacls &#8220;nomearquivo&#8221; /E /G usuario:Permissão(R,W,C,F)</p>
<p style="text-align: justify;">/P &#8211; Substitui os  direitos ao usuário especificado utiliza-se cacls &#8220;nomearquivo&#8221; /E /P usuario:Permissão(R,W,C,F)</p>
<p style="text-align: justify;">/R &#8211; Revoga os direitos do usuário especificado utiliza-se calcs &#8220;nomearquivo&#8221; /E /R usuario</p>
<p style="text-align: justify;">/D &#8211; Nega Acesso ao usuário especificado utiliza-se calcs &#8220;nomearquivo&#8221; /E /D usuario</p>
<p style="text-align: justify;"><strong>Para Editar</strong> permissões :</p>
<p style="text-align: justify;">cacls &#8220;nomedoarquivo&#8221;(ou pasta) /E /<em>P (ou G)</em> &#8220;nomedousuario:Permissão a ser concedida</p>
<p style="text-align: justify;">ex: cacls pci.txt /E /P User:F  &#8211; Nesse caso foi concedida permissão total(F) ao usuario &#8220;User&#8221; para o Arquivo &#8220;pci.txt&#8221;</p>
<p style="text-align: justify;"><strong>Para Remover</strong> permissões</p>
<p style="text-align: justify;">cacls  &#8220;nomedoarquivo&#8221; /E /D usuario</p>
<p style="text-align: justify;">ou</p>
<p style="text-align: justify;">cacls  &#8220;nomedoarquivo&#8221; /E /R usuario</p>
<p style="text-align: justify;">O retorno da execução correta do comando é : arquivo processado:&#8221;Unidade\Nomearquivo&#8221;</p>
<p style="text-align: justify;">Mais Informações digita CACLS na prompt ou:</p>
<p style="text-align: justify;">http://support.microsoft.com/kb/162786/pt-br</p>
<p style="text-align: justify;">CACLS + BATs</p>
<p style="text-align: justify;">http://support.microsoft.com/kb/135268</p>
<p style="text-align: justify;">em Ingles</p>
<p style="text-align: justify;">http://www.netadmintools.com/art18.html</p>
<p style="text-align: justify;">Era isso por hoje, abs!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.remontti.com.br/blog/archives/471/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
