Autre article en rapport avec le contrôle à distance du Raspberry avec TeamViewer: https://informatique-beaujolaise.blogspot.fr/2017/09/controler-distance-un-raspberry-pi-3.html
1) Installation de Tightvncserver sur Raspberry Pi :
sudo apt-get update sudo apt-get upgrade pi@raspberrypi ~ $ sudo apt-get install tightvncserver
2) Premier lancement du serveur:
- Choisir un mdp de 8 caractères
utilisé pour l’accès distant
- Puis répondre "n" à la question : "
view-only password"
:
pi@raspberrypi ~ $ tightvncserver You will require a password to access your desktops. Password: Warning: password truncated to the length of 8. Verify: Would you like to enter a view-only password (y/n)? n New 'X' desktop is raspberrypi:1 Creating default startup script /home/pi/.vnc/xstartup Starting applications specified in /home/pi/.vnc/xstartup Log file is /home/pi/.vnc/raspberrypi:1.log pi@raspberrypi ~ $
3) Pour les lancements suivants, le mdp n'est plus demandé:
pi@raspberrypi ~ $ vncserver :1 New 'X' desktop is raspberrypi:1 Starting applications specified in /home/pi/.vnc/xstartup Log file is /home/pi/.vnc/raspberrypi:1.log pi@raspberrypi ~ $
4) Installation de TightVNC Viewer sur le PC.
- Lors de l'installation vous pouvez décocher l'installation du serveur, car seul le Viewer vous est utile.
- Lien de téléchargement de TightVNC : http://www.tightvnc.com/download.php
5) Lancer TightVNC Viewer depuis le PC:
6) Création du service sous systemd :
Lancement de VNC Server au démarrage du Rapsberry :