windows_subsystem_for_linux_wsl

Windows Subsystem for Linux (WSL)

Windows Subsystem for Linux (WSL): WSL Topics, WSL 2, WSL Installation (wsl --install), WSL Configuration (wslconfig, wsl guiApplications=false), Linux VMs, WSL Commands (wsl --help, wsl --list, wsl --list --verbose, wsl --list --online, wsl --status, wsl --shutdown, wsl --update, wsl --set-default-version 2), Linux distros, Linux VMs on Hyper-V, Linux VMs on Azure, Linux VMs on AWS, Linux VMs on GCP, Linux VMs on VirtualBox, Linux VMs on VMware Fusion on macOS, Linux VMs on VMware Workstation Pro on Windows (navbar_wsl)


Favorites

WSL Distros

wsldl - Advanced WSL Launcher / Installer

Project List of WSL Distros Using wsldl

List of projects / WSL Distros using the official build of wsldl.


wsl --set-version Ubuntu-20.04 2


https://www.microsoft.com/en-us/search/shop/apps?q=linux

Installing WSL on Windows Server or Hyper-V

The Windows Subsystem for Linux is available for installation on Windows Server 2019 (version 1709) and later, including Windows Server 2022.

Enable the Windows Subsystem for Linux

Before you can run Linux distributions on Windows, you must enable the “Windows Subsystem for Linux” optional Windows feature and reboot.

Open PowerShell as Windows Administrator and run:

PowerShell

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Download a Linux distribution

See the Downloading Linux distributions section of the manual installation page for instructions and links to download your preferred Linux distribution.

Extract and install a Linux distribution

Now that you've downloaded a Linux distribution, in order to extract its contents and manually install, follow these steps:

Extract the <DistributionName>.appx package's contents, using PowerShell:

PowerShell

Copy Rename-Item .\Ubuntu.appx .\Ubuntu.zip Expand-Archive .\Ubuntu.zip .\Ubuntu Run the distribution launcher application in the target folder. The launcher is typically named <DistributionName>.exe (for example, ubuntu.exe).

Expanded Ubuntu distribution on Windows Server

Caution

Installation failed with error 0x8007007e: If you receive this error, then your system doesn't support WSL. Ensure that you're running Windows build 16215 or later. Check your build. Also check to confirm that WSL is enabled and your computer was restarted after the feature was enabled.

3.Add your Linux distribution path to the Windows environment PATH (C:\Users\Administrator\Ubuntu in this example), using PowerShell:

PowerShell

Copy $userenv = [System.Environment]::GetEnvironmentVariable(“Path”, “User”) [System.Environment]::SetEnvironmentVariable(“PATH”, $userenv + “;C:\Users\Administrator\Ubuntu”, “User”) You can now launch your distribution from any path by typing <DistributionName>.exe. For example: ubuntu.exe.

Once installation is complete, you can create a user account and password for your new Linux distribution.

https://docs.microsoft.com/en-us/windows/wsl/install-on-server

WSLU - WSL Utilities

Awesome WSL - Windows Subsystem for Linux

Awesome

An Awesome collection of Windows Subsystem for Linux (WSL) information, distributions, and tools.

Contents Overview Using WSL - The WSL Shell - Programming on WSL - Web Development on WSL - Other WSL Uses Supported WSL Distributions - Ubuntu - Debian - OpenSUSE / SUSE Enterprise Linux - Kali Linux - Fedora Remix for WSL - Pengwin - Pengwin Enterprise Unofficial WSL Distributions WSL Tools - X Servers - Terminals - Managing WSL Installations - WSL Utilities - WSL-Specific Development Tools - Miscellaneous Tools Books Additional WSL Resources Related Projects More Awesome Lists Thanks Intellectual Property Notices Overview 1. Linux Linux is a UNIX-like open-source operating system. The core of Linux is a kernel developed by Linus Torvalds. Linux also includes a wide array of applications built on top of the kernel, including web servers, compilers, and e-mail clients, developed and contributed to the Linux ecosystem by a worldwide community of programmers. These applications are then assembled together into Linux distributions by companies, communities, and individuals.

2. Linux Distributions Unlike Windows or macOS there are many different Linux distributions, each of which is assembled with different approaches to the software selection and implementation. For example, the goal of the non-profit volunteer Debian Project community is to produce a universal free operating system, while the goal of the for-profit SUSE is to provide a stable enterprise platform. There are also Linux distributions based on other distributions. Ubuntu is a distribution based on Debian built by the company Canonical. Kali is a distribution based on Debian built with an emphasis on tools for network security testing. You can see the most popular distributions ranked at DistroWatch.

3. Windows Windows is a family of proprietary operating systems, all of which are developed, marketed, and sold by Microsoft. Currently Windows 10 is Microsoft's flagship operating system. Windows 10 is available for Intel x86-based and arm64-based PCs. The Windows Subsystem for Linux first shipped in Windows 10 Anniversary Update, version number 1607, in August 2016. WSL can be enabled for free on all versions of Windows 10 after 1607, including Home, Professional, Enterprise, Server, LTSB, and Education. Originally only available for Intel x86-based PCs, Ubuntu 18.04 for arm64 was made available on the Microsoft store in May 2018.

4. WSL1 The original WSL is now known as WSL1. WSL1 is a compatibility layer for running Linux binary executables (ELF) natively on Windows 10. No re-compilation or 'porting' of applications is required. WSL1 provides a Linux-compatible kernel interface developed by Microsoft that allows a user to choose a Linux distribution to install from the Microsoft Store. WSL1 executes unmodified Linux ELF64 binaries by operating a Linux kernel interface on top of the Windows kernel in Windows 10. The WSL1 interface translates Linux system calls from the binaries into Windows system calls and then executes them at native speed. Linux applications run within the Linux distribution which provides the application's dependencies and package management in a container-like environment. WSL provides an interface to mount drives within WSL.

5. WSL2 WSL2 was announced at Microsoft Build 2019. WSL2 features a Linux kernel running inside Windows and is built on the core technology of Hyper-V to provide better Linux application support and improved file system performance. Transitioning to WSL2 is seamless. WSL2 is set by default since Windows 11.

Announcing WSL2 - Microsoft blog announcing WSL2 The new Windows subsystem for Linux architecture: a deep dive - WSL2 presentation at Microsoft Build 2019 WSL2-Linux-Kernel - The source for the Linux kernel used in Windows Subsystem for Linux 2. 6. Emulation Windows Subsystem for Linux is not an emulator or virtualizer like VirtualBox. WSL1 is closer in its approach to Wine which is a compatibility layer to run Windows binaries on Linux by re-implementing Windows system and API calls in libraries.

7. Details You want the gritty details? Here they are:

Windows Subsystem for Linux Overview at MSDN. WSL File System Support at MSDN. WSL System Calls at MSDN. Windows and Ubuntu Interoperability at MSDN. WSL Antivirus and Firewall Compatibility at MSDN. WSL Release Notes from docs.microsoft.com. Windows Subsystem for Linux Documentation from docs.microsoft.com. Windows Subsystem for Linux - Update from Microsoft Developer YouTube channel. Windows for Linux Nerds from Microsoft developer Jessie Frazelle. 8. Installation WSL1 Installation Guide - Microsoft's official guide for WSL. Windows Server Installation Guide - Microsoft's official guide for Windows Server. Windows-Subsystem-For-Linux-Setup - A basic guide for how to get setup with the WSL feature that is included with Windows 10. github project 9. Use Cases WSL is undoubtedly a tool for power-users, developers, and *NIX/Linux geeks who want to run Windows. Most of the things you can do with WSL are going to be related to programming, the console, sysadmin, automation, AI/data science, and other geeky things.

