<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6827771136352509991</id><updated>2015-05-11T09:28:22.844-07:00</updated><category term="CentOS"/><category term="linux"/><category term="XenServer"/><category term="Citrix"/><category term="Hotfixes"/><category term="VM"/><category term="Virtualização"/><category term="XenCenter"/><category term="hypervisor"/><category term="login"/><category term="root"/><category term="ssh"/><category term="Desativar root"/><category term="OpenSSH"/><category term="Start in Recovery Mode"/><category term="acesso remoto"/><category term="boot"/><category term="cd"/><category term="comandos"/><category term="configurar rede"/><category term="dicas"/><category term="diretorios"/><category term="gateway"/><category term="hostname"/><category term="ip"/><category term="listar arquivos"/><category term="mascara"/><category term="ntp"/><category term="ntp client"/><category term="ntp.br"/><category term="porta 22"/><category term="quebrar"/><category term="recuperar"/><category term="rede"/><category term="segurança"/><category term="selinux"/><category term="senha"/><category term="setenforce"/><category term="sincronizar hora"/><category term="tamanhos"/><category term="xenserver tools"/><title type='text'>NotasTI</title><subtitle type='html'>Anotações de TI em geral</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-2134213591849868771</id><published>2015-01-22T04:00:00.003-08:00</published><updated>2015-01-22T04:00:57.281-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="login"/><category scheme="http://www.blogger.com/atom/ns#" term="quebrar"/><category scheme="http://www.blogger.com/atom/ns#" term="recuperar"/><category scheme="http://www.blogger.com/atom/ns#" term="root"/><category scheme="http://www.blogger.com/atom/ns#" term="senha"/><category scheme="http://www.blogger.com/atom/ns#" term="VM"/><category scheme="http://www.blogger.com/atom/ns#" term="XenServer"/><title type='text'>Xenserver 6.x - Recuperar senha de root de VM Centos no Xenserver</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;1&lt;/b&gt;- Abra o XenCenter&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;2&lt;/b&gt; - &lt;b&gt;Desligue a VM&lt;/b&gt; que deseja recuperar a senha (shutdown ou force shutdown)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;3&lt;/b&gt; - Cliqu&lt;span style=&quot;background-color: white;&quot;&gt;e com o botão da direita na VM e &lt;b&gt;clique em Properties&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;4&lt;/b&gt; - Clique em &lt;b&gt;Boot Options&lt;/b&gt; e altere o&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;OS Boot Parameters:&lt;/span&gt; &lt;span style=&quot;color: #666666;&quot;&gt;grafical utf8&lt;/span&gt; &lt;/b&gt;para&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;strong style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; color: #c7254e; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;rw init=/bin/bash&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; color: #c7254e; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Obs: Antes de alterar o&amp;nbsp;parâmetro copie o&amp;nbsp;parâmetro&amp;nbsp;atual para que após a troca da senha você possa voltar com estava.&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Clique em &lt;b&gt;OK&lt;/b&gt; e de um &lt;b&gt;Start&lt;/b&gt; na VM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;5&lt;/b&gt;- A VM irá iniciar em Single User Mode, para alterar a senha devemos permitir a leitura e gravação na partição /&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; color: #c7254e; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;#mount -o remount,rw /&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;6&lt;/b&gt;- alterare a senha&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; color: #c7254e; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#&lt;b&gt;passwd root&lt;/b&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;7-&lt;/b&gt; Em seguida desligue a VM&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; line-height: 20px; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; color: #c7254e; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;#shutdown -h now&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;8- &lt;/b&gt;Volte na opções de boot do passo 3 e 4 remova as configurações&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-size: x-small; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: 0px; box-sizing: border-box; font-stretch: normal; line-height: normal; margin: 0px; outline: 0px; padding: 2px 4px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;rw init=/bin/bash&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;e volte o&amp;nbsp;parâmetro&amp;nbsp;anterior&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; line-height: 20px;&quot;&gt;grafical utf8&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; box-sizing: border-box; margin-bottom: 10px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; line-height: 20px;&quot;&gt;9- &lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; line-height: 20px;&quot;&gt;&lt;b&gt;Start&lt;/b&gt; a VM novamente e pronto, acesse com a nova senha.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/2134213591849868771/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2015/01/xenserver-6x-recuperar-senha-de-root-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/2134213591849868771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/2134213591849868771'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2015/01/xenserver-6x-recuperar-senha-de-root-de.html' title='Xenserver 6.x - Recuperar senha de root de VM Centos no Xenserver'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-6291372667608293630</id><published>2015-01-19T12:42:00.001-08:00</published><updated>2015-01-19T12:43:37.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="selinux"/><category scheme="http://www.blogger.com/atom/ns#" term="setenforce"/><title type='text'>CentOS 6.x - Ativar ou desativar SELinux</title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;O SELinux pode estar em&amp;nbsp;três&amp;nbsp;status&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;possíveis&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;- Enforcing: Ativo e operante&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;- Permissive: Ativo e inoperante, sem bloqueios apenas logs com se estivesse operante&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;- Disabled: &amp;nbsp;Desativado&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;b style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;1-&lt;/b&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; font-weight: normal; line-height: 18.2000007629395px;&quot;&gt;Para verificar o status do SELinux use o comando&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;b style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;b style=&quot;background-color: transparent; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;#sestatus&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;ou&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;#getenforce&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b&gt;2-&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #666666; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Para alterar o status do SELinux sem reiniciar o sistema use os comandos abaixo&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;div style=&quot;border: 0px none; line-height: 18px; margin-top: 10px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#setenforce 1&lt;span style=&quot;color: #2c2b2b; font-weight: normal;&quot;&gt;&amp;nbsp;para Enforcing&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px none; line-height: 18px; margin-top: 10px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#setenforce 0&lt;span style=&quot;color: #2c2b2b; font-weight: normal;&quot;&gt;&amp;nbsp;para Permissive&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h3&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #444444; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;b style=&quot;background-color: transparent; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; line-height: 18.2000007629395px;&quot;&gt;*Atenção dessa forma o configuração no será persistente, ao reiniciar o sistema carregará a configuração como está no arquivo /etc/selinux/config.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;*Caso o status seja &lt;/span&gt;&lt;b style=&quot;line-height: 18.2000007629395px;&quot;&gt;disabled&lt;/b&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt; será&amp;nbsp;necessário&amp;nbsp;reiniciar o sistema para altera-lo.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; font-stretch: normal; margin: 0px; position: relative;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b&gt;3-&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;Para alterar o status do SELinux&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; line-height: 18.2000007629395px;&quot;&gt;de forma persistente&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;o altere a linha&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;SELINUX=enforcing&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;do arquivo&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;/etc/selinux/config&lt;span style=&quot;color: #444444; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt; para:&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; font-stretch: normal; margin: 0px; position: relative; text-align: start;&quot;&gt;&lt;b style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;SELINUX=disabled&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px; text-align: justify;&quot;&gt;as opções são enforcing, permissive ou disabled.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/6291372667608293630/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2015/01/centos-6x-ativar-ou-desativar-selinux.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6291372667608293630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6291372667608293630'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2015/01/centos-6x-ativar-ou-desativar-selinux.html' title='CentOS 6.x - Ativar ou desativar SELinux'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-5183650282868533897</id><published>2014-12-31T05:06:00.001-08:00</published><updated>2015-01-19T12:47:27.339-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ntp"/><category scheme="http://www.blogger.com/atom/ns#" term="ntp client"/><category scheme="http://www.blogger.com/atom/ns#" term="ntp.br"/><category scheme="http://www.blogger.com/atom/ns#" term="sincronizar hora"/><title type='text'>CentOS 6.x - Configurar Cliente NTP</title><content type='html'>&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;Configurar cliente NTP no CentOS&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; color: #666666; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;1-&lt;/b&gt;&amp;nbsp;Primeiro iremos instalar os pacotes ntp&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;yum install ntp&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b style=&quot;color: #444444; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Listar comandos ntp disponiveis, apenas para conhecimento&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#ntp [tab tab]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;2 -&lt;/b&gt;&amp;nbsp;Iniciar serviço ntp&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;strong style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# service ntpd start&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 11px; line-height: normal; text-align: justify;&quot;&gt;Ou:&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;# /etc/rc.d/init.d/ntpd start&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;3-&lt;/b&gt;&amp;nbsp;Após iniciar o serviço visualize o log&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;# tail /var/log/messages&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: Listen normally on 2 lo 127.0.0.1 UDP 123&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: Listen normally on 3 eth0 10.0.0.19 UDP 123&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: Listen normally on 4 lo ::1 UDP 123&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: Listen normally on 5 eth0 fe80::c8db:cbff:fe62:5b61 UDP 123&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: peers refreshed&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:46:58 CentOS ntpd[10338]: Listening on routing socket on fd #22 for interface updates&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:47:04 CentOS ntpd[10338]: 0.0.0.0 c016 06 restart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:47:04 CentOS ntpd[10338]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:47:04 CentOS ntpd[10338]: 0.0.0.0 c011 01 freq_not_set&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Dec 31 09:47:11 CentOS ntpd[10338]: 0.0.0.0 c614 04 freq_mode&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: small; font-weight: bold; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b style=&quot;color: #666666; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;4-&lt;/b&gt;&lt;span style=&quot;color: #666666; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&amp;nbsp;Configurar para que o ntp inicie no boot&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; line-height: normal; text-align: justify;&quot;&gt;&lt;b&gt;# chkconfig --level 35 ntpd on&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; line-height: normal; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;5 -&lt;/b&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&amp;nbsp;Definir a lista de servidores NTP que serão utilizados para&amp;nbsp;sincronizar&amp;nbsp;a hora,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;5.1 Abra o arquivo de configuração do serviço ntp.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;strong style=&quot;text-align: justify;&quot;&gt;#&amp;nbsp;&lt;/strong&gt;&lt;b&gt;&amp;nbsp;vi /etc/ntp.conf&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Modifique as linhas iniciadas com server e adicione os servidores de sua preferencia, aqui ja vai a&amp;nbsp;sugestão&amp;nbsp;dos servidores do projeto ntp.br, o&amp;nbsp;parâmetro&amp;nbsp;iburst&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #4a4a4a;&quot;&gt;serve para acelerar a sincronização inicial&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;span class=&quot;vermelho&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;# servidores publicos do projeto ntp.br&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;server a.st1.ntp.br iburst&lt;br /&gt;server b.st1.ntp.br iburst&lt;br /&gt;server c.st1.ntp.br iburst&lt;br /&gt;server d.st1.ntp.br iburst&lt;br /&gt;server gps.ntp.br iburst&lt;br /&gt;server a.ntp.br iburst&lt;br /&gt;server b.ntp.br iburst&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;server c.ntp.br iburst&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;padding: 0px;&quot;&gt;&lt;div style=&quot;line-height: 18.2000007629395px; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;6-&lt;/b&gt;&amp;nbsp;Verificar se NTP está configurado e funcionando.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;line-height: 18.2000007629395px; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; line-height: normal; text-align: justify;&quot;&gt;&lt;b&gt;#ntpq -c peers&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Se a resposta for semelhante a esta o serviço não esta funcionando&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;CentOS&lt;/span&gt;:# timed out, nothing received&lt;br /&gt; ***Request timed out&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Mas se a resposta for &amp;nbsp;semelhanto a esta o serviço NTP esta ok&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;remote &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; refid &amp;nbsp; &amp;nbsp; &amp;nbsp;st t when poll reach &amp;nbsp; delay &amp;nbsp; offset &amp;nbsp;jitter&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;=====================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;*a.st1.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; .ONBR. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 u &amp;nbsp; 51 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 13.943 &amp;nbsp; -4.243 &amp;nbsp; 1.295&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;+201.49.148.135 &amp;nbsp;.ONBR. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 u &amp;nbsp; 50 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 20.849 &amp;nbsp; -3.545 &amp;nbsp; 1.858&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;-c.st1.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.ONBR. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 u &amp;nbsp; 48 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 20.655 &amp;nbsp; -3.867 &amp;nbsp; 1.353&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;+d.st1.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; .ONBR. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 u &amp;nbsp; 47 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 23.787 &amp;nbsp; -4.315 &amp;nbsp; 1.546&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp;gps.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;146.164.48.5 &amp;nbsp; &amp;nbsp; &amp;nbsp;2 u &amp;nbsp; 48 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 15.295 &amp;nbsp; -4.874 &amp;nbsp; 3.302&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp;a.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200.160.7.186 &amp;nbsp; &amp;nbsp;2 u &amp;nbsp; 47 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 15.118 &amp;nbsp; -4.516 &amp;nbsp; 1.664&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp;b.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200.20.186.76 &amp;nbsp; &amp;nbsp;2 u &amp;nbsp; 43 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 21.597 &amp;nbsp; -5.278 &amp;nbsp; 1.379&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&amp;nbsp;c.ntp.br &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200.160.7.186 &amp;nbsp; &amp;nbsp;2 u &amp;nbsp; 40 &amp;nbsp; 64 &amp;nbsp; 17 &amp;nbsp; 41.269 &amp;nbsp; -4.095 &amp;nbsp; 0.824&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: normal;&quot;&gt;&lt;b style=&quot;color: #444444; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Para mais detalhes sobre este serviço, existe um ótimo tutorial em:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;&lt;a href=&quot;http://www.vivaolinux.com.br/artigo/Configuracao-do-servico-NTP-em-servidor-cliente?pagina=1&quot;&gt;http://www.vivaolinux.com.br/artigo/Configuracao-do-servico-NTP-em-servidor-cliente?pagina=1&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/5183650282868533897/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-66-configurar-cliente-ntp.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/5183650282868533897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/5183650282868533897'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-66-configurar-cliente-ntp.html' title='CentOS 6.x - Configurar Cliente NTP'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-3572586437672330387</id><published>2014-12-29T11:40:00.001-08:00</published><updated>2015-01-19T12:47:36.478-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Desativar root"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="login"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSSH"/><category scheme="http://www.blogger.com/atom/ns#" term="root"/><category scheme="http://www.blogger.com/atom/ns#" term="segurança"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>CentOS 6.x - Desativar login SSH como root</title><content type='html'>&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;Não permitir que o&amp;nbsp;usuário&amp;nbsp;root faça login via SSH diretamente é muto simples.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;Se o procedimento estiver sendo realizado de forma remota via SSH utilizando o usuário root, cuidado para não perder acesso ao sistema, antes certifique-se de que você tenha login e senha de&amp;nbsp;usuário&amp;nbsp;comum cadastrado no sistema.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; line-height: 18.2000007629395px;&quot;&gt;As configurações do serviço SSH ficam no arquivo&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;/etc/ssh/sshd_config&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;1-&lt;/b&gt; Primeiro devemos localizar e parâmetro &lt;/span&gt;&lt;b style=&quot;color: #666666;&quot;&gt;&quot;&lt;/b&gt;&lt;b&gt;#PermitRootLogin yes&lt;/b&gt;&lt;b style=&quot;color: #666666;&quot;&gt;&quot;&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp;dentro do arquivo.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;2-&lt;/b&gt; Depois é só &lt;b&gt;remover o simbolo de comentário &quot;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;#&lt;/b&gt;&lt;span style=&quot;color: #666666; font-weight: bold;&quot;&gt;&quot; e substituir &quot;&lt;/span&gt;&lt;b&gt;yes&quot;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-weight: bold;&quot;&gt; por &quot;&lt;/span&gt;&lt;b&gt;no&quot;&lt;/b&gt;&lt;span style=&quot;color: #666666; font-weight: bold;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;vai ficar assim&lt;/span&gt; &lt;b&gt;&quot;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; line-height: 18.2000007629395px;&quot;&gt;PermitRootLogin no&quot;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b style=&quot;color: #444444; font-family: Verdana, sans-serif; line-height: 18.2000007629395px;&quot;&gt;3- Salve e feche o arquivo.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;4 &lt;/b&gt;- Reinicie o ssh com o comando:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;#service sshd restart&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #444444; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;Pronto, agora se quiser acessar o&amp;nbsp;servidor&amp;nbsp;via SSH deve utilizar um&amp;nbsp;usuário&amp;nbsp;comum&amp;nbsp;do sistema e for necessário utilizar o&amp;nbsp;usuário&amp;nbsp;root utilize o comando su - para se tornar root.&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/3572586437672330387/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-desativar-login-como-usuario.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/3572586437672330387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/3572586437672330387'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-desativar-login-como-usuario.html' title='CentOS 6.x - Desativar login SSH como root'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-1354088374977276537</id><published>2014-12-29T09:18:00.001-08:00</published><updated>2015-01-19T12:47:45.833-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="acesso remoto"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="porta 22"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>CentOS 6.x - Como alterar a porta do serviço SSH</title><content type='html'>&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; line-height: 18.2000007629395px;&quot;&gt;As configurações do serviço SSH ficam no arquivo &lt;/span&gt;/etc/ssh/sshd_config&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;para alterar a porta devemos localizar e alterar o&amp;nbsp;parâmetro&amp;nbsp;Port dentro deste arquivo.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;b style=&quot;background-color: white; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Atenção: O CentOS 6.5 por padrão vem com uma regra de firewall que libera o acesso na porta 22, se a porta do SSH for alterada a regra de firewall&amp;nbsp;também&amp;nbsp;deverá ser alterada e para a mesma porta.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;background-color: white; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;1 - Com o editor de texto de sua preferencia Abra o arquivo de configuração do serviço de SSH&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#&lt;/span&gt;vi&amp;nbsp;&amp;nbsp;/etc/ssh/sshd_config&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;2- Procure a linha: #Port 22&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Apague o &quot;#&quot;&lt;span style=&quot;color: #666666;&quot;&gt; da linha, e altere o numero da porta.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;3-&lt;/span&gt; Salve e feche o arquivo.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;4 - Reinicie o ssh com o comando:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;#service sshd restart&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;5- Agora vamos alterar a regra de firewall que libera a porta 22 do SSH para a nova porta &amp;nbsp;porta 2222, &lt;/span&gt;ATENÇÃO&lt;span style=&quot;color: #666666;&quot;&gt; AO REINICIAR O SERVIÇO IPTABLES OU O SERVIDOR, O IPTABLES RECARREGA AS REGRAS DE FIREWALL DO ARQUIVO&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;/etc/sysconfig/iptables&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;, portanto ao alterar as regras de firewall esse arquivo&amp;nbsp;também&amp;nbsp;deve ser atualizado com as novas regras, senão ao reiniciar o iptables ou o servidor as regras serão perdidas. &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.1 Por precaução&amp;nbsp;antes de alterar o firewall vamos salvar as configurações atuais de firewall em um arquivo.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&amp;nbsp;iptables-save &amp;gt;/iptables-regras-padrao.txt&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.2 Agora vamos listar&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;as regras numerando as linhas para encontrar a regra que libera o porta 22 ou ssh&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;iptables -L -n --line-numbers&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.3 Encontre o numero da regra desejada, neste caso a regra que libera a porta 22 é a regra numero 4&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;4 &amp;nbsp; &amp;nbsp;ACCEPT &amp;nbsp; &amp;nbsp; tcp &amp;nbsp;-- &amp;nbsp;0.0.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state NEW tcp dpt:22&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.4 Agora vamos substituir essas regra por uma regra igual mas com a porta 2222,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;5.4.4 Para facilitar a digitação da regra podemos listar as regras existentes na forma dos comandos que as criam, ai é só copiar e fazer as alterações&amp;nbsp;necessitarias.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#&lt;/span&gt;iptables -S&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;então teremos a lista de comando que criam as regras, e este é o que cria a regra 4.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Agora utilizado o comando &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;-R&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt; mais o numero da regra que queremos substituir e &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;parte do comando que cria a regra 4&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt; e o novo numero da porta ssh (&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;2222&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;) iremos substituir a regra&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;# &lt;/span&gt;iptables&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;-R&lt;/span&gt; INPUT&lt;span style=&quot;color: red;&quot;&gt; 4&lt;/span&gt; -p tcp -m state --state NEW -m tcp --dport &lt;span style=&quot;color: red;&quot;&gt;2222&lt;/span&gt; -j ACCEPT&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Agora faça a mesma alteração no arquivo&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;/etc/sysconfig/iptables&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;que será carregado na inicialização.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/1354088374977276537/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-como-alterar-porta-do-servico.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/1354088374977276537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/1354088374977276537'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-como-alterar-porta-do-servico.html' title='CentOS 6.x - Como alterar a porta do serviço SSH'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-6645511841639731610</id><published>2014-12-23T08:38:00.000-08:00</published><updated>2015-01-19T12:48:04.867-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="hostname"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>CentOS 6.x - Como alterar o Hostname</title><content type='html'>&lt;b&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Na inicialização o CentOS&amp;nbsp;lê&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;a informação de HOSTNAME do arquivo&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;/etc/sysconfig/network&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Então para alterar o Hostname é só abrir este arquivo e alterar o nome&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;que está depois do sinal de igual do HOSTNAME.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;E quando o sistema iniciar novamente ele carregará o novo HOSTNAME&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;# &lt;b&gt;vi /etc/sysconfig/network&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;NETWORKING=yes&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;HOSTNAME=&lt;b&gt;CENTOS_6.5&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;Para alterar o Hostname sem reiniciar o CentOS&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Digite a seguinte linha de comando&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/bin/hostname &lt;b&gt;CENTOS_6.5&lt;/b&gt; &amp;lt;---- CENTOS_6.5 é o novo hostname&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Não esqueça que ao reiniciar o CentOS ele carregará novamente informação de HOSTNAME do arquivo&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;/etc/sysconfig/network&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/6645511841639731610/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-como-alterar-o-hostname.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6645511841639731610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6645511841639731610'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/12/centos-65-como-alterar-o-hostname.html' title='CentOS 6.x - Como alterar o Hostname'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-6708689386099874058</id><published>2014-12-19T07:38:00.002-08:00</published><updated>2015-01-20T09:29:13.429-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Citrix"/><category scheme="http://www.blogger.com/atom/ns#" term="Hotfixes"/><category scheme="http://www.blogger.com/atom/ns#" term="hypervisor"/><category scheme="http://www.blogger.com/atom/ns#" term="XenCenter"/><category scheme="http://www.blogger.com/atom/ns#" term="XenServer"/><category scheme="http://www.blogger.com/atom/ns#" term="xenserver tools"/><title type='text'>XenServer 6.x - Instalar Xenserver Tools em VMs Linux</title><content type='html'>&lt;div class=&quot;section&quot;&gt;&lt;h2 class=&quot;title sectiontitle&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Installing XenServer Tools em VMs Linux&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; text-align: justify;&quot;&gt;Os arquivos de instalação do &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;XenServer Tools&quot; estão em uma imagem de disco chamada xs-tools.iso no&amp;nbsp;próprio&amp;nbsp;host xenserver.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;Para termos acesso a esses arquivos de instalação devemos associar esta imagem ISO ao drive de CD/DVD Virtual da VM.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Dentro da VM vamos montar o&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;drive de CD/DVD Virtual que agora contem&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;imagem em uma pasta qualquer dentro da VM.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;Neste caso iremos criar uma pasta dentro de /mnt chamada xs-tools que será usada para montar o drive virtual.&lt;/span&gt;&lt;br /&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; text-align: justify;&quot;&gt;1 - &lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;Primeiro a&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;ssociar esta imagem ISO ao drive de CD/DVD Virtual da VM&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: bold; text-align: justify;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;section&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot;&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Clique com o botão da direita na VM, clique em&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;span class=&quot;ph uicontrol&quot;&gt;Install XenServer  Tools&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-size: small;&quot;&gt;ou&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; clique na VM e vá até aba General e clique em Install  XenServer Tools.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Irá aparecer uma caixa de dialogo Clique em &lt;/span&gt;&lt;span class=&quot;ph uicontrol&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Install XenServer Tools&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; text-align: justify;&quot;&gt;3-&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Dentro da VM vamos montar o&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;drive de CD/DVD Virtual que agora contem&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;imagem ISO em uma pasta qualquer dentro da VM.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;section&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; text-align: justify;&quot;&gt;Acesse o&amp;nbsp;console&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt; da maquina virtual &lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; font-size: small; text-align: justify;&quot;&gt;como root&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; text-align: justify;&quot;&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Monte o drive virtual que contem a imagem iso em uma pasta&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;obs. O dispositivo ao qual a imagem iso foi associado é representado como /dev/xvdd&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;section&quot;&gt;&lt;ul&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;cd /mnt&lt;/b&gt; &amp;lt;-- entra na pasta /mnt&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;mkdir xs-tools&lt;/b&gt; &amp;lt;-- criar a pasta xs-tools dentro de /mnt&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;mount /dev/xvdd /mnt/xs-tools&lt;/b&gt; &amp;lt;-- monta o drive virtual na pasta /mnt/xs-tools&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;4- &lt;/b&gt;Execute o Script de intalação que está em /mnt/xs-toosl/Linux/Install.sh&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b style=&quot;font-size: small;&quot;&gt;/mnt/xs-tools/Linux/Install.sh&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;lt;-- executa o script&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;5-&lt;/b&gt; Reinicie a VM&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;reboot&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Note que os drives de CD-ROM e ISOs ligados as VMs Linux aparecem como&amp;nbsp;&lt;/span&gt;&lt;samp class=&quot;ph codeph&quot; style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/dev/xvdd&lt;/span&gt;&lt;/samp&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;ao invés de &lt;/span&gt;&lt;samp class=&quot;ph codeph&quot; style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/dev/cdrom&lt;/span&gt;&lt;/samp&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;. Isto porque estes não são dispositivos CD-ROM verdadeiros, mas dispositivos normais. Quando o dispositivo de CD é ejetado pelo XenCenter, este desliga &amp;nbsp;o dispositivo da maquina virtual. &amp;nbsp;Diferentemente do que acontece em maquinas virtuais &amp;nbsp;Windows onde o dispositivo permanece ligado porem vazio&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Verdana, sans-serif; font-size: x-small; line-height: 18.4799995422363px; white-space: nowrap;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/6708689386099874058/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/12/xenserver-62-instalar-xenserver-tools.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6708689386099874058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6708689386099874058'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/12/xenserver-62-instalar-xenserver-tools.html' title='XenServer 6.x - Instalar Xenserver Tools em VMs Linux'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-376510712128087693</id><published>2014-08-12T06:41:00.002-07:00</published><updated>2014-08-12T06:45:25.711-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="dicas"/><category scheme="http://www.blogger.com/atom/ns#" term="diretorios"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="listar arquivos"/><category scheme="http://www.blogger.com/atom/ns#" term="tamanhos"/><title type='text'>Linux - Comando para listar tamanhos de arquivos e diretórios</title><content type='html'>&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Retorna tamanho dos diretório e arquivos&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;du -hca --max-depth=1&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;orphans: auto; text-align: start; text-indent: 0px; widows: auto;&quot;&gt;&lt;div&gt;&lt;ul&gt;&lt;li style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;background-color: #f2f2f2; font-family: Verdana, sans-serif; line-height: 21px;&quot;&gt;du&lt;/b&gt;&lt;span style=&quot;background-color: #f2f2f2; font-family: Verdana, sans-serif; line-height: 21px;&quot;&gt; retorna o tamanho de todos os&amp;nbsp;diretórios&amp;nbsp;e&amp;nbsp;subdiretórios.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;background-color: #f2f2f2;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;h&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f2f2f2;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;utiliza&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;unidades de medidas mais&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;compreensível como Megabyte, Gigabyte.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;--max-depth=1&lt;/b&gt; l&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;imita ao nível 1 de&amp;nbsp;subdiretório, 2 para&amp;nbsp;nível&amp;nbsp;2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;e assim por diante.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;c&lt;/b&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt; Insere o total ao final da listagem.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;-webkit-text-stroke-width: 0px; color: #222222; font-family: Verdana, sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: nowrap; word-spacing: 0px;&quot;&gt;a&lt;/b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: #222222; font-family: Verdana, sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: nowrap; word-spacing: 0px;&quot;&gt; inclui os arquivos na listagem alem dos&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;diretórios.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;du -hs&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;background-color: #f2f2f2;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;-s&lt;/b&gt;&amp;nbsp;mostra somente o total&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;, s é abreviação de&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 21px; white-space: nowrap;&quot;&gt;Summary.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #f2f2f2; color: #515e6c; font-family: &#39;PT Sans&#39;, Arial; font-size: 13px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/376510712128087693/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/08/linux-comando-para-listar-tamanhos-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/376510712128087693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/376510712128087693'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/08/linux-comando-para-listar-tamanhos-de.html' title='Linux - Comando para listar tamanhos de arquivos e diretórios'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-6427559742114398555</id><published>2014-07-24T15:04:00.004-07:00</published><updated>2015-01-20T09:30:44.668-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boot"/><category scheme="http://www.blogger.com/atom/ns#" term="cd"/><category scheme="http://www.blogger.com/atom/ns#" term="Start in Recovery Mode"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualização"/><category scheme="http://www.blogger.com/atom/ns#" term="VM"/><category scheme="http://www.blogger.com/atom/ns#" term="XenCenter"/><category scheme="http://www.blogger.com/atom/ns#" term="XenServer"/><title type='text'>XenServer - Boot pelo CD/DVD em uma Maquina Virtual Linux</title><content type='html'>&lt;h3 style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Desligue a VM Linux,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal; white-space: nowrap;&quot;&gt;com esse mesma vm selecionada&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;no &lt;b&gt;XenCenter&lt;/b&gt; acesse o menu&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;VM --&amp;gt; Start/Shutdown --&amp;gt; Start in Recovery Mode&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;VM&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;e pronto&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;a VM irá iniciar pelo CD/DVD ou imagem&amp;nbsp;ISO&amp;nbsp;selecionada.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/6427559742114398555/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/07/xenserver-boot-pelo-cddvd-em-uma.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6427559742114398555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/6427559742114398555'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/07/xenserver-boot-pelo-cddvd-em-uma.html' title='XenServer - Boot pelo CD/DVD em uma Maquina Virtual Linux'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-503361518792194911</id><published>2014-07-22T21:54:00.000-07:00</published><updated>2015-01-19T12:48:15.516-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="configurar rede"/><category scheme="http://www.blogger.com/atom/ns#" term="gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="ip"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mascara"/><category scheme="http://www.blogger.com/atom/ns#" term="rede"/><title type='text'> CentOS 6.x - Como configurar rede </title><content type='html'>&lt;div style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Neste tutorial iremos fazer as configurações básicas de rede no CentOS,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;para termos acesso a rede local e&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;a internet,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;de forma&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;que as configurações&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;se mantenham após o reboot do sistema ou&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;restart do serviço de rede.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Considerações&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&amp;nbsp;iniciais&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;No CentOS há um arquivo de configurações gerais de rede referentes ao sistema, independente&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;das interfaces de rede chamado&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;network&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt; localizado em&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;/etc/sysconfig/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;E&amp;nbsp;também&amp;nbsp;há um arquivo de configuração para cada interface de rede,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;esses arquivos se encontram em&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;/etc/sysconfig/network-scripts/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;os nomes dos arquivos de configuração de interface iniciam por &lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;ifcfg&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot; referente a&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;i&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;nterface&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;f&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;ile &lt;/span&gt;&lt;b&gt;c&lt;/b&gt;&lt;span style=&quot;color: #222222;&quot;&gt;on&lt;/span&gt;&lt;b&gt;f&lt;/b&gt;&lt;span style=&quot;color: #222222;&quot;&gt;i&lt;/span&gt;&lt;b&gt;g&lt;/b&gt;&lt;span style=&quot;color: #222222;&quot;&gt;uration&quot; seguido do &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;nome da interface&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;por exemplo no caso da interface&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;eth0&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot; o arquivo de configuração será &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;ifcfg-eth0&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&quot;.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;As configurações que iremos adicionadar são&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Servidor &lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;- Nome do Host&lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;(Pode ser qualquer nome)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b style=&quot;font-family: Verdana, sans-serif;&quot;&gt;192.168.0.200 -&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Endereço IP&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;255.255.255.0 -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Mascara&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;192.168.0.1 -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Gateway&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;8.8.8.8 -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;DNS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Primário&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;8.8.4.4 -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;DNS Secundário&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;ifconfig -a&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; border: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px 0px 5px; orphans: auto; overflow: hidden; padding: 0px; text-align: start; text-indent: 0px; text-overflow: ellipsis; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; word-wrap: normal;&quot;&gt;&lt;div style=&quot;color: #222222; margin: 0px; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Exibe todas as interfaces de rede&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt; presentes no sistema&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal;&quot;&gt;inclusive as desativadas,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-weight: normal; margin: 0px; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;decida qual interface será configurada no seu caso.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;1 - Configurar o IP e a Mascara&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;o ip &lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;192.168.0.200&lt;/span&gt; &lt;span style=&quot;color: #222222;&quot;&gt;e a mascara&lt;/span&gt;&lt;b style=&quot;color: #222222;&quot;&gt; &lt;/b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;255.255.255.0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&amp;nbsp;serão adicionados a interface &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;eth0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; text-align: left; white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;vi /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;IPADDR=&lt;b&gt;192.168.0.200&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;NETMASK=&lt;b&gt;255.255.255.0&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;BOOTPROTO=&lt;b&gt;static&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;ONBOOT=&lt;b&gt;yes&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;OBS. Podem haver outros&amp;nbsp;parâmetros no arquivo de configuração da interface, para o&amp;nbsp;proposito&amp;nbsp;deste tutorial&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;mantenha-os &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;como estão e altere apenas os informados acima.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; white-space: nowrap;&quot;&gt;Salve e saia do arquivo&lt;/span&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Para as configurações feitas até aqui começarem a valer podemos&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;reiniciar o&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;serviço de rede com o comando&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;#/etc/init.d/network restart&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;ou dar um reboot no sistema todo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;#reboot&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Até aqui está pronta a configuração para acesso apenas a rede local,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;para ter acesso a internet ou outras redes você deve configurar o gateway padrão.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;2 - Configurar o Gateway padrão e Nome do Host&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;O ip do gateway padrão da rede&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;192.168.0.1 &lt;/span&gt;e o&lt;span style=&quot;color: #cc0000;&quot;&gt; Hostname&amp;nbsp;&lt;/span&gt;serão adicionados no&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;arquivo de&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;configurações gerais&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;de&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;rede referentes ao sistema&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;vi /etc/sysconfig/network&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;NETWORKING=yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;HOSTNAME=&lt;b&gt;Servidor&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;GATEWAY=&lt;b&gt;192.168.0.1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small; white-space: nowrap;&quot;&gt;OBS. Podem haver outros&amp;nbsp;parâmetros neste arquivo de configuração da interface, para o&amp;nbsp;proposito&amp;nbsp;deste tutorial&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;mantenha-os&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;como estão e altere apenas os que estão em azul.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; white-space: nowrap;&quot;&gt;Salve e saia do arquivo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Para as configurações feitas até aqui começarem a valer temos que&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;reiniciar o&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;serviço de rede com o comando&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;#/etc/init.d/network restart&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;ou dar um reboot no sistema todo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;#reboot&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Até aqui está pronta a configuração para acesso a rede local e a internet,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;porem o sistema ainda não é capaz de resolver nomes ou seja acessar sites pelo nome do site&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;apenas por ip, para isso teremos que configurar os servidores DNS (servidores de nome de&amp;nbsp;domínios)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;b&gt;3 - Configurar o DNS&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;O ip dos servidores DNS 8.8.8.8 e 8.8.4.4&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;serão adicionados no&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;arquivo /etc/resolv.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;para que o sistema seja capaz de traduzir nomes de&amp;nbsp;domínios&amp;nbsp;da internet em ip.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;color: #222222; white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #222222; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;vi /etc/resolv.conf&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;nameserver 8.8.8.8&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;nameserver 8.8.4.4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: xx-small; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana, sans-serif; font-size: x-small; white-space: nowrap;&quot;&gt;Salve e saia do arquivo&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Após salvar o arquivo as novas configurações de DNS já estarão valendo, e já será&amp;nbsp;possível&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;acessar sites pelo nome do site&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/503361518792194911/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/07/centos-como-configurar-rede.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/503361518792194911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/503361518792194911'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/07/centos-como-configurar-rede.html' title=' CentOS 6.x - Como configurar rede '/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6827771136352509991.post-1661029217375212112</id><published>2014-06-17T14:25:00.001-07:00</published><updated>2015-01-20T11:56:04.173-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Citrix"/><category scheme="http://www.blogger.com/atom/ns#" term="Hotfixes"/><category scheme="http://www.blogger.com/atom/ns#" term="hypervisor"/><category scheme="http://www.blogger.com/atom/ns#" term="Virtualização"/><category scheme="http://www.blogger.com/atom/ns#" term="XenServer"/><title type='text'>XenServer 6.x - Instalando Updates e Hotfixes via linha de comando</title><content type='html'>&lt;div style=&quot;border: 0px; color: #222222; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: nowrap; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;background-color: #fefef6; color: #707070; line-height: 24px; white-space: normal;&quot;&gt;&lt;b&gt;Consideração 1 - &lt;/b&gt;Atenção na versão &lt;/span&gt;&lt;span class=&quot;&quot; style=&quot;background-color: #fefef6; color: #707070; font-weight: normal; line-height: 24px; white-space: normal;&quot;&gt;licenciada do XenServer as atualizações podem ser aplicadas pelo XenCenter.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;div style=&quot;color: #222222; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;background-color: #fefef6; color: #707070; font-size: x-small; line-height: 24px; white-space: normal;&quot;&gt;Na versão não licenciada as atualizações só podem ser aplicadas utilizando a linha de comando, porem o processo é bem simples.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #222222; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: small; line-height: 24px; white-space: normal;&quot;&gt;Consideração 2&lt;/b&gt;&lt;b style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 24px; white-space: normal;&quot;&gt; - Se os servidores a serem atualizados pertencerem a um Pool de servidores é&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;recomendável&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: small; font-weight: normal; line-height: 24px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;deixar o servidor Master do pool por ultimo&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: x-small; line-height: 24px;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: #707070; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 24px;&quot;&gt;ara evitar problemas de perda de conexão aos servidores do pool.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;1º Passo - Baixar atualização&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Menu--&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-weight: bold;&quot;&gt; Tools&amp;gt;Check for Updates&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;O XenCenter irá listar as atualizações&amp;nbsp;disponíveis e seus respectivos links para&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;download.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Faça o download das atualizações desejadas e salve e&amp;nbsp;descompacte&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; white-space: nowrap;&quot;&gt;os arquivos das atualizações.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;h3 style=&quot;border: 0px; color: black; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: normal; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-size: small; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2º Passo - Copiar as atualização para o servidor XenServer&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b style=&quot;color: #666666;&quot;&gt;Baixe&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt; o &lt;/span&gt;&lt;a href=&quot;http://winscp.net/download/winscp554setup.exe&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;WinSCP&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #666666;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: #666666;&quot;&gt;instale&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;, &lt;/span&gt;&lt;b style=&quot;color: #666666;&quot;&gt;execute&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt; e preencha em&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&quot;&lt;b&gt;Host Name&lt;/b&gt;:&quot; ip do servidor&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&quot;&lt;b&gt;User name&lt;/b&gt;:&quot; root&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&quot;&lt;b&gt;Password&lt;/b&gt;:&quot; senha do servidor&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;O WinSCP irá se &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;conectar ao servidor&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;No lado esquerdo localize as atualizações que foram salvas e&amp;nbsp;descompactadas&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Arraste os arquivos .xupdates desejados para o /root do servidor&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp;no lado direto.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Obs. a copia dos arquivos para servidor pode ser feita da maneira que preferir.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-size: small; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;3º Passo - Aplicar a atualização&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;border: 0px; margin-bottom: 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Acesse a linha de comando&lt;/b&gt;&lt;b&gt; do Servidor&lt;/b&gt;, pelo console do XenCenter ou SSH&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;b&gt;No comando a seguir faremos o upload do arquivo de atualização &lt;/b&gt;desejado&lt;b&gt; para o sistema &lt;/b&gt;no caso o arquivo ex&lt;/span&gt;.&amp;nbsp;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;XS62ESP1005.xsupdate&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;xe patch-upload file-name=&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #b45f06;&quot;&gt;XS62ESP1005.xsupdate&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;O comando acima imprime na tela um &lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-family: Verdana, sans-serif;&quot;&gt;UUID&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt; que identifica a atualização por ex.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;b&gt;59128f15-92cd-4dd9-8fbe-a0115d1b07a2&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Copie esse &lt;/span&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;UUID&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt; gerado pelo comando anterior.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;O próximo comando irá aplicar a atualização utilizando o UUDI:&lt;/span&gt;&lt;b style=&quot;color: #6aa84f; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;59128f15-92cd-4dd9-8fbe-a0115d1b07a2&lt;/b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp;e o &lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;UUID do host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;O UUID da atualização já temos, agora para sabermos o &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;UUID do Host&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt; usaremos o seguinte comando&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Courier New, Courier, monospace;&quot;&gt;xe host-list&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;b&gt;lista os UUIDs dos Hosts&lt;/b&gt;, copie o UUID do Host desejado por ex.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #e06666; font-family: &#39;Courier New&#39;, Courier, monospace; white-space: nowrap;&quot;&gt;&lt;b&gt;9d7fa597-a628-4db8-9928-09f01f9283d4&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Agora o &lt;b&gt;comando para aplicar atualização&lt;/b&gt; utilizando o &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;UUID&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt; da atualização e &lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;UUID do Host&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt; em que a atualização será instalada&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;xe patch-apply uuid=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b style=&quot;color: #6aa84f;&quot;&gt;59128f15-92cd-4dd9-8fbe-a0115d1b07a2&lt;/b&gt;&amp;nbsp;host-uuid=&lt;/span&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&lt;b&gt;9d7fa597-a628-4db8-9928-09f01f9283d4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;h3 style=&quot;border: 0px; margin: 0px 0px 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #222222; font-size: small; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4º Passo - Reiniciar o Servidor&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;border: 0px; margin-bottom: 5px; overflow: hidden; padding: 0px; text-overflow: ellipsis; word-wrap: normal;&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li style=&quot;white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Reiniciar o Servido&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Vídeo&amp;nbsp;ilustrando os procedimentos acima:http://youtu.be/hiU9785ZZ7o&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Bonus 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Se ao aplicar alguma atualização der o o seguinte erro&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;The patch apply failed. &amp;nbsp;Please see attached output.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;output: &amp;lt;error errorcode=&quot;PATCH_PRECHECK_FAILED_UNKNOWN_ERROR&quot;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;info&amp;gt;Backup files already present - aborting. &amp;nbsp;If this is invalid, please remove /opt/xensource/patch-backup/&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;0850b186-4d47-11e3-a720-001b2151a503&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;/ and retry.&amp;lt;/info&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;b&gt;&amp;lt;/error&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Provavelmente o problema é espaço em disco&amp;nbsp;insuficiente em /&amp;nbsp;para o sistema realizar a manobra de atualização.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;Para confirmar podemos verificar o espaço em disco com o comando&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;df -h&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Para liberar espaço faça&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&amp;nbsp;rm -ri /opt/xensource/patch-backup/&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;0850b186-4d47-11e3-a720-001b2151a503/&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;e confirme tudo com y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;e repita o procedimento de aplicação do patch&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666;&quot;&gt;Bonus2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;Caso alguma &lt;b&gt;maquina virtual não iniciar&lt;/b&gt; após a aplicação de algum patch, e no log aparecer que o disco virtual não foi encontrado&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;Error: Starting VM &#39;CentOS &#39; - This operation cannot be performed because the specified virtual disk could not be found&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #666666; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;Existe a possibilidade de haver alguma imagem de disco carregada no DVD da maquina virtual&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;No Xencenter clique na máquina virtual que não inicia,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;clique na aba console,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;e clique em Eject no drive de DVD &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small; font-weight: normal; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;E tente iniciar a maquina novamente.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notasti.blogspot.com/feeds/1661029217375212112/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://notasti.blogspot.com/2014/06/xenserver-62-instalando-updates-e.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/1661029217375212112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6827771136352509991/posts/default/1661029217375212112'/><link rel='alternate' type='text/html' href='http://notasti.blogspot.com/2014/06/xenserver-62-instalando-updates-e.html' title='XenServer 6.x - Instalando Updates e Hotfixes via linha de comando'/><author><name>Bruno Mendes dos Santos</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>