Solution to "How do I start the vncserver automatically (linux)"

zaphodb zaphodb "at" casema.net
Fri, 27 Oct 2000 22:36:18 +0000


> This same approach can work for other flavors of Unix, of course.  I've
> implemented something on Solaris which addresses this issue to some
> extent (it doesn't actually start the server automatically at boot-up
> right now, but this could easily be done with this setup).
>
> One thing I don't quite understand with your solution:  the
> 'start_vncserver'  script always uses display :1 -- how can this support
> multiple users?

For each user you use a different display number. In my example I used only
one. This refects my computer situation at home. 1 Linux box + 1 windows
box.
At work I'm going to offer the service from 1 linux box to 4 NT-clients.
I've changed the script a bit following a suggestion by Tim.
Take a look at my notes on

http://www.casema.net/~zaphodb

Follow the vnc link.

> What I've done to combat this is to create a NIS map called 'vncusers',

To be honest, I've not come round to implement the multiple user version.
I would probably have added a few more lines like:
su -c "vncserver [options] :2" -mary
su -c "vncserver [options] :3" -cathy
etc.

But your solution is the nicer one.
I'll study the script. I've been thinking of starting to study perl
for a long time and now is a time as good as any.

Thanx for your suggestions.

Greetz,

Zaphod B.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------