- Log in to your Ubuntu Server and navigate to the /opt directory
- Download the FOG tar file to the /opt directory (must be done as root or with the sudo command)
- Decompress the fog_0.28.tar.gz file here
- Navigate into the newly extracted fog_0.28/bin/ directory
- Run the installfog.sh script
- You will be prompted to choose the Linux distro you are installing for, in this case we are installing for Ubuntu so choose option 2 as seen below.
- Next you will be prompted for the “Installation Mode”. “N” for Normal Server or “S” for Storage Node. Choose “N” since we are just installing the server.
- You’ll now be prompted for the Ubuntu Server’s static IP address.
- The installer will ask if you would like to enter a router address for DHCP. It is a good idea to add a DHCP reservation in your existing DHCP server in case the server’s configuration gets changed back to DHCP, your FOG server will still get the correct address. So choose “Y”.
- Enter the IP address of your current router if you have one.
- The next prompt will ask you if you would like to setup a DNS address. If you have a router, typically it is also used as the DNS server for your local network. For this situation use “Y”.
- Enter the IP address of your DNS server, as mentioned above the address of your router.
- Next up, select yes or no if you would like to change the default network interface from eth0 to another interface. You would only want to change this in the event that you have multiple network interfaces and you wish for FOG to use something other than eth0 for FOG. In this case we will not change the default. Select “N” to keep the eth0 as the default.
- Now we are prompted for an important decision, if we would like to use the FOG server for DHCP services. In this case we will not use FOG as the DHCP server as my DD-WRT router will be providing this service and we will select “N”. In the event that you do wish to use FOG as your DHCP server you would select “Y” here. There is likely more configuration when selecting “Y” that will not be covered in this guide.
- At this point the FOG setup script should state that it now has everything it needs to configure your server. Take note that if you do have any other additional services such as DHCP, apache, pxe, tftp, or NFS that this setup script WILL overwrite any settings those may have. Confirm that you wish to continue by choosing “Y”.
- After answering yes the script will take off and run it’s course installing and configuring any services the FOG server will need to the server, this portion shouldn’t take very long unless you have a slow internet connection. After several packages have been installed you will be notified that it is about to install MySQL Server. In this case it is not already installed and we will be prompted for a root password. Press “ENTER” to acknowledge.
- After pressing Enter you’ll see apt install the mysql server and immediately prompt you for the new MySQL root user password. This is separate from the Linux root password. For now, leave this blank. If you do set this password now you must manually add the MySQL user name and password to the /opt/fog/service/etc/config.php and /var/www/fog/commons/config.php after the installation completes.
- After leaving the password blank, apt will continue on it’s rampage installing and configuring any necessary packages. Once it completes, you’ll be asked if you would like to send the FOG developers your installation details to help them better understand how FOG is being used in the wild. For this guide I’ll be selecting “N” as this setup is only for teaching purposes.
- We’re done! Well, almost. The script should report back to you in your console the address, user name and password so that you may log in to your new installation.
- Go to your web browser and to to the page described above. You should immediately see that we need to do a few more things like update the FOG database schema.
- If this is a new installation simply click the “Install/Upgrade Now” button. For those upgrading you might want to actually go ahead and backup your database like it says. After clicking the button you should see it notify you that the “Update/Install Successful” message.
$ cd /opt
$ sudo wget http://downloads.sourceforge.net/project/freeghost/FOG/fog_0.28/fog_0.28.tar.gz
$ sudo tar -zxvf fog_0.28.tar.gz
$ cd fog_0.28/bin/
$ sudo ./installfog.sh
..#######:. ..,#,.. .::##::.
.:###### .:;####:......;#;..
...##... ...##;,;##::::.##...
,# ...##.....##:::## ..::
## .::###,,##. . ##.::#.:######::.
...##:::###::....#. .. .#...#. #...#:::.
..:####:.. ..##......##::## .. #
# . ...##:,;##;:::#: ... ##..
.# . .:;####;::::.##:::;#:..
# ..:;###..
###########################################
# FOG #
# Free Computer Imaging Solution #
# #
# Created by: #
# SyperiorSoft #
# http://www.SyperiorSoft.com #
# Developers: #
# Chuck Syperski #
# Jian Zhang #
# #
# GNU GPL Version 3 #
###########################################
Version: 0.28 Installer/Updater
What version of Linux would you like to run the installation for?
1) Redhat Based Linux (Fedora, CentOS)
2) Ubuntu Based Linux (Kubuntu, Edubuntu)
Choice: [2]Starting Ubuntu Installation. FOG Server installation modes: * Normal Server: (Choice N) This is the typical installation type and will install all FOG components for you on this machine. Pick this option if you are unsure what to pick. * Storage Node: (Choice S) This install mode will only install the software required to make this server act as a node in a storage group More information: http://www.fogproject.org/wiki/index.php?title=InstallationModes What type of installation would you like to do? [N]
What is the IP address to be used by this FOG Server? [192.168.1.72]
Would you like to setup a router address for the DHCP server? [Y/n]
What is the IP address to be used for the router on the DHCP server? [192.168.1.1]
Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n]
What is the IP address to be used for DNS on the DHCP server and client boot image? [192.168.1.1]
Would you like to change the default network interface from eth0? If you are not sure, select No. [y/N]
Would you like to use the FOG server for dhcp service? [y/N]
##################################################################### FOG now has everything it needs to setup your server, but please understand that this script will overwrite any setting you may have setup for services like DHCP, apache, pxe, tftp, and NFS. It is not recommended that you install this on a production system as this script modifies many of your system settings. This script should be run by the root user on Fedora, or with sudo on Ubuntu. Here are the settings FOG will use: Distro: Ubuntu Installation Type: Normal Server Server IP Address: 192.168.1.72 DHCP router Address: 192.168.1.1 DHCP DNS Address: 192.168.1.1 Interface: eth0 Using FOG DHCP: 1 Are you sure you wish to continue (Y/N)
Installation Started... Installing required packages, if this fails make sure you have an active internet connection. * Preparing apt-get * Installing package: apache2 * Installing package: php5 * Installing package: php5-gd * Installing package: php5-cli * Installing package: php5-mysql * Installing package: php5-curl * Installing package: mysql-server We are about to install MySQL Server on this server, if MySQL isn't installed already you will be prompted for a root password. If you don't leave it blank you will need to change it in the config.php file located at: /var/www/fog/commons/config.php Press enter to acknowledge this message.
Would you like to notify the FOG group about this installation? * This information is only used to help the FOG group determine if FOG is being used. This information helps to let us know if we should keep improving this product. Send notification? (Y/N)
NOT sending notification. Setup complete! You still need to install/update your database schema. This can be done by opening a web browser and going to: http://192.168.1.72/fog/management Default User: Username: fog Password: password
This concludes the installation. Quite simple when it comes down to it. But this is only the tip of the ice berg! Head on over to the FOGWiki and check out their Getting Started section to test and play with your new FOG server! There is also a ton of useful information within the wiki that will help you on your way. Good luck and have fun!
- http://www.fogproject.org
- http://www.fogproject.org/wiki
- http://www.fogproject.org/wiki/index.php?title=Uploading_your_first_Image
- http://www.fogproject.org/wiki/index.php?title=Deploying_your_Image_a_single_client
Pages: 1 2



























1 Comments
I am always searching online for articles that can help me. Thank you