TransWikia.com

Running WSL on Windows 10, GUIs will not display

Ask Ubuntu Asked by catsMagee on December 11, 2020

I’m trying to run WSL Ubuntu on my Windows 10 PC. I have Ubuntu and Xming installed, and have been trying to run gedit on the WSL. I’ve done the same basic installation thats common for Xming and WSL, I’ve updated WSL multiple times, and still no success.

My process was generally:

  1. Install WSL
  2. Install Xming
  3. Run Xming via Xlaunch with basic setup
  4. export DISPLAY=:0.0 (I’ve tried numerous variations of this)
  5. Install gedit
  6. Run gedit

The error I get is:

”’Unable to init server: Could not connect: Connection refused

(gedit:44): Gtk-WARNING **: 19:47:20.284: cannot open display: :0.0”’

Please help, I’m at my wits end.

UPDATE:
I reinstalled it and realized that the WSL version was WSL 2, so setting it to WSL 1 fixed the problem.

One Answer

The fix I had to do was change it to WSL 1. That’s the whole issue I had, because I didn’t know WSL 2 was setup by default for Ubuntu. For anyone else who might have this problem, make sure to always check the version.

Answered by catsMagee on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP