I'm a windows 10 user ..and I like to use Ubuntu in windows..so I choose wsl 2 and I don't know nothing about wsl 1 & 2 ..can anyone please help me on this wsl2 and configuration . And also how to run Linux GUI apps on windows using WSL2

  • 1
    WSL is not for running graphical apps.
    – user880592
    Jun 26, 2019 at 17:53

1 Answer 1



export DISPLAY=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'`:0

to your ~/.bash_profile

Then install a Xwindow Server on your windows host and allow the server to listen remotely. You will be able to run a GUI app after that.

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