I still haven't managed to do what I want. I want to start VNC via inetd and then start some applications for the user.

I've tried the XDM, XDMCP route. The problem with this is that uers need to login! Our users are members of the general public who won't know anything about logins. Therefore I think I need to either use XDMCP, but without any login and then get it to run applications from xsession or I need to avoid XDMCP and find another way to start the applications when starting VNC with inetd.

Any ideas how to do either of these?

Thanks,
Kevin

Alasdair Ferro wrote:

NO! This isn't correct - you can use inetd to spawn multiple VNC connections for both the same or multiple users - that's what I am doing on both Linux & Solaris.

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.
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to