Outils pour utilisateurs

Outils du site


tech:notes_vnc

Ceci est une ancienne révision du document !


Notes VNC

Voir aussi :

  • ssvnc (VNC sécurisé)
  • xdmcp (Autre protocole)

Alternatives :

Client TightVNC

Install sur Debian

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
[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

sudo apt-get install tightvncserver

Lancer le serveur

tightvncserver

Au premier lancement, les fichiers suivants serons crées :

  • ~/.vnc/xstartup
  • ~/.vnc/passwd

Arrêt du serveur

vncserver -kill :1

Le serveur est-il démarré

ps -ef | grep Xtightvnc

Voir logs :

  • ~/.xsession-errors
  • ~/.vnc/*.log

Wayland

Voir VNC Notes Wayland

Pb

Erreur : Oh no! Something has gone wrong

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

x11vnc -storepasswd P@ssw0rd ~/.vnc/passwd

Exemple

#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
[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

tech/notes_vnc.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki