
This shows that several GUI applications can interact together. When you move the cursor over the calculator, xeyes follows the cursor. Leave xeyes opened and run the calculator xcalc with: Next executions of GUI applications are much faster. The first launch of a GUI application takes a few seconds while WSL is initializing the graphics stack. In other words, the shell will run the command in the background and return to the command prompt immediately. The & at the end of the line will execute the command asynchronously. To run the xeyes, a “follow the mouse” application, type: Then, start with some basic X11 applications: To check that you have the latest package lists, type: WSLg allows you to run graphical linux applications. On Windows 11, WSL comes with WSLg enabled by default. To check the build number, open the Windows menu by pressing the Windows key, then type about in the search field, as shown in the following screenshot:įinally, it’s always good practice to install the latest updates with the following commands, entering your password when prompted.

Installation from the store will install the latest version of WSL with all the latest features. In Windows 11, it is also available directly from the Microsoft store as an application. We saw in the tutorial Install Ubuntu WSL on Windows 10 that WSL can be installed from the command line. Ⓘ Note: This tutorial doesn’t cover GPU acceleration which is covered in a tutorial of its own. A Windows 11 physical or virtual machine with all the updates installed.Ⓘ Note: For Windows 10 users please refer to our alternative tutorial here. How to install and run a much more advanced application that uses WSLg.

How to install and run a simple graphical application that uses WSLg.How to enable and install WSL on Windows 11.Windows Subsystem for Linux (WSL) allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving windows. Run Graphical Applications with Ubuntu on WSL2 for Windows 1:00
