Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Install Ubuntu WSL (Linux On Windows)

Posted on August 25, 2020August 17, 2024 By David Kittell

If you have issues like I have had with the Windows Store this will help you to get Ubuntu WSL on Windows.

NOTE: You may need to reboot your computer after the first line.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
#Install-WindowsFeature -Name Microsoft-Windows-Subsystem-Linux

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Downloads/ubuntu-1604.zip
New-Item -Path c:\ubuntu-1604 -ItemType Directory
Expand-Archive -Path ~/Downloads/ubuntu-1604.zip -OutputPath c:\ubuntu-1604 -Force
Set-Location c:\ubuntu-1604
& .\ubuntu1604.exe

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Downloads/ubuntu-1804.zip
New-Item -Path c:\ubuntu-1804 -ItemType Directory
Expand-Archive -Path ~/Downloads/ubuntu-1804.zip c:\ubuntu-1804
Set-Location C:\ubuntu-1804
& .\ubuntu1804.exe
Originally Posted on August 25, 2020
Last Updated on August 17, 2024
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell Ubuntu UNIX UNIX Shell Scripts Windows linuxlinux on windowsPowerShellunixwsl

Post navigation

Previous post
Next post

Related Posts

UNIX – List USB Devices With lsusb

Posted on February 12, 2018February 12, 2018

On the Mac “lsusb -v” is rather clean in comparison to other systems. # If not already installed… # brew update && brew tap jlhonora/lsusb && brew install lsusb lsusb -v lsusb -v # or lsusb -v | grep -E ‘\<(Bus|iProduct|bDeviceClass|bDeviceProtocol|idVendor|idProduct|iManufacturer)’ 2>/dev/null All information on this site is shared with…

Read More

Count/Limit characters in a textbox using Javascript

Posted on July 15, 2013October 26, 2015

<html> <head> <script type="text/javascript" src="/js/jquery-1.9.1.js"></script> <script type="text/javascript" src="/js/jquery.limit2.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#text").limita({ limit: 100, id_result: "counter", alertClass: "alert" }); }); </script> </head> <body> <form id="input_form" method="POST" action="?"> <textarea id="text" rows="4" cols="49"></textarea> <input type="submit" value="submit"> </form> <div id="counter"></div> </body> </html> (function($){ $.fn.limita = function(options) { var defaults = { limit:…

Read More

Prevent Spaces In Textbox

Posted on November 7, 2013October 26, 2015

<script type="text/javascript"> function stripspaces(input) { input.value = input.value.replace(/s/gi, ""); return true; } </script> <input type="text" ID="txtUserID" MaxLength="20" onkeyup="javascript:stripspaces(this)" onkeydown="javascript:stripspaces(this)"> Originally Posted on November 7, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes