• Hello.

    We’d like to add a new submenu item for the hosts to control it remotely via VNC.

    It would be a link “Remote Control” that should link to [url]http://$host:$vncport[/url]

    What file(s) do I have to edit and where to add this option?

    I hope I made myself clear.

  • No problem, glad it worked!

  • Thanks Dustin! I’ve tried and it works perfectly!!! I’ve tweaked the code to open the VNC console in a new browser tab/window so you can still have the FOG console open.

    It doesn’t matter if you can integrate it into the side menu, it looks good on the bottom of each host and in that way you can keep the side menu cleaner.

    Thanks a lot, mate!!

  • edit /fog/management/includes/hosts.edit.include.php
    At the VERY bottom, after [PHP]?>[/PHP] add [CODE]<a href=“http://<?php print $host->getHostname(); ?>:8005”>CONNECT TO CLIENT VIA VNC</a>[/CODE]

    Let me know if that works. I’m still working on figuring out how to edit the side menu.

  • Hi Dustin,

    Rather than that, we’ve set up TightVNC on the computer to accept connections via VNC Client (changed from port 5900 to port 7005 due to security reasons) or VNC Web Client (changed from port 5800 to port 8005).

    Now we can open a browser and open [url]http://hostname:8005[/url] and control that computer after providing the password.

    It would be good to have a side option that could allow us to remotely control the host without having to open a new browser tab.

    I’ve specified Hostname since we don’t have a full inventory of the clients, so we don’t have the IP Addresses for all of them, but we do have their hostnames. It would also be great if you could customize the port you are connecting to. We have used 7005 and 8005 for security reasons, but many folks use the default ports 5800 & 5900.

    I hope I’ve made myself clear enough 😉

    Just let me know if you need anything else. Thanks for your time !!!

  • Hi YuYo, So when you go into an individual host, you want it to show up as a side menu option? Does your VNC client allow you to click website links and know to open them? If so, let me know what you’re using and I’ll code it up real quick for you.