Install sur Debian
apt-get install xtightvncviewer
Enable / Disable full screen
Ctrl + Alt + Shift + F
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.
Install
sudo apt-get install tightvncserver
Lancer le serveur
tightvncserver
Au premier lancement, les fichiers suivants serons crées :
Arrêt du serveur
vncserver -kill :1
Le serveur est-il démarré
ps -ef | grep Xtightvnc
Voir logs :
Voir VNC Notes Wayland
https://www.hiroom2.com/2016/05/24/debian-8-remote-connect-to-gnome3-desktop-with-vnc-xrdp/
Le problème viendrait de libfltk
Sur Ultra VNC cocher - Multi viewer connections - Disconnect all existing connections
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
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
Vous pouvez ajouté l'option -listen localhost au serveur x11vnc puis avec le client faire un tunnel SSH. ssvnc fait cela automatiquement.
Solution : supprimer l'option -xkb