Sample Header Ad - 728x90

Ubuntu on Windows Powershell "Can't open display"

1 vote
1 answer
3197 views
I'm running Ubuntu 18.04 on Windows Powershell on Windows 10. I installed XMing and PuTTY and configured them so that X11 forwarding is turned on. After all this, and installing x11-apps and running xeyes, it tells me "Error: Can't open display: 0.0". I tried changing the DISPLAY to 0 and 'localhost:0.0, but nothing. I installed several packages, many of which will probably end of being unnecessary. I've tried just about everything in the responses both of these questions: https://unix.stackexchange.com/questions/67111/x-cant-open-display-0-while-display-variable-is-correct?newreg=2fece9554c164efd90a2726a9c526fb5 https://unix.stackexchange.com/questions/1596/can-i-launch-a-graphical-program-on-another-users-desktop-as-root , but who | awk -v user="$target_user" '$1 == user && $2 ~ "^:" {print $2}' returns nothing and xhost + gives me the same display error. I tried various configuration files such as xauth, /etc/X11/Xwrapper.config. It might be important to note that xinit returns the fatal error no screens found and /var/log/Xorg.0.log shows many errors dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory) open /dev/dri/card0: No such file or directory open /dev/fb0: No such file or directory No devices detected. I need to be able to use image tools like ds9 for my research and have been unable to do so, so any help would be very much appreciated.
Asked by messick (11 rep)
Dec 6, 2020, 12:16 AM
Last activity: Jul 7, 2025, 12:08 AM