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

Changing the standard PXE boot fog 1.20

Scheduled Pinned Locked Moved
General
5
13
4.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.
  • E
    Ed Blom
    last edited by Jul 27, 2014, 7:20 PM

    I have searched on the wiki and in the forum, but cannot find this info, maybe someone can… !?

    Ok, so I used to change the default PXE menu, where is that located now ??

    I know how to do an advanced menu using the FOG web gui, like I said want to change the default fog menu
    also how do you password protect certain menu options ?

    1 Reply Last reply Reply Quote 0
    • E
      Ed Blom
      last edited by Jul 27, 2014, 7:38 PM

      aha, doing is learning. Here’s the file on the webserver:

      [url]http://FOGSERVER_IP/fog/service/ipxe/boot.php[/url]

      which leads me to: /var/www/service/ipxe/

      However looking at boot.php I see :

      <?php
      header(“Content-type: text/plain”);
      require_once(‘…/…/commons/base.inc.php’);
      if ($_REQUEST[‘mac0’] && !$_REQUEST[‘mac1’] && !$_REQUEST[‘mac2’])
      $_REQUEST[‘mac’] = $_REQUEST[‘mac0’];
      else if ($_REQUEST[‘mac0’] && $_REQUEST[‘mac1’] && !$_REQUEST[‘mac2’])
      $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].‘|’.$_REQUEST[‘mac1’];
      else if ($_REQUEST[‘mac0’] && !$_REQUEST[‘mac1’] && $_REQUEST[‘mac2’])
      $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].‘|’.$_REQUEST[‘mac2’];
      else if ($_REQUEST[‘mac0’] && $_REQUEST[‘mac1’] && $_REQUEST[‘mac2’])
      $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].‘|’.$_REQUEST[‘mac1’].‘|’.$_REQUEST[‘mac2’];
      $MACs = HostManager: arseMacList($_REQUEST[‘mac’]);
      $Host = $FOGCore->getClass(‘HostManager’)->getHostByMacAddresses($MACs);
      new BootMenu($Host);

      So a dead end… help

      1 Reply Last reply Reply Quote 0
      • E
        Ed Blom
        last edited by Jul 27, 2014, 7:53 PM

        And I am lost looking at ipxe 😞 I’m thinking it’s somewhere in the undionly.pxe <sigh>

        1 Reply Last reply Reply Quote 0
        • J
          Junkhacker Developer
          last edited by Jul 28, 2014, 1:36 PM

          the fog boot menu is php generated text in ipxe script format loaded by the ipxe network boot kernel
          options to secure the menu and menu hiding can be done by the settings in the pxe boot menu
          some options for scripting passwords on entries in the advanced boot menu have been made available as well

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • E
            Ed Blom
            last edited by Jul 28, 2014, 6:10 PM

            I set a password for the advanced screen, in the olden days, I could password -simple- every entry in the default menu
            Still not clear on how to change the default menu, I don’t want a second “advanced” menu

            1 Reply Last reply Reply Quote 0
            • J
              Junkhacker Developer
              last edited by Jul 28, 2014, 6:14 PM

              if you don’t want to use a second menu that you can edit just by pasting code into your browser, then have fun editing php code in the bootmenu.class.php file

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jul 28, 2014, 6:25 PM

                I understand what you want ed, but the simplest approach I can give you is to use the “Hide menu” feature.

                If you want alternate menu’s on the “main” menu system there is no implementation of this addition yet. I haven’t been able to figure out how to add hooks to allow customization of this for people yet. It’s not an easy feat for me and I don’t expect it would be any easier for any one else. That’s why we recommend the use of the Advanced Menu for “custom” menu’s. Responses of “I don’t want it that way” are perfectly reasonable, but I ask that you delve into correcting this yourself and post your code if you can figure out a way that upgrades won’t break this functionality for you either.

                Just my two cents.

                Understand, we are [b]NOT[/b] using pxelinux.0 anymore. For this reason, the “old” methods are no longer available. You can re-add this if you deem it necessary but our tasking are not generated in /tftpboot/pxelinux.cfg anymore. Our “simplest” approach is to use the hide menu and when I get it working, I’ll add the ability to hook into the menu system so you can have all of these functions.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • E
                  Ed Blom
                  last edited by Jul 28, 2014, 6:27 PM

                  Thanks for the attention Tom, I have been looking in ixpe menu’s and found it as clear as mud (not clear)

                  1 Reply Last reply Reply Quote 0
                  • J
                    Junkhacker Developer
                    last edited by Jul 28, 2014, 6:31 PM

                    i’d like to add that, when you create custom menu’s using the advanced menu setting, it persists through upgrades. it is stored in the database instead of in a file that can be overwritten

                    signature:
                    Junkhacker
                    We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                    1 Reply Last reply Reply Quote 0
                    • J
                      Junkhacker Developer
                      last edited by Jul 28, 2014, 6:32 PM

                      [url]http://fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url]

                      signature:
                      Junkhacker
                      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                      1 Reply Last reply Reply Quote 0
                      • E
                        Ed Blom
                        last edited by Jul 29, 2014, 1:02 AM

                        Ah the persistence maybe the attraction 🙂

                        1 Reply Last reply Reply Quote 0
                        • C
                          Chris Shipley
                          last edited by Aug 1, 2014, 3:13 AM

                          Wow, these upgrades have been awesome. Thank you, I like the simplicity of the advanced menu configuration now. I am having trouble loading a different kernel though. In the old pxe, I used the following code to load Clonezilla:

                          [CODE]MENU LABEL Clonezilla Live
                          KERNEL vmlinuz
                          APPEND initrd=initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run=“ocs-live-general” ocs_live_extra_param=“” ocs_live_keymap=“” ocs_live_batch=“no” ocs_lang=“” vga=788 nosplash noprompt fetch=tftp://IP_ADDRESS_OF_FOG_SERVER/filesystem.squashfs[/CODE]

                          I also had a clonezilla folder in my old tftpboot folder with vmlinuz, initrd.img, filesystem.squashfs The initrd.img was my Clonezilla image. So, any help in loading vmlinuz kernel with those would be rather helpful. If I have to edit the php code I will, but I am just not sure where I should be putting these options or their syntax (if they are available).

                          The regular Clonezilla live ISO file is a bit too large I think, or something with it isn’t compatible with memdisk. Any help or pointing in a good direction is vastly appreciated.

                          1 Reply Last reply Reply Quote 0
                          • X
                            x23piracy
                            last edited by Aug 2, 2014, 1:19 PM

                            Hi,

                            maybe that helps:
                            [url]http://www.fogproject.org/forum/threads/how-to-change-ipxes-and-advanced-menus-colors.11186/#post-33628[/url]

                            Regards X23

                            ║▌║█║▌│║▌║▌█

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            1 / 1
                            • First post
                              9/13
                              Last post

                            209

                            Online

                            12.1k

                            Users

                            17.3k

                            Topics

                            155.3k

                            Posts
                            Copyright © 2012-2024 FOG Project