Pages

Wednesday, May 9, 2012

Install FOG on CentOS


  1. Log in as root
  2. On the Desktop loads, open a Terminal (command prompt) by clicking on Application > Accessories > Terminal.
  3. At the prompt, type “yum update”. This will update and patch the system (similar to Windows Update).
  4. You will see output similar to the screen below. Type “y” then press enter. Updating the system may take some time, so be patient.
  5. You should see output similar to the screen below.
  6. If you receive a message about importing a GPG key, type “y” and press enter.
  7. You should see output similar to the screen below.
  8. Once the system has finished updating, open a web browser. Applications > Internet > Firefox Web Browser.
  9. Go to http://pkgs.repoforge.org/rpmforge-release/ and download the latest version of rpmforge for your OS.
    At the time of this writing (May 8th,2012), the current release for 32-bit CentOS is rpmforge-release-0.5.2-2.el5.rf.i386.rpm
  10. Once you click on the appropriate file, a download options window will appear. Make sure Open with Software Installer (default) is selected and click “OK”.
  11. Once the download has finished, the software will start to install. Click “Apply” on the window that appears.
  12. Click “Install anyway” to install the software.
  13. Click “OK”.
  14. Go back to the web browser and go to http://www.fogproject.org.
  15. On the left hand side of the screen, click Download.
  16. Download the latest version of FOG. The current version is fog_0.32.tar.gz
  17. Save the file to the Root folder
  18. On the Desktop, open root’s Home
  19. Double click on fog_0.32.tar.gz
  20. On the window that opens, click on “Extract”
  21. Under Extract in folder: make sure root is selected. Click “Extract” and then close the window once it has finished.
  22. You should now have a folder label fog_0.32. Open it.
  23. Open the folder labeled lib.
  24. Open the folder labeled redhat.
  25. Double click on the file labeled config.sh.
  26. Select Display.
  27. You will need to make the following changes:
    • - Line 22: Remove 'php-gettext' and change 'clamav-update' to 'clamav'
    • - Line 63: Edit to read: 'freshDB="/var/clamav/";
    • - Line 66: Edit to read: 'freshcron="/usr/sbin/freshclam"
    • - Change any reference of "php" to "php53"
  28. Save and close the config.sh file.
  29. Close all open folders
  30. Open a Terminal and type “cd fog_0.32/bin/” and press enter.
  31. Type “./installfog.sh” and press enter.
  32. Type 1 for Redhat Based Linux, press enter.
  33. Type N for Normal Server installation, press enter.
  34. Type the IP address for your FOG Server, press enter.
  35. Type N to skip entering a router address for a DHCP server, press enter.
  36. Type N to skip entering a DNS address for a DHCP server, press enter.
  37. Type N to changing the default network interface, press enter.
  38. Type N to skip setting up DHCP service, press enter.
  39. Type N to skip installing internationalization support, press enter.
  40. Type Y to install FOG.
  41. Once the install is finished, close all open windows and log off as root.

No comments:

Post a Comment