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
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 0.2-0ubuntu4 0.2-0ubuntu4
vnc4server 4.1.1+xorg1.
xvnc4viewer 4.1.1+xorg1.
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 fonts/X11/ misc -DisconnectClie nts=0 -NeverShared passwordFile= /root/. vnc/passwd -extension XFIXES
29206 pts/0 S 0:00 /usr/bin/Xvnc :2 -query localhost -geometry 800x640 -depth 16 -fp /usr/share/
FILES
/root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop: xinit/xinitrc
unset SESSION_MANAGER
exec /etc/X11/
[ -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 fonts/X11/ misc -DisconnectClie nts=0 -NeverShared passwordFile /root/.vnc/passwd -extension XFIXES
{
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/
port = 5901
}
gdm.conf (commented lines removed):
[daemon] nable=false e=false /usr/lib/ gdm/gdmgreeter /usr/lib/ gdm/gdmlogin /var/run/ gdm.pid Dir=/etc/ gdm/PostLogin/ tDir=/etc/ gdm/PreSession/ ptDir=/ etc/gdm/ PostSession/ /etc/gdm/ Init /etc/gdm/ XKeepsCrashing /sbin/shutdown -r now "Rebooted from gdm menu." /sbin/shutdown -h now "Halted from gdm menu." /usr/sbin/ pmi action sleep d=/usr/ sbin/pmi action hibernate /var/lib/ gdm /etc/gdm/ Xsession ir=/etc/ X11/sessions/ :/etc/dm/ Sessions/ :/usr/share/ gdm/BuiltInSess ions/:/ usr/share/ xsessions/ default. desktop .Xauthority =/usr/X11R6/ bin/X usr/bin/ Xnest -br -audit 0 -name Xnest ntPath= /usr/lib/ gdmplay ut=10
AutomaticLoginE
AutomaticLogin=
TimedLoginEnabl
TimedLogin=
TimedLoginDelay=30
Greeter=
RemoteGreeter=
User=gdm
Group=gdm
LogDir=/var/log/gdm
PidFile=
PostLoginScript
PreSessionScrip
PostSessionScri
DisplayInitDir=
XKeepsCrashing=
RebootCommand=
HaltCommand=
SuspendCommand=
HibernateComman
ServAuthDir=
BaseXsession=
SessionDesktopD
DefaultSession=
UserAuthDir=
UserAuthFBDir=/tmp
UserAuthFile=
StandardXServer
Xnest=/
XnestUnscaledFo
FirstVT=7
VTAllocation=true
SoundProgram=
GdmXserverTimeo
[security] =false Login=false t=false
AllowRoot=false
AllowRemoteRoot
AllowRemoteAuto
RelaxPermissions=0
CheckDirOwner=true
SupportAutomoun
DisallowTCP=true
PamStack=gdm
[xdmcp]
Enable=True
[gui] ange=true w=Human, HighContrast, HighContrastInv erse,LowContras t
GtkTheme=Human
AllowGtkThemeCh
GtkThemesToAllo
[greeter] bin,daemon, adm,lp, sync,shutdown, halt,mail, news,uucp, operator, nobody, gdm,postgres, pvm,rpm /etc/gdm/ locale. conf =false lcome=true =#dab082 Color=# dab082 ry=true Human ir=/usr/ share/gdm/ themes/ and=false e=/usr/ share/sounds/ question. wav
Browser=false
MinimalUID=1000
Exclude=
IncludeAll=true
LocaleFile=
ConfigAvailable
DefaultWelcome=true
DefaultRemoteWe
BackgroundColor
GraphicalThemed
UseCirclesInEnt
GraphicalTheme=
GraphicalThemeD
GraphicalThemeR
SoundOnLogin=true
SoundOnLoginFil
[chooser] /usr/share/ hosts/
HostImageDir=
Hosts=
Broadcast=true
Multicast=false
[debug]
Enable=false
Gestures=false
[servers] /usr/X11R6/ bin/X -br -audit 0
0=Standard
[server-Standard]
name=Standard server
command=
flexible=true
[server-Terminal] /usr/X11R6/ bin/X -br -audit 0 -terminate
name=Terminal server
command=
flexible=false
handled=false
[server-Chooser] /usr/X11R6/ bin/X -br -audit 0
name=Chooser server
command=
flexible=false
chooser=true
[customcommand]