{"id":542,"date":"2024-01-08T12:41:46","date_gmt":"2024-01-08T12:41:46","guid":{"rendered":"https:\/\/howtogeek.blog\/pt\/?p=542"},"modified":"2024-01-08T12:41:46","modified_gmt":"2024-01-08T12:41:46","slug":"how-to-install-windows-subsystem-for-linux-wsl-on-windows-11-pt","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/pt\/how-to-install-windows-subsystem-for-linux-wsl-on-windows-11-pt\/","title":{"rendered":"Como instalar o subsistema Windows para Linux (WSL) no Windows 11"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">Se quiser usar o Linux no seu PC sem fazer uma configura\u00e7\u00e3o de inicializa\u00e7\u00e3o dupla no seu hardware, voc\u00ea pode fazer isso atrav\u00e9s do Subsistema Windows para Linux. WSL \u00e9 um recurso do <u data-wpel-link=\"internal\">Windows 11<\/u> que permite aos usu\u00e1rios executar distribui\u00e7\u00f5es Linux em hardware compat\u00edvel sem complica\u00e7\u00f5es. WSL basicamente elimina a necessidade de uma m\u00e1quina virtual tradicional, bem como de um sistema de inicializa\u00e7\u00e3o dupla. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Com WSL, voc\u00ea pode n\u00e3o apenas executar a distribui\u00e7\u00e3o Linux, mas tamb\u00e9m usar a maioria das ferramentas, aplicativos e utilit\u00e1rios fornecidos pelo sistema operacional. Por padr\u00e3o, ele est\u00e1 desabilitado em todos os sistemas e voc\u00ea ter\u00e1 que instalar o Windows Subsystem para Linux no Windows 11. Vejamos todas as maneiras de fazer isso.<\/span><\/p>\n<h2><span id=\"Ways_to_Install_Windows_Subsystem_for_Linux\"><strong><span data-preserver-spaces=\"true\">Maneiras de instalar o subsistema Windows para Linux<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">WSL permite que voc\u00ea execute Linux Distro em seu PC Windows. Existem v\u00e1rias maneiras de instalar o subsistema Windows para Linux, mas antes de discutirmos as etapas, voc\u00ea deve habilitar a plataforma de m\u00e1quina virtual em seu PC. Para habilit\u00e1-lo, siga as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Abra o <\/span><strong><span data-preserver-spaces=\"true\">Menu Iniciar<\/span><\/strong><span data-preserver-spaces=\"true\"> e pesquise <\/span><strong><span data-preserver-spaces=\"true\">Ativar ou desativar recursos do Windows&lt; a i=4&gt; e pressione <\/span><\/strong><strong><span data-preserver-spaces=\"true\">Enter<\/span><\/strong><span data-preserver-spaces=\"true\">.<\/span><span data-preserver-spaces=\"true\"><\/span><strong><span data-preserver-spaces=\"true\"><\/span><\/strong><span data-preserver-spaces=\"true\"><\/span><img alt=\"abra Ativar ou desativar recursos do Windows\" class=\"wp-image\" decoding=\"async\" height=\"349\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/01\/open-Turn-Windows-Features-on-or-off.webp\" title=\"abra Ativar ou desativar recursos do Windows\" width=\"600\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Agora marque a caixa de sele\u00e7\u00e3o ao lado de <\/span><strong><span data-preserver-spaces=\"true\">Plataforma de m\u00e1quina virtual<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Quando terminar, clique em <\/span><strong><span data-preserver-spaces=\"true\">OK<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><img alt=\"Plataforma de M\u00e1quina Virtual\" class=\"wp-image\" decoding=\"async\" height=\"364\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/01\/Virtual-Machine-Platform.webp\" title=\"Plataforma de M\u00e1quina Virtual\" width=\"408\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Voc\u00ea ser\u00e1 solicitado a reiniciar o PC para salvar as altera\u00e7\u00f5es.<\/span><\/li>\n<\/ol>\n<p><span data-preserver-spaces=\"true\">Depois de habilitar a plataforma de m\u00e1quina virtual, voc\u00ea pode seguir os diferentes m\u00e9todos fornecidos abaixo para instalar o Windows Subsystem para Linux no Windows 11-<\/span><\/p>\n<h3><span id=\"1_Through_Command_Prompt\"><strong><span data-preserver-spaces=\"true\">1. Atrav\u00e9s do prompt de comando<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">A primeira forma de instalar o WSL no Windows 11 \u00e9 por meio do prompt de comando. Para fazer isso, siga as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Pressione a tecla <\/span><strong><span data-preserver-spaces=\"true\">Windows<\/span><\/strong><span data-preserver-spaces=\"true\"> e digite <\/span><strong><span data-preserver-spaces=\"true\">CMD<\/span><\/strong><span data-preserver-spaces=\"true\"> o menu Iniciar. Clique com o bot\u00e3o direito do mouse em <\/span><strong><span data-preserver-spaces=\"true\">Prompt de comando<\/span><\/strong><span data-preserver-spaces=\"true\"> e clique em <\/span><strong><span data-preserver-spaces=\"true\">Executar como administrador<\/span><\/strong><span data-preserver-spaces=\"true\"> . <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Quando o prompt do UAC aparecer na tela, clique em <\/span><strong><span data-preserver-spaces=\"true\">Sim<\/span><\/strong><span data-preserver-spaces=\"true\">.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Na janela CMD, digite e execute o seguinte comando-<\/span><img alt=\"wsl \u2013instalar\" class=\"wp-image\" decoding=\"async\" height=\"436\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/01\/wsl-E28093install.webp\" title=\"wsl \u2013instalar\" width=\"1011\"\/>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">wsl \u2013install<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<li><span data-preserver-spaces=\"true\">Ap\u00f3s executar o comando acima, feche o prompt de comando e reinicie o PC.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Isso instalar\u00e1 o WSL no seu PC.<\/span><\/li>\n<\/ol>\n<h3><span id=\"2_Through_Windows_Features\"><strong><span data-preserver-spaces=\"true\">2. Atrav\u00e9s dos recursos do Windows<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Outra forma de instalar o subsistema Windows para Linux \u00e9 por meio dos recursos do Windows. Veja como fazer isso-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Abra o <\/span><strong><span data-preserver-spaces=\"true\">Menu Iniciar<\/span><\/strong><span data-preserver-spaces=\"true\">, pesquise <\/span><strong><span data-preserver-spaces=\"true\">Ativar ou desativar recursos do Windows,<\/span><\/strong><span data-preserver-spaces=\"true\">  e abra-o. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Aqui, pesquise <\/span><strong><span data-preserver-spaces=\"true\">Windows Subsystem for Linux<\/span><\/strong><span data-preserver-spaces=\"true\"> e marque a caixa de sele\u00e7\u00e3o ao lado dele. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Clique em <\/span><strong><span data-preserver-spaces=\"true\">OK<\/span><\/strong><span data-preserver-spaces=\"true\"> quando concluir as altera\u00e7\u00f5es acima. <\/span><img alt=\"Subsistema Windows para Linux\" class=\"wp-image\" decoding=\"async\" height=\"359\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2024\/01\/Windows-Subsystem-for-Linux.webp\" title=\"Subsistema Windows para Linux\" width=\"409\"\/><\/li>\n<li><span data-preserver-spaces=\"true\">Depois disso, reinicie o seu PC para salvar as altera\u00e7\u00f5es e concluir o processo de instala\u00e7\u00e3o.<\/span><\/li>\n<\/ol>\n<h3><span id=\"3_Through_Microsoft_Store\"><strong><span data-preserver-spaces=\"true\">3. Atrav\u00e9s da Microsoft Store<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Voc\u00ea tamb\u00e9m pode instalar o WSL por meio da Microsoft Store. Para fazer isso, siga as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Abra a <\/span><strong><span data-preserver-spaces=\"true\">Microsoft Store<\/span><\/strong><span data-preserver-spaces=\"true\"> na barra de tarefas. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Agora, na Microsoft Store, clique no \u00edcone de pesquisa na parte superior da pesquisa por <\/span><strong><span data-preserver-spaces=\"true\">Windows Subsystem for Linux<\/span><\/strong><span data-preserver-spaces=\"true\"> e abra-o no Procurar Resultados. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Agora, clique no bot\u00e3o <\/span><strong><span data-preserver-spaces=\"true\">Obter<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Voc\u00ea receber\u00e1 um prompt do UAC; clique em<\/span><strong><span data-preserver-spaces=\"true\"> Sim<\/span><\/strong><span data-preserver-spaces=\"true\">.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Feito isso, o download do WSL ser\u00e1 iniciado no seu PC e ele ser\u00e1 instalado no seu dispositivo.<\/span><\/li>\n<\/ol>\n<h2><span id=\"Ways_to_Install_Linux_Distro_on_Windows_11\"><strong><span data-preserver-spaces=\"true\">Maneiras de instalar a distribui\u00e7\u00e3o Linux no Windows 11<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Depois de instalar o WSL em seu sistema, voc\u00ea pode continuar instalando a distribui\u00e7\u00e3o Linux. Voc\u00ea pode instalar o Linux Distro em seu PC Windows atrav\u00e9s do prompt de comando ou da Microsoft Store.<\/span><\/p>\n<h3><span id=\"1_Through_Command_Prompt1\"><strong><span data-preserver-spaces=\"true\">1. Atrav\u00e9s do prompt de comando<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Se voc\u00ea deseja instalar o Linux Distro em seu PC Windows atrav\u00e9s do prompt de comando, siga as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Pressione <\/span><strong><span data-preserver-spaces=\"true\">Windows + R<\/span><\/strong><span data-preserver-spaces=\"true\">, digite <\/span><strong><span data-preserver-spaces=\"true\">CMD<\/span><\/strong><span data-preserver-spaces=\"true\"> no campo caixa de di\u00e1logo executar e pressione as teclas <\/span><strong><span data-preserver-spaces=\"true\">Ctrl + Shift + Enter<\/span><\/strong><span data-preserver-spaces=\"true\"> juntas. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Na janela CMD, execute o seguinte comando-<\/span>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">wsl --list --online<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<li><span data-preserver-spaces=\"true\">Isso listar\u00e1 todas as distros Linux que voc\u00ea pode instalar em seu PC com Windows.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Depois disso, execute o comando fornecido abaixo para instalar a distribui\u00e7\u00e3o Linux-<\/span><\/li>\n<\/ol>\n<ul>\n<li>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">wsl --install -d DISTRO-NAME<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span id=\"2_Through_Microsoft_Store\"><strong><span data-preserver-spaces=\"true\">2. Atrav\u00e9s da Microsoft Store<\/span><\/strong><\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Voc\u00ea tamb\u00e9m pode instalar a distribui\u00e7\u00e3o Linux da Microsoft Store depois de habilitar o WSL. Para fazer isso, siga as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Pressione a tecla <\/span><strong><span data-preserver-spaces=\"true\">Windows<\/span><\/strong><span data-preserver-spaces=\"true\"> e clique na <\/span><strong><span data-preserver-spaces=\"true\">Microsoft Store<\/span><\/strong><span data-preserver-spaces=\"true\"> para abri-lo. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Agora, usando a barra de pesquisa na parte superior, procure a distribui\u00e7\u00e3o Linux que deseja instalar. Por exemplo, <\/span><strong><span data-preserver-spaces=\"true\">Ubuntu<\/span><\/strong><span data-preserver-spaces=\"true\">. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Clique na distribui\u00e7\u00e3o Linux relevante nos resultados da pesquisa e, em seguida, clique em <\/span><strong><span data-preserver-spaces=\"true\">Obter<\/span><\/strong><span data-preserver-spaces=\"true\"> para instal\u00e1-la. <\/span><\/li>\n<\/ol>\n<h2><span id=\"How_to_Update_WSL_Kernel\"><strong><span data-preserver-spaces=\"true\">Como atualizar o kernel WSL?<\/span><\/strong><\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Se quiser atualizar o kernel WSL para a vers\u00e3o mais recente, voc\u00ea poder\u00e1 fazer isso seguindo as etapas abaixo-<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Clique no \u00edcone <\/span><strong><span data-preserver-spaces=\"true\">Iniciar <\/span><\/strong><span data-preserver-spaces=\"true\">e pesquise <\/span><strong><span data-preserver-spaces=\"true\">Prompt de comando<\/span><\/strong><span data-preserver-spaces=\"true\"> e execute-o como administrador. <\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Digite o comando abaixo e pressione <\/span><strong><span data-preserver-spaces=\"true\">Enter<\/span><\/strong><span data-preserver-spaces=\"true\"> para execut\u00e1-lo-<\/span>\n<ul>\n<li>\n<code><strong><span data-preserver-spaces=\"true\">wsl \u2013update<\/span><\/strong><\/code>\n<\/li>\n<\/ul>\n<\/li>\n<li><span data-preserver-spaces=\"true\">Isso far\u00e1 o download e instalar\u00e1 a atualiza\u00e7\u00e3o mais recente do kernel WSL em seu sistema.<\/span><\/li>\n<\/ol>\n<h4><span id=\"Bottom_Line\"><strong><span data-preserver-spaces=\"true\">Conclus\u00e3o<\/span><\/strong><\/span><\/h4>\n<p><span data-preserver-spaces=\"true\">Conforme discutido, existem v\u00e1rias maneiras de instalar o subsistema Windows para Linux no Windows 11. Voc\u00ea pode continuar com qualquer um dos m\u00e9todos listados acima para obter o WSL. Al\u00e9m disso, listamos as etapas para obter a distribui\u00e7\u00e3o Linux no Windows; voc\u00ea pode seguir as etapas para instalar o Linux Distro depois de instalar o WSL em seu sistema.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se quiser usar o Linux no seu PC sem fazer uma configura\u00e7\u00e3o de inicializa\u00e7\u00e3o dupla no seu hardware, voc\u00ea pode fazer isso atrav\u00e9s do Subsistema Windows para Linux. WSL \u00e9 um recurso do Windows 11 que permite aos usu\u00e1rios executar distribui\u00e7\u00f5es Linux em hardware compat\u00edvel sem complica\u00e7\u00f5es. WSL basicamente elimina a necessidade de uma m\u00e1quina [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[54],"class_list":["post-542","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-tips"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/posts\/542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/comments?post=542"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":543,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/posts\/542\/revisions\/543"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/media?parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/categories?post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/pt\/wp-json\/wp\/v2\/tags?post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}