fog user guide

11

Click here to load reader

Upload: iosoma

Post on 30-Nov-2014

999 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: FOG User Guide

FOG USER GUIDE 14 July 2009

1

ICT

Su

pp

ort

FO

G U

ser

Gu

ide

Page 2: FOG User Guide

CONTENTS

Important Information ............................................................................................................... 3

Login Information................................................................................................................... 3

Ubuntu Server Info: ........................................................................................................... 3

FOG Server Info: ................................................................................................................. 3

The Root User ........................................................................................................................ 4

Unix Commands ..................................................................................................................... 4

Setting up the Server ................................................................................................................. 5

Installing Ubuntu 9.04 ............................................................................................................ 5

Configure the network settings ......................................................................................... 5

Install FOG .............................................................................................................................. 6

Creating the FOG image ............................................................................................................. 7

XP Setup ................................................................................................................................. 7

Installing the FOG Service ...................................................................................................... 7

Pre - image checklist .............................................................................................................. 7

SYSPREP Setup ....................................................................................................................... 8

Imaging With FOG ...................................................................................................................... 9

Registering the PC with FOG .................................................................................................. 9

Upload an Image to the FOG Server .................................................................................... 10

Deploy an Image .................................................................................................................. 10

Add an imaged PC to AD ...................................................................................................... 10

Using the Mobile Interface ...................................................................................................... 11

More information .................................................................................................................... 11

Page 3: FOG User Guide

FOG USER GUIDE 14 July 2009

3

IMPORTANT INFORMATION

LOGIN INFORMATION

UBUNTU SERVER INFO:

LOGON DETAILS

Username: administrator

Password: The usual

To logon as the root user read “The Root User” below.

IP DETAILS

FOG SERVER INFO:

LOGON DETAILS

There are only two types of user in FOG. A full admin user and a mobile user that can only

set basic tasks remotely.

Type IP Address

Server IP 10.121.144.35 Subnet Mask 255.255.252.0 Default Gateway 10.121.144.50 DHCP 10.121.144.52 DNS 10.121.144.52, 10.121.144.66

Admin User Mobile User

Username: administrator Username: mobfog Password: The Usual Password: fogmob

Page 4: FOG User Guide

FOG USER GUIDE 14 July 2009

4

THE ROOT USER

The root user is the Linux equivalent of an administrator. The root user has full control over

all aspects of the OS.

Ubuntu by default does not allow the user to login as the Root user, this is a security

measure that ensures files and settings cannot be changed without authorisation.

A normal user can become the Root in two ways.

By typing sudo before a command that command will run with admin privileges.

By typing sudo su the user has admin privileges for the session or until the user types

“exit”.

All of the commands in this guide assume that the user has admin privileges.

UNIX COMMANDS

UNIX commands are very flexible and have a variety of switches.

To view help for a command or see available switches type the command with --help at the

end.

Ifconfig --help

Here are a few that you will find useful:

Ifconfig /a - This will display all IP info

Ls - The equivalent of dir.

Tar –xvzf - This will “unTar” a file into the current directory. Use – C /directory_name

to extract to a destination directory.

Page 5: FOG User Guide

FOG USER GUIDE 14 July 2009

5

SETTING UP THE SERVER

Installing the Ubuntu server is best done on an outside connection. The proxy can cause

issues when installing updates or packages.

INSTALLING UBUNTU 9.04

Follow the Perfect Ubuntu 9.04 guide from How-to Forge up to step 11.

http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2

Ensure that:

Open SSH is installed

o apt-get install ssh openssh-server

Vim-Nox is installed – makes text editing easier.

o apt-get install vim-nox

The server is fully updated.

o Apt-get updates

o Apt-get safe-upgrade (or upgrade)

o Reboot (it is generally a good idea to reboot after updates.)

CONFIGURE THE NETWORK SETTINGS

Settings are held within a configuration file. Use Nano to edit, it’s much easier that Vi.

Ensure that you have admin privileges.

Run this command: Nano /etc/network/interfaces

The editor will open this in the nano text

editor. Ensure that it looks like this but has the

relevant IP address information.

To save the changes hit CTRL + X then type Y to

save the changes, hit enter to confirm the name.

The network service now needs to be restarted to

reflect the changes made.

Run this command: /etc/init.d/networking restart

Confirm the changes by using the ifconfig command, use PING to test communication.

When switching between networks you can comment out your IP details by using # then set

the interface to DHCP.

Page 6: FOG User Guide

FOG USER GUIDE 14 July 2009

6

INSTALL FOG

It is recommended that FOG is installed using an external connection, it installs packages

that are not always accessible through a proxy.

Navigate to /opt: cd /opt

Download the FOG installation files:

wget http://downloads.sourceforge.net/freeghost/fog_0.26.tar.gz

Extract the tar file: tar –xvzf fog*

Navigate to /opt/fog*/bin and run the install script:

Cd fog*

Cd bin

./installfog.sh

The installer will then launch.

Follow the instructions, ensure that you answer N to any requests to setup a DHCP server.

It will ask you to confirm the details that you have entered, type Y.

FOG will then download and install the packages that it requires. It will install MySQL as part

of this. It will prompt you three times for a password, each time hit enter to set a blank

password.

Once the installation is complete FOG will provide the default username and password:

fog : password

Navigate to http://serverip/fog/management.

The page will ask that you update the database schema, just click the update button.

