Page 1 sur 1

[Gnome] accès au bureau à distance

Publié : mer. 20 avr. 2016, 12:29
par moumoula
Bonjour à tous;
Voilà, je travaille dans un organisme où nous avons des machines à distance et dont lesquelles nous avons installé Ubuntu 14.04.

Mon souci est bien de gérer le bureau de ces machines depuis mon ordinateur local, pour cela, j'ai suivi les étapes décrites dans le lien https://doc.ubuntu-fr.org/x11vnc

1- J'ai installé sur l'une de ces machines x11vnc via la commande :

Code : Tout sélectionner

sudo apt-get install x11vnc 
2-J'ai généré un fichier password par la commnde :

Code : Tout sélectionner

x11vnc -storepasswd "password" ~/.vnc_passwd
Quand je lance l'interface x11 via la commande :

Code : Tout sélectionner

x11vnc -many -rfbauth ~/.vnc_passwd
J'obtient le résultat suivant:

Code : Tout sélectionner

20/04/2016 08:27:09 passing arg to libvncserver: -rfbauth
20/04/2016 08:27:09 passing arg to libvncserver: /root/.vnc_passwd
20/04/2016 08:27:09 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 3701
20/04/2016 08:27:09 XOpenDisplay("") failed.
20/04/2016 08:27:09 Trying again with XAUTHLOCALHOSTNAME=localhost ...
20/04/2016 08:27:09 
20/04/2016 08:27:09 *** XOpenDisplay failed. No -display or DISPLAY.
20/04/2016 08:27:09 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
20/04/2016 08:27:09 *** 1 2 3 4 
No protocol specified
20/04/2016 08:27:13 XOpenDisplay(":0") failed.
20/04/2016 08:27:13 Trying again with XAUTHLOCALHOSTNAME=localhost ...
No protocol specified
20/04/2016 08:27:13 XOpenDisplay(":0") failed.
20/04/2016 08:27:13 Trying again with unset XAUTHLOCALHOSTNAME ...
No protocol specified
20/04/2016 08:27:13 

20/04/2016 08:27:13 ***************************************
20/04/2016 08:27:13 *** XOpenDisplay failed (:0)

*** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
*** There may be "Xlib:" error messages above with details about the failure.

Some tips and guidelines:

** An X server (the one you wish to view) must be running before x11vnc is
   started: x11vnc does not start the X server.  (however, see the -create
   option if that is what you really want).

** You must use -display <disp>, -OR- set and export your $DISPLAY
   environment variable to refer to the display of the desired X server.
 - Usually the display is simply ":0" (in fact x11vnc uses this if you forget
   to specify it), but in some multi-user situations it could be ":1", ":2",
   or even ":137".  Ask your administrator or a guru if you are having
   difficulty determining what your X DISPLAY is.

** Next, you need to have sufficient permissions (Xauthority) 
   to connect to the X DISPLAY.   Here are some Tips:

 - Often, you just need to run x11vnc as the user logged into the X session.
   So make sure to be that user when you type x11vnc.
 - Being root is usually not enough because the incorrect MIT-MAGIC-COOKIE
   file may be accessed.  The cookie file contains the secret key that
   allows x11vnc to connect to the desired X DISPLAY.
 - You can explicitly indicate which MIT-MAGIC-COOKIE file should be used
   by the -auth option, e.g.:
       x11vnc -auth /home/someuser/.Xauthority -display :0
       x11vnc -auth /tmp/.gdmzndVlR -display :0
   you must have read permission for the auth file.
   See also '-auth guess' and '-findauth' discussed below.

** If NO ONE is logged into an X session yet, but there is a greeter login
   program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need
   to find and use the raw display manager MIT-MAGIC-COOKIE file.
   Some examples for various display managers:

     gdm:     -auth /var/gdm/:0.Xauth
              -auth /var/lib/gdm/:0.Xauth
     kdm:     -auth /var/lib/kdm/A:0-crWk72
              -auth /var/run/xauth/A:0-crWk72
     xdm:     -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk
     dtlogin: -auth /var/dt/A:0-UgaaXa

   Sometimes the command "ps wwwwaux | grep auth" can reveal the file location.

   Starting with x11vnc 0.9.9 you can have it try to guess by using:

              -auth guess

   (see also the x11vnc -findauth option.)

   Only root will have read permission for the file, and so x11vnc must be run
   as root (or copy it).  The random characters in the filenames will of course
   change and the directory the cookie file resides in is system dependent.

See also: http://www.karlrunge.com/x11vnc/faq.html
Et quand je scanne l'@ via la commande nmap :

Code : Tout sélectionner

nmap -PN -p5900 xxx.xxx.xxx.xxx
J'obtient un résultat m'indiquant que le port 5900/vnc est fermé:

Code : Tout sélectionner

[code]Nmap scan report for xxx.xxx.xxx.xxx
Host is up (0.0015s latency).
PORT     STATE  SERVICE
5900/tcp closed vnc

Nmap done: 1 IP address (1 host up) scanned in 0.27 seconds
Pouvez-vous me donner une aide SVP?

Re: [Gnome] accès au bureau à distance

Publié : mer. 20 avr. 2016, 12:49
par waitnsea
Bonjour moumoula,
Tu ne nous dis rien de toi, je crois (crains de) comprendre que ta machine est sous Ubuntu ?

Re: [Gnome] accès au bureau à distance

Publié : mer. 20 avr. 2016, 12:55
par moumoula
La machine distante est une ubuntu 14.04, la machine locale est une Debian 7.

Re: [Gnome] accès au bureau à distance

Publié : mer. 20 avr. 2016, 13:07
par waitnsea
Mais ici nous sommes un forum archlinux et nous fonctionnons tous en archlinux.
Ce n'est pas certain qu'on puisse te répondre, mais inversement tu es quasi-certain d'avoir une réponse sur un forum Ubuntu.

Re: [Gnome] accès au bureau à distance

Publié : mer. 20 avr. 2016, 14:36
par moumoula
Merci waitnsea, j'ai déposé ma question sur ce forum car j'ai trouvé un sujet pareil dont les memebres ont participé et ont proposé mêmes beaucoup de solutions.
Merci quand même pour votre réponse.

Re: [Gnome] accès au bureau à distance

Publié : jeu. 21 avr. 2016, 09:15
par RoyalPanda
Juste pour infos, pourquoi la ligne de commande, vu qu'il y a écrit :
1 - Installation
Installez le paquet x11vnc.

2- Utilisation
Vous pouvez utiliser l'interface graphique de x11vnc disponible maintenant dans votre menu applications.