George...
If the program is started from xinetd then you need
the -inetd parameter!
LEt me explain:
TCP Protocol
------------
When a program (like vnc) starts, it opens a TCP port X.
It waits, "listening" to port X for some one to connect.
Once some one connects, the tcp system itself changes the
portno of the connection to an unused port no. This is
done so that some else can connect on the port no X.
This is how the TCP protocol works.
(x)inetd
--------
because of the tcp protocol is as described above, programs
like vnc need to be started before someone can connect. This
is unfortunate since many are seldom accessed and eat lots of
resources. To solve this problem (x)inetd was written.
(x)inetd "listens" to a long list of ports, when someone
connects to a port, (x)inetd starts a program and passes the
connection to the started program.
Now the program started needs to know it's being started by
-inetd since it needs to use a connection passed, and not
listen to some other port, waiting for connections...
A program has to be specialy programmed for this to work.
Additionally, the vnc like program, need not go back to
listening on a port once the client disconnects, cause
(x)inetd is already doing the for him....
So the -once tells vnc not to wait for new connections after
the first client disconnects!
Conclusion:
------------
For sure you need the -inetd, and the -once parameters...
Jerry Westrick
On Wed, 2003-03-12 at 03:58, [EMAIL PROTECTED] wrote:
> Thanks, Beerse buddie!
>
> I have changed /etc/xinetd.d/vnc-800x600x8 to the
> following contents, (I removed -inetd)
>
> --------
> service vnc-800x600x8
> {
> protocol = tcp
> socket_type = stream
> wait = no
> user = nobody
> server = /usr/bin/Xvnc
> server_args = -query localhost -once -geometry 800x600 -depth 8
> }
> --------
>
> After rebooting the machine, I use telnet to test whether the setup
> is correct, then an error message occurs,
>
> --------
> [EMAIL PROTECTED] root]# telnet 192.3.6.6 5951
> Trying 192.3.6.6...
> Connected to 192.3.6.6.
> Escape character is '^]'.
>
> Fatal server error:
> Server is already active for display 0
> If this server is no longer running, remove /tmp/.X0-lock
> and start again.
>
> Connection closed by foreign host.
> --------
>
> Can you help?
>
>
> regards,
> George
>
> [EMAIL PROTECTED]>-La5=:
> >From:"Beerse, Corn? <[EMAIL PROTECTED]>
> >Reply-To:
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,
> "Beerse, Corn?quot; <[EMAIL PROTECTED]>
> >Subject: RE: RE: RE: Meeting trouble when connecting VNC server running on
> Linux.
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> I find the parameter I am using is
> >>
> >> --------
> >> -inetd -query localhost -once -geometry 800x600 -depth 8
> >> --------
> >>
> >> I have used info Xvnc and man Xvnc but failed to find the
> >> meaning of paramter once. Then I use Xvnc -h to find that it
> >> means "terminate server after one session". What means
> >> "means terminate server after one session"? Can you give me
> >> some simple explanation? I have tried my best but failed to find
> >> the answer.
> >
> >It just indicates that Xvnc will run and accept a vncviewer connection. At
> >the moment this first vncviewer disconnects from Xvnc, this Xvnc-process
> >will terminate.
> >
> >CBee
> >
> >
> >
> >>
> >>
> >> regards,
> >> George
> >>
> >>
> >> [EMAIL PROTECTED]>-La5=:
> >> >From:"Beerse, Corn? <[EMAIL PROTECTED]>
> >> >Reply-To:
> >> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >> >Subject: RE: RE: Meeting trouble when connecting VNC server
> >> running on Lin
> >> ux.
> >> >
> >> >The inetd setup
> >> (http://www.sourcecodecorner.com/articles/vnc/linux.asp)
> >> >cannot reconnect due to the nature of inetd: you connect ot
> >> a port but inetd
> >> >moves the entire communication to an other port so the port
> >> is free for new
> >> >connections.
> >> >
> >> >If you need more viewers to the same vnc session, you can
> >> try something like
> >> >this: Start `Xvnc` or `vncserver` with the "-query
> >> localhost" but not using
> >> >inetd.
> >> >
> >> >The redhat distribution has an other setup that also starts
> >> at boot and give
> >> >multiple access to the same viewer. There is a website for
> >> this setup but
> >> >I've lost it.
> >> >
> >> >CBee
> >> >
> >> >
> >> >--
> >> >C. Beerse
> >> >mailto:[EMAIL PROTECTED]
> >> >talkto:+31(71)5256660
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> >> Sent: dinsdag 11 maart 2003 03:01
> >> >> To: [EMAIL PROTECTED]
> >> >> Cc: [EMAIL PROTECTED]
> >> >> Subject: Re:RE: Meeting trouble when connecting VNC server
> >> running on
> >> >> Linux.
> >> >>
> >> >>
> >> >> Thanks, Beerse buddie!
> >> >>
> >> >> Your method is really nice! When I see the beautiful
> >> >> girls on my Linux box desktop from another windows
> >> >> box, it really makes me exciting!!
> >> >>
> >> >> But I meet another trouble. When using Win32 server, more
> >> >> than one person can share the same desktop. But each person
> >> >> login on my Linux box has a seperate desktop. They can not
> >> >> share the same desktop. I think if two gays can edit the
> >> >> same article is an exciting thing!
> >> >>
> >> >> How to let more than two persons share the same desktop?
> >> >>
> >> >>
> >> >> Thanks in advance,
> >> >> George
> >> >>
> >> >> [EMAIL PROTECTED]>-La5=:
> >> >> >From:"Beerse, Corn? <[EMAIL PROTECTED]>
> >> >> >Reply-To:
> >> >> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >> >> >Subject: RE: Meeting trouble when connecting VNC server
> >> >> running on Linux.
> >> >> >
> >> >> >> -----Original Message-----
> >> >> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> >> >>
> >> >> >> I have installed vnc server on Red Hat Linux 8.0. When running
> >> >> >> a vnc client from Windows 2000 Professional, all I can see is a
> >> >> >> "xterm" and a grep screen. I have read from the FAQ that it is
> >> >> >> because the twm is used.
> >> >> >
> >> >> >Congratulations, all works perfect.
> >> >> >
> >> >> >Welcome to the default unix configuration of vnc. There are
> >> >> various ways to
> >> >> >setup vnc to your wishes. Most involve editing a
> >> >> ~/.vnc/startup file. Check
> >> >> >the mail archive or other documentation about editing this
> >> >> to get your
> >> >> >prefered window manager.
> >> >> >
> >> >> >My favorite setup is at
> >> >> >http://www.sourcecodecorner.com/articles/vnc/linux.asp
> >> >> >
> >> >> >>
> >> >> >> But I want to see exactly the same on my Windows VNC
> >> viewer as on
> >> >> >> the Linux box itself. I want to see beautiful girls on desktop,
> >> >> >> the clocks, the startup menu on my Linux box, not a
> >> grep screen.
> >> >> >
> >> >> >That's an other peace ;-) of cake. To get the linux
> >> >> X11-console in a vnc
> >> >> >session, try one of:
> >> >> >http://xf4vnc.sourceforge.net/
> >> >> >http://www.hexonet.de/software/x0rfbserver/
> >> >> >http://www.tjansen.de/krfb/
> >> >> >
> >> >> >
> >> >> >
> >> >> >CBee
> _______________________________________________
> VNC-List mailing list
> [EMAIL PROTECTED]
> http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list