1、windows安裝xServer端,本例使用Xming X64,下載地址如下:
https://xming.en.softonic.com/
2、默認安裝Xming,安裝過程不再贅述,安裝完成後打開Xlauch並配置如下:
3、RHEL7.5安裝x11
yum install -y xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps
4、打開 X11 Fowarding
grep -i X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes //顯示yes即可,如果值為no則 vi /etc/ssh/sshd_config修改為yes
5、設置轉發到Windows Xserver(即Xming)
[root@localhost ~]# xhost + 66.0.3.83 // 66.0.3.83為xming所在計算機IP地址
66.0.3.83 being added to access control list
[root@localhost ~]# xhost
access control disabled, clients can connect from any host
INET:66.0.3.83
INET:192.168.231.1
LOCAL:
INET:localhost
或者修改用戶bash_profile文件添加:
export DISPLAY=66.0.3.83:0 // 66.0.3.83為xming所在計算機IP地址
6、驗證
RHEL7.5運行命令 xclock,Windows可以彈出時鐘即可。
[root@localhost ~]# xclock
閱讀更多 Gorjing 的文章