How to Run a Linux Desktop Using the Windows Subsystem for Linux
How to Run a Linux Desktop Using the Windows Subsystem for Linux
sudo apt upgrade While this upgrade is running, head to Sourceforge to download and install the . (Other X Servers are available for Windows, including and . For the remainder of this guide, we'll be using VcXsrv.) An X server lets you access a Linux application or desktop environment's graphic user interface (GUI). Linux systems rely on X for displaying the desktop, but it can also be used across a network. Ensure your X window server is installed before proceeding. The next step is to install your Linux desktop environment (LDE). Many . We're going to keep things simple and install a lightweight environment called LXDE. To install, input: sudo apt lxde Following installation of LXDE, input this command DISPLAY=:
LIBGL_ALWAYS_INDIRECT=
This instructs Linux to display the desktop through the X server. So, when you run the X Server program you downloaded above, you'll see the Linux desktop environment. We used VcXsrv which features the XLaunch tool. Click this to view the X Display Settings window and select One large window or One large window without titlebar. Look for the Display number while you're there and set it to 0. Click Next, then select Start no client to ensure the XLaunch starts only the server, allowing you to start the Linux desktop later. Click Next again, then Finish. You might first like to click Save configuration to save it. Ready to launch your Linux desktop? Enter the command to start your preferred LDE. For LXDE, for example, use: startlxde The Linux desktop environment should then appear! You can now run any of the preinstalled Linux software and even install new apps and utilities. Other WSL-compatible desktop environments include KDE. You can even install GNOME on Windows for a full Ubuntu desktop experience.
MUO
How to Run a Linux Desktop Using the Windows Subsystem for Linux
Windows Subsystem for Linux comes without a desktop. Here's how to install a WSL desktop environment like GNOME or LXDE on Windows. Running Linux alongside Windows has proven to be increasingly useful over the years. But dual booting can be difficult to manage while setting up a virtual machine comes some stability issues. One solution is to use the Windows Subsystem for Linux. Here's how to run a Linux desktop on Windows using the Windows Subsystem for Linux.What Is the Windows Subsystem for Linux
Windows Subsystem for Linux (WSL) is an optional feature for Windows 10 and 11 that supports the installation of the Linux operating systems available in the Windows Store. It basically means that you can open a Linux terminal in Windows and install and run Linux software. There is no need to install any virtualization apps and there is no dual booting. The problem with Windows Subsystem for Linux, however, is that by default it is purely a command line experience. There is no desktop. For power users, this probably won't be a problem, but as Linux has a wide selection of desktop environments, it does seem a bit of an oversight. Fortunately, you can install a Linux desktop in Windows with WSL.Make Sure Windows 10 Is Compatible
Before proceeding, here's the important bit: you need to be running a 64-bit version of Windows. You can check this in Settings > System > About, where you'll find the System type entry. To proceed, this should read "64-bit operating system". If not, and you're running 64-bit hardware, you'll need to . Another prerequisite is that you need to be running Windows 10 build 14393 or later. You can check this in the same About screen, listed under Windows specifications. Look for the OS build---if it is higher than 14393, you can use the Windows Subsystem for Linux. If not, simply run a Windows Update. Once Windows 10 is compatible, it's time to follow our guide to installing the Windows Subsystem for Linux. With that set up, it's time to add a desktop.Install a WSL Desktop
If you have set up the Windows Subsystem for Linux already, click Start and enter bash. Click the first option (the bash run command) to start using Linux. The following steps assume you installed Ubuntu as your preferred Linux operating system. Start by running an update and upgrading Ubuntu: sudo aptsudo apt upgrade While this upgrade is running, head to Sourceforge to download and install the . (Other X Servers are available for Windows, including and . For the remainder of this guide, we'll be using VcXsrv.) An X server lets you access a Linux application or desktop environment's graphic user interface (GUI). Linux systems rely on X for displaying the desktop, but it can also be used across a network. Ensure your X window server is installed before proceeding. The next step is to install your Linux desktop environment (LDE). Many . We're going to keep things simple and install a lightweight environment called LXDE. To install, input: sudo apt lxde Following installation of LXDE, input this command DISPLAY=:
LIBGL_ALWAYS_INDIRECT=
This instructs Linux to display the desktop through the X server. So, when you run the X Server program you downloaded above, you'll see the Linux desktop environment. We used VcXsrv which features the XLaunch tool. Click this to view the X Display Settings window and select One large window or One large window without titlebar. Look for the Display number while you're there and set it to 0. Click Next, then select Start no client to ensure the XLaunch starts only the server, allowing you to start the Linux desktop later. Click Next again, then Finish. You might first like to click Save configuration to save it. Ready to launch your Linux desktop? Enter the command to start your preferred LDE. For LXDE, for example, use: startlxde The Linux desktop environment should then appear! You can now run any of the preinstalled Linux software and even install new apps and utilities. Other WSL-compatible desktop environments include KDE. You can even install GNOME on Windows for a full Ubuntu desktop experience.