FOG Installation on Ubuntu Server

http://blog.bigbytenetworks.com/2014/10/fog-installation-on-ubuntu-server/

FOG installation on Ubuntu Server. FOG is a Linux-based, free and open source computer imaging solution.

This core installation has been tested without issues using FOG 1.2.0 and Ubuntu Server 14.04.1 LTS under Microsoft Hyper-V. However;

Ubuntu 14.04.1 Is not officially supported by the FOG development team, we really advise users to use a pure Debian or CentOS revision. – Jaymes Driver

The shortcut and summary of commands is at the bottom of this page if you don’t want to go all over the screenshot.

Make sure you have configured and downloaded the following before we proceed.

  • Update and Upgrade your Ubuntu Server.
  • Setup static IP for your Ubuntu Server.
  • Connected to internet.
  • Enabled SSH on your server and has SSH Client in your workstation.

Lets Begin..

Connect to your Server via SSH. In this tutorial I will be using Putty.

FOG install on Ubuntu fog installation

Lets get the proper privileges before we start by issuing;

  • sudo -i

FOG install on Ubuntu fog installation

Now we have to check the latest version of FOG available in their repository. Go to their official download repo and copy the link address.

FOG install on Ubuntu fog installation

In making this tutorial, the latest version of FOG is 1.2.0;

  • Right Click and copy the link address.

fog installation on ubuntu server5 fog installation

Go to your SSH connection and Lets begin the installation. Lets download the latest version, Extract and Install.

  • wget http://sourceforge.net/projects/freeghost/files/FOG/fog_1.2.0/fog_1.2.0.tar.gz
  • tar -xvzf fog*
  • cd fog*
  • cd bin
  • ./installfog.sh

Since we are using a Debian based Linux,

  • Press 2 and hit Enter.

fog installation on ubuntu server6 fog installation

This is a Normal Server installation;

  • Press N and hit Enter.

FOG install on Ubuntu fog installation

Verify the ip address of your Ubuntu Server to be used as FOG.

  • Specify the IP address and hit Enter.

FOG install on Ubuntu fog installation

  • Press Y and hit Enter to setup your existing DHCP server.

FOG install on Ubuntu fog installation

  • Enter the IP address of your DHCP server and hit Enter.

FOG install on Ubuntu fog installation

  • Press Y to setup your existing DNS server and hit Enter.

FOG install on Ubuntu fog installation

  • Enter the IP address of your DNS server and hit Enter.

fog installation on ubuntu server12 fog installation

  • Press N and hit Enter.

fog installation on ubuntu server13 fog installation

  • Press N to disallow FOG server to use its DHCP service.

fog installation on ubuntu server14 fog installation

This option is up to you if you would like to install additional language packs.

  • Press N and hit Enter.

fog installation on ubuntu server15 fog installation

This option is up to you if you would like to donate computer resources to the FOG Project.

  • Press N and hit Enter.

fog installation on ubuntu server16 fog installation

Review the settings and proceed with the installation.

  • Pree Y and hit Enter.
  • Once the installation is done, Press Enter to acknowledge the message.

fog installation on ubuntu server17 fog installation

  • Setup the MySQL password you for root user.

fog installation on ubuntu server18 fog installation

  • Verify the password and hit Enter.

fog installation on ubuntu server19 fog installation

It will ask you if you left the MySQL root password setup during the installation.

  • Press N and hit Enter.

FOG install on Ubuntu fog installation

It will now setup the the services and wait for it to finish.

FOG install on Ubuntu fog installation

Choose if you wanted to notify FOG about your installation.

Press N and hit Enter.

FOG install on Ubuntu fog installation

Let us now verify and finish the installation in your Web Browser.

  • http://ipaddressoffogserver/fog/management
  • Click on Install/Upgrade Now

FOG install on Ubuntu fog installation

Finish the Installation and login. Default credentials would be:

  • Username: fog
  • Password: password

fog installation on ubuntu server24 fog installation

fog installation on ubuntu server25 fog installation

Now that we are done with the FOG installation, Lets configure the Windows DHCP Server for the PXE boot to take effect.

Login to you Windows DHCP Server and open up DHCP settings.

dhcp server settings fog installation

  • Edit Option 066 and enter the IP address of your FOG server.

dhcp server settings2 fog installation

  • Edit option 067 and put a string value of undionly.kpxe or undionly.kpxe.INTEL

dhcp server settings3 fog installation

Once you are done with the Windows DHCP settings, Lets test if PXE is working.

  • Open a computer connected to your Network and press F12 to trigger the PXE boot.

fogpxe fog installation

If everything was followed like what it was shown in the screenshots. You now have a working FOG Server that triggers in PXE boot.

 

Here are the summary of commands, Follow the steps below;

Installation of FOG and MySQL;

  • sudo -i
  • wget http://sourceforge.net/projects/freeghost/files/FOG/fog_1.2.0/fog_1.2.0.tar.gz
  • tar -xvzf fog*
  • cd fog*
  • cd bin
  • ./installfog.sh
  • 2
  • N
  • ip address of fog server
  • Y
  • ip address of dhcp server
  • Y
  • ip address of dns server
  • N
  • N
  • N
  • N
  • Y
  • setup sql password
  • N
  • enter the sql password that has been setup earlier.
  • Enter
  • N

Default Fog Web GUI Access;

  • http://ipaddressoffogserver/fog/management
  • Username: fog
  • Password: password

Configuration of Windows DHCP Server;

Open up the scope of your DHCP server and edit these settings:

  • Edit option 066 and enter the IP address of your FOG server.
  • Edit option 067 and put a string value of undionly.kpxe or undionly.kpxe.INTEL

Open a computer in your network and test if PXE boot is working by pressing F12 during boot.

 

Link Youtube:

 

Document Step by step:

Implementing_FOG_with_Universal_Windows_7_Images