<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Switching_to_gpxelinux_on_Ubuntu_FOG_server</id>
		<title>Switching to gpxelinux on Ubuntu FOG server - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.fogproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Switching_to_gpxelinux_on_Ubuntu_FOG_server"/>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Switching_to_gpxelinux_on_Ubuntu_FOG_server&amp;action=history"/>
		<updated>2026-05-23T01:28:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.fogproject.org/wiki/index.php?title=Switching_to_gpxelinux_on_Ubuntu_FOG_server&amp;diff=7775&amp;oldid=prev</id>
		<title>Kevin: Created page with &quot;*Note that this has only been tested on a test environment. Please be sure to test before you move to a production server.   *Be sure to backup all files that you change, if s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.fogproject.org/wiki/index.php?title=Switching_to_gpxelinux_on_Ubuntu_FOG_server&amp;diff=7775&amp;oldid=prev"/>
				<updated>2013-01-30T00:44:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;*Note that this has only been tested on a test environment. Please be sure to test before you move to a production server.   *Be sure to backup all files that you change, if s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*Note that this has only been tested on a test environment. Please be sure to test before you move to a production server. &lt;br /&gt;
&lt;br /&gt;
*Be sure to backup all files that you change, if something does go wrong, you should be able to recover the server by copying 2 files back and a dhcp server restart (or the server itself). This is a modification from a guide from jbsclm (Giving credit where credit is due)on the forums, but this has been modified to work on Ubuntu installs.&lt;br /&gt;
&lt;br /&gt;
*If you restore FOG through the FOG installer, please note that pxelinux will more than likely be &amp;quot;re-installed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Alright, onto the changes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.  Download and extract syslinux - https://www.kernel.org/pub/linux/utils/boot/syslinux/&amp;lt;br&amp;gt;&lt;br /&gt;
*At the time of this guide, 5.01 was the latest version of Syslinux&amp;lt;br&amp;gt;&lt;br /&gt;
2. Copy /gpxe/gpxelinux.0 to /tftpboot&amp;lt;br&amp;gt;&lt;br /&gt;
3. Rename /tftpboot/vesamenu.c32 to /tftpboot/vesamenu.c32.old  - '''See note at bottom of page'''&amp;lt;br&amp;gt; &lt;br /&gt;
4. Copy /com32/menu/vesamenu.c32 to /tftpboot &amp;lt;br&amp;gt;&lt;br /&gt;
5. Copy /memdisk/memdisk and replace /tftpboot/fog/images/memdisk and to /tftpboot&amp;lt;br&amp;gt;&lt;br /&gt;
6. Search the syslinux folder for the following files and copy them to your /tftpboot folder:&amp;lt;br&amp;gt;&lt;br /&gt;
ldlinux.c32&amp;lt;br&amp;gt;&lt;br /&gt;
libcom32.c32&amp;lt;br&amp;gt;&lt;br /&gt;
libutil.c32&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the version of vesamenu.c32 needs to match that of gpxelinux.0 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Edit /etc/dhcp/dhcpd.conf, replacing pxelinux.0 with gpxelinux.0&lt;br /&gt;
&lt;br /&gt;
Gpxelinux.0 seems to be stricter on the configuration file, and complains about the newline characters in the config file so edit /tftpboot/pxelinux.cfg/default to remove any newlines (\n)&lt;br /&gt;
&lt;br /&gt;
8. Reboot, to restart services.&lt;br /&gt;
&lt;br /&gt;
At this point you should be able to confirm that clients will still boot using tftp.&lt;br /&gt;
&lt;br /&gt;
Next you need to set up apache to serve the files.&lt;br /&gt;
&lt;br /&gt;
Running in a command shell as root:&lt;br /&gt;
&lt;br /&gt;
cd /var/www/&lt;br /&gt;
&lt;br /&gt;
ln -s /tftpboot/fog fogboot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ls -l should show&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x. 12 apache apache 4096 Dec 31 18:27 fog&lt;br /&gt;
&lt;br /&gt;
lrwxrwxrwx.  1 root   root     13 Jan 28 18:31 fogboot -&amp;gt; /tftpboot/fog&lt;br /&gt;
&lt;br /&gt;
-rw-r--r--.  1 root   root     45 Dec 31 18:27 index.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
you should now type in the following on your browser&lt;br /&gt;
&lt;br /&gt;
http://localhost/fogboot/kernel/bzImage&lt;br /&gt;
&lt;br /&gt;
and confirm that you get a prompt to save the file bzImage&lt;br /&gt;
&lt;br /&gt;
Now you can edit /tftpboot/pxelinux.cfg/default to change the paths to urls, changing the IP to that of your fog server, see the examples below for setting up the &amp;quot;default&amp;quot; file for imaging with the Bypass Host Registration (bypass.gz), and booting an ISO.&lt;br /&gt;
&lt;br /&gt;
'''Booting an ISO:'''&lt;br /&gt;
&lt;br /&gt;
LABEL UBCD&amp;lt;br&amp;gt;&lt;br /&gt;
MENU LABEL Ultimate Boot CD&amp;lt;br&amp;gt;&lt;br /&gt;
KERNEL memdisk&amp;lt;br&amp;gt;&lt;br /&gt;
APPEND iso initrd=http:// yourserverip/fogboot/images/ubcd511.iso&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Booting an image with BHR:'''&lt;br /&gt;
&lt;br /&gt;
LABEL XP Image&amp;lt;br&amp;gt;&lt;br /&gt;
KERNEL http:// yourserverip/fogboot/kernel/bzImage&amp;lt;br&amp;gt;&lt;br /&gt;
APPEND initrd=http:// yourserverip/fogboot/images/bypass.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=yourdnsserver type=down img=yourimagename ftp=yourserverip storage=yourserverip:/images/ web=yourserverip/fog/ osid=1 imgType=n loglevel=4 consoleblank=0&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''*Note''' - You can make a folder called &amp;quot;backup&amp;quot; in the /tftpboot folder and copy &amp;quot;pxelinux.0&amp;quot; and &amp;quot;vesamenu.c32&amp;quot; to this. If something goes wrong during the transition, copy both of these files back to /tftpboot, edit the dhcpd.conf file back to pxelinux.0 instead of gpxelinux.0 and reboot the server. After the server comes back up, FOG should be back to the tftp system.&lt;/div&gt;</summary>
		<author><name>Kevin</name></author>	</entry>

	</feed>