You are now able to login to the FOG management console.

You can use the FOG console to ssh into the server. You can find this under Other

information> Shell Access.

Page 7: FOG User Guide

FOG USER GUIDE 14 July 2009

7

CREATING THE FOG IMAGE

XP SETUP

Ensure that there is at least 2 GB of free space when partitioning the hard drive. This allows

FOG to resize the partition when imaging to a smaller HDD.

Follow a normal install; and make the usual image adjustments.

INSTALLING THE FOG SERVICE

Install the XP support tools, the FOG service uses NETDOM to change the hostname and add

the pc to AD.

o http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-

9BB9-4126-9761-BA8011FABF38&displaylang=en

Install the fog client service:

In IE navigate to http://fog/fog/client and download the .zip to the desktop.

Extract the .zip and open.

Run the Setup.

Install the service; enter the FOG server IP when it asks.

Leave all services checked, they can be disabled from the FOG management console.

Click finish / save to complete the installation.

Disable the FOG tray.

o This is a shortcut placed in the start-up items, delete it.

Copy the encryption key. This allows the client service to authenticate with the FOG server.

1. Copy HostnameChange.dll to the FOG root directory – C:\program files\FOG, replace

the existing file.

When the client service is restarted it will ensure that it matches any settings within FOG.

PRE - IMAGE CHECKLIST

There are a few steps to follow if imaging is to run smoothly.

1. Install the XP support tools.

2. Ensure the FOG client service is installed and has the encryption file.

3. Defrag the HDD

4. Run CHKDSK /F and restart the PC twice.

5. Disable hibernation – This can save up to 1GB on image size.

6. Reset the page file/ swap space, this can take up more space than it needs to.

Page 8: FOG User Guide

SYSPREP SETUP

Obtain the latest (SP3) version of SYSPREP.

Create a folder on c:\ called “SYSPREP”.

Extract the contents of the .CAB to the SYSPREP folder.

Run Setupmgr.exe

o Create a new answer file.

o Choose SYSPREP setup.

o Choose Windows XP.

o Choose “Yes, Fully Automate Installation”

o Enter the Name and Organisation Details (COLMERS).

o Enter the product key.

o Automatically generate a computer name.

o Enter a local administrator password. Do not encrypt, encrypting causes an

error that can cause a reboot loop.

o Add the PC to WORKGROUP – The FOG service will add the pc to the

network.

o Customise the default regional settings to ensure everything is set to UK.

o Complete the installation accepting the defaults.

Run SYSPREP.EXE

o Click OK on the message box.

o Check “Use Mini Setup”.

o Shutdown mode = Shut Down

o Click Reseal.

o SYSPREP will then remove any

SSID info and shutdown the PC.

Next time it is started it will

follow the instructions we have

given it.

Once the PC has shutdown it is ready to be

imaged!

Page 9: FOG User Guide

FOG USER GUIDE 14 July 2009

9

IMAGING WITH FOG

REGISTERING THE PC WITH FOG

Before any imaging the client PC has to be registered with FOG.

1. Set the boot order to Network PXE first.

2. Boot to PXE

3. A menu will appear for three seconds, press a key to pause.

4. Select “Perform Full Host Registration and Inventory”

5. The tool will launch and ask a few questions.

Enter the hostname of this computer

Enter the IP for this computer – Leave blank

Enter the image ID – Hit ? to list available images, if not sure just leave blank.

Enter the OS ID – Hit ? for list. Enter 1 to register client as Windows XP/2000.

Do not add host to AD (N)

Enter the primary user – Blank

Enter Tag – This is for reference and may be useful

Would you like to image pc – No (N)

6. The PC will then register itself with FOG. The details entered can all be changed from

the FOG management console.

Note that all registration is done layer 2 (mac)

Page 10: FOG User Guide

FOG USER GUIDE 14 July 2009

10

UPLOAD AN IMAGE TO THE FOG SERVER

1. Ensure that the host is registered within FOG.

2. Create an image and associate that image with a Host.

3. Create an upload task for that host.

4. You can use the WOL task to remote boot the host.

Select the host; click advanced tasks, then wake on lan.

5. The host will boot to PXE and pick up its upload task.

DEPLOY AN IMAGE

1. Make sure that PC is set to boot to PXE and if possible has wake on lan activated.

2. Ensure the host is registered within FOG

3. Ensure that host has an image associated

4. In tasks, create a new deployment task to the host or the group that the host

belongs to.

5. Once the task is applied on next boot the PC will begin the image task. You can use

WOL to boot the PC if needed.

ADD AN IMAGED PC TO AD

Ideally this will be done on first boot after imaging. The FOG client service will query the

FOG server for the host details, so make sure these are correct.

This feature can be applied to a host of globally, this example shows it applied to a host.

Navigate to the host you wish to add to AD. Under host menu click Active Directory. T

Here we can see the domain specified, and the user with permission to add the PC to AD.

Note the encrypted password: 8bc9b98fb2c462ae4b13a97d555072ce

Page 11: FOG User Guide

USING THE MOBILE INTERFACE

It is possible to set quick tasks using the mobile

interface.

Navigate to http://fog/fog/mobile and login using the

mobile FOG user.

Username: mobfog

Password: fogmob

Note that no properties or associations can be

changed.

MORE INFORMATION

For more information visit the FOG Wiki:

http://www.fogproject.org/wiki/index.php