Sie sind auf Seite 1von 6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

JOPPES.ORG

Ho w do yo u kno w that yo u are really yo u?

Fog CentOS 6 6 Guide Guide Fog Server Server Installation Installation On On CentOS

Setup & Installation Setup & Installation Fog Fog Server Server Installation Installation On On CentOS CentOS 6 6 Guide Guide
The FOG application needs to be installed on an underlying Operating system. In this project

Setup & Installation this particular project was CentOS 6.1. It is important to point out that the Operating system
the FOG solution was implemented in a Linux environment. The Linux distribution of choice for has to be up to date, so before starting to install any applications on the Operating system make sure that it is up to date. One of the reasons for doing this is to minimize the risk of application incapability, the second reason is to get maximum security because an up to date Operating system is much more secure than an older version CentOS 6.1 installation step by step Step one, download CentOS 6.1 from the vendors site http://www.centos.org/ then burn the ISO on a CD or DVD in this case it had to be a DVD but this kind of media was too small. After doing that reboot the Operating system, make sure that the computers first boot device is set to boot from the CD or DVD. (If not you can change the boot order in the computers BIOS). In cases the Operating system is too big to burn on a DVD, use Network boot solution, and get the Operating system ISO file from the network. The latest of these two solutions was used in this project. This is how CentOS 6.1 was installed on the server computer. 1. In the first step of the installation, the installation guide wants to know how the new Operating system should be installed on the server. Of all the options that were presented choose option one Install or upgrade on existing system and then click next. 2. In the next step the system wants to know if it should run a Memory test on the server and the options that are presented is Ok or Skip press Skip. 3. Because CentOS 6.1 was installed via the network. The installation program needs to know the way to the CentOS 6.1 ISO file. To specify the way to the file use the option Install from URL 4. Under the URL settings there is multiple choices, choose the recommended settings. Then

joppes.org/?page_id=120

1/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

enter the URL containing the CentOS 6.1 installation Image. 5. The File install.img should now be fetched. After this the installation will begin. 6. At the beginning of the CentOS 6.1 installation section, click on the button next. 7. In the next step the option to select a language is presented; choose English and then click next. 8. Once that step is complete, it is time to select the keyboard layout, choose Swedish after that click next. 9. To the question Choose the type of storage devices. There are two proposals, first Basic storage device and second Specialized storage device, choose Basic and then click next. 10. Enter a suitable computer name FOG-SERVER, and then click next. 11. Then it is time to choose time zone, Europe/Stockholm is most suitable for us. 12. To complete this step, the root password needs to be set. Type the password password in the box and then click next. 13. The next step in this installation is about how the system should be installed. The easiest way is to choose the option that says use all the space on the disk. Note! (This option will erase all the data from the selected device), click next. 14. After this step the installation application wants to know in witch mode the CentOS operating system should be run in, choose Basic server and then click next. After this, the actual installation starts. When this is completed, select the option restart the computer . Modification of CentOS 6.1 After the CentOS installation is done there are some things that have to be done before it is time to install the FOG-SERVER.

Creating Creating a a User User account account


1. In CentOS there has to be a user account, to create this login as root and use this

Creating a User account syntax: useradd (name of the account) admin, then press enter.
passwd (Password of choice) password.

2. The admin account needs a password, to set a password on an account use the syntax:

joppes.org/?page_id=120

2/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

3. The next step is to add this user to the Admin group, but in CentOS case the Admin group is called Wheel. This is done by entering the following syntax: usermod -G wheel admin, then press enter. 4. Now the admin account is a part of the wheel group, but the admin account has no permission. To give admin account permission, the sudoers file has to be modified. Do this by entering the following syntax: vi /etc/sudoers press enter and then go to line 96 and delete the # symbol in the beginning of that line. After that exit and save.

Set a static ip-address to interface Eth0 It is important to have an ip address that is always the same, because if the server changes ip address suddenly the services that the server offers will stop working as they should. 1. To set a static ip address, use the following syntax: vi /etc/sysconfig/network-scripts/ifcfg-eth0 And then modify the file like this; BOOTPROTO=none ONBOOT=yes IPADR=192.168.1.14 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 Then save and exit. After that, restart the service with the help of /etc/rc.d/init.d/network restart.

Creating Creating a a MySQL MySQL account account


The FOG solution will only work correctly if a MySQL account is created. This MySQL account

Creating a MySQL account


