Install FOG Imaging Server

From TGITMW
Jump to: navigation, search

Installing FOG v0.32 on Ubuntu 10.04.2 LTS


Contents


Overview

The purpose of this tutorial is to install FOG as a stand-alone 'Portable Imaging Server' running DHCP onto Ubuntu Desktop.

This specific tutorial procedure should work as instructed with the following network environmental considerations, packages and operating systems:

  • Ubuntu Desktop 10.04.2 x64 LTS
  • Fog Version 0.32

The install process should work with other versions, however some instructions may need to be adapted or modified to suit.


Install Ubuntu Desktop 10.04.2 x64 LTS

There is little point explaining how to install Ubuntu here, however you should at least have a fresh minimal install complete with the following considerations:

  • Host-name set
  • User and Password set for Ubuntu. DO NOT USE fog:password here.
  • Static IP and options set for internet access including system proxy if required.
  • Absolutely NO updates performed.


NOTE:

These text boxes that follow contain code that can be
copied and pasted into a shell console
one line at a time
for your convenience.


After your Ubuntu install you can continue with the following steps:


Download and prepare fog_0.32

Download FOG from the Ubuntu console:

wget http://downloads.sourceforge.net/project/freeghost/FOG/fog_0.32/fog_0.32.tar.gz

Extract downloaded fog tar:

tar -xzf fog_*.tar.gz

Move extracted content to /opt directory.

mv fog_0.32 /opt/


Install FOG

Now you are finally ready to install FOG!

Before you begin, you will need to disable the Ubuntu firewall.

If you choose not to do this then you may not be able to install fog, upload and deploy images or access fog web interface.

Alternatively you could do some research to identify what specific ports and services are required for fog to work.

This server will be in its own local LAN environment and not connected to the internet so I am not too concerned!

sudo ufw disable

Now change to the fog install script directory and mark installfog.sh as executable:

cd /opt/fog_0.32/bin/
chmod +x installfog.sh
./installfog.sh

Answer the prompts CAREFULLY to install fog, depending on your preferences or requirements.

You must set your IP to what ever LAN address you want for your FOG network if different from the current network.

You must use that IP for the Gateway and DNS.

You must say Yes to DHCP server.

DO NOT set mysql root password.


Final Tasks

Once your fog script completes, edit your network interface to reflect the IP, Subnet and DNS that you selected during the Fog script.

You will need to set the DHCP server to start at boot time.
Edit the /etc/rc.local file and add:

/etc/init.d/dhcp3-server start

Reboot your Ubuntu.


Notes

If using the hostname changer fog service, you must use hostnames shorter than 15 characters and only numbers, letters and - otherwise it won't work and all your PC's will be identified by MAC only.

Personal tools