How to Run Linux GUI Applications with WSL2 on Windows

This used to be a limited feature for Windows Insider members, but regular Windows users can now take advantage of the feature as well.

If you have just upgraded to Windows 11 and want to try this feature, continue reading the following article.

Install the graphics driver

How to Run Linux GUI Applications with WSL2 on Windows Picture 1 Microsoft provides driver software for 3 major GPU manufacturers: Intel, AMD and NVIDIA

To be able to run GPU-accelerated Linux GUI applications, you will have to install the latest video drivers for the hardware. Microsoft has helpfully created links to driver software for the three major GPU manufacturers: Intel, AMD, and NVIDIA.

  1. Download the graphics driver for WSL2

Click on the appropriate link to download the graphics driver installation program. If you don't know what type of video hardware you have, open Device Manager from Control Panel and click Display adapters. This will show what type of video card you have.

Once you have downloaded the executable, run it to install the latest driver for the system. You may have to restart your computer when the process is complete.

Update WSL version to WSL2

Assuming you already have a working WSL installation, you just need to make sure you're using the latest version. To do that, just run this command in a PowerShell window with admin rights:

wsl --update

To force restart, use the following command:

wsl --shutdown

Open WSL again and you should now be ready to run graphical Linux applications on Windows.

Run graphical application

How to Run Linux GUI Applications with WSL2 on Windows Picture 2

To run graphical applications, you can call them from the command line as you would on any other Linux system. For example, to run the graphical version of Vim, you must enter the shell:

gvim

This will launch Vim in a window. You can also launch Linux GUI applications from the Start menu. They will appear in a folder with the name of the distribution you are using. For example, with Ubuntu they will be in the "Ubuntu" folder.

Run GUI applications over the network

How to Run Linux GUI Applications with WSL2 on Windows Picture 3

The great thing about X11 programs is that they can run on one machine while displaying the output on another machine over the network.

To do this with WSL, go through the process using SSH to log into a remote server with X11 forwarding enabled. On the client side, you'll need to use the -X or -Y options to enable X forwarding to your machine.

Now you can run Linux GUI applications in Windows

The ability to run Linux GUI applications in Windows is a welcome addition and makes the Windows Subsystem for Linux much more useful, as you are no longer limited to only text-based applications.

If you don't just want to run a single application but run the entire Linux desktop on Windows, you can do that too.

4 ★ | 1 Vote

May be interested

  • Convert data, applications from Windows to Linux in minutesConvert data, applications from Windows to Linux in minutes
    many people want to use both windows and linux operating systems that perform dual booting, but recently a problem with windows drivers has made users frustrated and annoyed, so they can only use linux operating system.
  • Instructions for installing software and applications on LinuxInstructions for installing software and applications on Linux
    installing software on linux will be a little different from installing software on windows or macos. instead of accessing the website, users will have to get the application from the linux distribution's software store through the program. to manage library packages, the article below tipsmake will guide you how to install software and applications on linux.
  • 10 indispensable Office applications of Linux10 indispensable Office applications of Linux
    linux integrates many tools to help you overcome any difficulties at work. here are 10 office applications of linux that can please everyone.
  • 4 Linux automation applications to streamline tasks4 Linux automation applications to streamline tasks
    the following 4 automation applications allow users to focus on more important things, instead of tedious tasks. these tools help users save time and effort to make other things more meaningful.
  • 7 ways to run Linux software on Windows7 ways to run Linux software on Windows
    linux users want to run windows software on linux, whereas windows users want to use linux software. even if you are looking for a better development environment, more powerful command-line tools, you can run linux software without removing windows.
  • Create .Net applications on Linux and Mac OS XCreate .Net applications on Linux and Mac OS X
    mono is an open source deployment of .net framework built on linux, solaris, mac os x, windows and unix.
  • 8 main differences between Windows and Linux8 main differences between Windows and Linux
    is linux and windows the same? linux is different from windows? that is the question that many people wonder when they first come into contact with the linux operating system. in this article we will help you answer that question.
  • How to Learn LinuxHow to Learn Linux
    learning linux is not a one day task but it isn't herculean either. linux can be a good and safe os for both home and enterprise level users. keep in mind before saying 'hey, i'm going to start working on linux from tomorrow' that there is...
  • Why is MX Linux a desirable Windows alternative?Why is MX Linux a desirable Windows alternative?
    if you're looking for an alternative to windows but don't like linux, mx linux may be the solution you're waiting for.
  • Why You Won't Regret Leaving Windows for LinuxWhy You Won't Regret Leaving Windows for Linux
    if you have the courage to leave, you will find that linux is a pretty good alternative. after leaving windows for linux, many people have found it to be a wise choice.