![]() ![]() You can find PowerShell in the Windows Start Menu. I recommend using the PowerShell app, which you need to run as an administrator. To install WSL 2 on Windows 10 (OS Build 1909 or 1903) you need to follow 4 steps: If you use an older version of Windows 10 you can still install WSL 2 ( Microsoft backported WSL 2 to older versions of Windows 10 in Windows Update KB4566116) but the process isn’t as simple as in the 2004 update. Once done you can you can launch the ‘Ubuntu’ app from the Start Menu to get started, or install the Microsoft Terminal app to start exploring your newly-installed Ubuntu install - don’t forget to run an apt update & apt upgrade though - this is a REAL Ubuntu system, after all! Install WSL 2 (Old Method) ![]() This time you’ll be walked through setting up Ubuntu with a username and password (these don’t need to be the same as your Windows username and password). Log in to Windows 10 and the command prompt will open again. The crazy shows no sign of abating either as Microsoft plans to let users run desktop Linux apps on Windows 10 and leverage GPU-intensive tasks.Īnd the best news is that it is much easier to install WSL on Windows 10, as this updated guide shows. “ new architecture presents a better platform for the WSL team to deliver features that make WSL an amazing way to run a Linux environment in Windows,” say Microsoft of the tech. put a real Linux kernel right at the heart of things. And it figured the best way to do that was to add full system call compatibility, i.e. Improved performance was Microsoft’s motivation for created the souped-up WSL2. Plus, new Linux kernel updates will be released as Windows 10 software updates - which is kinda crazy when you think about it! More than a simple version bump, WSL 2 is faster, more versatile, and uses a real Linux kernel for the first time. WSL 2 is a big upgrade to the original WSL Microsoft introduced in 2017. Enable “Windows Subsystem for Linux.If you want to try out the improved Windows Subsystem for Linux 2 (aka WSL 2) in the latest Windows versions here’s how - I cover everything you need to do to install it, in this post. If you prefer updating using UI, then go to the Control Panel -> Programs and click “Turn Windows feature on or off”. Using PowerShell as administrator, execute:ĭism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart You must first enable the “Windows Subsystem for Linux” optional feature before installing any Linux distributions on Windows. Step 1: Enable the Windows Subsystem for Linux If not, you can still install WSL1 by only completing steps 1 and 5. You can check this by opening the “About my PC” option from Windows Start and check that the version is “1093” or above and with Build 18362 or Higher. So, the bottom line is that Windows users can now get the same Linux experience that they get on a Mac or Linux desktop.īefore you start to setup WSL2, you must satisfy Windows 10 version requirements. This avoids clunky workarounds like Virtual Machines and Cygwin that can slow down your machine. This means developers using Windows machines have access to the complete Linux command line toolset (vi, grep, awk, sed, etc.) and can run their favourite distro on Windows. With continued support from Microsoft, more distros such as SUSE, Alpine, Kali, Debian have followed the steps of Ubuntu and released their distros for WSL. During the initial days, Microsoft achieved this by building the WSL by working with Canonical to run Ubuntu on top of WSL. Microsoft has brought “native” Linux capabilities to Windows 10 by allowing you to install Ubuntu Bash. ![]() Docker, Git, Python, Spark and all the data munging Linux commands) natively on Windows 10. WSL2 provides the ability to run a complete set of Ubuntu tools, VS Code and utilities ( e.g. VS Code can integrate with WSL2 using the Remote-WSL extension. Improvements in WSL2 have made dramatic file system performance increases, and full system call compatibility, meaning you can run more Linux apps in WSL2 such as Docker. So, Microsoft has started shipping a real Linux kernel with Windows that will make full system call compatibility possible. With the growth of public cloud, DevOps practices and continued acceptance of Linux based workloads in production has reinforced the need to have native Linux support on Windows. In line with the WSL updates, I am providing an updated overview of the installation steps in the original blog. Since then, Microsoft has made improvements and has released the WSL2 version and subsequently, the installation steps and system requirements have changed. This has been one of the most popular blog pages on the Altis site. I wrote the blog on Installing Ubuntu Bash for Windows 10 using WSL (Windows Subsystem for Linux) a few years back. Anandraj Jagadeesan, Principal Consultant – Altis Sydney
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |