Comment 70 for bug 78282

Revision history for this message
Peter Matulis (petermatulis) wrote :

I have followed this thread but I remain unable to connect either locally or remotely when using xinetd. Otherwise, launching Xvnc directly on the command line allows me to connect without any problem.

I'm testing using Feisty as both client and server. The server shows these errors when I attempt 'vncviewer <IP>:1':

Jul 5 05:58:28 feisty-D86-2 xinetd[29601]: warning: can't get client address: Transport endpoint is not connected
Jul 5 05:58:28 feisty-D86-2 xinetd[29602]: warning: can't get client address: Transport endpoint is not connected
Jul 5 05:58:28 feisty-D86-2 xinetd[29603]: warning: can't get client address: Transport endpoint is not connected
Jul 5 05:58:28 feisty-D86-2 xinetd[4792]: Deactivating service Xvnc due to excessive incoming connections. Restarting in 10 seconds.
Jul 5 05:58:38 feisty-D86-2 xinetd[4792]: Activating service Xvnc

The server is running:

vnc-common 3.3.7-13ubuntu2
vnc4server 4.1.1+xorg1.0.2-0ubuntu4
xvnc4viewer 4.1.1+xorg1.0.2-0ubuntu4

The client is running:

xvnc4viewer 4.1.1+xorg1.0.2-0ubuntu4

When Xvnc is run manually I can connect both locally and remotely when using 'vncviewer <IP>:2'. Here is what is run:

$ ps ax | grep Xvnc
29206 pts/0 S 0:00 /usr/bin/Xvnc :2 -query localhost -geometry 800x640 -depth 16 -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vnc/passwd -extension XFIXES

FILES

/root/.vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

/etc/xinetd.d/Xvnc:

service Xvnc
{
        type = UNLISTED
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = root
        server = /usr/bin/Xvnc
        server_args = -inetd :1 -query localhost -geometry 800x640 -depth 16 -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile /root/.vnc/passwd -extension XFIXES
        port = 5901
}

gdm.conf (commented lines removed):

[daemon]
AutomaticLoginEnable=false
AutomaticLogin=
TimedLoginEnable=false
TimedLogin=
TimedLoginDelay=30
Greeter=/usr/lib/gdm/gdmgreeter
RemoteGreeter=/usr/lib/gdm/gdmlogin
User=gdm
Group=gdm
LogDir=/var/log/gdm
PidFile=/var/run/gdm.pid
PostLoginScriptDir=/etc/gdm/PostLogin/
PreSessionScriptDir=/etc/gdm/PreSession/
PostSessionScriptDir=/etc/gdm/PostSession/
DisplayInitDir=/etc/gdm/Init
XKeepsCrashing=/etc/gdm/XKeepsCrashing
RebootCommand=/sbin/shutdown -r now "Rebooted from gdm menu."
HaltCommand=/sbin/shutdown -h now "Halted from gdm menu."
SuspendCommand=/usr/sbin/pmi action sleep
HibernateCommand=/usr/sbin/pmi action hibernate
ServAuthDir=/var/lib/gdm
BaseXsession=/etc/gdm/Xsession
SessionDesktopDir=/etc/X11/sessions/:/etc/dm/Sessions/:/usr/share/gdm/BuiltInSessions/:/usr/share/xsessions/
DefaultSession=default.desktop
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=.Xauthority
StandardXServer=/usr/X11R6/bin/X
Xnest=/usr/bin/Xnest -br -audit 0 -name Xnest
XnestUnscaledFontPath=
FirstVT=7
VTAllocation=true
SoundProgram=/usr/lib/gdmplay
GdmXserverTimeout=10

[security]
AllowRoot=false
AllowRemoteRoot=false
AllowRemoteAutoLogin=false
RelaxPermissions=0
CheckDirOwner=true
SupportAutomount=false
DisallowTCP=true
PamStack=gdm

[xdmcp]
Enable=True

[gui]
GtkTheme=Human
AllowGtkThemeChange=true
GtkThemesToAllow=Human,HighContrast,HighContrastInverse,LowContrast

[greeter]
Browser=false
MinimalUID=1000
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,gdm,postgres,pvm,rpm
IncludeAll=true
LocaleFile=/etc/gdm/locale.conf
ConfigAvailable=false
DefaultWelcome=true
DefaultRemoteWelcome=true
BackgroundColor=#dab082
GraphicalThemedColor=#dab082
UseCirclesInEntry=true
GraphicalTheme=Human
GraphicalThemeDir=/usr/share/gdm/themes/
GraphicalThemeRand=false
SoundOnLogin=true
SoundOnLoginFile=/usr/share/sounds/question.wav

[chooser]
HostImageDir=/usr/share/hosts/
Hosts=
Broadcast=true
Multicast=false

[debug]
Enable=false
Gestures=false

[servers]
0=Standard
[server-Standard]
name=Standard server
command=/usr/X11R6/bin/X -br -audit 0
flexible=true

[server-Terminal]
name=Terminal server
command=/usr/X11R6/bin/X -br -audit 0 -terminate
flexible=false
handled=false

[server-Chooser]
name=Chooser server
command=/usr/X11R6/bin/X -br -audit 0
flexible=false
chooser=true

[customcommand]