使用MobaXterm开启Ubuntu后,ncview打开文件时报错:
MoTTY X11 proxy: Unsupported authorisation protocol
Error: Can't open display: localhost:10.0
在~/.bashrc中加入:
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
source ~/.bashrc
问题解决~
参考:https://stackoverflow.com/questions/63246287/configure-xming-display-on-wsl2
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)