Différences entre versions de « Vnc »
Aller à la navigation
Aller à la recherche
| Ligne 32 : | Ligne 32 : | ||
Log file is /home/jack/.vnc/poseidon:1.log | Log file is /home/jack/.vnc/poseidon:1.log | ||
[ OK ] | [ OK ] | ||
| + | </pre> | ||
| + | |||
| + | == Vérification == | ||
| + | On s'assure que le service fonctionne comme attendu | ||
| + | <pre> | ||
| + | # netstat -atnp | grep vnc | ||
| + | tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 6272/Xvnc | ||
| + | tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 6272/Xvnc | ||
| + | tcp 0 0 :::6001 :::* LISTEN 6272/Xvnc | ||
</pre> | </pre> | ||
Version du 20 février 2014 à 20:49
Introduction
Installation
# yum install tigervnc-server
Déploiement du service
Création d'un compte utilisateur
Il faut créer un utilisateur qui va nous permettre de nous connecter à la machine (plus d'info ici).
Dans cette exemple nous allons utiliser l'utilisateur jack.
Configuration du serveur
Dans le fichier /etc/sysconfig/vncservers ajoutez les lignes suivantes
VNCSERVERS="1:jack" VNCSERVERARGS[1]="-geometry 1280x1024"
- VNCSERVERS → permet d'assigner une session VNC à un compte (eg. VNCSERVERS="1:jack 2:julie 3:gertrude")
- VNCSERVERARGS[X] → permet de spécifier des options pour la session X
Démarrage
# service vncserver start
Démarrage de Serveur VNC : 1:jack
New 'poseidon:1 (jack)' desktop is poseidon:1
Creating default startup script /home/jack/.vnc/xstartup
Starting applications specified in /home/jack/.vnc/xstartup
Log file is /home/jack/.vnc/poseidon:1.log
[ OK ]
Vérification
On s'assure que le service fonctionne comme attendu
# netstat -atnp | grep vnc tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 6272/Xvnc tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 6272/Xvnc tcp 0 0 :::6001 :::* LISTEN 6272/Xvnc
Enregistrement dans le chargeur de démarrage
# chkconfig vncserver on