I'm running Xvnc via xinetd, can I force vncconfig to start automatically at the same time?

This article applies to the following product(s):

VNC Enterprise Edition/VNC Personal Edition

Yes, although some manual configuration is required. The instructions below are for dtlogin running on the CDE window manager, that may be running on UNIX in its various flavors (AIX, Digital UNIX, HP/UX, Solaris, UnixWare, etc.).

Since DT is being used to run the login window, the simplest way to run "vncconfig" would be to customise the DT scripts.

Have a look at the man-page for "dtlogin". There is a section entitled
"Xsetup", which explains how to run additional programs before showing
the login window. You need to customise the /usr/dt/config/Xsetup
script, but copy it first to /etc/dt/config/Xsetup and edit the copy.

You will need to add a command like this to the end of the script:

vncconfig -nowin &

Please bear in mind the following points:

1) You need to run vncconfig as a background job, otherwise Xsetup will
hang indefinitely waiting for vncconfig to terminate before showing the
login window. If your shell kills background jobs on exit, you may need
to use "nohup", or similar method.

2) The Xsetup script runs as root, which opens up the possibility that
the VNC File-Transfer extension could be used to modify arbitrary files
on the system. Therefore, you will need to run vncconfig as an
unprivileged user. You might need to pass through the XAUTHORITY
variable if you use "su" for this.

3) You might need to terminate the running instance of vncconfig, before
a user's session is run. Hopefully, dtlogin might already do this for
you, but if not, you'll have to do it yourself. If you need to do this,
you can customise the /usr/dt/config/Xstartup script.


Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
25th of July, 2012

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue