AnswerBun.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!

Related Questions

resolv.conf mismatch netplan configuration

2  Asked on November 26, 2021 by il_mix

     

Blank Nvidia server settings in Kubuntu 20.04

0  Asked on November 26, 2021 by rhitabratakarar

         

Ubuntu 20.04 – Kodi full screen issue

0  Asked on November 26, 2021 by powertoola

         

Cursor problems

0  Asked on November 23, 2021 by james-the-seeker

     

Command not found + white terminal

1  Asked on November 23, 2021 by florentin

   

Unblocking hardware switch WiFi

1  Asked on November 23, 2021

 

Why the Ubuntu 16.04 LTS is till 2020-2022 and not just 2022?

1  Asked on November 23, 2021 by arcticooling

   

VirtualBox wrong screen resolution

1  Asked on November 23, 2021 by edoo

   

Can’t install mysql on Ubuntu 18.04, 404 not found

2  Asked on November 23, 2021 by dank144

 

Kubuntu Alt+F2 broken after 20.04 upgrade

2  Asked on November 23, 2021

   

Random Freezing on Ubuntu MATE 20.04

0  Asked on November 23, 2021 by gabe-roles

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP