{{tag>Brouillon X11}} # Notes VNC Voir aussi : * [ssvnc](http://www.karlrunge.com/x11vnc/ssvnc.html) (VNC sécurisé) * xdmcp (Autre protocole) Alternatives : * ## Client TightVNC Install sur Debian ~~~bash apt-get install xtightvncviewer ~~~ Enable / Disable full screen \ Ctrl + Alt + Shift + F ## Client SSVNC (TightVNC over SSH SSL/TLS) Exemple de conf VNC over SSH | | | | ------------------ | --------------------- | | VNC Host Display | juan@192.168.10.4 | | Proxy/Gateway | | | Remote SSH Command | ssh juan@127.0.0.1 | | Use SSH | ✓ | `profiles/192.168.10.4.vnc` ~~~ini [connection] host=process@192.168.10.4 cmd=ssh juan@127.0.0.1 port=5900 proxyhost= proxyport= disp=process@192.168.10.4 cmd=ssh juan@127.0.0.1 [options] use_ssh=1 use_ssl=0 ~~~ **Notes : ** l'adresse IP utilisée pour se connecter en SSH est bien 192.168.10.4. ## Serveur TightVNC Install ~~~bash sudo apt-get install tightvncserver ~~~ Lancer le serveur ~~~bash tightvncserver ~~~ Au premier lancement, les fichiers suivants serons crées : * ~/.vnc/xstartup * ~/.vnc/passwd Arrêt du serveur ~~~bash vncserver -kill :1 ~~~ Le serveur est-il démarré ~~~bash ps -ef | grep Xtightvnc ~~~ Voir logs : * ~/.xsession-errors * ~/.vnc/*.log ### Wayland Voir VNC [[Notes Wayland]] ### Pb #### Erreur : Oh no! Something has gone wrong https://www.hiroom2.com/2016/05/24/debian-8-remote-connect-to-gnome3-desktop-with-vnc-xrdp/ Le problème viendrait de libfltk #### vnc Failed to recv data from socket Sur Ultra VNC cocher - **Multi viewer connections** - **Disconnect all existing connections** #### Xlib: extension "DPMS" missing on display Cela peut venir si vous lancer un server VNC sous Wayland Une solution est de désactiver Wayland Voir Désactiver Wayland et repasser à Xorg [[Notes Wayland]] ## Serveur x11vnc Voir https://doc.ubuntu-fr.org/x11vnc ~~~bash x11vnc -storepasswd P@ssw0rd ~/.vnc/passwd ~~~ Exemple ~~~bash #x11vnc -noxrecord -noxfixes -noxdamage -display :0 -usepw -forever x11vnc -noxrecord -noxfixes -noxdamage -usepw -forever -viewonly -no6 -noipv6 -notruecolor -nolookup -nodragging -nevershared ~~~ ~~~ -viewonly -tightfilexfer -ultrafilexfer -nopw -unixpw ~~~ Le fichier si existe sera automatiquement exécuté : \ `$HOME/.x11vncrc` `~/.config/autostart/x11vnc.desktop` ~~~ini [Desktop Entry] Type=Application Name=x11vnc Exec=x11vnc -noxrecord -noxfixes -noxdamage -usepw -forever -viewonly -no6 -noipv6 -notruecolor -nolookup -nodragging -nevershared -tightfilexfer -listen localhost ~~~ ### Sécurité Vous pouvez ajouté l'option `-listen localhost` au serveur x11vnc puis avec le client faire un tunnel SSH. ssvnc fait cela automatiquement. ### Pb pas de pavé numérique Solution : supprimer l'option `-xkb`