当前位置:   article > 正文

windows powershell+xming可视化服务器应用程序界面_windows xming

windows xming

1.在windwos下载xming并安装:https://sourceforge.net/projects/xming/ xming属于开源,免费软件。 xmanager也很方便,但属于商业软件

2.在windwos打开powershell中输入:setx DISPLAY "localhost:0.0"

3.添加白名单
在Xming的安装目录中,找到X0.hosts文件
添加目标服务器的ip地址

4.在windwos打开xlaunch,配置xming, 只有 No Access Control 一定要勾选,其它默认不变

5.在windwos打开powershell中输入:ssh -Y 用户名@地址 链接远程linux机器(linux机器可以最小安装,不用安装图形界面)。-Y是使用远程图形界面

[root@master ~]# export DISPLAY={windowsIP}:0.0
[root@master ~]# xhost +
access control disabled, clients can connect from any host
[root@master ~]# xclock
Warning: Missing charsets in String to FontSet conversion
[root@master ~]#
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

可以弹出时钟


PS
如果有报错:

CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
  • 1
  • 2
  • 3

则在windwos打开powershell中输入如下命令:

cd / 
mkdir dev 
cd dev 
mkdir tty
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/857305
推荐阅读
相关标签
  

闽ICP备14008679号