How-to: Install FOG on Ubuntu
-
This how-to was created by DigitalBlacksmith from the Spiceworks Community Forums.
[url]http://community.spiceworks.com/how_to/show/373[/url]
[SIZE=7]FOG Server Install[/SIZE]
This guide will walk you through creating a FOG server from scratch to deployment of an image.
FOG is a image management server that can be used for multicasting an image to hundreds of PCs or imaging a single one.It can also boot the pcs to a memtest utility or a disk utility. I have tried to include as many of the video tutorials from their site as I could find…
Please post feedback, this has potential to be an amazing asset to all of you who are in need of an imaging solution. I would suggest setting aside about 4 hours to do this, depending on the size of the test PC.
[SIZE=6]1. Install Ubuntu[/SIZE]
I wanted a GUI so I went with the desktop Ubuntu, you may want to go with Ubuntu server. So go to their website, download the workstation x86 ISO and burn it.
[media=youtube]fvltHkAtW2A[/media]
[LIST=1]
[]English
[]Install Ubuntu
[]English
[]Select your Time Zone
[]Suggested Option
[]Use Entire Disk
[]Enter User Information and Computer information, I named mine ‘foghat’ with foguser
[]Install
[]Restart
[]Login
[/LIST]
[SIZE=6]2. Install FOG[/SIZE][media=youtube]fvltHkAtW2A[/media]
[LIST=1]
[]Open Firefox
[]Go to [url]http://www.fogproject.org[/url] and download FOG.
[]Open Terminal Applications->Accessories->Terminal
[]cd Desktop (Remember Linux is case sensitive)
[]tar -xvzf fog
[]cd fog
[]cd bin
[]sudo ./installfog.sh
[]Select opt 2 Enter
[]N Enter
[]Default IP Enter
[]You dont need to set up a router IP but I will in case I ever use the server for DHCP.
[]Set up a DNS IP, just accept the default.
[]No do not change the default network interface.(you may not get this prompt if you have 1 nic)
[]I will not be using FOG for DHCP. (will require changing my current DHCP server.)
[]Note your IP settings and continue.
[]Enter to Acknowledge.
[](I like to notify the FOG group, they have made a great product and deserve my feedback, choice is yours here)
[]gksu gedit /var/www/fog/commons/config.php and put your mysql password you typed during install in “DATABASE_PASSWORD”, “your_password” save and close. It has been noted that you also should change the MYSQL password here while you are at it /opt/fog/service/etc/config.php.
[]Browse to [url]http://localhost/fog/management[/url]
[]Click install!
[]Click to log in. You can now reach this webpage from anywhere on the network where your server is installed by using it’s ip address. eg [url]http://192.168.0.100/fog/management[/url] I would recommend putting an A record in your DNS called FOGSERVER this will make things easier to remember.
[/LIST]
default: fog/password[SIZE=6]3. Set up DHCP (For Windows DHCP)[/SIZE]
[LIST=1]
[]Log onto your Windows DHCP server
[]Open DHCP console.
[]Right Click Scope Options -> Configure Options
[]Scroll Down to number 66 check and give the hostname of FOGSERVER
[]Scroll down to number 67 check and give the value pxelinux.0
[]Apply and close.
[/LIST]
[SIZE=6]4. Install FOG service on client (Host)[/SIZE][url]http://freeghost.sourceforge.net/videotutorials/FogServiceInstall.swf.html[/url]
[LIST=1]
[]Log onto the PC
[]Browse to [url]http://FOGSERVER/fog/client[/url]
[]Click to download
[]Open
[]Run Setup.exe in the Fogservice folder
[]Accept defaults (FOG does not like to be installed in locations other than default)
[]Enter the ip or preferrably the hostname if you created one. FOGSERVER
[]Save Changes, Done, Close.
[]Open services Start->Run->services.msc
[]Scroll down and start “Fog Service”
[]This would also be a good time to make sure that PXE is your primary boot option in BIOS, you might need to enable it.
[/LIST]
[SIZE=6]5. Create an image file.[/SIZE]
[LIST=1]
[]Click on Image management.
[]New Image
[]Give it a name, description, default storage group, filename, and Image type (choose wisely). For dell computers with a utility partition you will HAVE to select multiple partition single disk.
[*]Add.
[/LIST]
[SIZE=6]6. Assign Image to Host[/SIZE]Assign the Image to a host, this will be the image the host uses to restore and deploy from, You can assign this image to as many PCs as you want. Useful for group Deployment.
[LIST=1]
[]Click on Host management.
[]List all hosts.
[]Click Edit next to your machine.
[]In Host Image select the proper image that you created in the previous step from the dropdown.
[/LIST]
[SIZE=6]7. Upload an image[/SIZE][media=youtube]jPPZr0abVfg[/media]
[LIST=1]
[]From another machine log onto [url]http://FOGSERVER/fog/management[/url] login with fog/password
[]Click on Tasks (The Star)
[]List all Hosts
[]Click Upload next to the PC.
[]Upload image.
[]Click on active Tasks, and either wait for the PC to check in and autoreboot or Reboot it manually.
[/LIST]
[SIZE=6]8. Test Restore/Deploy[/SIZE]
[LIST=1]
[]Click on Tasks (The Star)
[]Click Deploy next to your PC.
[]Click image All computers.
[]Verify image by booting computer and making sure everything works.
[/LIST]
[SIZE=6]Conclusion[/SIZE]This is more than worth the effort. Make sure you have enough storage for your images. This tutorial should have gotten you to the point where you can start to play with FOG yourself even if you have absolutely NO idea how to run Linux.
From here you can start creating groups to image, advanced tasks and start shaping things to your environment.UPGRADE NOTE: If Upgrading Ubuntu from 9 to 10, you will need to re-install fog. Ubuntu 10 changed around some stuff in the init folders. I am not a linux geek so I cant explain it. But for further information see paul2019’s comments below.
-
WOW… Guys… I guess I couldn’t ask for more. Well, I could forgo all the fun… neah, you’ve made it too obtainable.
Very cool!!Notably, I experienced one difference; in Step 2 #19, [COLOR=#99cc00]“DATABASE_PASSWORD”, “your_password”[/COLOR] seemed to not apply to my [COLOR=#3366ff]config[/COLOR] file… instead, I set [COLOR=#3366ff]define( “MYSQL_PASSWORD”, “********” );[/COLOR]
… and have one question…[S]Does the A-record in DNS just need to point to the Host’s IP, 4 octets with no additional directory information? -because my pointer is not pointing :?[/S]
Nevermind… I had created the pointer in the wrong FwdLZ.ROCKIN!
-
One question. How do you add the FOG configuration menu to the Ubuntu server startup? I ask because I’m transitioning from FOG VM to a physical server. Much help would be appreciated.
-
Or for command line installation
[url]http://schoolitexpert.com/network-tools/fog/306-install-fog-server[/url]