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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |