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
---------------------------------------------------------------------

Reply via email to