If what your trying to do is have a list of currently logged on users displayed on on a page on your intranet website and allow windows users to click the users name in order to start a vnc session with that user, then then the following works for me.

The default associations (on the workstations) for "VNC_auto_file" is to run the WinVNC.exe - which is distinctly non-useful!

Changing this to (amended to suit):

FTYPE VNC_auto_file="X:\Program files\ORL\VNC\vncviewer.exe" /config %1

And having the links point to username.vnc files on the linux box. Ie

<a href="file://path/to/user1.vnc">User1Name</a>

When the link is clicked it will download the .vnc file and then start the associated app.

The .vnc files can be created (for the open connection) from with the vncviewer by using the "Save connection info as..." option from the VNCViewer "system menu" (top left).

The file is a plain text (.ini) format file and looks something like this:

[connection] host=10.0.10.123 port=5900 password=dae126243ba34a31 [options] use_encoding_0=1 use_encoding_1=1 use_encoding_2=1 use_encoding_3=1 use_encoding_4=1 use_encoding_5=1 preferred_encoding=5 restricted=0 viewonly=0 fullscreen=0 8bit=1 shared=0 swapmouse=0 belldeiconify=0 emulate3=1 emulate3timeout=100 emulate3fuzz=4 disableclipboard=0 localcursor=1 scale_num=1 scale_den=1

So arranging for your Perl script to produce these (perhaps as a part of the same script that presents the page) should be no problem.

Note: The password field is only lightly encrypted so your local policies will need to decide whether to include this or not - if not, the VNCVeiwer program will prompt the user. They may also be prompted as to whether they wish to download the file or open it with VNCVeiwer - again this depends on local policy/settings.


In reply to Re: Linux, perl, windows conundrum by BrowserUk
in thread Linux, perl, windows conundrum by Kickstart

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.