Et bien c'est pas facile de le faire correctment !

La mauvaise facon c'est xhost +
La bonne c'est d'avoir access au hash d'authentification. C'est une
variable d'enviroment qui est setter par le logging manager.
Regarde la doc de xauth, mais bonne chance.

Pour moi avoir facile je fait
> ps -axf
et je trouve le X server

-->  /etc/X11/X -deferglyphs 16 -nolisten tcp -auth
/var/lib/kdm/authfiles/A:0-imNJTi
Le fichier contenant le cl� est /var/lib/kdm/authfiles/A:0-imNJTi
--> export XAUTHORITY=/var/lib/kdm/authfiles/A:0-imNJTi
puis export DISPLAY=0:0.0
xterm

et voila, j'ai des scripts qui font cela automatiquement

Dominique






|---------+----------------------------->
|         |           "NDV"             |
|         |           <[EMAIL PROTECTED]>  |
|         |           Sent by:          |
|         |           linux-admin@lists.|
|         |           unixtech.be       |
|         |                             |
|         |                             |
|         |           10/09/02 02:10 PM |
|         |           Please respond to |
|         |           linux             |
|         |                             |
|---------+----------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                           |
  |        To:      [EMAIL PROTECTED]                                            
                                           |
  |        cc:      (bcc: Dominique Gallot/BRU/MASTERCARD)                             
                                           |
  |        Subject: [linux] Demarrer xeyes a distance                                  
                                           |
  
>--------------------------------------------------------------------------------------------------------------------------------|




Hello,

V'la ma question de neuneu... J'ai une liaison SSH sur un poste linux
distant.


Je desire demarrer xeyes a l'ecran de l'utilisateur... Comment demmarer
ce truc?

[root@host init.d]# /usr/X11R6/bin/xeyes &
[1] 4446
You have new mail in /var/spool/mail/root
[root@host init.d]# Xlib: connection to "localhost:0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: localhost:0

[1]+  Exit 1                  /usr/X11R6/bin/xeyes
[root@host init.d]#

Pffff :-)

Je suis pas loin du resulat, hein? :-)

Merci a vous,

Nicolas


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[email protected]
IRC: efnet.skynet.be:6667 - #unixtech





_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[email protected]
IRC: efnet.skynet.be:6667 - #unixtech

Répondre à