CentOS では、セキュリティの観点からデフォルトでは、Xのリモートアクセスを禁止しているため、設定の変更が必要。
- /etc/gdm/custom.conf の修正
# GDM configuration storage
[daemon]
DisallowTcp=false 一行追加
- /usr/share/gdm/gdm.schemas の修正
<schema>
<key>security/DisallowTCP<key>
<signature>b<signature>
<default>false<default> true を false に
</schema>
- システム再起動
# shutdown -r now
- 確認
Xサーバー側(ディスプレイ表示側 10.20.141.6)
h006# netstat -antp |grep :6000
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 5108/X
tcp6 0 0 :::6000 :::* LISTEN 5108/X
h006# xhost +10.20.141.10
10.20.141.10 being added to access control list
Xクライアント側(アプリ起動側 10.20.141.10)
h010$ xeyes -display 10.20.141.6:0
☞X リモート接続