我希望能够在我的 Windows 10 机器上使用 gedit,但我无法让我的 Ubuntu20.04 LTS 应用程序通过我的 xming 服务器打开任何显示器。
我知道 Xming 服务器已设置,因为它显示在我的任务栏的左下角,当我将鼠标悬停在它上面时,它会显示“Xming 服务器:0.0”。我已经尝试了这些命令来导出我的显示:
- export DISPLAY="`grep nameserver /etc/resolv.conf | sed 's/nameserver//'`:0"
- export DISPLAY=:0
- export DISPLAY=0.0
但是当我尝试运行 gedit 时,它总是会抛出这样的错误
Unable to init server: Could not connect: Connection refused
(gedit:511): Gtk-WARNING **: 12:44:04.133: cannot open display: :0.0
除了12:44:04.133
地址每次都变化,显示随着变量的变化而变化。
是否还有其他需要配置的东西我错过了,或者这可能是网络问题?任何帮助,将不胜感激。