Lancement d'application X par ssh.

I) Lancement d'une application X du serveur depuis un ordinateur. 1) Sur le Raspberry :

  • Fichier de configuration : Ouvrir :
/etc/ssh/sshd_config

Chercher :

X11Forwarding

Remplacer par :

X11Forwarding yes
  • Relancer ssh :
[~] ➔ sudo /etc/init.d/ssh restart

2) A partir d'un autre ordinateur :

  • Connexion vers le Raspberry Pi :
[~] ➔ ssh -X pi@192.168.1.11
  • Lancer une application :
[~] ➔ gimp

Gimp s'affiche sur l'écran de l'ordinateur 3) Lien : http://www.cyberciti.biz/tips/running-x-window-graphical-application-over-ssh-session.html II) Lancer une application X sur le serveur à partir d'un ordinateur : 1) Exporter l'affichage :

[~] ➔ export DISPLAY=:0.0
[~] ➔ xhost +localhost
localhost being added to access control list

2) Lancer une application X :

[~] ➔ dillo
paths: creating directory /home/pi/.dillo.
paths: Cannot open file '/home/pi/.dillo/dillorc'
paths: Using /etc/dillo/dillorc
paths: Cannot open file '/home/pi/.dillo/keysrc'
paths: Using /etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Cookies: Created file: /home/pi/.dillo/cookiesrc
Disabling cookies.
Nav_open_url: new url='about:splash'
Dillo: normal exit!

Le navigateur s'affiche sur l'écran du serveur. 3) Lien : http://serverfault.com/questions/142244/how-do-i-start-a-x-application-on-remote-server-over-ssh