Xshell调用图形工具

2022/2/11 7:16:51

本文主要是介绍Xshell调用图形工具,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

使用xshell显示调用图形

前提

Xmanager - Passive工具必须存在,xclock会自动调用Xmanager - Passive。并在打开Xmanager  Server:0.0

 

  

安装依赖包

yum -y install xorg-x11-xauth

修改文件/etc/ssh/sshd_config

XAuthLocation /bin/xauth     # 以which xauth路径为准

X11Forwarding yes

X11UseLocalhost no

重启服务

#systemctl restart sshd

 

测试调用图形xclock

 yum -y install xclock

  注: 需重新ssh 连接,并且只能以连接的用户调用xclock

   

 若是依然调用不了,配置客户端X11转发,当前会话默认属性 

 

 

使用mobaxtrem显示centos上的图形工具

需安装相关依赖:

yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 firefox

注:失败则自己声明Xmanager  Server:0.0地址

#export DISPLAY=10.0.0.1:0.0

开启标志

 



这篇关于Xshell调用图形工具的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程