After installing the new feature (still "Beta") called Bash on Ubuntu on Windows that is a feature subset of Windows 10 Anniversary edition, I get the following message when trying to start X-Windows using startx :

x-windows subsystem failure on ubuntu

What do I need to tweak / configure in order for X-Windows to launch?

I noticed that xauth was already installed, however I had to install the rest of the framework as follows :

apt-get install xorg openbox
  • @Zanna thank you for the correction. I missed that misspelling of windows (prior : widnows lol). – Kraang Prime Dec 30 '16 at 23:08
  • 1
    :) it's nothing! Hope someone can answer :) – Zanna Dec 30 '16 at 23:10
  • @KraangPrime can you update us on your progress with x-windows on Windows 10 WSL? – WinEunuuchs2Unix Oct 8 '17 at 0:10
  • 1
    @WinEunuuchs2Unix - I haven't tried anything recently. I did notice it is finally available in the Windows Store aka.ms/wslstore [ if on windows that link will prompt to open the Store and display the Linux subsystems available ] after running Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux in PowerShell as Administrator – Kraang Prime Oct 10 '17 at 4:18

You can install Xming.

Use export DISPLAY=:0 or export DISPLAY=localhost:0 and run your app from the console.

  • +1 but there are other x-windows packages that can be used and you can improve your answer with references to them as well. – WinEunuuchs2Unix Oct 8 '17 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.