Member-only story
“Error E233: cannot open display” — WSL 2: Run Graphical Linux Desktop Applications from Windows 10 Bash Shell
windows ubuntu windows-subsystem-for-linux xserver xming
2 min readOct 6, 2021
Error:
E233: cannot open display
Press ENTER or type command to continue
E852: The child process failed to start the GUI
Press ENTER or type command to continue
Solution:
The networking subsystem in WSL2 is different than the used in WSL1. You must consider the differences to access networking apps running on Windows and on Linux:
- In WSL1, Linux uses the same IP addresses than the Windows host, then, you can access the applications using
localhost
or127.0.0.1
- In WSL2, Linux runs on a lightweight virtual machine and has a different IP address. To access networking apps running on the Windows Host you must use the Windows IP address.
Checking the IP address of the Windows host
There are many ways to determine the IP addresses in the Windows host. You may run the following commands in your WSL Linux:
cat /etc/resolv.conf
shows the IP address of theeth0
interface in Windowsipconfig.exe
shows the all the IP configuration in the Windows hostroute.exe print
shows the network routing configuration in the Windows host