Installing FOG - absentee-neptune/SYS-480 GitHub Wiki

Configuring centOS

  • Set the centOS system with the following configurations via nmtui:
    • sudo nmtui
    • Change the hostame to fog
    • Save, exit, then reboot

Configuring Windows Server for FOG

  • Go to the DNS Manager to add an A record for the centOS system:
  • Then go to the DHCP Manager, then Server Options under IPv4 to add the following policies:

Prepping centOS for FOG

❗ As a root user on centOS, do the following:

  • Create a new partition on the second HardDrive
    • fdisk /dev/sdb to enter harddrive settings
      • Type n to create a new partition
      • Type p to make it a primary partition
      • Hit Enter for the default
      • Hit Enter again
      • and again
      • Then type w for write
  • Format the new partition
    • mkfs.ext4 /dev/sdb1
  • Then add the following line to the /etc/fstab file:
    • nano /etc/fstab
  • Make a new directory for FOG images in the Home directory
    • mkdir /images
  • Then mount the directory to the new partition
    • mount -a
  • Add the following services to the firewall as permanent rules (you know the command to add them 😃)
    • ftp, tftp, https, mountd, mysql, nfs, proxy-dhcp, rpc-bind, ssh

Installing FOG

❗ As a sudo user on centOS, do the following:

  • Install git
    • sudo yum install git
  • Disable SELinux
    • seten 0
  • Make a directory for the install and change to it
    • mkdir foginstall
    • cd foginstall/
  • Clone the install from GitHub
  • Change the permissions of the /images directory
    • chown -R root:fogproject /images
  • Go to the bin directory of the install and run it
    • cd fogproject/bin/
    • sudo ./installfog.sh

Setting-up FOG

  • When prompted, set up FOG with the following settings:

    Make sure to enable HTTPS while going through the set-up

  • Continue with the installation
  • When prompted, got to the browser and head to https://fog/fog/management and update the database
    • Press Enter in the terminal when that is finished
  • Navigate back to the web browser to the FOG server and log in
    • CHANGE THE DEFAULT PASSWORD