I am using the native Ubuntu terminal in Windows 10, and am trying to export display while using SSH to connect to a remote server. I have XMing installed on the Windows PC, which works on the local Ubuntu after using
export DISPLAY=:0. However when I ssh and try to open any display, I get the error below after a long pause:
** (gedit:9813): CRITICAL **: log.vala:104: Unable to connect to Zeitgeist: Could not connect: Connection refused (gedit:18368): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused ** (gedit:18368): CRITICAL **: Unable to connect to Zeitgeist's DataSourceRegistry: Could not connect: Connection refused
Does anyone have any ideas to fix this?
Edit: The way I connect to the remote server is
ssh -X username@IP. The server is on Ubuntu 14.04 LTS, and if I use this command from another PC on Ubuntu it works perfectly without needing the
export DISPLAY=:0 command.
However when I ssh using that same command from by Windows 10 subsystem terminal I can connect, but one of two issues occurs. If I do not use
export DISPLAY=:0 command, but just call
gedit I get the errors below:
connect /tmp/.X11-unix/X0: No such file or directory connect /tmp/.X11-unix/X0: No such file or directory ** (gedit:10254): WARNING **: Could not open X display connect /tmp/.X11-unix/X0: No such file or directory connect /tmp/.X11-unix/X0: No such file or directory (gedit:10254): Gtk-WARNING **: cannot open display: localhost:25.0
Otherwise if I use the export display ccommand first, I get the errors from the original post.