Basically inetd listens on port 5901 (in my case), and new connections are created on another port (you don't need to know which, but it's a really big number!). If this didn't work how could you have a webserver serving more than one client simultaneously?
The only issue is that when you close the session, it's gone for good - you can't reconnect. Also the server needs to do authentication via it's usual mechanism, so you need to turn on XDMCP if it isn't already. It's on by default on Solaris, and off on linux, but there's a good Linux page here:
http://www.prosig.com/protor/kbase/vnc-install.html
To configure apps to startup at login, you'll need to change the X startup scripts..... good luck!!
Alasdair
if I understand the structure correctly, using xinetd won't work as xinetd spawns a new daemon subprocess for each connection on the same port. the first connection *might* succeed, but each subsequent one would fail since the new process would try to bind to a port another process is already listening on. on top of that, I don't believe the first one would work since it would also try to bind to the default port which would be bound already to the xinetd process, and therefore not available to the vnc process to start listening to.
a better way to do multiple startups for different users would be either the /etc/rc* structure or somehow through /etc/inittab. each session would need it's own setup and/or custom startup scripts to spawn under the correct user account, but it is certainly doable.
-----Original Message-----
I need to use inetd to start xvnc. I would like it to start some applications for each user, in the way that vncserver starts the applications from .../.vnc/xstartup. Is there a way to do this? I want to start the same apps for all users so it doesn't need to be user
specific.
--
------------------------------------------------------------------------ Alasdair Ferro SpiraTech Ltd, Product Conformance Engineer Carrington Business Park, mailto:[EMAIL PROTECTED] Manchester, Work: +44 (0)161 776 4582 M31 4ZU, U.K. http://www.spiratech.com ------------------------------------------------------------------------
This email and any files transmitted with it are confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed. If you have received this in error, please contact the sender and delete the material immediately. Whilst this email has been swept for viruses, you should carry out your own virus check before opening any attachment. SpiraTech Ltd accepts no liability for any loss or damage which may be caused by software viruses or interception or interruption of this email. _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
