<?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: PRAHAR~1</title>
    <description>The latest articles on DEV Community by PRAHAR~1 (@vpraharsha03).</description>
    <link>https://dev.to/vpraharsha03</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%2F513003%2Fce07d18a-38b9-4b06-8d28-2a1596113a36.jpg</url>
      <title>DEV Community: PRAHAR~1</title>
      <link>https://dev.to/vpraharsha03</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vpraharsha03"/>
    <language>en</language>
    <item>
      <title>Installing MSFT Store WSL Distros to a custom location</title>
      <dc:creator>PRAHAR~1</dc:creator>
      <pubDate>Wed, 06 Jan 2021 15:17:00 +0000</pubDate>
      <link>https://dev.to/vpraharsha03/installing-msft-store-wsl-distros-to-a-custom-location-4m00</link>
      <guid>https://dev.to/vpraharsha03/installing-msft-store-wsl-distros-to-a-custom-location-4m00</guid>
      <description>&lt;p&gt;If you are running out of space on your C drive and want to keep your DEV environment and tools in a separate location for some reason, follow this guide.&lt;/p&gt;

&lt;p&gt;By default the Linux distributions installed from the Microsoft Store are available in the same place as other Windows store apps (%USERPROFILE%\AppData\Local\Packages).&lt;/p&gt;

&lt;h1&gt;
  
  
  Grab the .appx package file:
&lt;/h1&gt;

&lt;p&gt;To download the .appx package of a distro directly, run the following in PowerShell:&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;This will download Ubuntu 20.04 distro and save it under the name &lt;em&gt;“Ubuntu.appx”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Available Distros&lt;/em&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Ubuntu 20.04 - &lt;a href="https://aka.ms/wslubuntu2004"&gt;https://aka.ms/wslubuntu2004&lt;/a&gt;&lt;br&gt;
Ubuntu 20.04 ARM - &lt;a href="https://aka.ms/wslubuntu2004arm"&gt;https://aka.ms/wslubuntu2004arm&lt;/a&gt;&lt;br&gt;
Ubuntu 18.04 - &lt;a href="https://aka.ms/wsl-ubuntu-1804"&gt;https://aka.ms/wsl-ubuntu-1804&lt;/a&gt;&lt;br&gt;
Ubuntu 18.04 ARM - &lt;a href="https://aka.ms/wsl-ubuntu-1804-arm"&gt;https://aka.ms/wsl-ubuntu-1804-arm&lt;/a&gt;&lt;br&gt;
Ubuntu 16.04 - &lt;a href="https://aka.ms/wsl-ubuntu-1604"&gt;https://aka.ms/wsl-ubuntu-1604&lt;/a&gt;&lt;br&gt;
Debian GNU/Linux - &lt;a href="https://aka.ms/wsl-debian-gnulinux"&gt;https://aka.ms/wsl-debian-gnulinux&lt;/a&gt;&lt;br&gt;
Kali Linux - &lt;a href="https://aka.ms/wsl-kali-linux-new"&gt;https://aka.ms/wsl-kali-linux-new&lt;/a&gt;&lt;br&gt;
OpenSUSE Leap 42 - &lt;a href="https://aka.ms/wsl-opensuse-42"&gt;https://aka.ms/wsl-opensuse-42&lt;/a&gt;&lt;br&gt;
SLES - &lt;a href="https://aka.ms/wsl-sles-12"&gt;https://aka.ms/wsl-sles-12&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Unpack the distro:
&lt;/h1&gt;

&lt;p&gt;Navigate to the directory and extract the package. Extract to a folder that has full access permission.&lt;br&gt;
You can unzip the downloaded package using any archiver of your choice, or you can simply do it via PowerShell itself:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h1&gt;
  
  
  Initializing
&lt;/h1&gt;

&lt;p&gt;In the unzipped folder there’s an EXE file (according to the name of the distribution)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yMg0yF9---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/503/1%2AA7KQ4R3YJwHp3Jq9rRGNAQ.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yMg0yF9---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/503/1%2AA7KQ4R3YJwHp3Jq9rRGNAQ.jpeg" alt="Folder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Based on the version of Linux distro you are using, the executable name can be different.
&lt;/h6&gt;

&lt;p&gt;Now, run the executable to start initializing…&lt;br&gt;
This will extract the “rootfs” and Register the WSL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; You can register with a different name using wsl --import and perform multiple installs :)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wsl.exe --import &amp;lt;DistributionName&amp;gt; &amp;lt;InstallLocation&amp;gt; &amp;lt;FileName&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eg:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wsl.exe --import Debian1 D:\Deb1 .\install.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wait till the process completes and you’ll be prompted to create a new user account and rest of the process follows accordingly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QsJ1zp6---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2A2Iaae3f_ZBbMHUfL.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QsJ1zp6---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/700/0%2A2Iaae3f_ZBbMHUfL.png" alt="Img2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After the installation is complete, you’ll find the “rootfs” folder is created which has all the libraries, executables etc…&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yQok7Kg8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/264/1%2AkQXIMs7vdWTaLIMbObY_Sw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yQok7Kg8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/264/1%2AkQXIMs7vdWTaLIMbObY_Sw.jpeg" alt="Img3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To verify installation use &lt;code&gt;wsl --list --all&lt;/code&gt; or &lt;code&gt;wsl -l --all&lt;/code&gt; to list names of installed or imported WSL distros.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M3-SgF97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/530/1%2A1xS2QjWZXCKjMRW7gz1qHw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M3-SgF97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/530/1%2A1xS2QjWZXCKjMRW7gz1qHw.png" alt="Img4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Adding to PATH
&lt;/h1&gt;

&lt;p&gt;You’ll have to use the distribution launcher application in target folder every time to run your distro. So, additionally you can add your distro path to PATH environment variable to invoke it from anywhere.&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 + “;D:\DebianWSL”, “User”)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Useful Links:
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.microsoft.com/en-us/windows/wsl/user-support?redirectedfrom=MSDN"&gt;Manually download Windows Subsystem for Linux distro packages&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>wsl</category>
      <category>wsl2</category>
      <category>windows</category>
      <category>windowssubsystemlinu</category>
    </item>
    <item>
      <title>Successfully completed Hacktoberfest2020 🎉</title>
      <dc:creator>PRAHAR~1</dc:creator>
      <pubDate>Thu, 12 Nov 2020 15:44:22 +0000</pubDate>
      <link>https://dev.to/vpraharsha03/successfully-completed-hacktoberfest2020-4gnc</link>
      <guid>https://dev.to/vpraharsha03/successfully-completed-hacktoberfest2020-4gnc</guid>
      <description>&lt;p&gt;Hello everyone! I'm new to DEV community and OpenSource. Through Hacktoberfest, i've learnt more about Git and new things by contributing to different projects.&lt;br&gt;
All in all it was a great experience. I found the Open-Source community to be friendly and cool.&lt;/p&gt;

&lt;p&gt;I've come across some really amazing repos and am looking forward to learn and make more and more valuable contributions. I'm thankful to Dev, Intel &amp;amp; DigitalOcean for this initiative. &lt;/p&gt;

</description>
      <category>hacktoberfest</category>
    </item>
  </channel>
</rss>
