[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vnc+gdm+xinetd



On Tue, Apr 25, 2006 at 04:12:51PM +0000, crstn mtchll wrote:
> El 25/04/06, Ferran Donadie<ferrandonadie@yahoo.co.uk> escribió:
> > On Tue, Apr 25, 2006 at 03:00:03PM +0000, crstn mtchll wrote:
> > > El 25/04/06, Ferran Donadie<ferrandonadie@yahoo.co.uk> escribió:
> > > > On Tue, Apr 25, 2006 at 01:35:40PM +0000, crstn mtchll wrote:
> > > > > proba asi y me desis que pasa
> > > > >
> > > > > xvncviewer ip-del-server:1
> > > >
> > > > Así es como lo estoy probando y por menos de un segundo se
> > > > abre la ventan gris de X, pero se cierra al momento sin ver
> > > > la ventade de logeo de gdm.
> > > >
> > > > >
> > > > > el xdmcp no hace falta que este habilitado por que al gdm no accedes
> > > > > en forma remota y por seguridad mejor cerrado
> > > > >
> > > > en este caso si que es necesario que este habilitado porque
> > > > vncserver me va a presentar la pantalla de logeo de gdm
> > > >
> > > > http://linuxreviews.org/howtos/xvnc/
> > > >
> > > > 3.3. gdm
> > > > Start gdmconfig and find the tab "XDCMP". Make sure 'Enable
> > > > XDMCP' is selected.
> > > >
> > > > :) gracias de todas formas
> > > >
> > > > > 2006/4/24, Ferran Donadie <ferrandonadie@yahoo.co.uk>:
> > > > > > Hola a todos,
> > > > > >
> > > > > > estoy intentando montar un servidor al que me pueda conectar por VNC,
> > > > > > y al que me logueare por GDM.
> > > > > > A mi me parece que todo esta en orden, pero no lo consigo levantar,
> > > > > > cuando intento conectarme con vncviewer desde el ordenador remoto,
> > > > > > se me abre una ventana pero al momento se me cierra, con este mensaje:
> > > > > >
> > > > > > VNC Viewer Free Edition 4.1.1 for X - built Feb 25 2006 13:11:14
> > > > > > Copyright (C) 2002-2005 RealVNC Ltd.
> > > > > > See http://www.realvnc.com for information on VNC.
> > > > > >
> > > > > > Mon Apr 24 23:16:37 2006
> > > > > > CConn:       connected to host 192.168.2.8 port 5900
> > > > > > CConnection: Server supports RFB protocol version 3.8
> > > > > > CConnection: Using RFB protocol version 3.8
> > > > > > TXImage:     Using default colormap and visual, TrueColor, depth 24.
> > > > > > CConn:       Using pixel format depth 6 (8bpp) rgb222
> > > > > > CConn:       Using ZRLE encoding
> > > > > >
> > > > > > Mon Apr 24 23:16:38 2006
> > > > > > main:        End of stream
> > > > > >
> > > > > > Este es syslog que aparece cuando intento conectarme con vncviewer:
> > > > > >
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: Handling message: 'GREETPID 893 900'
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: Got GREETPID == 900
> > > > > > Apr 24 23:20:51 spx-dev gdm[893]: term_quit: Final cleanup
> > > > > > Apr 24 23:20:51 spx-dev gdm[893]: gdm_slave_quick_exit: Will kill everything from the display
> > > > > > Apr 24 23:20:51 spx-dev gdm[893]: gdm_slave_quick_exit: Killed everything from the display
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: mainloop_sig_callback: Got signal 17
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: gdm_cleanup_children: child 893 returned 65
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: gdm_child_action: In remanage
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: gdm_display_unmanage: Stopping spx-dev:1 (slave pid: 0)
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: gdm_display_dispose: Disposing spx-dev:1
> > > > > > Apr 24 23:20:51 spx-dev gdm[739]: gdm_display_unmanage: Display stopped
> > > > > >
> > > > > >
> > > > > > Este es /etc/X11/gdm/gdm.conf
> > > > > >
> > > > > > # NOTE: Lines that begin with "#" are considered comments.
> > > > > > #
> > > > > > # Have fun!
> > > > > >
> > > > > > [daemon]
> > > > > > GtkModulesList=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libkeymouselistener:/usr/lib/gtk-2.0/modules/libdwellmouselistener
> > > > > > AddGtkModules=true
> > > > > >
> > > > > > [security]
> > > > > > DisallowTCP=false
> > > > > > AllowRoot=true
> > > > > > AllowRemoteRoot=true
> > > > > >
> > > > > > [xdmcp]
> > > > > > Enable=true
> > > > > > [gui]
> > > > > >
> > > > > > Este es mi /etc/services
> > > > > >
> > > > > > # Local services
> > > > > > #
> > > > > > # VNC Servers
> > > > > >
> > > > > > vnc-800x600    5900/tcp
> > > > > >
> > > > > > vnc-1024x768   5901/tcp
> > > > > >
> > > > > >
> > > > > >
> > > > > > este es el archivo de configuración de xinetd
> > > > > >
> > > > > > service vnc-800x600
> > > > > > {
> > > > > >   only_from   = 192.168.2.0
> > > > > >   disable     = no
> > > > > >   socket_type = stream
> > > > > >   protocol    = tcp
> > > > > >   wait        = no
> > > > > >   user        = nobody
> > > > > >   server      = /usr/bin/Xvnc4
> > > > > >   server_args = -inetd -query localhost -geometry 800x600 -depth 24 -fp unix/:7100 -once securitytypes=none
> > > > > > }
> > > > > >
> > > > > > El servidor es una debian Sid y esta es la salida de netstat -l
> > > > > >
> > > > > > Active Internet connections (only servers)
> > > > > > Proto Recv-Q Send-Q Local Address           Foreign Address         State
> > > > > > tcp        0      0 *:vnc-800x600           *:*                     LISTEN
> > > > > > tcp        0      0 *:vnc-1024x768          *:*                     LISTEN
> > > > > > tcp        0      0 *:x11                   *:*                     LISTEN
> > > > > > tcp        0      0 *:ssh                   *:*                     LISTEN
> > > > > > tcp        0      0 spx-dev:6010            *:*                     LISTEN
> > > > > > udp        0      0 *:xdmcp                 *:*
> > > > > > udp        0      0 *:bootpc                *:*
> > > > > > Active UNIX domain sockets (only servers)
> > > > > > Proto RefCnt Flags       Type       State         I-Node Path
> > > > > > unix  2      [ ACC ]     STREAM     LISTENING     817      /tmp/.gdm_socket
> > > > > > unix  2      [ ACC ]     STREAM     LISTENING     847      /tmp/.X11-unix/X0
> > > > > > unix  2      [ ACC ]     STREAM     LISTENING     691      /tmp/.font-unix/fs7100
> > > > > >
> > > > > > Por más que he buscado, he intentado no consigo levantarlo.
> > > > > > Cualquier luz se agradece.
> > > > > >
> > > > > > Salud
> > > > > >
> > > si haces netstat -an
> > > que te dice?
> > >
> > > --
> > > MrIX
> > > Linux user number 412793.
> > > http://counter.li.org/
> > >
> >
> > Active Internet connections (servers and established)
> > Proto Recv-Q Send-Q Local Address           Foreign Address         State
> > tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN
> > tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN
> > tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
> > tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
> > tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN
> > tcp        0      0 192.168.2.8:22          192.168.2.4:41138       ESTABLISHED
> > tcp        0      0 192.168.2.8:22          192.168.2.4:35203       ESTABLISHED
> > udp        0      0 0.0.0.0:177             0.0.0.0:*
> > udp        0      0 0.0.0.0:68              0.0.0.0:*
> > Active UNIX domain sockets (servers and established)
> > Proto RefCnt Flags       Type       State         I-Node Path
> > unix  2      [ ACC ]     STREAM     LISTENING     817      /tmp/.gdm_socket
> > unix  2      [ ACC ]     STREAM     LISTENING     847      /tmp/.X11-unix/X0
> > unix  7      [ ]         DGRAM                    596      /dev/log
> > unix  2      [ ACC ]     STREAM     LISTENING     691      /tmp/.font-unix/fs7100
> > unix  2      [ ]         DGRAM                    3433
> > unix  2      [ ]         DGRAM                    960
> > unix  3      [ ]         STREAM     CONNECTED     957
> > unix  3      [ ]         STREAM     CONNECTED     956
> > unix  3      [ ]         STREAM     CONNECTED     880      /tmp/.X11-unix/X0
> > unix  3      [ ]         STREAM     CONNECTED     879
> > unix  2      [ ]         DGRAM                    878
> > unix  3      [ ]         STREAM     CONNECTED     875      /tmp/.X11-unix/X0
> > unix  3      [ ]         STREAM     CONNECTED     874
> > unix  3      [ ]         STREAM     CONNECTED     857      /tmp/.font-unix/fs7100
> > unix  3      [ ]         STREAM     CONNECTED     856
> > unix  3      [ ]         STREAM     CONNECTED     861      /tmp/.X11-unix/X0
> > unix  3      [ ]         STREAM     CONNECTED     850
> > unix  2      [ ]         DGRAM                    806
> > unix  2      [ ]         DGRAM                    638
> >
> >
> > --
> > Ferran Donadie
> > Email: ferrandonadie@yahoo.co.uk
> >
> > Carpe diem, quam minimum credula postero
> >
> >
> proba lo siguiente de una terminal en el modo consola
> 
> 
> X -query 192.168.2.x :1


me levanta las X y me presenta el login de gdm del servidor
al que me deja logear

> 
> donde x es el ip del servidor que intetas correr en vncserver
> 

Y a traves de vncviewer puedo iniciar una sesión
normal, a normal quiero decir que no es una sesión a traves
de xinetd. Las X funcionan en el servidor. Puedo iniciar una
sesión a traves de GDM sin problemas.



> --
> MrIX
> Linux user number 412793.
> http://counter.li.org/
> 

-- 
Ferran Donadie
Email: ferrandonadie@yahoo.co.uk

Carpe diem, quam minimum credula postero



Reply to: