FOG server install
This tutorial will discuss the steps required to install and configure a FOG server for your use in imaging machines.
- Download and burn Ubuntu Server 13.04 32bit to CD. Link Here
- Get a machine or server with enough hard drive space and pop in the Ubuntu disc.
- Boot into the installer. Choose to install, set your keyboard layout, choose to use the entire disk then set your IP information.
- When you are asked to select what packages you want choose OpenSSH Server and LAMP server. The FOG installer will add any further dependencies as it is installed.
- When the system boots for the first time, shut it down, take off the keyboard, mouse and monitor (you won’t be needing them anymore) and move it somewhere out of the way.
- Turn on the machine. Login via SSH and run the following commands at the prompt:
$ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade
- These commands ensure that everything is up to date and ready.
- CD into your home directory and run the following command to download the latest FOG distribution:
$ cd ~ $ wget http://sourceforge.net/projects/freeghost/files/FOG/fog_0.32/fog_0.32.tar.gz
- Extract the downloaded archive to the current directory:
$ tar -xvzf fog_0.32.tar.gz
- CD into the fog_0.32/bin directory and run the installfog.sh script as root:
$ cd ~/fog_0.32/bin $ sudo ./installfog.sh
- When the installer starts choose option 2) Ubuntu Based Linux (Kubuntu, Edubuntu). Although the correct option should already be selected in brackets next to the input field so you should just be able to press enter.
- When prompted for the type of installation select N or press enter for the default selection.
- Give the server an IP address.
- For router address for the DHCP I answered Y and inputted my primary domain controllers address.
- The DNS address I set to Y and provided my primary domain controllers address.
- I typed in my domain controllers address for the DHCP server and client boot image.
- I chose to keep eth0 as my default network interface.
- DHCP service I chose no as my Domain Controllers handle DHCP. Your milage may vary. At this stage the FOG installer will advise you what changes you have to make on your DHCP server in order to use FOG for pxe services. A good tutorial showing you how to do this on a Windows Server 2008 R2 server may be found here.
- I chose not to enable internationalisation support.
- You will then get a summary of the settings you have chosen. If they all look correct then key in Y and press enter. If not go back and make any changes that are required. FOG will then go off and install/download any required dependencies so ensure you have an active internet connection. Keep an eye on your console window as you may be required to acknowledge messages and provide details during the installation (MYSQL).
- Once FOG is installed, you then need to update the configuration file with your MYSQL password. If you don’t do this then you will get a database connection error when you navigate to the server via your web browser. To update the configuration file do the following:
$ sudo nano /var/www/fog/commons/config.php
Edit the following line, replacing the blank space with your MYSQL password:
define( “MYSQL_PASSWORD”, “” );
- Navigate to http://yoururl/fog now you will see the FOG management page, if you are prompted to update your schema then do so. When this completes click the link to login. The default FOG username is fog and the default password is password.
You have now set-up your FOG server and can start imaging machines.
To find out more about how to use FOG to image machines take a look at the great documentation located on the FOG User Guide.
Can you improve on any of the tips I’ve discussed here? If you can let me know in the comments.