Read about how to change your distribution from WSL 1 to WSL 2. Linux GUI apps are only supported with WSL 2 and will not work with a Linux distribution configured for WSL 1. You can restart WSL by running the shutdown command in PowerShell. You will need to restart WSL for the update to take effect. If you already have WSL installed on your machine, you can update to the latest version that includes Linux GUI support by running the update command from an elevated command prompt.Įnter the WSL update command: wsl -update
#SUDO GEDIT COMMAND IN LINUX INSTALL#
You're now ready to begin using Linux GUI apps on WSL! Existing WSL install This will be your Linux credential for the Ubuntu distribution. Once your machine has finished rebooting, installation will continue and you will be asked to enter a username and password.
Run this command and reboot your machine when prompted: wsl -install -d Ubuntu Select Start, type PowerShell, right-click Windows PowerShell, and then select Run as administrator. Open a command prompt with administrator privileges. If you have not already done so, install WSL and set up a user name and password for your Linux distribution. This will enable you to use a virtual GPU (vGPU) so you can benefit from hardware accelerated OpenGL rendering.įresh install - No prior WSL installation To run Linux GUI apps, you should first install the preview driver matching your system below. You can join the Windows Insiders Program to get the latest preview builds. You will need to be on Windows 11 Build 22000 or higher to access this feature. Install support for Linux GUI apps Prerequisites
You can now integrate both Windows and Linux applications into your workflow for a seamless desktop experience. Cut + Paste across Windows and Linux apps.Use alt-tab to switch between Linux and Windows apps.Launch Linux apps from the Windows Start menu.WSL 2 enables Linux GUI applications to feel native and natural to use on Windows. You can now preview Windows Subsystem for Linux (WSL) support for running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience.