CentOS Installation for FOG
[CENTER][B][SIZE=5]USE AT YOUR OWN RISK: We are not responsible for any damage to yourself, hardware, or co-workers. Use at your own risk. This is a set up that was proven to work in at LEAST 3 test environments. Any misuse or replication of this walk through in any other form is STRICTLY PROHIBITED.[/SIZE][/B][/CENTER]
[INDENT=1][SIZE=4][B]Centos 6.4[/B][/SIZE][B] – Setup and Installation[/B][/INDENT]
1.) Insert your CentOs 6.4 installation disc and reboot the computer. You will be presented with a few options, install CentOS. Select the “[U]Install or upgrade an existing system[/U]” Option when it is presented to you at the Welcome screen.
2.) Proceed with a normal install of CentOS, it is a good idea to test your installation media but you may skip this step if you like. After the CentOS logo appears, click Next.
3.) Select a language that is easy to understand, click next. Choose a corresponding keyboard layout, click next.
4.) Choose the type of installation, Basic Storage Devices will suffice. Click Next.
5.) Set the host name of the computer, I use something like CentOS-FOG, set the static ip of the machine if you would like, I do so at this step because I have an IP address that is not monitored by blocking software and will allow me to complete the installation. Click Configure Network, Select Wired and click Options. Select the “[U]IPV4 Settings[/U]” tab and change the method from Automatic to Manual, Add, and supply the server with a proper IP address and information. Check the automatic connection box. Click Save. Click Next
6.) Set your time zone, Click Next.
7.) Set a root password, click Next.
8.) Disk partitioning, it would be a good idea to use the entire disk for the new linux OS, you may change the option if you have a previous OS and want to keep it. Click Next.
9.) Finally choose the type of Installation to be performed. I choose Desktop because I like a basic UI and it will still work as a server. Choosing Server will only give you a command line and many hoops must be jumped thru in order to enable the GUI.
10.) Click Next and CentOS will install, after installation remove the installation media and reboot.
[INDENT=1][B]htmldoc Installation[/B][B] (32 bit installation)[/B][/INDENT]
11.) Log in, CentOS requires installation of htmldoc and libraries separately. Click accessories, click system tools, click terminal. Type “yum install gcc gcc-c++” press enter. After the command is complete open a web browser and navigate to: [url]http://dl.fedoraproject.org/pub/epel/6/i386/fltk-1.1.10-1.el6.i686.rpm[/url]Save the file and open it with the package installer. Confirm the prompt needing elevated privileges. Do the same for the list of dependencies:
[INDENT=1][B]htmldoc Installation (64 bit installation/ALT 32 bit) - Use this if the i686 packages fail[/B][/INDENT]
[INDENT=1][B] FOG Installation[/B][/INDENT]
12.) With any luck, the required packages will now be installed and we can install FOG. Next click on FireFox and in the browser navigate to the webpage [URL=‘http://www.fogproject.org/’]http://www.fogproject.org[/URL] and follow the download links to download the latest version of FOG, at the time of writing it is 0.32. Right mouse click and select show in folder and close your browser and all other open windows. Move the file to your desktop if you haven’t already. Right mouse click and select “[U]Extract Here[/U]”.
13.) Click on the Accessories, System Tools, Terminal. Now we are going to install FOG and configure it. We will do the installation through the Terminal with a number of commands, please follow them and remember to press enter after each line. Note the Capital and lower case letters, Linux is VERY picky, “A” is not the same as “a”.
cd Desktop/ (enter)
cd fog_0.32/ (enter)
cd bin/ (enter)
sudo ./installfog.sh (enter)
Type 1 and press Enter for Fedora/CentOS installation.
Type N and press Enter for Normal installation
Supply IP Address, it SHOULD be the static IP address you set up earlier, if it is not please try to set the static IP again.
Type Y and press Enter setup DHCP Server.
Enter the IP Address associated with your DHCP Server
Type Y and press Enter to set up DNS.
Enter the DNS Server address and press Enter.
Type N and press Enter to leave the default Network Card the same.
Type N to disable DHCP Service.
Note that it tells you that in order to use your PXE server you have to run a few commands on your DHCP server, this is not entirely true, but it definitely helps, this will point your clients to your server, or you can disconnect your server from the outside world while you image.
Type N to not install Additional Languages.
Type Y and press Enter.
Next it will verify the settings, make sure everything has been entered correctly.
Fog will begin its installation.
Press Enter and begin the MySQL Server setup.
I set up Fog with default passwords for MYSQL and users, you can supply information if you like, just make notes.
Type a password for the “root” user and press enter.
Type the Password again and press enter.
Type the Password again and press enter.
Type Y to send your install information to the Project, and it will take some time to complete.
14.) Now we need to set up the web GUI for FOG. Open your browser and navigate to [url]Http://(serveripaddress)/fog/management[/url]. Or click the link in the Terminal window.
15.) The web GUI will alert you to back up your database for MYSQL Server and install the upgrades, do so and follow the upgrade instructions.
16.) Next log in, default user name is [B]FOG[/B] and the password is [B]password[/B].
17.) Click “[U]User Management[/U]” the Second Icon from the Left. Click “New User” on the left and set up a new user. Supply the name, password, and check the “Mobile/Quick Access only” box and press create user. In the PXE menu when doing a Quick Image, you will need to provide the username and password specified here to complete the image process.
18.) [B][U]Image Management[/U][/B] will allow you to create images, this MUST BE DONE PRIOR TO IMPORTING A HOST TO YOUR FOG SERVER, otherwise you will have to create one and select it later. Click “New Image” on the left. Give the image a name, a description, select “[U]Default[/U]” for Storage, and give the file a name, no spaces. Select[U]Multiple Partition image – Single Disk (Not resizeable)[/U] or [U]Multiple Partition image – All Disks (Not resizeable)[/U] I have never had a problem using these settings. However [U]Single Partition (NTFS, Only Re-sizable)[/U] will work as well. DO NOT use the RAW format, it takes a long time to upload and does so sector by sector. This would be a recommendation if you are backing up a Linux partition. Click Add.
19.) [B][U]Host Management[/U][/B] will allow you to manually add or manage a host, I recommend using the PXE menu to register your hosts, but if you need to change information or the image type you can do it here.
20.) Your Fog server is configured and setup, register a host via the PXE menu.
21.) On your FOG Server in the WEB GUI, click on [U]Task Management[/U]. On the left hand side, select “[U]List all hosts[/U]” click on the “[U]Upload[/U]” arrow for the host you just added. Select when you want the task to run, I set it a few minutes in the future. FOG has the ability to reboot your machine into the PXE menu to begin it’s process, but I simply reboot the computer, fog will find it and begin the image process
22.) CONGRATULATIONS you now have a working FOG Server and a host image ready to deploy. In order to deploy an Image, boot into the PXE menu and register the host, next select “[U]Quick Image[/U]” and begin the image process, or select the host from the “[U]Task Management[/U]” screen and select “[U]Deploy[/U]” and reboot the workstation after supplying a time to begin the task, the workstation will begin its image process.