I've seen many postings in this newsgroups on how to startup desktops
for VNC (Xvnc), vncserver with different geometrys. Everyone knows
about the /etc/sysconfig/vncservers files which allows the creation of
vncserver desktops by user but cannot change depth or geometry. Heres
the way I found out and it works good for me. Use the startup script
which is run automatically (if setup in services),
/etc/rc.c/init.d/vncserver (bash script). In this file I put in a
function startupDesktops and then called this function from the start
function.
EXAMPLE:
start(){
echo -n ......
.....
.....
# Call startupDesktops Function
startupDesktops
}
startupDesktops(){
# command to start a Xdesktop
su - USER -c "vncserver :2 -geometry 960x720 -depth 8
}
ENDEXAMPLE
in the startupDesktops you can call the vncserver command (just a perl
script) as if you where at the console. I'll be happy to entertain
any questions or comments or better ways to do this.
|