当前位置:   article > 正文

使用securecrt+xming通过x11访问ubuntu可视化程序_在secure crt运行x11 window

在secure crt运行x11 window

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/316856
推荐阅读
相关标签
  

闽ICP备14008679号