<?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=Itismike</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=Itismike"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Special:Contributions/Itismike"/>
		<updated>2026-05-08T07:01:19Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Building_a_Custom_Kernel&amp;diff=7783</id>
		<title>Building a Custom Kernel</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Building_a_Custom_Kernel&amp;diff=7783"/>
				<updated>2013-02-07T19:04:12Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: per this post, bzImage isn't necessary: http://fogproject.org/forum/threads/vmware-hard-disk-clone-part-2.141/#post-1619&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Building a Custom Kernel ===&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
In FOG the kernel and the boot file system are separate and interchangeable, this makes it easier to upgrade a kernel without modifying the boot file system.  This also means that all drivers in the kernel are build into the kernel instead of being compiled as modules.  In our example we will be compiling the kernel on Fedora 9. &lt;br /&gt;
&lt;br /&gt;
== Build Process ==&lt;br /&gt;
&lt;br /&gt;
# Install the required packages to build the kernel with: &lt;br /&gt;
#* RHEL/Fedora/CentOS/.rpm other: (need confirmation that this is all the packages required?!?, may also need qt-devel and a few others)&lt;br /&gt;
#: &amp;lt;code&amp;gt;yum groupinstall &amp;quot;Development Tools&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Ubuntu/Debian/.deb other: &lt;br /&gt;
#: &amp;lt;code&amp;gt;sudo apt-get install qt3-dev-tools libqt3-mt-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
# Download the latest kernel source (which in this case is version 2.6.35.3):&lt;br /&gt;
#: &amp;lt;code&amp;gt;cd /usr/src&amp;lt;/code&amp;gt;&lt;br /&gt;
#: &amp;lt;code&amp;gt;wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
# Extract the tar file:&lt;br /&gt;
#: &amp;lt;code&amp;gt;tar -zxvf linux-2.6.35.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy the .config file from the fog release package which is located in the Fog Setup ./kernel directory:&lt;br /&gt;
#: &amp;lt;code&amp;gt;cp /opt/fog-setup/fog_0.29/kernel/kitchensink.config /usr/src/linux-2.6.35.3/.config&amp;lt;/code&amp;gt;&lt;br /&gt;
# Start configuring the kernel:&lt;br /&gt;
#* RedHat forks:&lt;br /&gt;
#: &amp;lt;code&amp;gt;make menuconfig&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Ubuntu/Debian, etc:&lt;br /&gt;
#: &amp;lt;code&amp;gt;make xconfig&amp;lt;/code&amp;gt;&lt;br /&gt;
#* This will run the kernel configuration tool, you will need to navigate around it a little to get a feel for it as there are many options.  Placing a check mark in a box will include it in the kernel, and unchecking an item will remove it from the kernel.  &lt;br /&gt;
#* To add or remove drivers from the kernel you will need to go to '''Device Drivers''', and network drivers are in '''Network Device Support.'''&lt;br /&gt;
#* '''Important:''' All settings required by fog are already in the kernel, when you are done making changes click '''save''' and close the application.&lt;br /&gt;
# Now you need to build the kernel: &lt;br /&gt;
#: &amp;lt;code&amp;gt;make bzImage&amp;lt;/code&amp;gt; &lt;br /&gt;
#* or possibly just:&lt;br /&gt;
#: &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;&lt;br /&gt;
#* ''This could take 10 minutes, depending on the speed of your machine and how many options you checked.''&lt;br /&gt;
# Backup your FOG kernel, and copy the new kernel image to your TFTP kernel folder, probably under /tftpboot:&lt;br /&gt;
#: &amp;lt;code&amp;gt;sudo cp /tftpboot/fog/kernel/bzImage /tftpboot/fog/kernel/backup/bzImage_&amp;lt;/code&amp;gt;'''YYYYMMDDHHMMSS'''&lt;br /&gt;
#:* ''Of course, you can name your backup anything you want, that is simply the name convention used by FOG&lt;br /&gt;
#: &amp;lt;code&amp;gt;sudo cp /usr/src/linux-2.6.35.3/arch/x86/boot/bzImage /tftpboot/fog/kernel/bzImage&amp;lt;/code&amp;gt;&lt;br /&gt;
# And, you're done! Try booting a client with your new kernel to test it. Repeat steps 5-7 above if you need to make any changes. If you are happy with your configuration, you can save the configuration by backing up the .config file located in the boot of the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
== Note ==&lt;br /&gt;
&lt;br /&gt;
When building on x86_64 systems you may need to specify that you are building for an x86 target architecture.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make ARCH=i386 menuconfig&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make ARCH=i386 bzImage&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Client_Setup&amp;diff=7766</id>
		<title>Client Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Client_Setup&amp;diff=7766"/>
				<updated>2013-01-22T16:20:42Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Clarified pre-installation steps including BIOS settings, partition deletion, etc.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Absolute Basics ==&lt;br /&gt;
