FOG V 1.3.0 on CentOS 7 Full Install Guide

FOG now live, Manual BETA!

Last updated 04/01/2017

 

Welcome to another FOG guide.  This time, lets install FOG

Base OS = CentOS 7 x64 (DVD Ver)
FOG = 1.3.0

Please note this guide follows the best practice for CentOS7 installation issued by the FOG Team.
I’ve just spent the extra time to hold your hand the hole way.

I will redo this guide into the FOG Wiki when I get time.

Anyway, Lets get on…

Step One – Install CentOS

This is basic but I will list all to make sure we are setting up the same.

1. Download CentOS7 (x64) (Direct Link) & burn to DVD.

http://mirror.ox.ac.uk/sites/mirror.centos.org/7/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso

2. At installation of CentOS, select the following options:

-Select Language (UK)
-Select complete disk for installation location (unless you want something fancy)
-Setup Static IP (rename port to eth0 if not defaulted already) & Enable NIC
-Select KDE desktop from packages (Why not add some GUI, not required)
-NEXT / CONTINUE
-Set ROOT password (no need to add more accounts)
-Wait for install to complete, Remove media and reboot.

 

Step Two – Configure OS

1. Forget the GUI, Connect to the new server via SSH and lets begin.

2. Lets disable SELINUX & the firewall.

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld

3. Lets now update the OS.
(This may take a while to complete, and you might have to accept some overwrites)

yum -y update && reboot

INFORMATION:

OK, so now we have CentOS7x64  installed, patched, rebooted and ready to go.

 

 

Step Three– Adding Applications

1. A few items that FOG / we need to complete the mission.

yum -y install htmldoc ttf2pt1 t1utils fltk subversion wget mariadb-server mariadb

INFORMATION:

CentOS doesn’t use MySQL as std.  Instead we will be using MaridaDB.
This is mysql just renamed.

2. Now lets turn MaridDB on and keep it on.

systemctl start mariadb
systemctl enable mariadb

3. GOOD !.  Now lets make MaridDB secure.

mysql_secure_installation

4. Pick the following options

-current pwd = BLANK
-Set Root = Y (then add new pwd for SQL)
-Remove anon = Y
-Disallow root remote = N (you can pick this one)
-Remove test DB = Y
-Reload = Y

 

Step Four– Getting FOG

1. Lets 1st get to a DIR we all know (root home)

cd ~

2. Now Lets download FOG and put it into a DIR

ALERT:

Please note version 1.3.0 is in beta

svn co https://svn.code.sf.net/p/freeghost/code/trunk FogDownload

 

Step Five– Install FOG

INFORMATION:

Almost there, Just got to install Fog now:

WARNING:

(now is a good time to snapshot if in VM)

1. type below in terminal:

cd FogDownload/bin

2. type below in terminal:

./installfog.sh

3. Setup as I have below

-Choice = 1
-Type = <press return>
-IP (is shown) = <press return>
-DHCP Router = y  --(Enter IP of your DHCP server)
-DNS for DHCP = y --(Enter DNS Server)
-Change Default eth0 = n
-FOG as DHCP = n
-Language packs = n
-donate = n --(Sorry, not now)
-Continue = y

INFORMATION:

Fog will start to install before it stops to ask about SQL.

##What is the storage location for your images directory? (/images)

4. A question is asked of you.
did you leave the mysql password blank during install?

answer = n
input password & continue.

 

!!ALERT !!

! You must read the next bit carefully !

=============================

The script now tell you do go do something and then press continue when it’s been done.  

Don’t be the one to just press continue!

 

5.  When the script stops on “Press [Enter] “, open the following URL on another machine in the browser of your choice. (Lets just use IE 11 as a Standard)


http://<fog server ip>/fog/management

6. Click the button “install“.

7. Go back to the install script and now “Press [Enter] “.

INFORMATION:

Fog will continue to install & finish.

 

Step Six– Add DHCP Settings

1. Open DHCP

2.

https://wiki.fogproject.org/wiki/index.php/FOGUserGuide#Windows_Server_DHCP

**********************************

! Installation Complete !

**********************************

 

-FOG Login

1. Lets take a look at fog !!

http://<fog server ip>/fog
username = fog
password = password

 

 

 

 

-Troubleshooting

You can control services as in examples below:


systemctl start <service>

systemctl stop <service>

systemctl status <service>

 

more e.g.

systemctl status httpd

systemctl status mariadb

Print Friendly, PDF & Email
    • Brian Dotson
    • August 10th, 2015

    When I run the installation script, it fails on mySQL. Any thoughts?

    • Bill
    • October 5th, 2015

    This procedure is not working as of 10/5/2015. Installing and configuring MariaDB before running installfog.sh seems to be causing problems. The FOG install script tries to install package mysql, but fails. There’s no obvious error in any of the logs other than the “failed” message.

    • MACWYZD
    • October 26th, 2015

    THANK YOU FOR THE ARTICLE: I NOTICE MY MISTAKE AS I’M READING YOUR TUTORIAL

    • Kyle Wadman
    • January 8th, 2016

    Bill :

    This procedure is not working as of 10/5/2015. Installing and configuring MariaDB before running installfog.sh seems to be causing problems. The FOG install script tries to install package mysql, but fails. There’s no obvious error in any of the logs other than the “failed” message.

    I will run back through the instructions and update todate.

    • Wade
    • January 15th, 2016

    @Kyle Wadman

    Everything is working for me but Multicast, it just sits there at the Partclone scree “Starting to restore images to device.

    • UndercoverNerd
    • January 21st, 2016

    For those of you who are getting the failure when you are trying to “Install/Upgrade” the database schema, make sure you have the mariadb service started.

    # systemctl start mariadb

    • xfirero
    • January 28th, 2016

    Did you run back through the instructions? Did you do this steps youreself or is just a copy/paste? Just asking.

    • Kyle Wadman
    • February 25th, 2016

    xfirero :

    Did you run back through the instructions? Did you do this steps youreself or is just a copy/paste? Just asking.

    These are steps I have perfected from the wifi. I’m part of the wiki team and will copy on there when version is deployed. (sorry for delay)

    • Anonymous
    • February 25th, 2016

    @Kyle Wadman
    Np, good work!

    • Anonymous
    • September 2nd, 2016

    FYI, in using the current CentOS7 after updates, had to hit enter and do the installation, enable the db service, then do the schema update AFTER the reboot.

    Then all is well.

    • Dara Chau
    • December 20th, 2016

    Awesome guide, works like a charm!

  1. No trackbacks yet.