windows使用securecrt+xming通过x11访问ubuntu可视化程序
windows机器IP:192.168.9.133
 ubuntu-desktop20.04机器IP:192.168.9.190
windows下载xming并安装
按照图修改xming配置 开始->xming->Xlaunch 完成xming会在右下角后台运行
 
 
 
 windows在securecrt中打开配置x11地址为127.0.0.1:0.0
 
 ubuntu安装x11组件
 apt-get update
 apt-get install -y x11-apps x11-xserver-utils
修改ssh的x11转发配置并重启服务
 vim /etc/ssh/sshd_config
 X11Forwarding yes
 X11DisplayOffset 10
 X11UseLocalhost yes
 systemctl restart sshd
登陆ubuntu执行 这里DISPLAY的值为windows机器IP
 export DISPLAY=192.168.9.133:0.0
 xhost +
 firefox
如果正常弹出火狐界面 则正常
 
 也可以docker容器执行
 参考
 https://blog.csdn.net/weixin_56291477/article/details/131857032



















