<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ben</id>
		<title>FOG Project - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ben"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Special:Contributions/Ben"/>
		<updated>2026-04-14T22:21:50Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Create_Custom_Fog_Registration_menu&amp;diff=3237</id>
		<title>Create Custom Fog Registration menu</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Create_Custom_Fog_Registration_menu&amp;diff=3237"/>
				<updated>2011-05-13T06:02:30Z</updated>
		
		<summary type="html">&lt;p&gt;Ben: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In this example we will be using the Fog manual (Full Host Registration) process as a template, but slightly customizing it so that it only prompts for PC name Image ID and also automatically assigns the PC to the Windows 7 OS ID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Firstly we will need to edit the Init.gz image ([[Modifying_the_Init_Image]])&lt;br /&gt;
&lt;br /&gt;
open a terminal and enter the following&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd /tftpboot/fog/images&lt;br /&gt;
gunzip init.gz&lt;br /&gt;
mkdir initmountdir&lt;br /&gt;
mount -o loop init initmountdir&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Navigate to /tftboot/fog/images/initmountdir/bin&lt;br /&gt;
&lt;br /&gt;
Make a copy fog.man.reg&lt;br /&gt;
&lt;br /&gt;
Rename the copy to fog.custom.reg&lt;br /&gt;
&lt;br /&gt;
Open fog.custom.reg&lt;br /&gt;
&lt;br /&gt;
Make the following changes (&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Red = Remove code&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Blue = Add code&amp;lt;/span&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
''Lines 73-81''&lt;br /&gt;
 host=&amp;quot;&amp;quot;;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;ip=&amp;quot;&amp;quot;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 imageid=&amp;quot;&amp;quot;;&lt;br /&gt;
 osid=&amp;quot;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;NQ==&amp;lt;/span&amp;gt;&amp;quot;;   &lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;primaryuser=&amp;quot;&amp;quot;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;other1=&amp;quot;&amp;quot;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;other2=&amp;quot;&amp;quot;;&amp;lt;/span&amp;gt;&lt;br /&gt;
 blImage=&amp;quot;&amp;quot;;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;blDoAD=&amp;quot;&amp;quot;;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(note &amp;quot;NQ==&amp;quot; is the number 5 'Windows 7' encoded in base64)&lt;br /&gt;
&lt;br /&gt;
Delete the following code to remove the prompt for IP address&lt;br /&gt;
&lt;br /&gt;
''Lines 88-91'' &lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
 echo&lt;br /&gt;
 echo -n &amp;quot;    Enter the ip for this computer: &amp;quot;;&lt;br /&gt;
 read ip;&lt;br /&gt;
 ip=`echo $ip | base64`;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete the following code to remove the prompt for OS ID&lt;br /&gt;
&lt;br /&gt;
''Lines 109-123''&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
 while [ &amp;quot;$osid&amp;quot; = &amp;quot;&amp;quot; ] &lt;br /&gt;
 do&lt;br /&gt;
 echo&lt;br /&gt;
 echo -n &amp;quot;    Enter the OS ID for this computer (? for listing): &amp;quot;;&lt;br /&gt;
 ....&lt;br /&gt;
 ....&lt;br /&gt;
 osid=`echo $osid | base64`;		&lt;br /&gt;
 fi&lt;br /&gt;
 done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete the following code to remove the prompt for adding to Active directory&lt;br /&gt;
&lt;br /&gt;
''Lines 125-140''&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
 if [ &amp;quot;$blDoAD&amp;quot; = &amp;quot;&amp;quot; ] &lt;br /&gt;
 then&lt;br /&gt;
 echo&lt;br /&gt;
 ....&lt;br /&gt;
 ....&lt;br /&gt;
 esac&lt;br /&gt;
 fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete the following code to remove the prompts for Primary User, Tag 1 and Tag 2&lt;br /&gt;
&lt;br /&gt;
''Lines 142-155''&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
 echo&lt;br /&gt;
 echo -n &amp;quot;    Enter the primary user for this computer: &amp;quot;;&lt;br /&gt;
 read primaryuser;		&lt;br /&gt;
 primaryuser=`echo $primaryuser | base64`;		&lt;br /&gt;
		&lt;br /&gt;
 echo&lt;br /&gt;
 echo -n &amp;quot;    Enter the other tag #1 for this computer: &amp;quot;;&lt;br /&gt;
 read other1;	&lt;br /&gt;
 other1=`echo $other1 | base64`;&lt;br /&gt;
		&lt;br /&gt;
 echo&lt;br /&gt;
 echo -n &amp;quot;    Enter the other tag #2 for this computer: &amp;quot;;&lt;br /&gt;
 read other2;		&lt;br /&gt;
 other2=`echo $other2 | base64`;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make the following changes to so only the fields we have data for is sent back to the fog server&lt;br /&gt;
&lt;br /&gt;
''Lines 202-204''&lt;br /&gt;
&lt;br /&gt;
 res=`wget -O - --post-data=&amp;quot;mac=${mac}&amp;amp;advanced=1&amp;amp;host=${host}&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;amp;ip=${ip}&amp;lt;/span&amp;gt;&amp;amp;imageid=${imageid}&amp;amp;osid=${osid}&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;amp;primaryuser=${primaryuser}&amp;amp;other1=${other1}&amp;amp;other2=${other2}&amp;lt;/span&amp;gt;&amp;amp;doimage=${realdoimage}&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;amp;doad=${blDoAD}&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now save this document as fog.custom.reg&lt;br /&gt;
&lt;br /&gt;
Navigate to /tftboot/fog/images/initmountdir/etc/init.d&lt;br /&gt;
&lt;br /&gt;
Open S99Fog and add the following lines&lt;br /&gt;
&lt;br /&gt;
 elif [ &amp;quot;$mode&amp;quot; == &amp;quot;clamav&amp;quot; ]; then&lt;br /&gt;
 run=&amp;quot;/bin/fog.av&amp;quot;;&lt;br /&gt;
 after=$afterActionTerm;&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;elif [ &amp;quot;$mode&amp;quot; == &amp;quot;customreg&amp;quot; ]; then&lt;br /&gt;
 run=&amp;quot;/bin/fog.custom.reg&amp;quot;;&lt;br /&gt;
 after=$afterActionTerm;&amp;lt;/span&amp;gt;&lt;br /&gt;
 elif [ &amp;quot;$mode&amp;quot; == &amp;quot;autoreg&amp;quot; ]; then&lt;br /&gt;
 run=&amp;quot;/bin/fog.auto.reg&amp;quot;;&lt;br /&gt;
 after=$afterActionTerm;&lt;br /&gt;
&lt;br /&gt;
Save this document&lt;br /&gt;
&lt;br /&gt;
We now need to recreate the init.gz file with these new settings&lt;br /&gt;
open a terminal window and type&lt;br /&gt;
 cd /tftpboot/fog/images&lt;br /&gt;
 umount initmountdir/&lt;br /&gt;
 rmdir initmountdir&lt;br /&gt;
 gzip init&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally we can add another menu option in the PXE boot menu so we can boot into our custom Registration process&lt;br /&gt;
&lt;br /&gt;
navigate to /tftpboot/pxelinux.cfg&lt;br /&gt;
&lt;br /&gt;
Open the file named default and add the following code (where you add this will depend on where in the menu you would like it to appear)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:blue&amp;quot;&amp;gt;&lt;br /&gt;
 LABEL fog.customreg&lt;br /&gt;
 kernel fog/kernel/bzImage&lt;br /&gt;
 append initrd=fog/images/init.gz  root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=*.*.*.* mode=customreg web=*.*.*.*/fog/ quiet&lt;br /&gt;
 MENU LABEL Custom Host Registration and Inventory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
NOTE the * should be replaced with your DNS and Fog Server IP addresses (check what the fog.reg and fog.reginput entries are and use the same)&lt;br /&gt;
&lt;br /&gt;
Thats it. Now when you boot your PC your PXE menu should have a new menu option called &amp;quot;Custom Host Registration&amp;quot;&lt;br /&gt;
If you select this option you will go through the Fog registration and you will only be prompted for the PC name, The Image ID and whether or not you want to image the PC Now, by default the PC will have the Windows 7 OS ID&lt;/div&gt;</summary>
		<author><name>Ben</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Graphical_Menu_Configruation_Advanced&amp;diff=3164</id>
		<title>Graphical Menu Configruation Advanced</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Graphical_Menu_Configruation_Advanced&amp;diff=3164"/>
				<updated>2011-03-31T03:52:47Z</updated>
		
		<summary type="html">&lt;p&gt;Ben: /* Modify your default file from your server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to change the font size / color of the PXE boot menu==&lt;br /&gt;
&lt;br /&gt;
It's very easy to edit the graphical pxe menu of the FOG server.  You can change everything from the background color [[Link title]] to the font color / size, and even add additional pieces of software you can boot from.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Modify your default file from your server===&lt;br /&gt;
You can also edit and modify the default menu file directly on your FOG server.  This file is located in the '''/tftpboot/pxelinux.cfg''' folder. &amp;lt;br&amp;gt;&lt;br /&gt;
::''Note that this file, along with your customized edits, will be overwritten by FOG if the PXE boot menu is updated through the web interface.'' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the default file in your favorite text editor.  You are going to want to modify the file to adjust the menu color title and the default font color.  Please note that font color and menu color are controlled similar to what you would see in HTML based coding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;   DEFAULT vesamenu.c32&lt;br /&gt;
   MENU TITLE FOG Computer Cloning Solution&lt;br /&gt;
   MENU BACKGROUND fog/bg.png&lt;br /&gt;
   MENU MASTER PASSWD $1$K8Vl0MRF$IeRczmyo1X3EH3Zf5aEcH0&lt;br /&gt;
   &lt;br /&gt;
   menu color title	1;36;44    #ffffffff #00000000 std&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default #ffffffff = white&lt;br /&gt;
&lt;br /&gt;
By default #00000000 = black&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you feel inclined, you can also change what is displayed at the top of the menu as well.  Even though FOG is registered under GPL 3, I am going to suggest that you include some credit for Chuck Syperski / etc.&lt;br /&gt;
&lt;br /&gt;
Here is a list of other color elements you may wish to change&lt;br /&gt;
&lt;br /&gt;
 screen          Rest of the screen&lt;br /&gt;
 border          Border area&lt;br /&gt;
 title           Title bar&lt;br /&gt;
 unsel           Unselected menu item&lt;br /&gt;
 hotkey          Unselected hotkey&lt;br /&gt;
 sel             Selection bar&lt;br /&gt;
 hotsel          Selected hotkey&lt;br /&gt;
 disabled	 Disabled menu item&lt;br /&gt;
 scrollbar       Scroll bar&lt;br /&gt;
 tabmsg          Press [Tab] message&lt;br /&gt;
 cmdmark         Command line marker&lt;br /&gt;
 cmdline         Command line&lt;br /&gt;
 pwdborder       Password box border&lt;br /&gt;
 pwdheader       Password box header&lt;br /&gt;
 pwdentry        Password box contents&lt;br /&gt;
 timeout_msg     Timeout message&lt;br /&gt;
 timeout         Timeout counter&lt;br /&gt;
 help		 Help text&lt;br /&gt;
 msgXX		 Message (F-key) file attribute XX&lt;br /&gt;
&lt;br /&gt;
e.g &lt;br /&gt;
 menu color unsel 1;36;44    #fc0000 #00000000 std&lt;br /&gt;
will change the color of your menu items to red&lt;br /&gt;
&lt;br /&gt;
(These and more PXE menu settings can be found [http://syslinux.zytor.com/wiki/index.php/Comboot/menu.c32 http://syslinux.zytor.com/wiki/index.php/Comboot/menu.c32]&lt;br /&gt;
&lt;br /&gt;
=== Sample Background Images ===&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;White background with FOG logo in Black:&lt;br /&gt;
[[Media:Bg1.png]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Transparent FOG logo in Black:&lt;br /&gt;
[[Media:Bg2.png|Bg2.png]]&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
[[Category:Customization]]&lt;/div&gt;</summary>
		<author><name>Ben</name></author>	</entry>

	</feed>