Sie sind auf Seite 1von 13

Installing and Configuring a

Fog Server
This step by step assumes you are a network administrator with sufficient permissions and
advanced knowledge of operating systems.
Note: All passwords we use in this example will be “123456”
Run all commands as the root user

FOLLOW THE DIRECTIONS ON THIS. It will not always match the screen

1. Install Ubuntu 12.04 LTS (64 bit)


Note: DO NOT use “FOG” as a username.

Update Ubuntu DO NOT Upgrade.

2. Change to Static IP within you subnet.

(In this example we will be using the IP 192.168.155.70)

(In this example we will be using the netmask of 24)

(after you type each ip you will need to hit enter to submit the change the box should resize once you do)
3. Download FOG 0.32 from SourceForge http://sourceforge.net/projects/freeghost/

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
4. Input in terminal: (case sensitive)
cd (normally located in the downloads folder)↵
“cd Downloads/”

sudo su root↵
tar –xzf fog_0.32.tar.gz↵
cd fog_0.32↵
cd bin/↵
./installfog.sh↵

5. Once terminal has opened the fog installation


menu, select these options:

2 - Ubuntu↵

N – Normal Server↵

Click enter if your static ip is displayed. If it is not


displayed enter you static ip.

N↵, N↵, N↵, N↵, Y↵

Double check settings are correct

Note: This installation can take upwards of 10 minutes.

For All “mysql”


passwords LEAVE
BLANK JUST HIT
ENTER!!!!! (it will ask
3 times)
6. Sending a notification is optional. Just hit “y↵” it’s for the development of fog.

Note: This simply sends a notification to the producers of


fog to let them know if it installed successfully.

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
7. From terminal:
cd /var/www/fog/commons/↵
gedit config.php↵

8. Go to Ln 50. Change “localhost” to “127.0.0.1”


Go to Ln 53. Add 123456 between quotation marks.

Save

9. In terminal:
cd opt/fog/service/etc/↵
gedit config.php↵

Make mysql settings (lines 9-12) match settings from step 8.

9 host “127.0.0.1”
10 database “fog”
11 username “root”
12 password “123456”

10. In terminal input:

mysqladmin –u root password 123456↵

passwd fog↵
(enter 123456 as the password for the fog user)

sudo /etc/init.d/FOGMulticastManager restart ↵


11. This step is optional. In order to test the mysql php -r
there is only 1 true was and that is typing this command. "include('/opt/fog/service/etc/config.php');mysql_connect(MY
SQL_HOST,MYSQL_USERNAME,MYSQL_PASSWORD)
Once run if everything was done correctly it should print or die('I could not connect! '.PHP_EOL); echo 'I connected
successfully '.PHP_EOL;"
“I connected successfully ” on your screen

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
12. In your windows server open
Server Manager > Roles > DHCP Server > “Server
Domain Name” > IPv4 > Scope > Scope Options

Change Option 66 to the IP of the fog server


Change 67 to “pxelinux.0”
Uncheck option 60
Click Apply then OK

13. In web browser go to 192.168.155.70/fog


Update if presented with the option

Default username/password is fog/password

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Basic information about hosts and groups.
This is a basic step by step for imaging and deploying images and what you need to know.

Making image files (this will may not make sense until later)

To start open your management page (192.168.155.70/fog)


Click on “image management”

Click on “New Image”

The:

“image name” can be whatever you want for


this example it will be “Win7”

“image Description” is optional just so you can


add comments

“storage Group” Select “Default”


(Will discuss storage groups in more advance
steps)

“image file” should automatically fill in (if not


name it no spaces)
DO NOT click “Add” yet.
There are 4 different options for the type of image or how it
will take the image. If you are using Windows you will
probably have a “system reserved”

The system reserved is known as the /dev/sda1


The partition that contain Windows is the /dev/sda2 partition

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Fog will automatically only image the /dev/sda2

Click Add

This is what It should look like at the end.

To view your images click “List All Images”

To edit your images click on the pencil next to


the image.

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Adding host 1st way (manual)

To start open your management page (192.168.155.70/fog)


1. Click on “host management”.

2. Click “Add New Host”

For now ignore the Active Directory section it will be Before:↓


discussed and described later.

3. Until you set up Fogs service on windows the


“automatic hostname changer” will not work.

- For tracking purposes the “Host Name” section is


the display name for that computer.
- “Host IP” does not matter “leave blank”
- “Primary MAC” this is how fog will track the
computers using fog. This should be your onboard
MAC “Broadcom for T412 classroom”
Format like this “XX:XX:XX:XX:XX:XX”
- “Host Image” Select the host image you made in After:↓
the section “Making image files” this will tell fog
to associate that MAC/client with that specific
image.
- “Host OS” For this example I will be using
Windows 7 use best judgment. (Does not support
OSx)
- “Host Kernel” – Leave Blank
- “Host Kernel Arguments” – Leave Blank
- “Host Primary Disk” – Leave Blank

(Will discuss Kernels in more advance steps)


(Will discuss “Active Directory” in more advance steps)

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Adding host 2nd way (Semi automatic)

1. Start up a machine and do a network/PXE boot


rd
2. Select the 3 option in
the Fog Menu

Hit enter

This will pull a full inventory


list from your computer; HD
type, case number, mac
addresses, extra hardware,
anything and everything

If you see errors during the


inventory list don’t worry. It is
normal and it will always work
as long as it can get the MAC
address.
3. At the end it will say
“attempting to send
inventory”
Then it will restart if it does
not restart, restart it manually.
(some bios reboots are not
supported)
4. open your management page (192.168.155.70/fog)
5. Click on “host
management”.

6. Click “List All Hosts”

7. Click on the MAC address of the computer you just added

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
8. Add the following

- “Host Image” Select the host image you


made in the section “Making image files”
this will tell fog to associate that
MAC/client with that specific image.
- “Host OS” For this example I will be using
Windows 7 use best judgment. (Does not
support OSx)
- “Host Kernel” – Leave Blank
- “Host Kernel Arguments” – Leave Blank
- “Host Primary Disk” – Leave Blank

Click “Update”

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Adding host 3rd way (Fully automatic)
Only do this if you have to add a lot of hosts at once. You will need to change it back.

1. Open the terminal on your Ubuntu server


2. Switch to root user sudo su root
3. cd tftpboot/pxelinux.cfg/

4. gedit default
5. “SAVE AS” and save a backup somewhere you will remember.
6. In this step you will need to change the default selection. This will make it so that when someone does a
network/PXE boot the automatically do a quick registration.
The second setting in the “fog.local” label will need to be switched to “fog.reg”.
The images below are the best examples that I can give since the line numbers change.
In order to get the space by the left margin use the “tab” key no spaces

Before:

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
After:

To change it back you can either switch the “MENU DEFAULT” back to the local boot or you can replace the file with the
backup

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
Making and Managing Groups
Making Groups is a very easy and a very quick way of imaging.

To start open your management page (192.168.155.70/fog)


Click on “host management”.

On the far left select the computers you


want to have in your group

Give it a group name

Click “Process Group Changes”

Click on “Group Management”

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)
For now there are only 3 options that
you should focus on.

“Basic Tasks” – Will do a task to all the


computers in the group

“Image Association” – Will change the


image that all the machines use in the
group

“OS Association” – Will change the


operating system that all the machines
use in the group

By Brian Cunningham
(If any part of this stops working or you have questions mail me at brian.cunningham24@yahoo.com)

Das könnte Ihnen auch gefallen