-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Tim,
Thursday, December 19, 2002, 12:51:25 PM, you wrote: > http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/ref-guide/s1-boot > -init-shutdown-sysconfig.html#S3-BOOT-INIT-SHUTDOWN-VNCSERVERS I had not been aware of that capability. I'd had to ssh into each system and fire up vncserver for myself. This is cool. One thing that I did find sub-optimal was that it gives only the default size. I like to pass a "-geometry" argument to vncserver, to get a session that more closely resembles the available screen real estate on my main notebook computer. I solved this problem by making a minor modification to /etc/init.d/vncserver. In the "start" function, I added these two lines between the unset and the initlog: unset VNC_PARMS VNC_PARMS=$(< /home/${display##*:}/.vnc/vnc_start_parms) Then, in the string executed by "su", I added ${VNC_PARMS} just before the last escaped double quote (after the display number). Note that this only works for folks with home directories under /home. I tried avoiding the extra variable and sucking in the file within the "su" command string, using the relative pathname .vnc/vnc_start_parms, but the file wasn't found. I tried the above, specifying the file location in other ways, including "~${display##*:}/.vnc/vnc_start_parms", but the log indicated that "~heiby/.vnc/vnc_start_parms: No such file or directory". I thought that pretty odd, since I can see the file. In any case, the explicit use of /home did work. The use of the VNC_PARMS variable has the advantage that one could make it conditional on the file's existence, to avoid a log message for any user who didn't have a ~/.vnc/vnc_start_parms file. Within my .vnc/vnc_start_parms file, I have the single line -geometry 1575x1150 Things are much better now, though I'd like to understand what is different about the init.d/vncserver environment at boot time that prevented the file from being found using the other approaches. I am pretty sure that when I tested by typing "sudo /etc/init.d/vncserver start", that it worked just fine finding the file via ~heiby. Anyway, perhaps something like this could be considered for a future release? Ron. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.8 Comment: Until recently, the last PGP with full source disclosure. iQA/AwUBPhyX5G8pw+2/9pUJEQIYUwCcCZiagCGnqw1hJCeJCycPTP3CcVkAoKUQ g5rYYHzltF2WbWWPxYIzcOv/ =J6uf -----END PGP SIGNATURE----- _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
