malet jean-luc alias cityhunter wrote:

eric a écrit:

malet jean-luc alias cityhunter wrote:

eric a écrit:

Jody wrote:

Bonjour,

eric wrote:
[...]

Je comprends maintenant mieux la différene.
je vais limiter mon besoin à ouvrir une session X à distance donc si je comprends bien je souhaite faire tourner mon appli sur serveur (proto) et deporter sa visualisation sur une machine cliente qui est hp. Je dois donc approfondir l'export de display et ssh -X. me trompe-je? ;)






ssh [EMAIL PROTECTED] ton_appli

Ou pour savoir ce qui se passe, tu te connectes:

ssh [EMAIL PROTECTED]

Ensuite ton terminal est:

[EMAIL PROTECTED]:$

Tu peux executer ton_appli, son affichage suivra, fait tes tests avec une de petite taille de préférence au début, surtout si tu passes par une connection 512k.


--

Jody

Linux-Azur :      http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
**** Pas de message au format HTML, SVP ****


voici une manip propre mas malheureusement problématique
je souhaite de l'export de display sans la couche ssh dans un premier temps j'applique les indications de cette page
http://people.via.ecp.fr/~alexis/formation-linux/export-display.html

[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost +proto
proto being added to access control list
[EMAIL PROTECTED] ssh [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 12:54:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:11.0 -----------------------------------------------------------------------------( que signifie localhost:11.0? 11ème écran?)
[EMAIL PROTECTED]:~$ ps ax | grep X
[EMAIL PROTECTED]:~$ ps ax | grep X
3976 pts/1 R+ 0:00 grep X -----------------------------------------------------(il n'y a aucun serveur X en route sur proto)
[EMAIL PROTECTED]:~$ export DISPLAY=hp:0.0
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0 ----------------------------------------------------------------------------------------( proto semble avoir comprit que je voulais [EMAIL PROTECTED]:~$ startx & afficher X sur le 1er écran de hp)
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority
Using authority file /home/mono/.Xauthority
Writing authority file /home/mono/.Xauthority -------------------------------------------(je n'ai pas compris l'utilité de ce fichier)




ouhlala! tu peux pas faire cela : startx est un script qui lance X qui lui est le serveur X, tu peux pas demander à un serveur X de se connecter à un autre.....
essaie la mm manip avec kwrite au lieu de startx..... par ex



Bonjour,
je n'ai pas grand chose d'installé sur proto, voilà ce que je peux essayer
[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display: hp:0.0
[EMAIL PROTECTED]:~$ mozilla -display: hp:0.0

(mozilla-bin:4690): Gtk-WARNING **: cannot open display:
[EMAIL PROTECTED]:~$ mozilla
[EMAIL PROTECTED]:~$ echo $DISPLAY
hp:0.0

rien ne ce passe de plus ni sur hp ni sur proto

merci pour ton aide ;)

essaie de manière temporaire sans sécurité

$ xhost +
$ ssh -X [EMAIL PROTECTED]
$ echo $DISPLAY
$ xterm

si cela marche pas : vérifie que les noms hp/proto sont bien corrects (ie correspondent bien aux ip des machine dans /etc/hosts)

sinon modifie DISPLAY pour bypasser le DISPLAY de ssh......

cela ressemble vraiment à un pb de xhost....




Linux-Azur :      http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
**** Pas de message au format HTML, SVP ****


YAAAAAHOOOoooo!!!!
y'a quelque chose qui marche!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pas trés securite mais quand même!
ton intution est exacte, j'ai fais comme tu as dis

[EMAIL PROTECTED] xhost +
access control disabled, clients can connect from any host
[EMAIL PROTECTED] ping proto ----------------------------------------------------------- les noms fonctionnent
PING proto.localdomain (192.168.1.6): 56 data bytes
64 bytes from 192.168.1.6: icmp_seq=0 ttl=64 time=0.2 ms
64 bytes from 192.168.1.6: icmp_seq=1 ttl=64 time=0.1 ms

--- proto.localdomain ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 17:00:50 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ xterm ----------------------------------------------------------( miracle ça s'affiche aprés tant d'heures!)
[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] su ----------------------------------------------------------------------(peut être était-ce a cause de root --- vérification)
Password:

En démarrant d'un compte root sur hp
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Linux proto 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Thu Nov 10 17:18:30 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ xterm  \
[EMAIL PROTECTED]:~$ mozilla |-------------------------------------------------------------- tout s'affiche sur hp, super!! [EMAIL PROTECTED]:~$ / Merci! jean luc je vais maintenant rechercher pourquoi xhost me pose problème car xhost + c'est pas top
Mais peut être as tu une idée?
merci encore
eric

Linux-Azur :      http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
**** Pas de message au format HTML, SVP ****

Répondre à