10. GUI Apps Yes, a suprising number of Linux GUI apps can run on WSL. GUI applications are officially supported on WSL2 with Windows Insider Preview since Windows 10 Insider Preview build 21286. It will also be available in Windows 10's fall 2021 release, and Windows 11. The GUI capabilities of WSL2 are informally referred to as WSLg.

If you have an earlier release of Windows 10, then running a GUI app on WSL requires an operational X server on Windows. This must be downloaded, installed, and running for your GUI app to open from WSL; or it will complain that it cannot find a display. X servers for Windows include X410 💰 ($10 but very highly recommended), VcXsrv, GWSL, or Xming on Windows 10.

Using WSL The WSL Shell Everything You Can Do With Windows 10’s New Bash Shell The Unix Workbench - A book for anyone to get started with Unix/Linux environments. The Art of Command Line - Master the command line in one page. github project The Bash Academy - The Bash Academy is an initiative to promote the bash shell language and educate people on its use. Awesome Command Line Apps Awesome github project Programming on WSL Every developer has a unique workflow. Windows and WSL enable developers to carefully customize their setup for their unique workflow. The following are different developers' approaches to creating their development environments using WSL and instructions on how to do the same:

Epic Development Environment Using Windows Subsystem for Linux - One developer's approach to their development environment using WSL1. Far More Epic Development Environment using WSL2 Setting Up a Programming Environment via Windows 10 Bash - From the computer science department at Old Dominion University. WSL as a Development Environment - From the computer science department at University of Utah. github project Using WSL and MobaXterm to Create a Linux Dev Environment on Windows - Another developer's approach using the third-party terminal MobaXterm. Setting up my WSL Environment - Azure CLI, Docker and .NET ubuntu-win-boostrap - A very simple bootstrap script to install some development basic tools on Debian/Ubuntu on WSL. github project Castle-Winbuntu - Another developer's progress on their development environment using WSL. github project Badass Terminal For more about learning programming generally, visit curated-programming-resources.

Microsoft makes free development tools available, publishes programming guides through MSDN, and offers courses through edX and Microsoft Virtual Academy.

Web Development on WSL Because WSL allows developers to run a variety of Linux server applications locally on their Windows machine, WSL is uniquely useful for web, cloud, and other server-side development tasks. The following are different developers' approaches to creating their web development environment using WSL and instructions on how to do the same:

We put Linux in your Windows - YouTube talk by Windows kernel team member Sarah Cooley on WSL for Windows. Setting Up Windows for Web Development. How to Install LAMP Stack Server on Windows Subsystem Linux. Other WSL Uses Arduino setup checklist - Checklist to connect Arduino board from WSL 1. Learning programming, computer science, and system administration generally. Building applications for Azure, Microsoft's cloud platform. Leveraging the power of the shell and scripting to automate your personal workflow, like OCRing and sorting PDFs into folders using Python. Replacing Windows shell with Xfce, Gnome, KDE, or i3.. Running Linux-based server applications like OpenFOAM and Wordpress locally for testing purposes. Managing your companies' CentOS servers using Ansible. pWSLinux+K8S: The Interop way Vagrant and Windows Subsystem for Linux Supported Distributions Ubuntu Ubuntu is a Linux distribution based on Debian that is produced by Canonical Ltd.. Ubuntu 16.04 and the more recent Ubuntu 18.04 are both available for WSL from the Microsoft Store.

Windows Store Link for Ubuntu 16.04. Supported through April 2021. Very stable but some packages and libraries may be older. Windows Store Link for Ubuntu 18.04. Supported through April 2023. Windows Store Link for Ubuntu 20.04. Most recent update. Newer packages but more likely to encounter bugs. Supported through April 2025. Installing Software guide to using apt from Ubuntu. Ubuntu Server Guide from Ubuntu. Because Ubuntu is based on Debian, many Debian tutorials also apply to Ubuntu. Debian Debian is a Linux distribution assembled by volunteers with the community Debian Project.

