The Linux subsystem on Windows is an awesome piece of software. I’d been using Cygwin for years, and this completely replaced it in my daily dev-life.
However, it’s sometimes useful to be able to run apps with a GUI. My latest need was to install the Android Studio, if only for the SDK manager. I discovered that you can indeed run an X server on your Windows machine, which made me wonder: could I actually run KDE or XFCE on Windows??
You totally can!
Moreover, the thing is actually usable and seems to perform reasonably well! Even though it’s not widely mentioned as a supported thing, this blew my mind as per how much the whole “Windows Linux” is actually becoming a reality.
There still are some warning, since I don’t have a sound server running - but it’s working!
Install the Linux subsystem on your computer.
- Install an X server. I settled for Xming.
- Setup your
DISPLAYenvironment variable to use
export DISPLAY=:0into your
- Install whatever you want. Say, xfce, go
sudo apt-get install xfce4.
- Start your X server (If you have issues with the windowed option, try restarting Xming with full screen).
- Start xfce (
startxfce4) from your subsystem terminal