Is there a reason why you would want to launch the vncserver from within 
the user environment ?
The reason why I ask this is that you could start the vncserver by the inetd
process, 
which would allow any user to connect through VNC to your host.
The server that whould be started could connect to a XDMCP server (in oder
words 
receive a graphical login to your station). This would ensure that only
clients known 
to the system would be able to connect.

Stefan

> -----Original Message-----
> From: Lee Allen [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday 21 February 2001 17:54
> To:   [EMAIL PROTECTED]
> Subject:      Linux startup scripts for vncserver
> 
> I am planning to write some scripts to support vnc on Linux, and it
> seems I might be re-inventing the wheel.  That is, has someone else
> already done this?
> 
> Here's my plan:
> 
> 1. create a file containing a list of [vnc] user names
> 
> 2. create a startup script (ie, /etc/rc.d/init.d/vnc ) that does this:
>     if argument = start:
>         read each user name from the file
>         check to see whether there is a vnc server running for that
> user, if not:
>             start a vnc server process (use the user's UID as the vnc
> server number)
>     if argument = stop:
>         do about the same thing, but kill each vnc server
>     if argument = restart:
>         do the same thing as start
>         or maybe, kill each vnc server and restart it
> 
> 3. create a script to kill or kill-and-restart the vnc server for a
> single user name
> 
> The part that starts a vnc server process for each user would, I
> imagine, 'su' to that user name and then run vncserver.
> 
> One complication I am anticipating is the vnc password files.  If they
> don't already exist, vncserver prompts for them, and that won't work.
> So I would probly comment that out in the vncserver script.  If the vnc
> password doesn't exist, log something somewhere and go on to the next
> user.
> 
> There would have to be some sort of maintenance function to maintain
> this file of user names, verify they have active user profiles in
> /etc/passwd, and create the vnc password files.
> 
> So, can anyone point me to anything like this?
> 
> Thanks.
> 
> -Lee Allen
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to [EMAIL PROTECTED]
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to