4

FOG server install

FOG server install

This tutorial will discuss the steps required to install and configure a FOG server for your use in imaging machines.

  1. Download and burn Ubuntu Server 13.04 32bit to CD. Link Here
  2. Get a machine or server with enough hard drive space and pop in the Ubuntu disc.
  3. Boot into the installer. Choose to install, set your keyboard layout, choose to use the entire disk then set your IP information.
  4. 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.
  5. 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.
  6. 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.
  7. 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
  8. Extract the downloaded archive to the current directory:
     $ tar -xvzf fog_0.32.tar.gz
  9. CD into the fog_0.32/bin directory and run the installfog.sh script as root:
     $ cd ~/fog_0.32/bin
     $ sudo ./installfog.sh
  10. 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.
  11. When prompted for the type of installation select N or press enter for the default selection.
  12. Give the server an IP address.
  13. For router address for the DHCP I answered Y and inputted my primary domain controllers address.
  14. The DNS address I set to Y and provided my primary domain controllers address.
  15. I typed in my domain controllers address for the DHCP server and client boot image.
  16. I chose to keep eth0 as my default network interface.
  17. 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.
  18. I chose not to enable internationalisation support.
  19. 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).
  20. 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”, “” );

  21. 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.

Subscribe to my feed either by E-mail or by RSS to receive updates as they happen.

Can you improve on any of the tips I’ve discussed here? If you can let me know in the comments.

Jason Edwards

  • Jonathan Ott

    Thank you–these were the easiest FOG Server installation instructions I have found. I used this to install on Ubuntu 12.04.3 LTS i386 server.

    • jasonsedwards

      Really glad you found my tutorial helpful. FOG is a great tool to have in your IT Administrator’s Utility Belt.

  • Rodney King

    There is known problem unable to upload image using Ubuntu 13.04. Do you have a solution to this?

    • Hi Rodney. I can’t say I’ve come across this problem but my advice would be to check the permissions on the directory you are using to store your images. I hope you get it sorted.