Enable vnc from WebUI WDM 5.7.2

This topic contains 22 replies, has 6 voices, and was last updated by  lhomann 3 weeks, 6 days ago.

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #45399

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    I was kinda disapointed to notice that there was no direct vnc option available within the WebUI. So i decided to add this functionality myself.

    vnc icon next to ip

    To add vnc option to WebUI we need to take the following steps.

    1.

    Disable Internet Information services on the WDM server.

    2.

    Navigate to inetpub\wwwroot\externals\cui\js\ccc-vendor.js and edit the following line 42269. Where adding vnc to the whitelist so the url’s get recognized. (ccc-vendor.js is loaded by indexf.html) if not done correctly you will get unsafe:vnc://ipaddress urls.

    Before

    var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,

    After

    var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|vnc|file):/,

     

    3.

    Add vnc option in the devices TAB of WDM

    Edit the following file inetpub\wwwroot\WebUI\app\device\devices.html

    Navigate to Line 89

     

    Before

    <span data-ng-if=”key!=’iconStatus’ && key!=’lastCheckIn'”>{{device[key]}}</span><span data-ng-if=”key==’lastCheckIn'”>{{device[key]|wdmDateFormat}}</span>

     

    After

    <span data-ng-if=”key!=’iconStatus’ && key!=’lastCheckIn'”>{{device[key]}}</span><span data-ng-if=”key==’lastCheckIn'”>{{device[key]|wdmDateFormat}}</span><span data-ng-if=”key==’ip'”>vnc</span>

    Notice src=”../app/device/UI/images/vncicon.png”

    Pysical path on WDM server ”inetpub\wwwroot\WebUI\app\device\UI\images”\ vncicon.png”

    That is the location on the webserver where you need to put an vnc Icon picture.

     

    4.

    Optionally you can disable the Remote Shadow right click by editing the same devices.html line 98

     

    Before

    <li href=”#” id=”remoteShadow_CP” data-ng-click=”handleContextMenuClick(wdmCommands.REMOTESHADOW,$event)” data-ng-hide=”isContextMenuCommandHidden(wdmCommands.REMOTESHADOW)”>{{ “WDM_CMD_REMOTE_SHADOW” | translate }}

     

    After

    <!–li href=”#” id=”remoteShadow_CP” data-ng-click=”handleContextMenuClick(wdmCommands.REMOTESHADOW,$event)” data-ng-hide=”isContextMenuCommandHidden(wdmCommands.REMOTESHADOW)”>{{ “WDM_CMD_REMOTE_SHADOW” | translate }}</li–>

     

    5.

    Now we need to add some files to the windows OS in order for the browser to recognize the vnc:// extension.

    Download the Wyse.zip file and extract it to the root of your C drive.

     

    6.

    Navigate to C:\Wyse\WDM\vncviewer\ and run regadd.bat as administrator.

     

    The browser this is tested in is Google Chrome but it should work in any other browser.

    I’m not in any way responsible if you crash your server do this at your own risk.

    https://www.dropbox.com/s/03vbrzdaplc770j/Wyse.zip?dl=0

     

    Feel free to ask me any questions and i’ll try to answer them.

     

    Regards,

     

    Sono87

    #45408
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    Wow, this is what I call GREAT!
    Thanks so much for sharing.
    Is it OK, if I make this a post on the home site?

    CG

    #45409

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    ConfGen,

    It sure is as long as i get all the credits!

    Feel free to ask questions if there are any

    Sono87

    #45410
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    For sure.
    Do you want me to post your alias or your real name, company, …?

    CG

    #45411

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    Just my alias that should be fine.

    #45422
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    Could you please review Step 3?
    There is VNC icon in the path and it is not clear what to with “Notice src=…”

    Thanks

    CG

    #45423

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    ConfGen,

    That Notice is purely there to address the icon file on where to put it on the webserver for it to display properly the icon file should be in the download link is this post.

    So kinda shutoff a typo i guess…

    If you just stick to the before and after code you should be good.

     

    Sono87

    #45424
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    But check the “After” code plese.
    Looks strange in this post.

    CG

    #45425

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    ConfGen,

    It look strange because the code is running on the page. used visual editor on your site now the text one.

    this needs to be added hopefully it works now.

    <span data-ng-if=”key==’ip'”>vnc</span>
    </td>

    Sono87

    #45426

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★
    <span data-ng-if="key=='ip'"><a href="vnc://{{device[key]}}"><img src="../app/device/UI/images/vncicon.png" alt="vnc" style="width:15px;height:15px;"></a></span>
                                        </td>
    #45429
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    Now it is working.
    Great job.

    CG

    #45443
    ConfGen
    ConfGen
    Keymaster
    • Total Post: 7746
    • Jedi Master
    • ★★★★★★★

    Published

    CG

    #45445

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    Nice post looking good…

     

    #45452
    Twilley
    Twilley
    Participant
    • Total Post: 9
    • Regular Joe
    • ★★

    For anyone struggling to get this to work, here’s a tip.  I learned the hard way 😉

    Do NOT Cut-n-paste the data from this site.  The & characters may get messed up.  Just type it out manually. I used Notepad ++ to double-check my formatting, since it color codes any errors.

    Fantastic Mod!

    #45453

    sono87
    Participant
    • Total Post: 10
    • Regular Joe
    • ★★

    Glad you enjoy it.

    Couldn’t keep this for myself.

    One other tip if someone wants to you could edit that default download section the one where you get the vnc executable and put the os zip file there with instructions for end support tech.

    i believe it’s located at the bottom of the devices.html

    Sono87

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in to reply to this topic.