Windows is by far the most popular operating system in the world - but for developers and power users, it's often helpful to be able to switch into a Linux environment. In the past, this meant dual-booting, or installing your chosen distribution in a virtual machine. But since 2016 there's been a better way: the Windows Subsystem for Linux (WSL) is an optional OS component that provides a fully working, officially supported Linux environment right inside Windows.
The major limitation of WSL, when it was first introduced, was that it was a text-only interface. You could run scripts and command-line programs, but graphical applications were off the menu.
That's no longer the case. All desktop editions of Windows 10 and 11 now support WSLg - an updated version of WSL, where the "g" stands for GUI. It enables you to run graphical Linux applications directly on the Windows desktop, with minimal configuration. It's a huge boon for anyone who works across multiple platforms, or who just wants to try out applications and tools that aren't available for Windows.
WSLg isn't installed by default, but it's not hard to set up. Here's our guide to installing it and running your first Linux app on Windows. We're using Windows 11, but the same instructions will work for Windows 10; in either case, just make sure you're using the latest version of the OS, so that all the relevant modules are installed.
Installing WSL and setting up your Linux account
You can install WSL from the Microsoft Store (pcpro.link/346wsl), but most of the setup process is carried out at the command line, so we may as well start there. We'll use a PowerShell session with administrator privileges - an easy way to open one is right-click the Start menu and select "Windows Terminal (Admin)", then click Yes to allow changes to your system.
Denne historien er fra August 2023-utgaven av PC Pro.
Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.
Allerede abonnent ? Logg på
Denne historien er fra August 2023-utgaven av PC Pro.
Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.
Allerede abonnent? Logg på
Lenovo ThinkPad E16 Gen 1 (AMD)
By no means the last word in excitement, but the ThinkPad E16 is a good-value choice for business users
Huawei MateBook D16
The best and biggest screen here, plus a powerful Core i9 processor, ensure the MateBook D16 stands out
Acer Aspire Go 14
It's tough to argue with this laptop's value for money or battery life, but speed lovers should look elsewhere
HP Spectre x360 16 (2024)
This sleek 2kg convertible packs everything you need, including a Core Ultra chip and optional Nvidia graphics
Five ways to get cloud computing wrong
Don't let your migration projects go up in smoke. Steve Cassidy runs through the blunders to avoid
Control your computer with your face and head -it's the future!
As if to show nothing is new in the world of technology, eye tracking and gesture control date back decades. But if Apple's on board, maybe their time has finally come, suggests Nicole Kobie
Chip off the old block
Standalone sales of the Z80 CPU have finally been discontinued after 48 years. David Crookes looks back on a chip with a staggering impact
Cloud backup 2024
Whether it's through attack or error, your business data is always at risk. Dave Mitchell explains how cloud services can add extra protection and puts four contenders to the test
Elegoo Saturn 4 Ultra
A brilliant advert for resinbased 3D printing, with a host of features that make it easy to obtain great results
HP All-in-One 27 cr-0014na PC
A speedy and temptingly priced all-in-one PC with a fine 27in display-but note its 1080p resolution