Windows Store Link for Debian Stretch. Debian Reference post-installation guide for Debian users with a focus on the command line from Debian. Package Management guide to using apt from Debian. WSL Wiki page from Debian. OpenSUSE / SUSE Enterprise Linux OpenSUSE and SUSE Enterprise Linux are Linux distributions produced by SUSE Linux GmbH and other companies. Tumbleweed and Leap are community-oriented distributions. Tumbleweed is a rolling release distribution with the latest software, while Leap is a stable distribution based on SUSE Enterprise Linux. SUSE Enterprise Linux is an enterprise-grade commercial distribution with older tested software.

Windows Store Link for OpenSUSE Tumbleweed. Windows Store Link for OpenSUSE Leap 15.3. Windows Store Link for OpenSUSE Leap 15.2. Windows Store Link for SUSE Enterprise Linux 15. Managing Software with Command Line Tools from OpenSUSE. OpenSUSE Reference. SUSE Linux Enterprise Documentation from SUSE. Kali Linux Kali Linux is a Linux distribution focused on penetration testing based on Debian that is produced by Offensive Security.

Windows Store Link. Kali Linux Official Documentation. Because Kali is based on Debian, most Debian and Ubuntu documentation also applies to Kali. Fedora Remix for WSL Fedora Remix for WSL is a Linux distribution derived from the Fedora distribution.

Windows Store Link 💰 Fedora Project Documentation Fedora Remix for WSL Homepage Fedora Remix for WSL GitHub github project Pengwin Pengwin (formerly WLinux) is a Linux distribution based on Debian that is designed for WSL users by independent open source developers at Whitewater Foundry.

Windows Store Link 💰 Pengwin GitHub github project Because Pengwin is based on Debian, most Debian and Ubuntu documentation also applies to Pengwin. Pengwin Enterprise Pengwin Enterprise is a custom WSL solution available to enterprise customers from Whitewater Foundry. Pengwin Enterprise supports Red Hat Enterprise Linux, CentOS, and Scientific Linux. A demo of Pengwin Enterprise built with Scientific Linux is available on the Microsoft Store.

Pengwin Enterprise Homepage Pengwin Enterprise GitHub github project Demo Microsoft Store Link Unofficial Distributions Unofficial distributions must be installed manually or with tools listed below. They are not available in the Windows Store.

miniwsl - A mini Linux distribution for WSL powered by busybox. github project ArchWSL - ArchLinux in WSL. github project AlpineWSL - Alpine in WSL. github project windows-subsystem-linux-fedora - Fedora in WSL. WSLInstall - Install any GNU/Linux distribution userspace in Windows Subsystem for Linux (WSL) with compressed RootFS tarballs, Docker containers, or ISO files. github project wsldl - General purpose WSL installer and launcher. github project WSL-Distribution-Switcher - Scripts to replace the distribution behind WSL with any other Linux distribution published on Docker Hub. Includes alpine, CentOS, Fedora, Clear, and others. github project acme-wsl - Install acme / plan9port on Debian, Ubuntu, or Kali Linux distributions on WSL. CentWSL - CentOS as a WSL distro. github project RHWSL - Red Hat Universal Base Image as a WSL distro. If you have a Red Hat Subscription, you can register and subscribe the system and use it as RHEL. github project FedoraWSL - Fedora as a WSL distro. github project AmazonWSL - Amazon Linux as a WSL distro. github project GentooWSL - Gentoo as a WSL distro. github project DevuanWSL - Devuan Linux as a WSL Distro. Devuan is a Debian variant without the complexities and dependencies of systemd. github project ManjaroWSL - Manjaro as a WSL distro based on wsldl. github project WSLackware - Slackware as a WSL distro. github project WSL Tools X Servers An X server running on Windows is required for running Linux GUI apps on Windows. See FAQ

  1. 10 above.

