[TriLUG] Re: VNC questions -

Janyne Kizer janyne_kizer at ncsu.edu
Mon Jan 14 13:42:53 EST 2002


iptables -L indicates that the firewall is not the problem.  VNC is not
running on the server (at least ps -edf | grep vnc does not seem to find
it)

Results from iptables -L

ACCEPT     tcp  --  anywhere             anywhere           tcp
spt:vnc-640x480x8
ACCEPT     tcp  --  anywhere             anywhere           tcp
spt:vnc-800x600x8
ACCEPT     tcp  --  anywhere             anywhere           tcp
spt:vnc-800x600x16

The problem seems to be that when I issue Xvnc I get this error:

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't
already running

But when I do vncserver (to run the script in /etc/rc.d/init.d/) it
starts fine -- kinda.  That brings up the second problem that I've been
having, the pooplets being left behind (mentioned in my original post).

Warning: <servername>:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server linus.ces.ncsu.edu:1

Warning: <servername>:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server linus.ces.ncsu.edu:2

I really thought that there was a "better" way to do this under RH 7.2
using the /etc/sysconfig/vncservers and so on...

H Brett Bolen wrote:
> 
> Janyne Kizer wrote:
> 
> > OK, I did this and "iptables -L" indicates that it is working fine,
> > however it does not appear the the VNC server is running.
> >
> > /etc/services
> > vnc-640x480x8   5950/tcp                        # vnc server IP
> > vnc-800x600x8   5951/tcp                        # vnc server IP
> > vnc-800x600x16  5952/tcp                        # vnc server IP
> >
> > /etc/xinetd.d/vnc-640x480x8
> >
> > # default: off
> > # description: The vnc server allows connection via the vnc protocol
> > #
> > #       server                  = /usr/bin/Xvnc
> >
> > service vnc-640x480x8
> > {
> >         disable                 = no
> >         socket_type             = stream
> >         protocol                = tcp
> >         wait                    = no
> >         user                    = nobody
> >         server                  = /usr/bin/Xvnc
> >         server_args             = -inetd -broadcast -once -geometry
> > 640x480 -depth 8
> >         log_on_success          += USERID
> >         log_on_failure          += USERID
> > }
> >
> > Janyne Kizer wrote:
> >
> >>Gotcha.
> >>
> >>So I need to add a line like the following to the firewall
> >>
> >>iptables -A INPUT -p tcp --sport 5950 -j ACCEPT
> 
> see if it works from your side of the firewall ( take iptables out of
> equation).  if it works, then add firewall support.
> 
> I boot at runlevel 3, so I don't use xdm ( kdm, gdm, etc).  I had to
> remove -brodcast from the server_args line.  I also removed -once,
> but I don't recall why.
> 
> b\375
> 
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug

-- 

Janyne Kizer
CNE-3, CNE-4, CNE-5
Systems Programmer Administrator I
NC State University, College of Agriculture & Life Sciences
Extension and Administrative Technology Services
Phone: (919) 515-3609



More information about the TriLUG mailing list