<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DevOps on Sandra Ashipala</title><link>https://sandramsc-fun.sandraashipala.workers.dev/categories/devops/</link><description>Recent content in DevOps on Sandra Ashipala</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 29 Dec 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://sandramsc-fun.sandraashipala.workers.dev/categories/devops/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing WSL on Windows 11 Home (Ubuntu)</title><link>https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/</link><pubDate>Fri, 29 Dec 2023 00:00:00 +0000</pubDate><guid>https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/</guid><description>&lt;img src="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/featured.jpg" alt="Featured image of post Installing WSL on Windows 11 Home (Ubuntu)" />&lt;p>Windows Subsystem for Linux (WSL) offers a powerful way to integrate Windows 11 Home with Linux. Having a growing interest in Linux and venturing into DevOps, I decided to find out how Ubuntu can be used on my new Windows machine—after previously trying to install Ubuntu on a bootable USB and realizing I mostly used the CLI rather than the bundled desktop apps.&lt;/p>
&lt;p>This article details how to install WSL with Ubuntu on Windows 11 Home, providing a practical approach to enhancing your development workflow.&lt;/p>
&lt;h2 id="why-wsl">Why WSL?
&lt;/h2>&lt;p>With WSL, you get direct access to Linux command-line tools without giving up Windows convenience or dual-booting.&lt;/p>
&lt;hr>
&lt;h2 id="installation-steps">Installation Steps
&lt;/h2>&lt;h3 id="step-1-enable-windows-subsystem-for-linux">Step 1: Enable Windows Subsystem for Linux
&lt;/h3>&lt;ol>
&lt;li>Click on the &lt;strong>Start&lt;/strong> menu.&lt;/li>
&lt;li>Search for &lt;strong>Turn Windows features on or off&lt;/strong> and open it.&lt;/li>
&lt;li>Scroll to the bottom and check the box for &lt;strong>Windows Subsystem for Linux&lt;/strong>.
&lt;img src="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_0.png"
width="555"
height="491"
srcset="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_0_hu_41566678db8f67c4.png 480w, https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_0_hu_a4822bbf7ae4ee59.png 1024w"
loading="lazy"
alt="Windows Features dialog with Windows Subsystem for Linux checked"
class="gallery-image"
data-flex-grow="113"
data-flex-basis="271px"
>&lt;/li>
&lt;li>Click &lt;strong>OK&lt;/strong>.&lt;/li>
&lt;li>Click &lt;strong>Restart now&lt;/strong> so the changes take effect.
&lt;img src="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_1.png"
width="757"
height="628"
srcset="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_1_hu_8b817127d706e41c.png 480w, https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_1_hu_2a652ad088be4626.png 1024w"
loading="lazy"
alt="Windows Features confirmation or restart prompt"
class="gallery-image"
data-flex-grow="120"
data-flex-basis="289px"
>&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h3 id="step-2-install-wsl2">Step 2: Install WSL2
&lt;/h3>&lt;ol>
&lt;li>Launch &lt;strong>PowerShell&lt;/strong> as Administrator.&lt;/li>
&lt;li>To view available distributions verified for installation, run:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">wsl&lt;/span> &lt;span class="p">-&lt;/span>&lt;span class="n">-list&lt;/span> &lt;span class="p">-&lt;/span>&lt;span class="n">-online&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ol start="3">
&lt;li>To install the default Ubuntu distribution, run:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">wsl&lt;/span> &lt;span class="p">-&lt;/span>&lt;span class="n">-install&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_2.png"
width="1100"
height="195"
srcset="https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_2_hu_7831d912bea547ff.png 480w, https://sandramsc-fun.sandraashipala.workers.dev/post/installing-wsl-on-windows/image_2_hu_a969338795cf2ca2.png 1024w"
loading="lazy"
alt="Windows Features confirmation or restart prompt"
class="gallery-image"
data-flex-grow="564"
data-flex-basis="1353px"
>&lt;/p>
&lt;ol start="4">
&lt;li>To install a specific distribution, run:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">wsl&lt;/span> &lt;span class="p">-&lt;/span>&lt;span class="n">-install&lt;/span> &lt;span class="n">-d&lt;/span> &lt;span class="nb">DISTRO-NAME&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>For example, running:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">wsl&lt;/span> &lt;span class="p">-&lt;/span>&lt;span class="n">-install&lt;/span> &lt;span class="n">-d&lt;/span> &lt;span class="n">Ubuntu&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">20.04&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>will install Ubuntu 20.04 LTS.&lt;/p>
&lt;ol start="5">
&lt;li>Restart your machine when prompted.&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h3 id="step-3-set-up-ubuntu">Step 3: Set Up Ubuntu
&lt;/h3>&lt;ol>
&lt;li>Launch the installed &lt;strong>Ubuntu&lt;/strong> app from the &lt;strong>Start&lt;/strong> menu.&lt;/li>
&lt;li>Follow on-screen instructions to set up a user account and configure your Ubuntu environment.&lt;/li>
&lt;li>Upon completion, you&amp;rsquo;ll have a fully functional Ubuntu terminal ready for use.&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="https://sandramsc-fun.sandraashipala.workers.dev/image_3.png"
loading="lazy"
alt="Windows Features confirmation or restart prompt"
>&lt;/p>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>Following these steps, you&amp;rsquo;ve successfully integrated Ubuntu into your Windows machine and can now navigate a Linux environment from your familiar Windows desktop.&lt;/p>
&lt;p>Thank you for reading. Happy Coding!&lt;/p></description></item></channel></rss>