使用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