<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Edson Canganjo</title>
    <description>The latest articles on DEV Community by Edson Canganjo (@edsoncanganjo).</description>
    <link>https://dev.to/edsoncanganjo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F592017%2Fdde5841e-3135-417f-bd8e-dc5179ceccee.png</url>
      <title>DEV Community: Edson Canganjo</title>
      <link>https://dev.to/edsoncanganjo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/edsoncanganjo"/>
    <language>en</language>
    <item>
      <title>WSL on Windows Server 2019</title>
      <dc:creator>Edson Canganjo</dc:creator>
      <pubDate>Thu, 22 Sep 2022 12:01:09 +0000</pubDate>
      <link>https://dev.to/edsoncanganjo/wsl2-on-windows-server-2019-5281</link>
      <guid>https://dev.to/edsoncanganjo/wsl2-on-windows-server-2019-5281</guid>
      <description>&lt;p&gt;Did you try to install WSL2 on Windows Server 2019 through &lt;code&gt;wsl --install&lt;/code&gt;?&lt;br&gt;
Did you try to install Microsoft Store?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unfortunately it doesn't work on Windows Server 2019.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But it has soluction.&lt;/p&gt;

&lt;p&gt;The solution was based on the link below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows/wsl/install-on-server"&gt;Microsoft&lt;/a&gt;;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Just follow the steps:&lt;/strong&gt;&lt;br&gt;
Those steps below needs to be done other and Administrator&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd C:\Users\Administrator\
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Enable the Windows Subsystem for Linux&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Download a Linux distribution&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Extract and install a Linux distribution&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Rename-Item .\Ubuntu.appx .\Ubuntu.zip
Expand-Archive .\Ubuntu.zip .\Ubuntu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add your Linux distribution path to the Windows environment PATH&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";C:\Users\Administrator\Ubuntu", "User")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start installation (change directory to directory where is ubuntu.exe)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ubuntu.exe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If is it usefull, please leave your comment or suggestion.&lt;br&gt;
If it doesn't work, let's try together&lt;/p&gt;

</description>
      <category>wsl</category>
      <category>windowsserver2019</category>
      <category>wsl2</category>
    </item>
  </channel>
</rss>
