• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How To Add SubMenu Items

Scheduled Pinned Locked Moved
General
2
6
2.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y
    YuYo
    last edited by Mar 12, 2013, 5:59 PM

    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.

    1 Reply Last reply Reply Quote 0
    • D
      Dustin
      last edited by Mar 18, 2013, 10:15 PM

      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.

      1 Reply Last reply Reply Quote 0
      • Y
        YuYo
        last edited by Mar 18, 2013, 10:37 PM

        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 !!!

        1 Reply Last reply Reply Quote 0
        • D
          Dustin
          last edited by Mar 19, 2013, 1:29 AM

          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.

          1 Reply Last reply Reply Quote 0
          • Y
            YuYo
            last edited by Mar 19, 2013, 12:43 PM

            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!!

            1 Reply Last reply Reply Quote 0
            • D
              Dustin
              last edited by Mar 19, 2013, 12:48 PM

              No problem, glad it worked!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post

              205

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project