3.12.2013

How to Install Fog Server


How to Install Fog Server 

Re-posting of Youtube Video "FOG server installation from A-Z (linux ubuntu 12.04, 12.10)
http://www.youtube.com/watch?v=UqJ3GicmGG0

Download Ubuntu 12.04 LTS or 12.10 64bit Edition
http://www.ubuntu.com/download/server

nstall Ubuntu 12.04, no encrypted home folder, no LVM, GRUB boot loader is okay. 

sudo passwd
set root password
su - root

Set static IP address
cp /etc/network/interfaces interfaces.dhcp
pico /etc/network/interfaces
auto eth0
iface eth0 inet static
        address <address>
        netmask <netmask>
        gateway <gateway>


Set DNS
apt-get install resolvconf
cd /etc/resolvconf/resolv.conf.d
cp -p head head.orig  #backup copy, always do this
nano head
nameserver <ip_of_nameserver>
resolvconf -u


Set Hostname
pico /etc/hosts #add name of server
pico /etc/hostname #add name of server
hostname <FQDN of the server>
/etc/init.d/networking restart
hostname
hostname -f #verify name of server
shutdown -r now

Install FOG

Linux commands to install fog on Ubuntu 12.04 LTS 64 Edition
pwd ## to get the present working directory
cd /
mkdir fog


Remove all the content of /var/lib/apt/lists directory:
sudo rm -rf /var/lib/apt/lists/*

then run:

sudo apt-get update

sudo apt-get upgrade
sudo apt-get install wget

apt-get install php5 libapache2-mod-php5
service apache2 restart

cd /tmp

wget http://sourceforge.net/projects/freeghost/files/FOG/fog_0.32/fog_0.32.tar.gz

Updated to Latest Release as of June 7, 2016
wget http://sourceforge.net/projects/freeghost/files/FOG/fog_1.2.0/fog_1.2.0.tar.gz
ls

tar xvzf fog_0.32.tar.gz -C /fog

tar xvzf fog_1.2.0.tar.gz -C /fog

OR tar -xvzf fog_1.2.0.tar.gz

cd fog
cd fog_1.2.0/
cd fog_1.2.0/ ls
cd fog_1.2.0/ cd bin
sudo ./installfog.sh
n
n (for DHCP if on server 2008)
n (for DNS if on server 2008)
n
n (if dhcp service is on server 2008


DHCP (Windows Server 2008)
IP version 4

(left click)
configure options
066 Boot Server Host name (String value: (ip adress))
067 Bootfile Name (String value: pxelinux.0)


on linux install
language packs
n



continue
y

send notification
n


sudo vim /var/www/fog/commons/config.php (watch out for the spacing)

press insert key

then go to line 53,28 (define ("MYSQL_PASSWORD, """);) and enter a password
press escape

then type :wq


on server 2008
open (http://ipdaress/fog)
install upgrade


then login
U:fog
P:password


How to Add ISO's to the FOG Bootmenu

create a folder in /tftpboot/fog/ called partedmagic, copy the partedmagic.iso file into this folder and also copy and paste the memdisk file found in /tftpboot/fog/
browse to /tftpboot/pxelinux.cfg/ and edit the 'default' file in there and add

LABEL PartedMagic
        kernel fog/partedmagic/memdisk 
        append iso initrd=fog/partedmagic/partedmagic.iso raw
        MENU PartedMagic
        TEXT HELP
        Gparted + Clonezilla + Firefox
        ENDTEXT





You can also see this recent forum post for more instruction - [1]
Please remember that if you create a new folder on the tftp folder you will also need to include memdisk in the same folder! The link above also inlcudes a TFTP folder you can use to try on your own. It includes dban and dell diagnostics's .iso's.



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.