376
Programmes et logiciels / Re : xhost
Leap(192.168.0.77) -- Virtual-Ubuntu(192.168.0.208)
Préparation:
Sur Leap,
1) j'ai changé ces deux lignes dans /etc/sysconfig/displaymanager:
DISPLAYMANAGER_REMOTE_ACCESS="yes"
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"
2) j'ai ouvert le port 6000
3) J'ai redémarré.
Sur Ubuntu,
je n'ai rien fait, sinon vérifié le status du parefeu: inactif.
===============================================
Ensuite j'ai configuré les autorisations de xhost.
Chez Leap (j'ai autorisé tous les clients à se connecter au serveur X de Leap, et dans le doute j'ai aussi ajouté l'IP d'Ubuntu -> la 208):
Code: [Sélectionner]
thierry@toto-PC:~> xhost
access control enabled, only authorized clients can connect
thierry@toto-PC:~> xhost +
access control disabled, clients can connect from any host
thierry@toto-PC:~> xhost 192.168.0.208
192.168.0.208 being added to access control list
thierry@toto-PC:~> xhost
access control disabled, clients can connect from any host
INET:ubuntu
thierry@toto-PC:~> echo $DISPLAY
:0
Chez Virtual-Ubuntu: (J'ai autorisé tous les clients à se connecter au serveur X d'Ubuntu, en particulier l'IP de Leap -> la 77)
Code: [Sélectionner]
thierry@thierry-VirtualBox:~$ xhost
access control enabled, only authorized clients can connect
SI:localuser:thierry
thierry@thierry-VirtualBox:~$ xhost + 192.168.0.77
192.168.0.77 being added to access control list
thierry@thierry-VirtualBox:~$ xhost +
access control disabled, clients can connect from any host
thierry@thierry-VirtualBox:~$ xhost
access control disabled, clients can connect from any host
INET:toto-PC
SI:localuser:thierry
thierry@toto-PC:~> echo $DISPLAY
:0
============================
Et là c'est le drame !
De ma Leap:
thierry@toto-PC:~> xeyes -display 192.168.0.208:0
Error: Can't open display: 192.168.0.208:0
D'Ubuntu:
thierry@thierry-VirtualBox:~$ xeyes -display 192.168.0.77:0
Error: Can't open display: 192.168.0.77:0
===============================
Je me mélange un peu entre serveur client… Je ne sais pas trop d'où vient le problème.