Steven Dahlin wrote:
I have created a vnc startup/shutdown script in the /etc/init.d directory
and enabled it with insserv. I have tried several variants but encounter a
couple problems which are not mentioned in various responses on the list.
First if I call vncserver directly like so:
case "$1" in
start)
vncserver :2
Then it requests a password.
If instead I execute the following:
su - root -c "vncserver :2"
Then I get back a message that there is no valid license. However, when run
from the prompt it works perfectly fine. I also added "vnclicense -list"
and it came back with a message that there were no licenses. I have also
set it so the vnc script is called last by xinetd.
None of the examples seems to cover these possibilities. Does anyone have
any suggestions?
If you want to start a vnc-session on boot of your machine, you can
better peek in the `vncserver` script on how it starts `Xvnc`. With this
information you can have this Xvnc started by your display-manager like
CDE, KDE or Gnome: Find where that starts the X11 server and have it
start an other X11 server on an other display number. This should be
Xvnc with the vnc-specific options given but the X11 specific options
filled out by the display manager.
The major advantage is that the display manager will handle the
session, just as on the console. If you donnot want a graphical
console, you can just install as if you would and replace the X11-server
with Xvnc.
Regards
Corni
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list