VNCSERVER FAILS WHEN LAUNCHED VIA XINETD (GENTOO LINUX)
Lluis PARCET <lluisparcet <at> telefonica.net>
2008-05-03 20:55:33 GMT
Hello:
I have problems launching vncserver via xinetd.
I use Gentoo Linux with kernel 2.6.24-gentoo-r4, tightvnc-1.3.9-r1, xinetd-2.3.14, xfce4-4.4.2 and xdm-1.1.6.
When launch the server via vncserver :1, everything works ok and I am able to connect from another computer in my home network.
It fails when trying the "automatic vncserver response" via xinetd. I launch
Code:
|
Vncviewer 192.168.1.34:62
|
and the login manager screen appears, but after typing the username and password the window is closed and the session ends.
This is my vncserver log:
Code:
|
24/04/08 19:07:35 Xvnc version TightVNC-1.3.9
24/04/08 19:07:35 Copyright (C) 2000-2007 TightVNC Group
24/04/08 19:07:35 Copyright (C) 1999 AT&T Laboratories Cambridge
24/04/08 19:07:35 All Rights Reserved.
24/04/08 19:07:35 See http://www.tightvnc.com/ for information on TightVNC
24/04/08 19:07:35 Desktop name 'x11' (PENTIUM3:1)
24/04/08 19:07:35 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
24/04/08 19:07:36 Using protocol version 3.8
24/04/08 19:07:36 Pixel format for client 192.168.1.37:
24/04/08 19:07:36 8 bpp, depth 6
24/04/08 19:07:36 true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
24/04/08 19:07:36 Enabling full-color cursor updates for client 192.168.1.37
24/04/08 19:07:36 rfbProcessClientNormalMessage: ignoring unknown encoding -223
24/04/08 19:07:36 rfbProcessClientNormalMessage: ignoring unknown encoding 16
24/04/08 19:07:36 Using hextile encoding for client 192.168.1.37
24/04/08 19:07:37 Pixel format for client 192.168.1.37:
24/04/08 19:07:37 16 bpp, depth 16, little endian
24/04/08 19:07:37 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
24/04/08 19:07:37 no translation needed
AUDIT: Thu Apr 24 19:07:45 2008: 4806 Xvnc: client 2 rejected from IP 127.0.0.1 port 56666
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
AUDIT: Thu Apr 24 19:07:46 2008: 4806 Xvnc: client 2 rejected from IP 127.0.0.1 port 56667
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
AUDIT: Thu Apr 24 19:07:46 2008: 4806 Xvnc: client 2 rejected from IP 127.0.0.1 port 56668
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
AUDIT: Thu Apr 24 19:07:46 2008: 4806 Xvnc: client 2 rejected from IP 127.0.0.1 port 56669
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
AUDIT: Thu Apr 24 19:07:47 2008: 4806 Xvnc: client 2 rejected from IP 127.0.0.1 port 56670
Auth name: MIT-MAGIC-COOKIE-1 ID: -1
|
Somebody knows what can be the problem?
My /etc/xinetd.conf:
Code:
|
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from = localhost
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
|
My /etc/services:
Code:
|
#
# VNC Servers
#
vnc-640x480x8 5950/tcp
vnc-800x600x8 5951/tcp
vnc-1024x768x8 5952/tcp
vnc-640x480x16 5960/tcp
vnc-800x600x16 5961/tcp
vnc-1024x768x16 5962/tcp
vnc-640x480x24 5970/tcp
vnc-800x600x24 5971/tcp
vnc-1024x768x24 5972/tcp
vnc-640x480x32 5980/tcp
vnc-800x600x32 5981/tcp
vnc-1024x768x32 5982/tcp
|
My /etc/xinetd.d/xvncserver:
Code:
|
service vnc-640x480x8
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :50 -inetd -query localhost -once -geometry 640x480 -depth 8
}
service vnc-800x600x8
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :51 -inetd -query localhost -once -geometry 800x600 -depth 8
}
service vnc-1024x768x8
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :52 -inetd -query localhost -once -geometry 1024x768 -depth 8
}
service vnc-640x480x16
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :60 -inetd -query localhost -once -geometry 640x480 -depth 16
}
service vnc-800x600x16
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :61 -inetd -query localhost -once -geometry 800x600 -depth 16
}
service vnc-1024x768x16
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :62 -inetd -query localhost -once -geometry 1024x768 -depth 16
}
service vnc-640x480x24
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :70 -inetd -query localhost -once -geometry 640x480 -depth 24
}
service vnc-800x600x24
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :71 -inetd -query localhost -once -geometry 800x600 -depth 24
}
service vnc-1024x768x24
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :72 -inetd -query localhost -once -geometry 1024x768 -depth 24
}
service vnc-640x480x32
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :80 -inetd -query localhost -once -geometry 640x480 -depth 32
}
service vnc-800x600x32
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :81 -inetd -query localhost -once -geometry 800x600 -depth 32
}
service vnc-1024x768x32
{
protocol = tcp
socket_type = stream
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :82 -inetd -query localhost -once -geometry 1024x768 -depth 32
}
|
Thank you in advance.
Regards.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___________________________________________________________
TightVNC mailing list, VNC-Tight-list <at> lists.sourceforge.net
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list