Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
xvnc [Le 04/11/2012, 16:01] – [Pré-installation] 82.235.142.12 | xvnc [Le 29/04/2020, 20:38] (Version actuelle) – [XVNC - Un Terminal Serveur X par Vnc] 46.255.177.195 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | {{tag> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== XVNC - Un Terminal Serveur X par Vnc ====== | ||
+ | |||
+ | |||
+ | |||
+ | Xvnc est le VNC (Virtual Network Computing) pour serveur X. Il est basé sur un serveur X standard, mais il a un écran " | ||
+ | |||
+ | Pour la comparaison : c'est une alternative à la connexion Terminal Serveur - qui demande moins de ressource processeur et réseau. (A vous de voir les avantages). | ||
+ | |||
+ | Pour les applications, | ||
+ | |||
+ | Par convention, les développeurs Xvnc ont convenu que le nombre de l' | ||
+ | * snoopy:2 pour se référer à l' | ||
+ | |||
+ | <note tip>En cour de traduction et de (re)test...</ | ||
+ | <note important> | ||
+ | |||
+ | |||
+ | ===== Pré-installation ===== | ||
+ | |||
+ | |||
+ | |||
+ | Tout d' | ||
+ | |||
+ | * **TightVNC est plus sûr et plus efficace. Il dispose d'un client java pour se connecter, même avec un simple navigateur. C'est utile quand un blocage firewall/ | ||
+ | * Vino - installé dans Ubuntu par défaut. Il est gourmand en ressource et en réseau. | ||
+ | |||
+ | * RealVNC n'est pas vraiment recommandé - Voir XF4VNC plus bas. | ||
+ | * [[X11VNC]] | ||
+ | * XF4VNC devrait se montrer plus efficace et plus sûr que RealVNC. Il supporte également les extensions GLX, ce que TightVNC ne fait pas (à vérifier dans les dernières versions). | ||
+ | |||
+ | Le fonctionnement de Xvnc peut nécessiter l' | ||
+ | |||
+ | et aussi : < | ||
+ | |||
+ | La partie serveur VNC est contrôlée par le drapeau "Use flag", qu'on peut donc activer pour le packet approprié. | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | ==== TightVNC (conseillé) ==== | ||
+ | |||
+ | [[apt> | ||
+ | |||
+ | Fonctionnera également dans un navigateur web - avec java. | ||
+ | |||
+ | |||
+ | |||
+ | ==== X11Vnc (conseillé)==== | ||
+ | |||
+ | [[apt> | ||
+ | |||
+ | ====Vino ==== | ||
+ | Voir la page [[:Vino]] pour plus de détails. | ||
+ | |||
+ | |||
+ | ===== Post-installation : Mot de passe Serveur ===== | ||
+ | |||
+ | Une fois terminé, cela devrait vous donner quatre programmes vnc connexes : vncconnect, vncserver, vncpasswd, et vncviewer. | ||
+ | |||
+ | Ce n' | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | Nous ne sommes déjà loin de la fin, mais vous pouvez facilement tester votre nouvelle installation de VNC en démarrant votre serveur VNC. | ||
+ | |||
+ | < | ||
+ | |||
+ | Vous serez invité à entrer un mot de passe pour les clients (VNC viewer), alors allez-y. Ensuite, vous serez invité à entrer un mot de passe pour les clients "view only", ce qui signifie qu'ils peuvent voir le bureau mais ne peuvent pas interagir avec lui. Sympathique pour des démonstrations ! Après avoir saisi le mot de passe, l' | ||
+ | |||
+ | Voici ce que vous verrez : | ||
+ | < | ||
+ | |||
+ | 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)? y | ||
+ | Password: | ||
+ | Warning: password truncated to the length of 8. | ||
+ | Verify: | ||
+ | Found / | ||
+ | |||
+ | New ' | ||
+ | |||
+ | Creating default startup script / | ||
+ | Starting applications specified in / | ||
+ | Log file is / | ||
+ | </ | ||
+ | |||
+ | ===== Tester votre serveur VNC ===== | ||
+ | |||
+ | Testez le serveur VNC :< | ||
+ | |||
+ | Cela permettra d' | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | Mais c'est un début, et il prouve que vous avez fait un grand pas de plus sur le bureau X à distance. Si vous voulez une autre résolution ou une couleur de fond, il suffit d' | ||
+ | |||
+ | < | ||
+ | Nous allons faire une configuration complète - c'est à dire - avec beaucoup de possibilité - résolution et nombre de bit. | ||
+ | |||
+ | Vous pouvez sélectionner ce dont vous avez besoin. | ||
+ | |||
+ | N' | ||
+ | |||
+ | * Dans le cas ou vous voulez router directement de l' | ||
+ | * Ou dans le cas du [[vpn]] ou [[ssh]], voir par la suite. | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Si vous vous connectez depuis une machine Windows, il suffit d' | ||
+ | |||
+ | Si vous avez installé tightvnc (java) vous pouvez vous connecter par navigateur à http:// | ||
+ | |||
+ | ===== Connexion automatique du Serveur Vnc ===== | ||
+ | ==== Xinetd ==== | ||
+ | |||
+ | Xinetd est utilisé pour lancer automatiquement un serveur VNC sur l' | ||
+ | |||
+ | * Installer [[apt> | ||
+ | |||
+ | Il y a plusieurs façons de permettre à xinetd d' | ||
+ | |||
+ | * Modifier / | ||
+ | |||
+ | Pour ouvrir les connexions à tous (peut poser des problèmes de sécurité) mettre un # devant la ligne : < | ||
+ | |||
+ | * Si vous voulez seulement l' | ||
+ | < | ||
+ | |||
+ | * Pour une interface donné, vous pouvez spécifier l'IP de cette interface : | ||
+ | < | ||
+ | |||
+ | Exemple de fichier (pour découvrir d' | ||
+ | < | ||
+ | { | ||
+ | instances = 60 | ||
+ | log_type = SYSLOG authpriv | ||
+ | log_on_success = HOST PID | ||
+ | log_on_failure = HOST | ||
+ | cps = 25 30 | ||
+ | } | ||
+ | includedir / | ||
+ | |||
+ | </ | ||
+ | |||
+ | Le [[http:// | ||
+ | |||
+ | ==== Ajouter les Services ==== | ||
+ | |||
+ | 1. [[: | ||
+ | < | ||
+ | # | ||
+ | # VNC Servers | ||
+ | # | ||
+ | vnc-640x480x8 5950/tcp | ||
+ | vnc-800x600x8 5951/tcp | ||
+ | vnc-1024x768x8 5952/tcp | ||
+ | vnc-1280x1024x8 5953/tcp | ||
+ | vnc-1600x1200x8 5954/tcp | ||
+ | |||
+ | vnc-640x480x16 5960/tcp | ||
+ | vnc-800x600x16 5961/tcp | ||
+ | vnc-1024x768x16 5962/tcp | ||
+ | vnc-1280x1024x16 5963/tcp | ||
+ | vnc-1600x1200x16 5964/tcp | ||
+ | |||
+ | vnc-640x480x24 5970/tcp | ||
+ | vnc-800x600x24 5971/tcp | ||
+ | vnc-1024x768x24 5972/tcp | ||
+ | vnc-1280x1024x24 5973/tcp | ||
+ | vnc-1600x1200x24 5974/tcp | ||
+ | |||
+ | vnc-640x480x32 5980/tcp | ||
+ | vnc-800x600x32 5981/tcp | ||
+ | vnc-1024x768x32 5982/tcp | ||
+ | vnc-1280x1024x32 5983/tcp | ||
+ | vnc-1600x1200x32 5984/tcp | ||
+ | |||
+ | </ | ||
+ | |||
+ | 2. [[: | ||
+ | |||
+ | Et ajouter : | ||
+ | * Si vous avez choisi **Tightvnc** : | ||
+ | < | ||
+ | service vnc-640x480x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | * Si vous avez choisi un autre serveur **vnc** : | ||
+ | < | ||
+ | service vnc-640x480x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x8 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x16 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x24 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-640x480x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-800x600x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1024x768x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1280x1024x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | service vnc-1600x1200x32 | ||
+ | { | ||
+ | | ||
+ | | ||
+ | wait = no | ||
+ | user = nobody | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Comme vous pouvez le voir, nous utilisons l' | ||
+ | |||
+ | ===== Configurer le gestionnaire de connexion (XDMCP) ===== | ||
+ | |||
+ | |||
+ | Faisons la prochaine étape, configurez le gestionnaire de connexion. Une fois connecté, l' | ||
+ | |||
+ | SI vous souhaitez autoriser les connexions anonymes, l' | ||
+ | |||
+ | < | ||
+ | sudo usermod -s /bin/bash nobody | ||
+ | </ | ||
+ | |||
+ | Si vous utilisez kdm, aucune modification n'est nécessaire pour l' | ||
+ | |||
+ | < | ||
+ | |||
+ | Vous pourriez vouloir vous assurer que vous avez défini xsession : < | ||
+ | |||
+ | Pour KDE ajouter : < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Définir l' | ||
+ | |||
+ | |||
+ | Pour éviter un problème où vous pouvez vous connecter, mais par la suite vous n'avez qu'un écran noir, éditer le fichier | ||
+ | et vérifiez que les lignes suivantes sont commentées (ont # devant): | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | ===== Redémarrer les services ===== | ||
+ | < | ||
+ | Note: gdm restart mettra fin à votre session X. Remplacer gdm, par kdm, xdm ...</ | ||
+ | < | ||
+ | sudo / | ||
+ | sudo / | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Tester la Configuration ===== | ||
+ | |||
+ | |||
+ | =====Tunneling via SSH ===== | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | - En partant du principe le serveur vncserver sur l' | ||
+ | - Sur le client vous pouvez lancer cette commande : '' | ||
+ | < | ||
+ | ssh -f -N -L localPort: | ||
+ | </ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Plutôt que de répéter l' | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Liens ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[: | ||
+ | * [[http:// | ||
+ | |||