X410 - X server for Windows 10 on the Microsoft Store. 💰 VcXsrv - X server for Windows with hardware acceleration compiled with Visual Studio. GWSL - An X server for Windows 10 with an app launcher, distro manager, shortcut creator, and ssh launcher. Xmanager - X server for Windows from NetSarang. 💰 Xming open-source version - An older X server for Windows. Has not been updated since 2016. Xming commercial version - The current version of Xming, that is updated monthly. Donate at least £10 to have access to it. 💰 Cygwin/X - Cygwin/X is a port of the X Window System to the Cygwin API layer for Windows. Terminals Windows Terminal - The new open-source Windows Terminal. github_project wsltty - Mintty as a terminal for WSL. github project wsl-terminal - A terminal emulator for WSL, based on mintty, fatty and wslbridge. github project Tabby - A terminal for a more modern age. github project ConEmu - ConEmu aims to be handy, comprehensive, fast and reliable terminal where you may host any console application for the Windows command line, PowerShell, or WSL. MobaXterm - Enhanced terminal for Windows with X11 server, tabbed SSH client, network tools and much more. extraterm - Open source project to build a terminal emulator and expand it with new features to support modern workflows. github project Hyper - A terminal built on web technologies. github project Terminator - Feature-rich tabbed terminal. Requires X server. Alacritty - A terminal emulator with focus on performance and simplicity. Fluent Terminal - A Terminal Emulator based on UWP and web technologies. For Managing WSL Installations Ansible-WSL - Provision WSL using Ansible. github project LxRunOffline - A full-featured utility for managing WSL. github project Raft WSL - Raft is a Windows Subsystem for Linux (WSL) distribution manager in native C#/XAML. 💰 wslu - A collection of utilities for Windows 10 Linux Subsystem, such as enabling sound in WSL and creating your favorite linux GUI application shortcuts on Windows 10. github project WSL Utilities wslgit - Use git installed on WSL from Visual Studio Code on Windows. github project pinentry-wsl-ps1 - Store passwords for gpg-agent in Windows Credential Manager github project wslexec - Execute Linux executables as .exe files on Windows. github project wsl-proxy - A collection of 'proxy' batch files that can be used to route requests to the WSL version of a command. github project wslpath - Easily convert Windows to WSL path names and vice-versa. github project wsl-open - Open files with xdg-open in WSL from Windows applications. github project OpenInWSL - Easily Make WSL Linux Apps Windows File Handlers. github project is-wsl for Node - Check if the current process is running inside Windows Subsystem for Linux, useful for scripting. github project is_wsl for Python - Check if the current process is running inside Windows Subsystem for Linux, useful for scripting. github project wsl-gui-bins - Start common GUI applications under WSL as under Linux. github project xclip-xsel-WSL - Make xclip and xsel in WSL read and write on the Windows instead of the Linux clipboard. . github project vim-wsl-copy-paste - Adds mappings in Vim to write and read on the Windows clipboard. . github project WslShortcut - Run WSL commands directly in Windows. Also allows to use WSL git/node/etc. in Visual Studio Code or another software. Combines functionality of utilities like wslgit, wslnodejs, wslexec etc. with simpler usage. github project WSL-Specific Development Tools wsl-docker-git-setup - Shell script to configure WSL to use docker and docker-compose as well as a git-enabled prompt. github project ghc - A version of the Glasgow Haskell Compiler built and optimized for WSL and hosted in a PPA for Debian and Ubuntu-based WSL distros. Miscellaneous Tools BootShellCredentialProvider - BSCP lets you boot Windows directly into a Linux desktop experience such as xfce4 using Windows native login and a combination of Xming & WSL upon login. github project wsl-dotfiles - Configuration files and scripts for creating an i3-based environment inside WSL. github project EnumWSL - Enumerates installed WSL packages. github project WSL-DistroLauncher - Reference launcher app for developing your own WSL distribution Microsoft Store package. github project WSL_Reverse - Reveal hidden COM interface between WSL and Lxss Manager Service. github project wslbridge - wslbridge is a Cygwin program that allows connecting to the WSL command-line environment over TCP sockets, as with ssh, but without the overhead of configuring an SSH server. github project WSLInstall - Install any Linux distribution userspace in WSL with compressed RootFS tarballs (tar.gz) or with Docker containers or with ISO files. github project cmd-colors-solarized - This is a solarized color scheme for the Windows command prompt that works in WSL. weasel-pageant - An ssh-agent compatible helper for interacting with Pageant from processes running on the Windows Subsystem for Linux. wsl2-ssh-pageant - A bridge between Windows Pageant and WSL2. WinCryptSSHAgent - Using a Yubikey for SSH Authentication on Windows Seamlessly. Supports WSL and WSL2. Files - A modern file explorer that supports WSL filesystem. github project easyWSL - Use any Docker image as a WSL distro. github project Books Learn Windows Subsystem for Linux - A Practical Guide for Developers and IT Professionals Pro Windows Subsystem for Linux (WSL): Powerful Tools and Practices for Cross-Platform Development and Collaboration Windows Subsystem for Linux 2 (WSL 2): Tips, Tricks and Techniques by Stuart Leeks Windows Subsystem for Linux: Tactics, Mindset and Tips Additional Resources Microsoft WSL Official Documentation Microsoft WSL Blog Microsoft Console Blog WSL-Programs - A community powered list of programs that work on the Windows Subsystem for Linux. github project /r/bashonubuntuonwindows - Reddit subreddit.

  1. windows-wsl - IRC channel on Freenode.net.
  2. debian-wsl - IRC channel on OFTC.net.

WSL on GitHub - For reporting issues with WSL. github project The Windows Subsystem for Linux Guide - Third-party WSL resource. Microsoft User Voice - Send Microsoft feedback on WSL. Microsoft Developer Feedback - For developers to send Microsoft feeback on WSL. Portable Node.js guide - Practical guide on how to write portable/cross-platform Node.js code. Stack Overflow: WSL - Programming question and answer site. Related Projects Bash - Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). Cygwin - Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. Cmder - A very nice console emulator built on ConEmu. github project PuTTY - PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. github project PowerShell - PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language. Visual Studio Code - Visual Studio Code (“vscode”) is a source code editor developed by Microsoft for Windows, Linux, and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. Visual Studio 2017 - Visual Studio is an IDE from Microsoft. It is used to develop computer programs, as well as web sites, web apps, web services and mobile apps. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store, and Microsoft Silverlight. Windows Services for UNIX - SFU is a discontinued software package produced by Microsoft which provided a Unix environment on Windows NT and some of its immediate successor operating-systems. TechNet documentation. More Awesome Awesome UNIX Awesome Windows Awesome VSCode Awesome Bash Awesome Shell Awesome Powershell Awesome Linux More Awesome lists. github project

Thanks

The Windows 10, WSL, and kernel teams at Microsoft, including but not limited to Tara Raj, Rich Turner, Jessie Frazelle, Jack Hammons, Sarah Cooley, Ben Hillis, Allen Sudbring, Brandon Wilson, John Starks, Russ Alexander, Yosef Durr, Sven Groot, Sunil Muthuswamy, Palkesh Soni, John Starks, Craig Wilhite.

Canonical, Debian, SUSE, and Offensive Software. The Awesome community on GitHub.

Intellectual Property Notices

Intellectual Property Notices

The author of this project has no connection with Microsoft, Inc.

Portions of the descriptions above are from Wikipedia and used under CC BY-SA 4.0 license. Portions of the descriptions above are from Awesome-UNIX and used under CC BY-SA 4.0 license.

This document is licensed under CC BY-SA 4.0 license.

Fair Use Sources:

navbar_wsl


Cloud Monk is Retired (for now). Buddha with you. © 2005 - 2024 Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


windows_subsystem_for_linux_wsl.txt · Last modified: 2022/11/16 15:40 by 127.0.0.1