link the account to the FOG database. Step one: create a MySQL account

shall then be linked to the FOG database. In this fits step only the account has to be created because the FOG Solution application is not yet installed on the server, so it is impossible to

1. Login to the MySQL database with the following syntax: mysql -u (username) root -p. Press enter. When prompted please enter password press enter. 2. Time to create a MySQL account. Use syntax create user (username@localhost)name@localhost identified by (password) password; and then
joppes.org/?page_id=120 3/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

press enter. Step two: link the MySQL account to all the databases Note! This step is done after the FOG solution is installed on the server. 1. To link the MySQL account to all the databases use the syntax. grant all on *.* to name@localhost; this will link the kim MySQL account to every MySQL database. 2. After this, a link between the FOG database and MySQL account must be created. And this link i made in the config.php file. To link the FOG database with the MySQL account, use the following syntax: vi /var/www/html/fog/common/config.php and then modify line 52 and 53. 52 is define( MYSQL_USERNAME, (use the mysql account that was created) name ); and 53 is define( MYSQL_PASSWORD, (use the mysql account password) password );. Then save and exit. Preparation for the FOG Solution installation

Before starting installing the FOG solution, some changes in CentOS has to be done before proceeding with the installation.

1. Create a FOG user with a password password. Use the commands that follow. useradd FOG then enter. Then give the account a password with the command passwd (Username)FOG then press enter, after that type the new password twice. 2. Before the actual FOG installation two packages have to be downloaded, the first packet is called yum-priorities, to download it use the commands that follows; yum install yumpriorities then press enter. The other packet that has to be downloaded was rpmforge. To download this packet, use the following syntax:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64rpm, then press enter. 3. But the last packet that was downloaded needs to be unpacked. To do this use the following commands. rpm -ivh rpmforge-release/rpmforge-release-0.5.22.el6.rf.x86_64.rpm, then press enter. FOG Solution installation

joppes.org/?page_id=120

4/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

Start with making a directory called fog, and then download the FOG installation file from their website http://www.fogproject.org/. Then unpack the packet and start the installation.

1. Make a directory called fog, then go to it. To do dis use the following syntax:mkdir fog then press enter then move into that directory with help of the following command cd fog then press enter. 2. Download the FOG installation file from http://www.fogproject.org/, user the command: wget http://sourceforge.net/projects/freeghost/files/latest/download? source=files/fog_0.32.tar.gz then press enter. 3. After the file is downloaded execute the command. tar -xvzf fog* -C /opt this command will unpack the downloaded file and put them in the opt directory. 4. Go to the /opt/fog_32/bin directory and execute the command: ./installfog.sh. This will start the FOG installation. 5. At the initial fog installation prompt there are two options to choose from the first is Redhat based Linux (fedora, centos), and the second option is Ubuntu base linux (kubuntu, edubuntu). Choose option one Redhat based Linux. Then press enter. 6. At the next step type N then press enter. Note! N stands for normal server mode. 7. Next give the server a valid Ip-address 192.168.1.14 and then press enter. 8. On the question if you would like to use a router address for the DHCP service, choose NO. 9. When asked about DNS, type NO then press enter. 10. Do not change the network interface eth0, type NO again then enter. 11. When asked: Would you like to use the FOG Server for DHCP service. Type YES. 12. Do not install additional language pack. Enter NO. 13. Then press enter to continue with the installation process.

joppes.org/?page_id=120

5/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

Problem Problem One One


Under the installation phase the installation program can complain about php-gettext, to fix this problem edit the file config.sh. To do this, use the syntax: vi /opt/fog_0.32/lib/redhat/config.sh, and remove php-gettext from line 22. Then save and exit.

Problem One

Problem Problem Two Two


When the first problem is solved it can complain about clamv. To fix this go to the same file and edit the same line, but in this case change clamv-update to clamv. Save and exit.

Problem Two

Problem Problem Three Three


The third problem is about the wrong location of the config file, to solve this problem go to vi /opt/fog_0.32/lib/redhat/config.sh again and edit line 63 and 66. At line 63 change it to usr/bin/freshclam and at line 66 change it to /var/clamv then save and exit. After fixing these three problems the FOG Solution should be installed on the server. When the installation is finished, complete the steps in Step two under Creating MYSQL account.

Problem Three

Joppes.org | Powered by Mantra & WordPress.

joppes.org/?page_id=120

6/6

Das könnte Ihnen auch gefallen