When using FOG all clients should be setup to have PXE boot as the [[Booting into FOG and Uploading your first Image#Set_client_to_PXE_boot_in_BIOS|first boot device]]. This allows imaging tasks to be deployed without visiting the client computer, while only slowing down the boot process by a few seconds.&amp;lt;br&amp;gt;&lt;br /&gt;
If you are following this guide straight through, it is a good idea to test an upload on a spare computer rather than testing it on your master image after doing all the steps below, just in case of complications.&lt;br /&gt;
&lt;br /&gt;
=== Deciding on an Image Strategy ===&lt;br /&gt;
FOG's strength is the flexibility to adapt to your environment needs.&lt;br /&gt;
As an example lets say you have 20 of one computer model and 20 of another.&lt;br /&gt;
You need to support both groups of machines and wish to use FOG to host images for both the machines.&lt;br /&gt;
&lt;br /&gt;
There are two ways to do this.&lt;br /&gt;
&lt;br /&gt;
* Create an image for a specific computer (useful if you have 10+ more of the same model computer)&lt;br /&gt;
* Create a hardware independent image (useful if you have many different models of computers in your environment)&lt;br /&gt;
&lt;br /&gt;
''' Example: '''&lt;br /&gt;
Your environment has 20 Dell Optiplex 760 Machines.&lt;br /&gt;
Your environment also has 20 Lenovo ThinkCentre M91p Machines.&lt;br /&gt;
&lt;br /&gt;
Since FOG allows you to group your host and apply the same image to all host in that group, it might be better for you to create a standard ''Dell'' Image and a seperate ''Lenovo'' Image. &lt;br /&gt;
However if you have 5+ machines with different models, it might be time to create a ''Master Image'' that covers the hardware for ALL your machines. These are known as ''Hardware Independant'' Images or ''Master'' Images. They are also known as ''Golden Images''. Regardless of the name used, they all mean the same thing. An image that works on any machine/hardware.&lt;br /&gt;
&lt;br /&gt;
== Common Steps for Any OS Installation ==&lt;br /&gt;
=== Always Start with a Clean Hard Drive ===&lt;br /&gt;
Even if your drive is brand new from the Factory, it is recommended to wipe the drive before you install an OS on it. &lt;br /&gt;
This is considered a '''best practice''' and has several reasons for doing so.&lt;br /&gt;
&lt;br /&gt;
=== Reasons for Wiping a Hard Drive ===&lt;br /&gt;
==== Brand New Hard Drives ====&lt;br /&gt;
Even if the drive is brand new from the factory in an unopened box, you should wipe it.&lt;br /&gt;
In 2007 [http://www.zdnet.com/blog/hardware/malware-found-on-new-hard-drives/928 an incident was reported] where 1800 brand new hard drives were shipped from the manufacturer with a virus already on the drive. While the likelihood of hard drives being infected from the manufacturer is extremely small, wiping a drive with a single pass only takes a few minutes and can save you much heart aches in the future. It is also a good way to test the drive to make sure it's not a bad drive from the factory. Most hard drives that have a factory defect will die within the first few months of use. If the drive fails during the wipe, you normally can return it to the store in a timely manner and get a new one.&lt;br /&gt;
&lt;br /&gt;
==== Used Drives ====&lt;br /&gt;
Deleting partitions or doing a ''soft'' format isn't enough. Some virus and malware components can survive a full disk format. They place themselves in un-used disk areas (eg: [http://www.eset.com/resources/white-papers/Rooting-about-in-TDSS.pdf counting backwards] from the last logical block of the drive geometry.) Even though they cannot execute themselves until specifically called, a re-infection could allow them to access previously-saved information, such as keylogger data or other personal information.&lt;br /&gt;
&lt;br /&gt;
=== Wiping a Drive ===&lt;br /&gt;
''Wipeing a Hard drive can take a long time depending on the size of the drive!''&lt;br /&gt;
On average a 160gb SATA hard drive can take an hour to wipe.&lt;br /&gt;
Writing a single pass of data (random or not) is plenty sufficient to remove all traces of a program or malware. In fact, the [http://en.wikipedia.org/wiki/Gutmann_method Gutmann method] has been called useless by the creator of the method [http://en.wikipedia.org/wiki/Gutmann_method#Criticism] as his paper was misinterpreted. Thirty Five passes are not needed in modern drives.&lt;br /&gt;
&lt;br /&gt;
==== Windows 7 ====&lt;br /&gt;
Open a Command Line as Administrator&lt;br /&gt;
Type: &amp;lt;tt&amp;gt;format /p:1 '''&amp;lt;Drive Letter&amp;gt;'''&amp;lt;/tt&amp;gt; &lt;br /&gt;
Replace '''&amp;lt;Drive Letter&amp;gt;''' with E:\ or which ever drive you wish to format.&lt;br /&gt;
This will zero-out all bits on a disk.&lt;br /&gt;
&lt;br /&gt;
==== UNIX/Linux ====&lt;br /&gt;
Open a Shell prompt as ''root'' or a user with ''sudo'' rights on Ubuntu/Debian based machines&lt;br /&gt;
&lt;br /&gt;
===== Simple Wipe =====&lt;br /&gt;
Fedora: &amp;lt;tt&amp;gt;dd if=/dev/zero of=/dev/sd'''X'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ubuntu/Debian Based &amp;lt;tt&amp;gt;dd if=/dev/zero of=/dev/sd'''X'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Replace '''sdX''' with the driver leter you wish to wipe''&lt;br /&gt;
This will zero-out all bits on the disk&lt;br /&gt;
&lt;br /&gt;
===== Random Wipe =====&lt;br /&gt;
Fedora: &amp;lt;tt&amp;gt;dd if=/dev/random of=/dev/sd''X''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ubuntu/Debian Based &amp;lt;tt&amp;gt;dd if=/dev/random of=/dev/sd''X''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Replace '''sdX''' with the driver leter you wish to wipe''&lt;br /&gt;
This will zero-out all bits on the disk&lt;br /&gt;
&lt;br /&gt;
==== FOG ====&lt;br /&gt;
FOG has a built-in utility that can do this as well. Be sure to use '''Normal Wipe''' as Fast Wipe only zeros out the first few sectors of a disk (Master Boot Record and Partition Table). A Full Wipe is not necessary to remove data from a disk. It is reserved for the [http://www.root777.com/security/the-great-zero-challenge/ most extreme] cases.&lt;br /&gt;
&lt;br /&gt;
==== DBAN ==== &lt;br /&gt;
[http://www.dban.org/ DBAN] is another tool you could use to wipe a drive. It is available as a bootable ISO (or put on a USB drive if you wish[http://www.pendrivelinux.com/]) and can wipe many drives at the same time. It supports all types of wipes. Either Zero, Random, 7 Pass, or even 35 Pass.&lt;br /&gt;
&lt;br /&gt;
== Single Image Machines ==&lt;br /&gt;
&lt;br /&gt;
=== Install Windows ===&lt;br /&gt;
* Set the BIOS to your preferred SATA mode. Legacy and AHCI work very well. Intel (fake) RAID has caused problems.&lt;br /&gt;
* After wiping your hard drive, install Windows as normal on the machine you wish to make the image for.&lt;br /&gt;
** During installation, select Custom(Advanced) to open the disk partitioner and delete any existing partitions.&lt;br /&gt;
** Click Next to continue with Unallocated space. Do not manually create partitions unless absolutely necessary. Doing so may break FOG's ability to manage Windows.&lt;br /&gt;
&lt;br /&gt;
=== Install Updates ===&lt;br /&gt;
Be sure to perform all updates. Windows often requires multiple reboots and visits to update.microsoft.com until everything reports as up-to-date.&lt;br /&gt;
''Note that Windows may attempt to push additional software through the update channel such as Windows Live and Silverlight. Decide what you want on your platform before accepting additional software.''&lt;br /&gt;
It is recommended you at least explore the ''custom'' updates section as many times there are updated drivers for your hardware.&lt;br /&gt;
&lt;br /&gt;
=== Install Software ===&lt;br /&gt;
Any software that are constantly updated such as Adobe Products (reader/flash), Java or anything that has the possiblity of being out-of-date. Should be installed using other means ''AFTER'' the image is made. This will save space as well as keep security risk to a minimum. Execptions should be made for large applications or time-consuming software such as Microsoft Office Suite.&lt;br /&gt;
&lt;br /&gt;
* Install any software that is necessary for client management.&lt;br /&gt;
:: For example, install the FOG Service. Don't forget to place your customized version of hostnamechange.dll in the FOG programs folder.&lt;br /&gt;
* Install other enterprise tools you need such as SCCM or Atriris services.&lt;br /&gt;
&lt;br /&gt;
=== Setup a Default Profile ===&lt;br /&gt;
In order to have the same settings for all new profiles on the machine such as desktop shortcuts you should setup a default profile.&lt;br /&gt;
''Note:'' The default profile is different from the all users profile. All Users are only for profiles already created. Any new profile will be generated by using the default profile.&lt;br /&gt;
&lt;br /&gt;
==== Windows XP ====&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new profile&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Setup the profile as you wish - Shortcuts/Desktop Image&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Log out of this profile and log in to the administrator profile.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy the profile: Right-click My Computer &amp;gt; Properties &amp;gt; Advanced &amp;gt; User Profiles. Select the profile you edited and choose to Copy it to the Default Profile folder under Documents and Settings.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure permissions are correct: Under Permitted to use, click Change, click Everyone, and then click OK.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
You may wish to see [http://support.microsoft.com/kb/168475 MS KB 168475] and [http://support.microsoft.com/kb/959753 MS KB 959753] for details.&lt;br /&gt;
&lt;br /&gt;
==== Windows 7 ====&lt;br /&gt;
This is handled by Sysprep. You can use the '''&amp;lt;CopyProfile&amp;gt;true&amp;lt;/CopyProfile&amp;gt;''' in your unattend.xml file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove Unnecessary Software/Files ===&lt;br /&gt;
It is recommended you remove any software that is not used.&lt;br /&gt;
You can use a cleaner program such as [http://www.piriform.com/ccleaner ccleaner] to remove unnecessary files. Other things you can remove to save image size space are:&lt;br /&gt;
::* shrinking/turning off system restore.&lt;br /&gt;
::* removing hotfix uninstaller folders&lt;br /&gt;
&lt;br /&gt;
=== Before Running Sysprep ===&lt;br /&gt;
==== Make a Pre-Sysprep an Image ====&lt;br /&gt;
It is recommended that you make a system image using FOG ''BEFORE YOU SYSPREP''!&lt;br /&gt;
Sysprep does alot of changes, and takes a long time. It is useful to make an image of the drive the way it is now incase something happens during the sysprep process.&lt;br /&gt;
It is also nice to have a pre-sysprep image available when it comes time to update the systems image. You can deploy the pre-sysprep image to the computer and then update windows or install new software etc. without having to redo this entire process!&lt;br /&gt;
&lt;br /&gt;
==== Before Running Sysprep ====&lt;br /&gt;
Other steps to consider are:&lt;br /&gt;
* Run Chkdsk /f /p prior to imaging&lt;br /&gt;
* Defrag the drive&lt;br /&gt;
* Make sure 2gb of disk space is free or the NTFSresize will fail&lt;br /&gt;
* Make sure the FOG service is installed and properly configured&lt;br /&gt;
* Update your [http://www.fogproject.org/wiki/index.php?title=Managing_FOG#Securing_Active_Directory_Integration hostnamechange.dll] file&lt;br /&gt;
* For *Windows 7 ONLY*: FOG Prep&lt;br /&gt;
** (Both of the above are available from your FOG server: FOG_Server_IP_or_Hostname/fog/client/)&lt;br /&gt;
*pasted from notes: (Some of these are best handled at the enterprise-level (Group Policy) rather than maintaining them on the image.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable Admin account&lt;br /&gt;
Set admin PW&lt;br /&gt;
Disable UAC&lt;br /&gt;
Disable Sidebar objects?&lt;br /&gt;
My Computer, IE, Recycle Bin, Documents on Desktop&lt;br /&gt;
Change Home page&lt;br /&gt;
Delete Start Menu Items&lt;br /&gt;
Run Media Player&lt;br /&gt;
Disable System Restore&lt;br /&gt;
Disable Hybernation - delete Hyberfile.sys&lt;br /&gt;
disable Virtual Memory - delete pagefile.sys&lt;br /&gt;
Disable Firewall&lt;br /&gt;
Disable Windows Defender&lt;br /&gt;
Disable automatic updates&lt;br /&gt;
Security Center - Warnings&lt;br /&gt;
Disable Windows Welcome Screen&lt;br /&gt;
Don't show this message - IT Information Bar&lt;br /&gt;
Power Options&lt;br /&gt;
HAL Drivers set correctly within Device Manager (Advanced Configuration and Power Interface (ACPI)&lt;br /&gt;
Show &amp;quot;Run&amp;quot; and &amp;quot;Printers&amp;quot; in Start menu&lt;br /&gt;
Windows Updates up-to-date&lt;br /&gt;
Enable Remote Desktop&lt;br /&gt;
Enable Remote Assistance&lt;br /&gt;
Show Hidden Files Disable Hidden Files&lt;br /&gt;
Remove/Delete other Windows Accounts&lt;br /&gt;
Delete Recent Items&lt;br /&gt;
Empty Recycle Bin&lt;br /&gt;
Copy Creation Profile to Default profile&lt;br /&gt;
Defrag&lt;br /&gt;
Disk Clean up&lt;br /&gt;
Chkdsk OS partition&lt;br /&gt;
bcdedit /set {bootmgr} device boot&lt;br /&gt;
bcdedit /set {default} device boot&lt;br /&gt;
bcdedit /set {default} osdevice boot&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set up &amp;quot;creation&amp;quot; profile exactly how user profiles will be. &lt;br /&gt;
*Select option to copy profile to Default profile during Sysprep&lt;br /&gt;
*Rather than enabling Admin account as described above, disable built-in Administrator account - create custom named Administrator account and Set password&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows 7: Add NetDOM*&lt;br /&gt;
*As of FOG 0.28 this is no longer riquired.&amp;lt;br/&amp;gt;&lt;br /&gt;
Both: Download Sysprep - don't use included version&lt;br /&gt;
&lt;br /&gt;
==== Run Sysprep ====&lt;br /&gt;
===== Windows XP =====&lt;br /&gt;
&amp;lt;content needed&amp;gt;&lt;br /&gt;
===== Windows 7 =====&lt;br /&gt;
&amp;lt;content needed&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dual boot Images ==&lt;br /&gt;
&lt;br /&gt;
This part is referred to the installation of the master PC to be cloned, in the following working environment:&lt;br /&gt;
&lt;br /&gt;
* Fog 0.32  - http://www.fogproject.org/&lt;br /&gt;
* The installation of the server has been accomplished using the official wiki infos&lt;br /&gt;
* The installation will be performed on Dell Optiplex 960&lt;br /&gt;
* The desired system is a dual boot&lt;br /&gt;
** Windows 7&lt;br /&gt;
** Ubuntu (12.04 alpha at the moment, final installation will be done on Ubuntu 12.04 LTS)&lt;br /&gt;
&lt;br /&gt;
=== PC configuration ===&lt;br /&gt;
&lt;br /&gt;
The needed partitions are:&lt;br /&gt;
# Windows 7 (about 100M)&lt;br /&gt;
# Windows 7 (the all system)&lt;br /&gt;
# linux swap&lt;br /&gt;
# linux home&lt;br /&gt;
&lt;br /&gt;
The disk is partitioned in 4 primary partitions, the installation sequence is:&lt;br /&gt;
* Windows installation (Seven will setup 2 partition)&lt;br /&gt;
* Manual disk resizing/partitioning to add a swap and the linux partition (formatted as ext3)&lt;br /&gt;
* Ubuntu installation&lt;br /&gt;
&lt;br /&gt;
 NOTE: FOG use partimage, so the selected partition type must be compatible with partimage&lt;br /&gt;
&lt;br /&gt;
=== Windows Seven ===&lt;br /&gt;
&lt;br /&gt;
No particular modifications (i.e. see the relevant part on installing a standalone Windows 7)&lt;br /&gt;
&lt;br /&gt;
=== Linux Ubuntu ===&lt;br /&gt;
&lt;br /&gt;
The installation is a standard Linux installation, but the default grub is not supported&lt;br /&gt;
(see also http://www.ehu.es/es/web/instalaciones/fogehu/-/wiki/main/conocimiento#Despliegue_de_im%C3%A1genes_con_Ubuntu_11.04), so we downgrade to grub-legacy:&lt;br /&gt;
&lt;br /&gt;
 apt-get install -y grub&lt;br /&gt;
 cp NEWmenu.lst /boot/grub/menu.lst&lt;br /&gt;
 cp ${DATA_DIR}/wallpaper-asid-640x480.xpm.gz /boot/grub/wallpaper-asid-640x480.xpm.gz&lt;br /&gt;
 grub-install /dev/sda&lt;br /&gt;
&lt;br /&gt;
where the NEWmenu-lst is:&lt;br /&gt;
&lt;br /&gt;
 timeout 10&lt;br /&gt;
 &lt;br /&gt;
 # Pretty colours&lt;br /&gt;
 color cyan/blue white/blue&lt;br /&gt;
 &lt;br /&gt;
 #splashimage&lt;br /&gt;
 splashimage=(hd0,3)/boot/grub/wallpaper.xpm.gz                              &lt;br /&gt;
 &lt;br /&gt;
 title GNU/Linux Ubuntu&lt;br /&gt;
 root (hd0,3) &lt;br /&gt;
 kernel /boot/vmlinuz-3.2.0-14-generic-pae root=/dev/sda4 ro quiet splash&lt;br /&gt;
 initrd /boot/initrd.img-3.2.0-14-generic-pae&lt;br /&gt;
 &lt;br /&gt;
 title Windows 7&lt;br /&gt;
 rootnoverify (hd0,0)&lt;br /&gt;
 chainloader (hd0,0)+1&lt;br /&gt;
 &lt;br /&gt;
 quiet&lt;br /&gt;
 savedefault&lt;br /&gt;
 boot&lt;br /&gt;
&lt;br /&gt;
The partition naming and kernel filenames are related to a particular installation: you need to check them.&lt;br /&gt;
Here we setup a custom grub wallpaper: it is an XPM image, 640x480, 14 colors.&lt;br /&gt;
&lt;br /&gt;
=== Image Upload ===&lt;br /&gt;
&lt;br /&gt;
The image upload need to be setted as:&lt;br /&gt;
&lt;br /&gt;
* Single disk, multiple partitions&lt;br /&gt;
* OStype Linux&lt;br /&gt;
&lt;br /&gt;
The option Single disk, multiple partition will manage to upload/deploy all the partition of the disk.&lt;br /&gt;
The OStype setted to Linux will copy a 32256 bytes MBR.&lt;br /&gt;
&lt;br /&gt;
 NOTE: setting a Windows 7 OStype, will clone a 512 bytes MBR: at the boot the system will show the string GRUB and then will hang!&lt;br /&gt;
&lt;br /&gt;
With this configuration, after the image upload, in the directory '''/images''' of the fog server there should be a directory with the name selected for the image containing:&lt;br /&gt;
&lt;br /&gt;
* d1.mbr (the MBR: should be 32256 bytes)&lt;br /&gt;
* d1p1.img&lt;br /&gt;
* d1p2.img&lt;br /&gt;
* d1p4.img&lt;br /&gt;
&lt;br /&gt;
there are 1 file for partition, with the exception of the swap partition.&lt;br /&gt;
&lt;br /&gt;
== Hardware-Independent Images ==&lt;br /&gt;
Making a Hardware Independent Image, is very similar to making a Single Machine Image with a few very important differences.&lt;br /&gt;
&lt;br /&gt;
=== Understanding HAL ===&lt;br /&gt;
HAL (Hardware Abstraction Layer) is very similar to the Kernel in *nix systems.&lt;br /&gt;
====Windows XP and HAL====&lt;br /&gt;
&lt;br /&gt;
Not using the correct HAL will lead to a BSOD on your computers or give you a huge performance hit.&lt;br /&gt;
Luckly you can tell Windows XP (via sysprep) to update the HAL on the fly.&lt;br /&gt;
&lt;br /&gt;
'''Windows XP typically uses one of 3 HAL types.'''&lt;br /&gt;
&lt;br /&gt;
*Advanced Configuration and Power Interface (ACPI)&lt;br /&gt;
*ACPI Uniprocessor PC&lt;br /&gt;
*ACPI Multiprocessor&lt;br /&gt;
&lt;br /&gt;
'''Updating HAL with Sysprep.inf'''&lt;br /&gt;
&lt;br /&gt;
You can update the HAL dynamically by adding this to your Sysprep.inf under the [unattended] section&lt;br /&gt;
&lt;br /&gt;
''&lt;br /&gt;
 UpdateUPHAL = “ACPIAPIC_UP,%WINDIR%\Inf\Hal.inf”&lt;br /&gt;
 UpdateUPHAL = “ACPIPIC_UP,%WINDIR%\Inf\Hal.inf”&lt;br /&gt;
 UpdateUPHAL = “MPS_UP,%WINDIR%\Inf\Hal.inf”&lt;br /&gt;
''&lt;br /&gt;
&lt;br /&gt;
''As a General rule it is best to create your image using a machine (or virtual machine) using a single processor (ACPI Uniprocessor PC). Using a Muti-core processor might yield unexpected results even when using the UpdateUPHAL lines in the sysprep.inf file.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Windows Vista,7 and Beyond====&lt;br /&gt;
&lt;br /&gt;
As of Windows Vista you '''don't need to worry about HAL's''' due to the /generalize switch.&lt;br /&gt;
When you use this switch with sysprep Windows will automatically take care of updating the HAL during the sysprep process!&lt;br /&gt;
&lt;br /&gt;
=== Install Wipe / Install / Setup ===&lt;br /&gt;
At this point you should:&lt;br /&gt;
For help with these steps refer to the Single Image Directions above.&lt;br /&gt;
*Wipe The Hard Drive&lt;br /&gt;
*Install Windows&lt;br /&gt;
*Install Large Software Packages&lt;br /&gt;
*Install other Enterprise software (such as FOG Client)&lt;br /&gt;
*Install Windows Updates&lt;br /&gt;
*Setup Default Profile&lt;br /&gt;
*Remove Unnecessary Software/Files&lt;br /&gt;
&lt;br /&gt;
=== Changing the IDE Controller to Standard ===&lt;br /&gt;
''Windows XP Only''&lt;br /&gt;
If using Windows 7 you can skip this step.&lt;br /&gt;
To help make the image more compliant to other hardware, you should change the IDE controller to the standard driver included with Windows XP.&lt;br /&gt;
To do this:&lt;br /&gt;
*Open Computer Management (right click '''My Computer''' Select Manage)&lt;br /&gt;
*Locate the IDE ATA/ATAPI Controllers&lt;br /&gt;
::*Expand&lt;br /&gt;
*Right Click on the IDE Controller&lt;br /&gt;
*Select Update Driver&lt;br /&gt;
*If asked to search online select No, not this time.&lt;br /&gt;
*Select install from a list or specific location (advanced)&lt;br /&gt;
*Select Don't Search, I will choose the driver to install&lt;br /&gt;
*Make sure &amp;quot;Show Compatible Hardware&amp;quot; is checked&lt;br /&gt;
*Select the Standard Dual Channel PCI IDE CONTROLLER&lt;br /&gt;
*Next&lt;br /&gt;
*Finish&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
This will allow Windows to boot on the target machines, then the new hardware wizard will take over and detect the correct controller card for that machine.&lt;br /&gt;
&lt;br /&gt;
=== Loading Drivers ===&lt;br /&gt;
&lt;br /&gt;
==== Mass Storage Drivers ====&lt;br /&gt;
To make a truly hardware independent image it is recommended you load all the mass storage drivers in your image.&lt;br /&gt;
To include every mass storage driver needed for '''any''' machine you could use [http://driverpacks.net/ driver packs].&lt;br /&gt;
&lt;br /&gt;
==== Other Drivers ====&lt;br /&gt;
You should also include all other drivers for all your other machines. These drivers should include VGA Drivers, Network Drivers, Sound Drivers and any other drivers you might need for those systems.&lt;br /&gt;
&lt;br /&gt;
=== Before You Sysprep ===&lt;br /&gt;
==== Make a Pre-Sysprep an Image ====&lt;br /&gt;
It is recommended that you make a system image using FOG ''BEFORE YOU SYSPREP''!&lt;br /&gt;
Sysprep does alot of changes, and takes a long time. It is useful to make an image of the drive the way it is now incase something happens during the sysprep process.&lt;br /&gt;
It is also nice to have a pre-sysprep image available when it comes time to update the systems image. You can deploy the pre-sysprep image to the computer and then update windows or install new software etc. without having to redo this entire process!&lt;br /&gt;
&lt;br /&gt;
==== Run Sysprep ====&lt;br /&gt;
&lt;br /&gt;
===== Windows XP Sysprep Guides=====&lt;br /&gt;
[http://www.vernalex.com/guides/sysprep/ Vernalex Sysprep Guides] offer some great advice on this subject. You should pay particular attention to the [http://www.vernalex.com/guides/sysprep/mass.shtml mass storage devices] part of the guide as this is crucial to makeing the image work with your hardware. It is recommended to build the mass storage section before running sysprep.&lt;br /&gt;
&lt;br /&gt;
You should also read [http://support.microsoft.com/kb/302577 Microsoft KB Article 302577] on sysprep&lt;br /&gt;
&lt;br /&gt;
===== Windows XP =====&lt;br /&gt;
Run Sysprep.exe and tick mini-setup and detect plug and play hardware.&lt;br /&gt;
Click Reseal.&lt;br /&gt;
&lt;br /&gt;
===== Windows 7 =====&lt;br /&gt;
&amp;lt;content needed&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Take a Post-Sysprep Image ===&lt;br /&gt;
'''TEST THIS IMAGE''' Before use in a production environment. Your first try might not work, you might be missing drivers that you will have to add. This is why it is recommended to make a Pre-Sysprep Image. It might take a few trys before all the drivers needed are loaded.&lt;br /&gt;
When all is done right, it's worth the time as you will have an image that works on ANY HARDWARE!&lt;br /&gt;
&lt;br /&gt;
If the image works fine on one type of computer, try others to make sure its truely hardware independant. If it works well, this is the image you should use when deploying to your target machines.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Talk:Password_Central&amp;diff=4981</id>
		<title>Talk:Password Central</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Talk:Password_Central&amp;diff=4981"/>
				<updated>2011-12-06T20:09:13Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: /* MySQL Root Account */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Scratch Area ==&lt;br /&gt;
See the Discussions tab at the top for templates and known password locations.&amp;lt;br&amp;gt;&lt;br /&gt;
And please, feel free to make adjustments and add content!&lt;br /&gt;
&lt;br /&gt;
= Template =&lt;br /&gt;
&lt;br /&gt;
====&amp;lt;!-- A simple explanation of the password --&amp;gt;Fog's user account on main FOG server====&lt;br /&gt;
	&amp;lt;!-- Additional explanation, if necessary --&amp;gt;This is a standard user account on the server. It is named 'fog'&amp;lt;br&amp;gt;&lt;br /&gt;
Common errors associated with this mismatched password:&lt;br /&gt;
	&amp;lt;ul&amp;gt;&lt;br /&gt;
		&amp;lt;li&amp;gt;&amp;lt;!-- first likely error --&amp;gt;FOG can't do anything&amp;lt;/li&amp;gt;&lt;br /&gt;
		&amp;lt;li&amp;gt;&amp;lt;!-- second likely error --&amp;gt;Unexpected, strange errors&amp;lt;/li&amp;gt;&lt;br /&gt;
		&amp;lt;li&amp;gt;&amp;lt;!-- third likely error, etc --&amp;gt;...&amp;lt;/li&amp;gt;&lt;br /&gt;
	&amp;lt;/ul&amp;gt;&lt;br /&gt;
How to modify this password:&lt;br /&gt;
:The location varies per operating system.&lt;br /&gt;
:To reset it, type this at the command line on the Main FOG server:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo passwd fog&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''(Click EDIT to copy the source code of this template)'''&lt;br /&gt;
&lt;br /&gt;
= Known Passwords =&lt;br /&gt;
===Passwords on the Main FOG Server===&lt;br /&gt;
====TFTP Credentials====&lt;br /&gt;
&amp;quot;Other Information&amp;quot; &amp;gt; &amp;quot;FOG System Settings&amp;quot; &amp;gt; &amp;quot;TFTP Server&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;FOG_TFTP_FTP_USERNAME&lt;br /&gt;
FOG_TFTP_FTP_PASSWORD&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====MySQL Root Account====&lt;br /&gt;
&amp;lt;tt&amp;gt;/opt/fog/service/etc/config.php&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;define( &amp;quot;MYSQL_HOST&amp;quot;, &amp;quot;localhost&amp;quot; ); &lt;br /&gt;
define( &amp;quot;MYSQL_DATABASE&amp;quot;, &amp;quot;fog&amp;quot; ); &lt;br /&gt;
define( &amp;quot;MYSQL_USERNAME&amp;quot;, &amp;quot;root&amp;quot; ); &lt;br /&gt;
define( &amp;quot;MYSQL_PASSWORD&amp;quot;, &amp;quot;SQLpassword&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/var/www/fog/commons/config.php&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;define( &amp;quot;MYSQL_DATABASE&amp;quot;, &amp;quot;fog&amp;quot; );&lt;br /&gt;
define( &amp;quot;MYSQL_USERNAME&amp;quot;, &amp;quot;root&amp;quot; );&lt;br /&gt;
define( &amp;quot;MYSQL_PASSWORD&amp;quot;, &amp;quot;SQLpassword&amp;quot; );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: SQLpassword is usually blank if following the FOG installation instructions.&lt;br /&gt;
&lt;br /&gt;
====PXE Boot Menu passwords====&lt;br /&gt;
See [https://sourceforge.net/projects/freeghost/forums/forum/716419/topic/3669158 this forum post]&lt;br /&gt;
&lt;br /&gt;
===Passwords on Storage Nodes===&lt;br /&gt;
==== The storage node's management password ====&lt;br /&gt;
&amp;quot;All Current Storage Nodes&amp;quot; &amp;gt; &amp;quot;Edit Storage Node Definition&amp;quot; &lt;br /&gt;
&amp;lt;pre&amp;gt;Management Username: &lt;br /&gt;
Management Password:&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To match what was in &amp;quot;Other Information&amp;quot; &amp;gt; &amp;quot;FOG System Settings&amp;quot; &amp;gt; &amp;quot;TFTP Server&amp;quot; &lt;br /&gt;
&amp;lt;pre&amp;gt;FOG_TFTP_FTP_USERNAME: &lt;br /&gt;
FOG_TFTP_FTP_PASSWORD:&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Storage &amp;gt; Select Storage Node &amp;gt; Edit Storage Node Definition&lt;br /&gt;
&amp;lt;pre&amp;gt;Management Username: fog&lt;br /&gt;
Management Password: [pw of user 'fog' on the storage node]&amp;lt;/pre&amp;gt;&lt;br /&gt;
How to reset:&lt;br /&gt;
From the command-line of the Storage Node:&amp;lt;pre&amp;gt;sudo passwd fog&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;/var/www/fog/commons/config.php&lt;br /&gt;
define( &amp;quot;TFTP_FTP_USERNAME&amp;quot;, &amp;quot;fog&amp;quot; );&lt;br /&gt;
define( &amp;quot;TFTP_FTP_PASSWORD&amp;quot;, &amp;quot;****&amp;quot; );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;define( &amp;quot;STORAGE_FTP_USERNAME&amp;quot;, &amp;quot;fog&amp;quot; );&lt;br /&gt;
define( &amp;quot;STORAGE_FTP_PASSWORD&amp;quot;, &amp;quot;3b4f2a&amp;quot; );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;define( &amp;quot;MYSQL_DATABASE&amp;quot;, &amp;quot;fog&amp;quot; );&lt;br /&gt;
define( &amp;quot;MYSQL_USERNAME&amp;quot;, &amp;quot;root&amp;quot; );&lt;br /&gt;
define( &amp;quot;MYSQL_PASSWORD&amp;quot;, &amp;quot;&amp;quot; );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to change:&lt;br /&gt;
On the node:&amp;lt;pre&amp;gt;sudo vi /var/www/fog/commons/config.php&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Talk:Create_a_windows_7_image_for_many_different_hardware&amp;diff=4248</id>
		<title>Talk:Create a windows 7 image for many different hardware</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Talk:Create_a_windows_7_image_for_many_different_hardware&amp;diff=4248"/>
				<updated>2011-10-11T14:02:48Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;FOGprep.exe and bcdedit are not necessary when using sysprep and the /generalize command:&lt;br /&gt;
https://sourceforge.net/projects/freeghost/forums/forum/716419/topic/4502277&lt;br /&gt;
[[User:Itismike|Itismike]] 07:02, 11 October 2011 (MST)&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_an_image_upload&amp;diff=3756</id>
		<title>Troubleshooting an image upload</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_an_image_upload&amp;diff=3756"/>
				<updated>2011-08-09T16:42:54Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Troubleshooting an image upload ===&lt;br /&gt;
&lt;br /&gt;
To make this process easier, we are going to use an Windows XP image. '''Note that this process has not been tested on Windows 7.''' Please also note that this process will change your partitions on the client computer. This tutorial assumes that your disk is /dev/sda1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the management portal, start a debug task for the client computer in question.   Allow the client to boot and at the bash prompt type the following commands.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdir /images&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mount -o nolock x.x.x.x:/images/dev /images (where x.x.x.x is the server ip)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;cd /images&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;dd if=/dev/sda of=/mbr.backup count=1 bs=512&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/usr/local/sbin/ntfsresize -f -i -P /dev/sda1&amp;lt;br /&amp;gt;Look for ''You might resize'' you will need this number, so write it down.  We will call this number ''NTFSSize''.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Take NTFSSize and divide it by 1000&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now add 300000 to that number and write down as '''N'''&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now take NTFSSize again and multiply it by 1.1 and then round that to the nearest whole number and write it down as '''F'''&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/usr/local/sbin/ntfsresize -f -n -s '''N'''k /dev/sda1&amp;lt;br /&amp;gt;(where N is the value calculated above with a k after it.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If the test above ends successfully then run: &amp;lt;br /&amp;gt;/usr/local/sbin/ntfsresize -f -s '''N'''k /dev/sda1&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;fdisk /dev/sda&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;d&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;w&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;fdisk /dev/sda&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;n&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;p&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;+'''F'''K&amp;quot;, then Enter (where F is the value calculated above; K must be capital)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;t&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;7&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;a&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;w&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;partprobe&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/usr/local/sbin/partimage save /dev/sda1 /images/dev/[somefile] --volume=9900000000 -z1 -o -d -f3 -b&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;dd if=/mbr.backup of=/dev/sda&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;w&amp;quot;, then Enter&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;partprobe&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/usr/local/sbin/ntfsresize /dev/sda1 -f -b -P&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mv /images/dev/[somefile] /images/[somefile]&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_an_image_push_to_a_client&amp;diff=3539</id>
		<title>Troubleshooting an image push to a client</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_an_image_push_to_a_client&amp;diff=3539"/>
				<updated>2011-07-25T19:21:34Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Troubleshooting an image push to a client ===&lt;br /&gt;
&lt;br /&gt;
This process will '''wipe out''' whatever is currently present on the client computer.&amp;lt;br&amp;gt;&lt;br /&gt;
This tutorial is for FOG .30 pushing Windows XP and assumes that your primary disk is /dev/sda. '''Note that this process has not been tested on Windows 7.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the management portal, start a debug task for the client computer in question.   Allow the client to boot and at the bash prompt.&amp;lt;/li&amp;gt;(Everything below is done within the bash prompt '''on the client's console'''.)&lt;br /&gt;
&amp;lt;li&amp;gt;From your client, mount the remote /images folder on your FOG server onto a local /images folder using nfs:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;mkdir /images&amp;lt;/tt&amp;gt;  (type this on the client's keyboard, as explained above)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;mount -o nolock x.x.x.x:/images /images&amp;lt;/tt&amp;gt; (where x.x.x.x is the server ip)&amp;lt;br&amp;gt;you may try also &amp;lt;tt&amp;gt;mount -t nfs -o nolock x.x.x.x:/images /images&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy the master boot record to the first 512 bytes of the local disk. Take a look into &amp;lt;tt&amp;gt;/usr/local/fog/mbr/&amp;lt;/tt&amp;gt; to determine the correct MBR for your system. This example uses XP:&lt;br /&gt;
&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;cd /images&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;dd if=/usr/share/fog/mbr/xp.mbr of=/dev/sda1 bs=512 count=1&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;(For previous versions, find the &amp;lt;tt&amp;gt;fog&amp;lt;/tt&amp;gt; directory under:/usr/local/)&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Start fdisk and remove all previous partitions:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;fdisk /dev/sda&amp;lt;/tt&amp;gt; (Note there is no &amp;lt;tt&amp;gt;1&amp;lt;/tt&amp;gt; at the end of the device name)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;d&amp;quot;, then &amp;quot;Enter&amp;quot; - select a partition if prompted and repeat pressing &amp;quot;d&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;w&amp;quot;, then &amp;quot;Enter&amp;quot; to save and exit fdisk&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new partition:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;fdisk /dev/sda&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;n&amp;quot;, then &amp;quot;Enter&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;p&amp;quot;, then &amp;quot;Enter&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then &amp;quot;Enter&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then &amp;quot;Enter&amp;quot; or just &amp;quot;Enter&amp;quot; to accept the default starting sector&amp;lt;/li&amp;gt;&lt;br /&gt;
Note: Windows 7 users may want to create a 100M partition, then repeat these steps to create the system partition and assign the rest of the disk to the OS.&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;Enter&amp;quot; to accept the default ending sector&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;t&amp;quot;, then &amp;quot;Enter&amp;quot; to change the partition type&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;7&amp;quot;, then &amp;quot;Enter&amp;quot; for NTFS&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;a&amp;quot;, then &amp;quot;Enter&amp;quot; to toggle the bootable flag&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;1&amp;quot;, then &amp;quot;Enter&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Press &amp;quot;w&amp;quot;, then &amp;quot;Enter&amp;quot; to save and exit fdisk&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Update the partition info:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;partprobe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use partimage to copy image from FOG server to local partition:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;/usr/sbin/partimage restore /dev/sda1 /images/[imagename] '''-f3 -b'''&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use ntfsresize to expand partition:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;tt&amp;gt;/usr/sbin/ntfsresize /dev/sda1 '''-f -b -P'''&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;(For previous versions, find sbin under: /usr/local/)&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An alternate way to do partimage (which gives more feedback) is to load the gui version of partimage with:&amp;lt;br&amp;gt;&amp;lt;tt&amp;gt;/usr/sbin/partimage&amp;lt;/tt&amp;gt;, then manually fill in the fields/choose options.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_a_multicast&amp;diff=3475</id>
		<title>Troubleshooting a multicast</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_a_multicast&amp;diff=3475"/>
				<updated>2011-06-27T12:28:54Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with 'Taken from [https://sourceforge.net/projects/freeghost/forums/forum/716419/topic/4583604/index/page/1 this forum thread].  ----  * On your server open up terminal and kill any ru…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Taken from [https://sourceforge.net/projects/freeghost/forums/forum/716419/topic/4583604/index/page/1 this forum thread].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
* On your server open up terminal and kill any running udpcasts by typing&lt;br /&gt;
 sudo killall udp-sender&lt;br /&gt;
* now run this command&lt;br /&gt;
 udp-sender --file /opt/fog/log/multicast.log --ttl 1&lt;br /&gt;
* you should see &amp;lt;tt&amp;gt;broadcasting control to:&amp;lt;/tt&amp;gt; and it should be the highest address of the subnet your fogserver is on&lt;br /&gt;
* the line before that should say your fogserver ipaddress and the interface&lt;br /&gt;
* Now boot up 1 client go to your pxe menu and select debug mode.  Do this on the same subnet if possible. Type in:&lt;br /&gt;
 udp-receiver --mcast-rdv-address yourfogserver&lt;br /&gt;
* On your server you should see that 1 client connected and then you can press any key to start the transfer&lt;br /&gt;
* On your client you should see the contents of your multicast log file scrolling by the screen.  You can press ctrl-C to stop it.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Hopefully that worked.  Now we need to test 2 clients. &lt;br /&gt;
* Run the command on your server again but this time change the &amp;lt;tt&amp;gt;--ttl 1&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;--ttl 32&amp;lt;/tt&amp;gt;&lt;br /&gt;
* You will see that this time your broadcast control is 224.0.0.1 this is the multicast address&lt;br /&gt;
* Boot both clients in debug mode and run the client command on each.  Once you see that both clients have connected to the server press any key and see if the log file transfers again to both machines this time.  If it does not then chances are something is not setup properly in your router possibly routing tables or multicast settings.&lt;br /&gt;
&amp;lt;br&amp;gt;If it does work then good lets try one more step&lt;br /&gt;
* On your server run this:&lt;br /&gt;
 gunzip -c &amp;quot;/images/anyimagename&amp;quot; | /usr/local/sbin/udp-sender --min-receivers 2 --portbase 9000 --interface yourInterface --half-duplex --ttl 32&lt;br /&gt;
* Now boot up 2 clients in debug mode and enter&lt;br /&gt;
 udp-receiver --portbase 9000 --mcast-rdv-address fogserverIP | partimage -f3 -b restore /dev/sda stdin&lt;br /&gt;
you might need to change /dev/sda to your correct harddrive if it's different use fdisk -l to find out&lt;br /&gt;
* If the clients start imaging then it seems that all of your multicast settings are correct and the problem may lie within fog configuration if it doesn't work then you need to check your router settings&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Talk:Troubleshooting_an_image_push_to_a_client&amp;diff=3296</id>
		<title>Talk:Troubleshooting an image push to a client</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Talk:Troubleshooting_an_image_push_to_a_client&amp;diff=3296"/>
				<updated>2011-05-25T14:29:41Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page needs help. What are we actually troubleshooting?&lt;br /&gt;
[[User:Itismike|Itismike]] 15:25, 12 February 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
I made a first-approach at making this page more readable. Still a little vague on the fdisk commands.--[[User:Itismike|Itismike]] 14:29, 25 May 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=File:E5.jpg&amp;diff=3245</id>
		<title>File:E5.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=File:E5.jpg&amp;diff=3245"/>
				<updated>2011-05-14T14:34:16Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Select Image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Select Image&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=File:E4.jpg&amp;diff=3244</id>
		<title>File:E4.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=File:E4.jpg&amp;diff=3244"/>
				<updated>2011-05-14T14:34:10Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Select School&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Select School&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=File:E3.jpg&amp;diff=3243</id>
		<title>File:E3.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=File:E3.jpg&amp;diff=3243"/>
				<updated>2011-05-14T14:34:02Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Boot Menu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Boot Menu&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Capone&amp;diff=3198</id>
		<title>Capone</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Capone&amp;diff=3198"/>
				<updated>2011-04-15T18:24:50Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:Please ensure you read about [[PXE]] before attempting to understand Capone if this is the first time.&lt;br /&gt;
:Also, be sure to visit this page to [[Plugins:_Capone|ENABLE CAPONE]]&lt;br /&gt;
&lt;br /&gt;
Capone is a plugin used for automated deployment of images to a large number of PCs, but taking into account the fact that different machine models have different drivers and so an image for a machine of one make / model is not good for a machine of another make / model.&lt;br /&gt;
&lt;br /&gt;
Capone solves this problem by keeping an association of crucial hardware information of the model of a machine with the appropriate image stored on the FOG server that has drivers for that model.&lt;br /&gt;
&lt;br /&gt;
This crucial hardware information is formally known as [http://en.wikipedia.org/wiki/Desktop_Management_Interface DMI] or &amp;quot;Desktop Management Interface&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The native Linux program [[dmidecode]] is used by the Capone plugin's shell script component to get all the hardware information from the computer on which it is run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
What Capone does is that it uses dmidecode present in the init.gz to be uncompressed and loaded into the client via [[PXE]] boot, and the capone shell script selects the needed information like SKU number (Stock Keeping Unit) to identify the model of the client and send it to the FOG server in real-time.&lt;br /&gt;
&lt;br /&gt;
In the Capone web interface, the user is expected to enter DMI SKU code association with a particular image for a particular model. For example, all machines that have an SKU code of &amp;quot;ABCD-1234-X/PQR&amp;quot; will be for PCs from ABCD corp, 1234 series, PQR variant sub-model.&lt;br /&gt;
&lt;br /&gt;
Now in the past, at least once, the standard image for this machine has been made and stored in the FOG server's /images directory. This image is known to the FOG web management console via the Images screen.&lt;br /&gt;
&lt;br /&gt;
This image is now associated with the SKU code of &amp;quot;ABCD-1234-X/PQR&amp;quot; via the DMI/RegEx field in the Capone web interface screen.&lt;br /&gt;
&lt;br /&gt;
This tells Capone that if the machine model has a SKU code of &amp;quot;ABCD-1234-X/PQR&amp;quot;, it must be loaded with the particular image named &amp;quot;ABCD1234X&amp;quot; (or any comfortable name for your IT staff / operators to remember)&lt;br /&gt;
&lt;br /&gt;
This being known, the image corresponding to the SKU is the one sent to the client.&lt;br /&gt;
&lt;br /&gt;
Thus automated model recognition is achieved and there is no need for manual intervention as far as selection of the appropriate image goes.&lt;br /&gt;
&lt;br /&gt;
Note that this is possible only because of the very useful dmidecode program and a custom script named fog.capone in the init.gz.&lt;br /&gt;
&lt;br /&gt;
The way Fog uses init.gz and PXE to achieve a variety of tasks is as follows:&amp;lt;br /&amp;gt;&lt;br /&gt;
Let us assume that we have a HP desktop whose system needs to be imaged or wiped and reinstalled.&amp;lt;br /&amp;gt;&lt;br /&gt;
Then the setup would be as shown below:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  HP client ---(PXE request)---&amp;gt;  Fog Server&lt;br /&gt;
  .......&lt;br /&gt;
&lt;br /&gt;
  HP client &amp;lt;---(TFTP response init.gz)----  Fog Server&lt;br /&gt;
  .......&lt;br /&gt;
&lt;br /&gt;
  HP client loads `init`, linux kernel and runs selected Fog option (PXE menu)&lt;br /&gt;
  .......&lt;br /&gt;
&lt;br /&gt;
  HP client ---(TFTP upload/download request)---&amp;gt;  Fog Server&lt;br /&gt;
  .......&lt;br /&gt;
&lt;br /&gt;
  HP client ---(NFS upload)---&amp;gt;  Fog Server&lt;br /&gt;
       OR&lt;br /&gt;
  HP client &amp;lt;---(NFS download)---  Fog Server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all this to happen, several settings need to be right:&lt;br /&gt;
 * PXE setup of client is correct&lt;br /&gt;
 * IP addresses for DHCP for signals before TFTP stage.&lt;br /&gt;
 * TFTP/NFS/DHCP configured and running properly&lt;br /&gt;
 * Web interface and Fog server processes running properly&lt;br /&gt;
 * init.gz must be right for the specific client&lt;br /&gt;
&lt;br /&gt;
The init.gz is a gzipped version of the initial part of Linux kernel which is loaded first.&lt;br /&gt;
&lt;br /&gt;
The init image is binary and is not a gzip stream. It is mounted using a special utility script located at /utils/Boot Image Editor/FOGMountBootImage.sh&lt;br /&gt;
&lt;br /&gt;
All you have to do is to go to that path and run the script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer:~$ cd /utils/Boot\ Image\ Editor/&lt;br /&gt;
&lt;br /&gt;
user@computer:~$ pwd&lt;br /&gt;
/utils/Boot Image Editor/&lt;br /&gt;
&lt;br /&gt;
user@computer:~$ ./FOGMountBootImage.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This does many things - it uncompresses the init.gz and mounts the resulting init to a temporary directory /tmp/tmpMnt&amp;lt;br /&amp;gt;&lt;br /&gt;
In that mounted file system (within your ordinary Fog server file system) is a bunch of binary programs that might be useful to run on the client after being transferred over TFTP from Fog server to client as shown above. Also included are the following scripts:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fog           fog.man.reg   fog.statusreporter fog.wipe&lt;br /&gt;
fog.auto.reg  fog.chntpw    fog.photorec       fog.surfacetest&lt;br /&gt;
fog.av        fog.chpass    fog.quickimage     fog.testdisk&lt;br /&gt;
fog.capone    fog.debug     &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Depending on what you chose in the PXE menu, one of these is run.&amp;lt;br /&amp;gt;&lt;br /&gt;
Let us see a few interesting lines in the fog.capone script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  dmivalue=`dmidecode -t 1 | grep SKU | cut -d' ' -f3`&lt;br /&gt;
  echo &amp;quot;&amp;quot;;&lt;br /&gt;
  echo &amp;quot; * Using Key Value: ${dmivalue}&amp;quot;;&lt;br /&gt;
  echo &amp;quot;&amp;quot;;&lt;br /&gt;
  sleep 1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
What this does is explained below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer:~$ sudo dmidecode -t 1&lt;br /&gt;
&lt;br /&gt;
# dmidecode 2.9&lt;br /&gt;
SMBIOS 2.3 present.&lt;br /&gt;
&lt;br /&gt;
Handle 0x0001, DMI type 1, 25 bytes&lt;br /&gt;
System Information&lt;br /&gt;
	Manufacturer: MICRO-STAR INTERNATIONAL CO., LTD&lt;br /&gt;
	Product Name: MS-7104&lt;br /&gt;
	Version: 3.0&lt;br /&gt;
	Serial Number:  &lt;br /&gt;
	UUID: 00000000-0000-0000-0000-001D92092567&lt;br /&gt;
	Wake-up Type: Power Switch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;quot;-t 1&amp;quot; is the Type of DMI info - &amp;quot;1&amp;quot; stands for System Information.&amp;lt;br /&amp;gt;&lt;br /&gt;
Note this phrase in the output: &amp;quot;Handle 0x0001, DMI type 1, 25 bytes&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
(&amp;quot;Product&amp;quot; is used instead of &amp;quot;SKU&amp;quot; because not all systems not have SKU Numbers, and to illustrate how to modify the command to your setup)&amp;lt;br /&amp;gt;&lt;br /&gt;
This text is sent to grep, looking for &amp;quot;Product&amp;quot;. &amp;lt;br /&amp;gt;&lt;br /&gt;
The output of that command is a single line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer:~$ sudo dmidecode -t 1 | grep Product&lt;br /&gt;
&lt;br /&gt;
	Product Name: MS-7104&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now that output is &amp;quot;cut&amp;quot; using &amp;quot;cut -d' ' -f3&amp;quot;. &amp;lt;br /&amp;gt;&lt;br /&gt;
The command means this: take input, split by delimiting using single space as delimiter(-d' ') and return field number 3.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
user@computer:~$ sudo dmidecode -t 1 | grep Product | cut -d' ' -f3&lt;br /&gt;
&lt;br /&gt;
MS-7104&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is your product identification string.&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to catch a different field than SKU number or Product Number, you simply have to change that parameter to something that you know is the crucial identification parameter from the DMI information of your systems.&lt;br /&gt;
&lt;br /&gt;
Now to the really smart part - this '''DMI value is sent over HTTP to the Fog server''' via the following lines, to check and see whether such a record exists in the Capone DMI association tables in the MySQL database.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  dmi64=`echo $dmivalue | base64`&lt;br /&gt;
  echo -n &amp;quot; * Looking for images..........................&amp;quot;;	&lt;br /&gt;
  img=&amp;quot;&amp;quot;;&lt;br /&gt;
  while [ &amp;quot;$img&amp;quot; = &amp;quot;&amp;quot; ]; do&lt;br /&gt;
    img=`wget -O - &amp;quot;http://${web}service/capone.php?action=imagelookup&amp;amp;key=${dmi64}&amp;quot; 2&amp;gt;/dev/null`&lt;br /&gt;
    sleep 2;&lt;br /&gt;
  done	&lt;br /&gt;
  echo &amp;quot;Done&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  dmi64=`echo $dmivalue | base64`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
dmi64 just holds the same dmi value in base64 encoding. This is ensure that there are no special characters in the transmitted data that might cause something in the web appliaction part to fail or behave unexpectedly. &lt;br /&gt;
If an image matching this DMI value exists, then download of that image begins soon. This is how automated imaging based on DMI information is achieved.&amp;lt;br /&amp;gt;&lt;br /&gt;
Now if you '''generalise the situation to allow for any DMI field to be used''' to identify dmi values, you also need to supply the dmi field name you are looking for. This is the DMIField value in the web screen for Capone plugin where you are asked to associate '''DMIField''' (SKU Number / Product Number / UUID / Product Serial / Model / etc ... ) with the desired '''DMIRegex'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
The code that would be executed then would be:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  dmivalue=`dmidecode -t 1 | grep ${dmifield} | cut -d' ' -f3`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The fog.* scripts are very informative if you have nominal understanding of Linux bash shell scripting.&amp;lt;br /&amp;gt;&lt;br /&gt;
It also shows the wide range of tasks that can be performed by editing the desired one among the fog.* scripts in the init image.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Vista_Image_says_0xc000000e_%5Cwindows%5Csystem32%5Cwinload.exe_can_not_be_loaded&amp;diff=3086</id>
		<title>Vista Image says 0xc000000e \windows\system32\winload.exe can not be loaded</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Vista_Image_says_0xc000000e_%5Cwindows%5Csystem32%5Cwinload.exe_can_not_be_loaded&amp;diff=3086"/>
				<updated>2011-03-01T04:17:55Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Vista winload.png]]&lt;br /&gt;
&lt;br /&gt;
This is typically caused when the following commands are not run on the client computer right before it is shutdown, and then rebooted for an image upload:&lt;br /&gt;
&lt;br /&gt;
 bcdedit /set {bootmgr} device boot&lt;br /&gt;
 bcdedit /set {default} device boot&lt;br /&gt;
 bcdedit /set {default} osdevice boot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However if you've already done this and received this message, you do not need to recreate your image.  All you need to do is insert your Vista Install DVD, and use it to repair your previous installation.  The machine will reboot, preform a checkdisk, and reboot again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If it still isn't working, try [http://social.technet.microsoft.com/forums/en-US/itprovistadeployment/thread/096ec0c8-8f41-4824-873a-781315fc914e this]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;quot;Before you sysprep, open RegEdit and export the Mounted Devices key (&amp;lt;tt&amp;gt;HKLM/SYSTEM/MountedDevices&amp;lt;/tt&amp;gt;). '''Do not close RegEdit.''' Open a command prompt and run sysprep:&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;c:\windows\system32\sysprep&amp;gt;sysprep -oobe -generalize -quit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Go back to the RegEdit window and import the Mounted Devices key that you exported earlier.&amp;quot;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Now shutdown the PC and capture the image.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Talk:Knowledge_Base&amp;diff=3037</id>
		<title>Talk:Knowledge Base</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Talk:Knowledge_Base&amp;diff=3037"/>
				<updated>2011-02-18T07:26:37Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: /* Talk section on the Wiki */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to image windows xp OS and restore windows xp OS?&lt;br /&gt;
Why I can not boot from pxe,show error receive from TFTP server!(Can DHCP IP from Fog)&lt;br /&gt;
&lt;br /&gt;
== Installation of additional packages ==&lt;br /&gt;
&lt;br /&gt;
Once a PC has been cloned and used for distribution, I would like to add additional programs on an adhoc basis. So PC1 will have only the base image. PC2 will have the base image and 1 additional package. Can these additional packages be deployed using FOG or must I use some other solution like Altiris or MS Deployment Manager?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yes, you just need to install the FOG client service on the computer.  The plugin you would use for this is called the snapin module.&lt;br /&gt;
&lt;br /&gt;
== Host Name Changer Error Padding is invalid ==&lt;br /&gt;
&lt;br /&gt;
I am getting a host name changer error padding is invalid and cannot be removed.  Any ideas what may be causing this?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Got it!  User error.  I had to replace the hostnamechange.dll file.&lt;br /&gt;
&lt;br /&gt;
== Problems Uploading Image ==&lt;br /&gt;
&lt;br /&gt;
First let me say  &amp;quot;Great Job on this software&amp;quot;  I also work for a K-12 school system and while testing on an older HP/Compaq model HPD51c when I try to upload I get an error &amp;quot;Cannot open font file latarcyrheb-sun16 sh-3.1#&amp;quot;  and the machine freezes up.  Any ideas what I'VE done wrong.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Keith Miller&lt;br /&gt;
Network Administrator&lt;br /&gt;
Overton County Schools&lt;br /&gt;
kmiller1@k12tn.net&lt;br /&gt;
&lt;br /&gt;
I had the same problem.  I did a quick format of the hard drive (did this from the advanced tasks in FOG) and this corrected the problem for me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I get a similar error after running the disk surface test.  '''sh:  dircolors: command not found  Cannot open font file latarcyrheb-sun16'''.  I have fog running on Debian Lenny perhaps that is the issue.--[[User:Hillie|Hillie]] 11:26, 22 September 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Upload error with new install ==&lt;br /&gt;
&lt;br /&gt;
I have installed the server piece on an Ubuntu 8.04 VM on Xenserver.  The install went well, the management console works great, but I cannot create an image from a workstation.  When I initiate the upload the task says waiting for host to check in....and just sits there.  What am I doing wrong?&lt;br /&gt;
&lt;br /&gt;
Dick Wright&lt;br /&gt;
rhwright99@gmail.com&lt;br /&gt;
&lt;br /&gt;
== Installation stops at GCC package ==&lt;br /&gt;
&lt;br /&gt;
I am installing Fog on a Dell PE 700 and the install stops at Installing Package:GCC.  firewall, Selinux and iptables are off and has a active internet connection using Fedora 10. help...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Eddie Gonzales egonzales@buckeyeusd.org&lt;br /&gt;
&lt;br /&gt;
== move a image from one Fog server to another Fog server ==&lt;br /&gt;
&lt;br /&gt;
Does anyone know how to do this?&lt;br /&gt;
&lt;br /&gt;
== Internationalization Issue ==&lt;br /&gt;
Hi!&lt;br /&gt;
&lt;br /&gt;
I'm trying FOG on my school, and it's great. However we use a Danish version of Windows XP which install program files in ''C:\Programmer\'' and not ''C:\Program Files\'' as in the english version. This &lt;br /&gt;
&lt;br /&gt;
=== Preparing the Master Client host - Danish Windows XP ===&lt;br /&gt;
*Abstract:&lt;br /&gt;
**With FOX Service Installer (FOX Tray version 0.1) The installer installs in C:\Program files\FOX but looks for the FoxServiceConfig.exe in C:\programmer\FOX in the danish version of XP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install [http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&amp;amp;displaylang=en Windows XP service Pack 2 support tools] and if using the '''danish'' edition of Windows XP edit ''C:\Program files\FOG\etc\config.ini'' line with the path to netdom.exe from ''C:\Program files\Support tools\netdom.exe'' to ''C:\Programmer\Support tools\netdom.exe''&lt;br /&gt;
&lt;br /&gt;
*[http://mars.tekkom.dk/mediawiki/index.php/FOG_installation_on_CentOS5#Preparing_the_Master_Client_host My WIKI about FOG]&lt;br /&gt;
Regards&lt;br /&gt;
[[User:Heth|Heth]] 00:48, 20 June 2009 (MST)&lt;br /&gt;
&lt;br /&gt;
== Importing images  ==&lt;br /&gt;
&lt;br /&gt;
Does anybody know how i can import my images from my old fog server database into my  new fog server database?&lt;br /&gt;
&lt;br /&gt;
== Add DCHP to existing Fog Server that was setup without it.  ==&lt;br /&gt;
&lt;br /&gt;
We initially setup our fog server without DCHP, and used the PXE boot options on our windows DHCP server. &lt;br /&gt;
We now want to isolate it to it's own LAN, as it seems to drag down our network speed while uploading images. &lt;br /&gt;
Thus I want to FOG server to take over the DHCP function on that isolated network.&lt;br /&gt;
It's a debian system, and I did apt-get install dhcp3, but I'm unsure how to configure it. &lt;br /&gt;
&lt;br /&gt;
How do I add DCHP to existing Fog Server that was setup without it?&lt;br /&gt;
&lt;br /&gt;
== Using FOG to create automated images of client for backup purposes ==&lt;br /&gt;
&lt;br /&gt;
Is it possible to use FOG to create automated images (snapshots) of clients for backup purposes?&lt;br /&gt;
&lt;br /&gt;
I'd like to have FOG create an image of all clients each weekend and save the image a default path automatically.  This way if a client hard drive crashes, I can send down the latest image and get them back up and running without having to reinstall all the applications independently.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
== Talk section on the Wiki ==&lt;br /&gt;
&lt;br /&gt;
Hey guys, what do you say we move discussions about using and troubleshooting FOG to the [https://sourceforge.net/projects/freeghost/forums Sourceforge] forums, and use the talk pages for discussing and/or previewing changes on the Wiki??&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Uninstall_FOG&amp;diff=3035</id>
		<title>Uninstall FOG</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Uninstall_FOG&amp;diff=3035"/>
				<updated>2011-02-17T21:37:08Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Rerun the Installer==&lt;br /&gt;
If you simply want to run the &amp;lt;tt&amp;gt;foginstaller.sh&amp;lt;/tt&amp;gt; to update your FOG server settings, rename the hidden &amp;lt;tt&amp;gt;.fogsettings&amp;lt;/tt&amp;gt; file located under &amp;lt;tt&amp;gt;/opt/fog/&amp;lt;/tt&amp;gt;:&amp;lt;pre&amp;gt;sudo mv /opt/fog/.fogsettings /opt/fog/fogsettings-firstInstall&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Remove FOG Completely==&lt;br /&gt;
If you want to remove all services, blank the database, delete all files/folders associated with FOG and remove the &amp;lt;tt&amp;gt;fog&amp;lt;/tt&amp;gt; user account:&amp;lt;pre&amp;gt;&lt;br /&gt;
#Uninstall FOG&lt;br /&gt;
&lt;br /&gt;
#remove service&lt;br /&gt;
sudo rm /etc/init.d/FOGImageReplicator&lt;br /&gt;
sudo rm /etc/init.d/FOGMulticastManager&lt;br /&gt;
sudo rm /etc/init.d/FOGScheduler&lt;br /&gt;
&lt;br /&gt;
#delete fog database&lt;br /&gt;
sudo mysql&lt;br /&gt;
#(or 'sudo mysql -p' if you set a root password for mysql)&lt;br /&gt;
drop database fog;&lt;br /&gt;
quit&lt;br /&gt;
&lt;br /&gt;
#Remove files&lt;br /&gt;
sudo rm -rf /var/www/fog &lt;br /&gt;
sudo rm -rf /opt/fog &lt;br /&gt;
sudo rm -rf /tftpboot &lt;br /&gt;
sudo rm -rf /images &lt;br /&gt;
&lt;br /&gt;
#delete fog system user&lt;br /&gt;
sudo userdel fog&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Separate_TFTP_and_DHCP_Server&amp;diff=2946</id>
		<title>Separate TFTP and DHCP Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Separate_TFTP_and_DHCP_Server&amp;diff=2946"/>
				<updated>2011-02-11T05:30:04Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with '=== Separate TFTP and DHCP Server ===  In this setup, the TFTP server and the DHCP server are hosted on a separate server.  The TFTP server holds the PXE boot files including the…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Separate TFTP and DHCP Server ===&lt;br /&gt;
&lt;br /&gt;
In this setup, the TFTP server and the DHCP server are hosted on a separate server.  The TFTP server holds the PXE boot files including the Linux Kernel, boot file system image, and pxe config files.  The DHCP server is the server that assigns the clients with IP addresses and network connection information.  &lt;br /&gt;
&lt;br /&gt;
In this setup we will have two servers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Server A''':  This is the 'Master' server which will host Apache, MySql, NFS and HTTP&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Server B''':  This server will host TFTP and DHCP&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In our example, both of these servers need to have a fresh install of Fedora.  They will both need static IP addresses, in our example we will use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Server A''':  192.168.1.50&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;'''Server B''':  192.168.1.51&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On both nodes, download the FOG installation package from:&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/project/showfiles.php?group_id=201099&lt;br /&gt;
&lt;br /&gt;
On Server A install FOG, when you are prompted with:&lt;br /&gt;
  &lt;br /&gt;
 Would you like to use the FOG server for dhcp service? [Y/n]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;n&amp;quot; to not start DHCP on that server.  &lt;br /&gt;
&lt;br /&gt;
After installation is complete navigate to:&lt;br /&gt;
&lt;br /&gt;
 http://localhost/fog&lt;br /&gt;
&lt;br /&gt;
and install the FOG schema.&lt;br /&gt;
&lt;br /&gt;
On server A go to:&lt;br /&gt;
&lt;br /&gt;
 System -&amp;gt; Administration -&amp;gt; Services&lt;br /&gt;
&lt;br /&gt;
Uncheck and Stop the following Services:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;dhcpd (should already be stopped.)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;xinetd&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;vsftpd&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Server B install FOG, but this time install the dhcp service.&lt;br /&gt;
&lt;br /&gt;
On server B go to:&lt;br /&gt;
&lt;br /&gt;
 System -&amp;gt; Administration -&amp;gt; Services&lt;br /&gt;
&lt;br /&gt;
Uncheck and Stop the following Services:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;FOGMulticastManager&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;httpd&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mysqld&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On server B open:&lt;br /&gt;
&lt;br /&gt;
 /var/www/html/fog/commons/config.php&lt;br /&gt;
&lt;br /&gt;
Copy the value from '''TFTP_FTP_PASSWORD'''&lt;br /&gt;
&lt;br /&gt;
Then open &lt;br /&gt;
 &lt;br /&gt;
 /tftpboot/pxelinux.cfg/default&lt;br /&gt;
&lt;br /&gt;
Replace all instances of web=x.x.x.x/fog/ with the the ip address of Server A.&lt;br /&gt;
&lt;br /&gt;
Now on Server A, open:&lt;br /&gt;
&lt;br /&gt;
 /var/www/html/fog/commons/config.php&lt;br /&gt;
&lt;br /&gt;
Replaced the value from '''TFTP_FTP_PASSWORD''' on Server B.&lt;br /&gt;
&lt;br /&gt;
To test your configuration, navigate to &lt;br /&gt;
&lt;br /&gt;
 http://192.168.1.50/fog &lt;br /&gt;
&lt;br /&gt;
login as:&lt;br /&gt;
&lt;br /&gt;
 Username: fog&lt;br /&gt;
 Password: password&lt;br /&gt;
&lt;br /&gt;
Create a host and then attempt to create a task, if everything works correctly you should see a file created on Server B in the directory /tftpboot/pxeconfig.pxe/ name with the mac address of the host.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Plugins:_Capone&amp;diff=2942</id>
		<title>Plugins: Capone</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Plugins:_Capone&amp;diff=2942"/>
				<updated>2011-02-11T05:18:17Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with '=== Capone ===  ==== FOG Version ====  Applies to version 0.29 or higher.   ==== Overview ====  Capone is a plugin for FOG that allows you to image a computer based on DMI/Hardwa…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Capone ===&lt;br /&gt;
&lt;br /&gt;
==== FOG Version ====&lt;br /&gt;
&lt;br /&gt;
Applies to version 0.29 or higher. &lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
&lt;br /&gt;
Capone is a plugin for FOG that allows you to image a computer based on DMI/Hardware information without having to register it with the FOG server.  This module was originally written for a HP computer warranty service center in the UK.  They wanted to be able to restore a computer's image just by plugging it into the network and PXE booting the machine, without any user intervention.  This module is great for repair shops and places where you don't need FOG to manage the computer after it is imaged.  This is our attempt at pushing FOG into the service/repair sector.  &lt;br /&gt;
&lt;br /&gt;
===== Enabling Capone =====&lt;br /&gt;
&lt;br /&gt;
#You should now have a new icon in the menu bar for plugins near the right hand side that looks like a puzzle piece, click on it (you already [[Plugins|enabled Plugins]], right?)&lt;br /&gt;
#Click on '''Activate Plugin'''&lt;br /&gt;
#Select '''Capone'''&lt;br /&gt;
#Active '''Capone'''&lt;br /&gt;
&lt;br /&gt;
You are now set to use the Capone plugin.&lt;br /&gt;
&lt;br /&gt;
==== Using Capone ====&lt;br /&gt;
&lt;br /&gt;
We need to determine what DMI field we want to use for Capone.  Currently Capone only supports a single DMI field globally.  To do this boot up a client computer and from the PXE boot menu select the option '''Client System Information'''.  When prompted with a menu, select option '''7''' to show DMI information.  Press the enter key to scroll through the fields and pick a field that can uniquely identify the computer type you are working with.  Common fields are:&lt;br /&gt;
&lt;br /&gt;
*bios-version&lt;br /&gt;
*system-product-name&lt;br /&gt;
*system-serial-number&lt;br /&gt;
&lt;br /&gt;
Once you have determined the field you would like to use, perform the following:&lt;br /&gt;
&lt;br /&gt;
#In the plugins section, select '''Installed Plugin''', then select '''Capone'''&lt;br /&gt;
#In the '''Settings''' section set your selected DMI field. This settings is global.&lt;br /&gt;
#Now we can create associations for return values from that DMI field and an Image.  In '''Add Image to DMI Associations''' select an image you would like to link to a DMI field response.&lt;br /&gt;
#Select the operating system for the image&lt;br /&gt;
#Then enter the matching value for the DMI field in the text field.  This string can be treated as a 'starts with' query.  So if you use the field '''system-serial-number''' and you have a group of computers that all start with '''112233''' then you can enter that into the text field and it would match a client with the system-serial-number of '''1122334455'''.&lt;br /&gt;
&lt;br /&gt;
We now have our first association added to Capone.  Now what we need to do is to add the Capone menu item to the PXE boot menu.  &lt;br /&gt;
&lt;br /&gt;
#Scroll to the bottom of the capone plugin page and copy all the text in the '''PXE Configuration''' area.&lt;br /&gt;
#Now go to '''Other Information'''&lt;br /&gt;
#Select '''PXE Boot Menu'''&lt;br /&gt;
#Click '''Advanced Configuration Options'''&lt;br /&gt;
#Paste the text that you copied from the previous page.&lt;br /&gt;
&lt;br /&gt;
Please note that this will not password protect this entry item.  If you would like to password protect this item you will need to use the md5pass utility that is in the /opt/fog/utils directory.&lt;br /&gt;
&lt;br /&gt;
It is possible to have multiple matching entries per DMI result.  So for example you could have to associations for response '''112233'''.  In this case, at the console on the client computer you will be prompted for which image you would like to use.&lt;br /&gt;
&lt;br /&gt;
Capone does not use additional storage nodes other then the master within a storage group.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Plugins&amp;diff=2941</id>
		<title>Plugins</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Plugins&amp;diff=2941"/>
				<updated>2011-02-11T05:13:49Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Plugins ==&lt;br /&gt;
Plugins add more functionality to FOG. &lt;br /&gt;
===== Enabling Plugins =====&lt;br /&gt;
Plugins are not enabled on the FOG server by default, so this is the first thing we will need to do.&lt;br /&gt;
&lt;br /&gt;
#Log in to the FOG Web UI.&lt;br /&gt;
#Go to the '''About''' Icon&lt;br /&gt;
#Scroll Down and locate the section '''Plugin System''' and change '''FOG_PLUGINSYS_ENABLED''' from '''0''' to '''1''' and select Save Changes.&lt;br /&gt;
&lt;br /&gt;
== Capone ==&lt;br /&gt;
Capone is a plugin for FOG that allows you to image a computer based on DMI/Hardware information without having to register it with the FOG server.  This module was originally written for a HP computer warranty service center in the UK.  They wanted to be able to restore a computer's image just by plugging it into the network and PXE booting the machine, without any user intervention.  This module is great for repair shops and places where you don't need FOG to manage the computer after it is imaged.  This is our attempt at pushing FOG into the service/repair sector.  &lt;br /&gt;
&lt;br /&gt;
[[Plugins: Capone]]&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=File:Bg2.png&amp;diff=2929</id>
		<title>File:Bg2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=File:Bg2.png&amp;diff=2929"/>
				<updated>2011-02-10T16:29:33Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Transparent logo in Black&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transparent logo in Black&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=File:Bg1.png&amp;diff=2928</id>
		<title>File:Bg1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=File:Bg1.png&amp;diff=2928"/>
				<updated>2011-02-10T16:28:51Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: White background with FOG logo at bottom&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;White background with FOG logo at bottom&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Bottleneck&amp;diff=2917</id>
		<title>Bottleneck</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Bottleneck&amp;diff=2917"/>
				<updated>2011-02-10T04:37:29Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with '=== Bottleneck ===  To determine why a server is not performing as well as expected a program called atop if very useful. On Ubuntu apt-get install atop, this program will give y…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Bottleneck ===&lt;br /&gt;
&lt;br /&gt;
To determine why a server is not performing as well as expected a program called atop if very useful. On Ubuntu apt-get install atop, this program will give you CPU, net card and disk information. Generally FOG does not require much CPU but requires great amount of disk and net card resources whilst imaging machines.&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_Driver_Issues&amp;diff=2915</id>
		<title>Troubleshooting Driver Issues</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Troubleshooting_Driver_Issues&amp;diff=2915"/>
				<updated>2011-02-10T04:34:30Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with '=== Troubleshooting Driver Issues ===  ==== Method 1 ====  The first step to troubleshooting driver related issues with FOG clients is to download a live CD such as Fedora, or Ub…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Troubleshooting Driver Issues ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1 ====&lt;br /&gt;
&lt;br /&gt;
The first step to troubleshooting driver related issues with FOG clients is to download a live CD such as Fedora, or Ubuntu.  Boot up the CD and see if the device that wasn't functional under FOG is working with the live CD.&lt;br /&gt;
&lt;br /&gt;
If it is we just need to know the kernel driver name.  This can be listed by issuing the following command:&lt;br /&gt;
&lt;br /&gt;
 lspci -k&lt;br /&gt;
&lt;br /&gt;
The output will look something like this:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)&lt;br /&gt;
        Kernel driver in use: tg3&lt;br /&gt;
        Kernel modules: tg3&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
In this case we know the driver required in the '''tg3''' driver for network.  You can either submit a request to the forum/feature requests section of sourceforge for this driver to be included, or see the section on building a kernel.  &lt;br /&gt;
&lt;br /&gt;
==== Method 2 ====&lt;br /&gt;
&lt;br /&gt;
[http://freeghost.sourceforge.net/videotutorials/kernel.swf.html Video Tutorial]&lt;br /&gt;
&lt;br /&gt;
The first step to troubleshooting driver related issues with FOG clients is to download a live CD such as Fedora, or Ubuntu.  Boot up the CD and see if the device that wasn't functional under FOG is working with the live CD.  If it is then:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to http://cateee.net/sources/lkddb/&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the latest version of lkddb.list.bz2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to http://cateee.net/sources/autokernconf/&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Download the latest version of autokernconf&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy both files to a directory and extract them&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy lkddb.list, kdetect.sh, and autokernconf.sh to a common directory&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;cd to the common directory where the three files listed above are located.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;run ./kdetect.sh&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;run ./autokernconf.sh&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Then post the contents of the auto.config to the [http://sourceforge.net/forum/?group_id=201099 FOG Forum], along with the model of computer or the device you are having issues with.  It would also be helpful to post a link to the manufactures spec page for that device.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If a driver exists for this device we will attempt to post an updated kernel to the '''kernel updates''' section of the FOG Management portal.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup&amp;diff=2896</id>
		<title>Restoring FOG from Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Restoring_FOG_from_Backup&amp;diff=2896"/>
				<updated>2011-02-10T03:53:46Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with '== Restoring FOG ==  Restoring a FOG installation requires essentially the opposite actions as taken above.  This section assumes you backed your installation up manually.  This …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Restoring FOG ==&lt;br /&gt;
&lt;br /&gt;
Restoring a FOG installation requires essentially the opposite actions as taken above.  This section assumes you backed your installation up manually.  This section will assume that your backup is in /opt/fog_backup.  Also, you may need to be root for some of these actions.&lt;br /&gt;
&lt;br /&gt;
First, go to your backup directory:&lt;br /&gt;
 # cd /opt/fog_backup&lt;br /&gt;
 # ls&lt;br /&gt;
 fogopt fog.sql web&lt;br /&gt;
As you can see, I have named my /opt/fog into fogopt, and my /var/www/fog into web.  I chose not to backup my /images directory due to some issues copying such large files.&lt;br /&gt;
&lt;br /&gt;
=== Web Directory ===&lt;br /&gt;
&lt;br /&gt;
Restoring your web directory will take two steps.  First, remove the current one, if it exists, then copy the backup over to the appropriate location.&lt;br /&gt;
 # rm -rf /var/www/fog&lt;br /&gt;
 # cp -a /opt/fog_backup/web /var/www/fog&lt;br /&gt;
&lt;br /&gt;
=== OPT Directory ===&lt;br /&gt;
&lt;br /&gt;
Restoring the /opt directory is just about the same as the web directory above.&lt;br /&gt;
 # rm -rf /opt/fog&lt;br /&gt;
 # cp -a /opt/fog_backup/fogopt /opt/fog&lt;br /&gt;
&lt;br /&gt;
=== MySQL Databse ===&lt;br /&gt;
&lt;br /&gt;
In order to restore the database, you should first drop the current one (if it exists), then create a blank fog database, then import your backup.&lt;br /&gt;
 # mysql -u root -p&lt;br /&gt;
 Enter password: &lt;br /&gt;
 mysql&amp;gt; DROP DATABASE fog;&lt;br /&gt;
 mysql&amp;gt; CREATE DATABASE fog;&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
 # mysql -D fog -u root -p &amp;lt; fog.sql&lt;br /&gt;
&lt;br /&gt;
That should do it!&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Thank_you,_sending_notification&amp;diff=2847</id>
		<title>Thank you, sending notification</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Thank_you,_sending_notification&amp;diff=2847"/>
				<updated>2011-02-06T03:11:55Z</updated>
		
		<summary type="html">&lt;p&gt;Itismike: Created page with 'Hopefully this bug will be fixed before anyone else experiences it, but just in case I'm creating this page so it may come up in searches.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; When installing FOG server the …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hopefully this bug will be fixed before anyone else experiences it, but just in case I'm creating this page so it may come up in searches.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
When installing FOG server the option to notify the developers is presented:&lt;br /&gt;
&amp;lt;pre&amp;gt;  Would you like to notify the FOG group about this installation?&lt;br /&gt;
    * This information is only used to help the FOG group determine&lt;br /&gt;
      if FOG is being used.  This information helps to let us know&lt;br /&gt;
      if we should keep improving this product.&lt;br /&gt;
&lt;br /&gt;
  Send notification? (Y/N)y&lt;br /&gt;
  * Thank you, sending notification.....&amp;lt;/pre&amp;gt;&lt;br /&gt;
Since the developers coded this feature in, we might assume they appreciate knowing how many people are using FOG. In one person's experience, this step freezes more often than not. If you choose Yes and it takes longer than a few seconds, it is likely frozen. If the script never finishes, the completion message is never printed. Final configurations may or may not have been completed.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&amp;lt;li&amp;gt;Log into another terminal to the same server:&amp;lt;br&amp;gt;&lt;br /&gt;
:Either open a second SSH connection, or press [http://linux.about.com/od/linux101/l/blnewbie5_1.htm CTRL-ALT-F1] to open a new terminal on the local machine. &amp;lt;br&amp;gt;&lt;br /&gt;
::NOTE: Pressing CTRL-ALT-'''F7''' will take you back to the graphical screen. You might want to write that down.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use &amp;lt;tt&amp;gt;ps&amp;lt;/tt&amp;gt; to list all processes that are currently using the &amp;lt;tt&amp;gt;wget&amp;lt;/tt&amp;gt; command (this is how the notification is sent)&amp;lt;pre&amp;gt;$ ps -ef | grep wget&lt;br /&gt;
root     21794 11185  0 20:16 pts/0    00:00:00 wget -q -O - http://freeghost.no-ip.org/notify/index.php?version=0.29&lt;br /&gt;
myuser   22005 21962  0 21:01 pts/1    00:00:00 grep --color=auto wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Kill the hung thread: (substitute the process ID from your &amp;lt;tt&amp;gt;ps&amp;lt;/tt&amp;gt; result)&amp;lt;pre&amp;gt;$ sudo kill 21794&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Return to the original terminal to see the installation process complete:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  Send notification? (Y/N)y&lt;br /&gt;
  * Thank you, sending notification...../lib/common/functions.sh: line 250: 21794 Terminated              wget -q -O - &amp;quot;http://freeghost.no-ip.org/notify/index.php?version=$version&amp;quot; &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
Done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Setup complete!&lt;br /&gt;
&lt;br /&gt;
  You still need to install/update your database schema.&lt;br /&gt;
  This can be done by opening a web browser and going to:&lt;br /&gt;
&lt;br /&gt;
      http://192.168.1.1/fog/management&lt;br /&gt;
&lt;br /&gt;
      Default User:&lt;br /&gt;
             Username: fog&lt;br /&gt;
             Password: password&lt;br /&gt;
&lt;br /&gt;
$&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;/div&gt;</summary>
		<author><name>Itismike</name></author>	</entry>

	</feed>