----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 9:39 PM
Subject: automate multiple vncservers on startup


> I have a linux server that I'm running three
> vncservers on.  Each vncserver is for a different user's desktop.
Currently,
> I login as each user and start the vncserver from a terminal window, exit
out
> of terminal window and logout of the desktop.  Now I can go to a remote
> machine and use either a browser or the vncclient to get to each desktop.
All
> works well
> What I need to do is to automate this process, in case of a long term
power
> failure. (I have an UPS on the linux server.)  So when the linux server
comes
> back up it will automatically start these sessions.  I know I can tell the
> vncserver to start at a peticular display number and desktop name.  What I
> don't know is where and what file I would modify to have this run on the
> reboot.  Any help would be greatly appreciated as I am far from a linux
guru
> If this were windows I'd insert a call to a batch file in the autoexec

Something like:

su - user -c "vncserver"

shoud do it, where user is the name of the user under whose logon you want
to run vncserver. It also assumes that vncserver and the various x programs
needed (like xauth) are in the login.defs path settings. Insert this line
into your startup script. The location/name of this will depend on which
distro you are using. Make sure you include the dashes above.

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