Only put a -kill statement in the xstartup script if you're sure on the
display number. Otherwise, it will not work as expected: -kill needs a
display number.
> You may want to add the "vncserver -kill...." statement to
> your vncserver script
> or update your xstartup file. At lease you won't get the
> grey screen, becasue
> when WM exit, vnc will also exit.
In a lot of machines, twm is available. IN a lot of other machines, twm is
not available. From the vnc side, it is not known what window managers are
available and wich not.
I frequently used the ability to kill the running window manager and
exchange it with an other one on the fly: With the default settings, just
kill the twm and invoke the new window manager in a open xterm.
>
> Sometime I wonder why they don't add the "vncserver -kill" in
> the xstartup
> session!!!!!!!
>
>
> -----vncserver script-----
> ....
> ....
> $defaultXStartup
> = ("#!/bin/sh\n\n".
> "xrdb \$HOME/.Xresources\n".
> "xsetroot -solid grey\n".
> "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP
> Desktop\" &\n".
> "case \"\$VNCDESKTOP\" in\n".
> " qvwm) qvwm ;;\n".
> " olvwm) \$HOME/.openwin-init &\n".
> " olvwm ;;\n".
> " olwm) \$HOME/.openwin-init &\n".
> " olwm ;;\n".
> " icewm) icewm ;;\n".
> " twm) twm ;;\n".
> " cde | dtsession)\n".
> " dtsession ;;\n".
For the smaller systems, don't run an entire session, better only invoke the
window manager (if possible).
> " cadnt) cadnt ;;\n".
> " dummy|xterm) xterm ;;\n".
How does the user see which xterm to kill to end the session? Better give it
a proper title and the -C option to catch the console messages or run a
`tail -f xerrorfile` to make it console-like.
> " *) dtsession ;;\n".
I vote for the dummy|xterm for default since CDE (dtsession) is available on
commercial systems only!
For the linux world, don't forget KDE and Gnome!
> "esac\n".
> "\n".
> "vncserver -kill :`echo \$DISPLAY | cut -f2 -d:`\n");
Does that work? Better add a `| cut -f1 -d.` to strip of the subdisplay.
> ....
> ....
> -----end of vncserver------
> ---------------------------------------------------------------------
> To unsubscribe, mail [EMAIL PROTECTED] with the line:
> 'unsubscribe vnc-list' in the message BODY
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------