Share this article

Improve this guide

How to quickly run Linux GUI apps on Windows 10 or Windows 11 for added convenience

3 min. read

Published onJanuary 17, 2023

published onJanuary 17, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Windows Subsystem for Linux (WSL) allows you to run Linux GUI apps on Windows 10 or 11 without the need for a virtual machine.

Prerequisites for installation

Prerequisites for installation

Torun Linux GUI apps on WSL, you will need to install an X Server on your Windows machine. X Server is a program that allows Linux GUI apps to connect to a display on your Windows machine. Other than that, you just need to make sure you have the following:

The first step is to enable the WSL feature on your Windows PC. You can click the Start menu to search for “Turn Windows features on or off,” and then check the box next to Windows Subsystem for Linux (WSL) and pressEntertoenable virtualization. You will need to restart your computer for the changes to take effect.

Alternatively, you can open a Windows Terminal and typewsl –installto install WSL if you’ve never installed it before and If you already have WSL installed on your machine, you can open Windows Terminal and typewsl –updateand then typewsl –shutdownto restart WSL for the changes to take effect.

Next, you will need to install a Linux distribution, such as Ubuntu, on your Windows machine. You can do this bysearching for the Microsoft Store appin the Start menu and then searching for Ubuntu. Once installed, launch the Ubuntu app.

In the Ubuntu terminal, you will need to install theX Server software. You can do this by running the commandsudo apt-get install xorgto install the Xorg X Server, orsudo apt-get install xserver-xorg-coreto install the Xorg X Server core package.

Once theX Server is installed, you will need to configure it to allow connections from WSL. To do this, you will need to create a new file called.xinitrcin your home directory. This file will contain the commandexec startxorexec gnome-sessiondepending on your distro.

Run Linux GUI apps on Windows 10 or 11

Run Linux GUI apps on Windows 10 or 11

To run a Linux GUI app, you will need to start the X Server by running the commandstartxin the Ubuntu terminal. Once the X Server is up and running, you can install, launch, and test Linux GUI apps on Windows 10 or 11 using your distro’s terminal.

You caninstall X11 appsto help you get started. Open your distro’s terminal and typesudo apt install x11-apps -y. X11 is the Linux windowing system and contains a collection of various Linux apps likexcalc,xclock, orxeyes.

It’s worth noting that while running Linux GUI apps on Windows 10 or 11 using WSL can be useful, but it’s not a perfect solution and the performance may not be as good as if the apps were running natively on Linux. However, it’s a good way to run Linux GUI apps on a Windows machine if you need to do so for compatibility or testing purposes.

davew

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

davew