Fog Server Installation on CentOS 6 Guide - Joppes

April 21, 2019 | Author: Arun Vijay | Category: Installation (Computer Programs), Operating System, User (Computing), Booting, Password
Share Embed Donate


Short Description

Installing Open Source imaging software in Cent OS...

Description

5/3/13

Fog Ser ver Install ati on On CentOS 6 Gui de - Joppes.or g

JOPPES.ORG

How do yo u know that yo u are are reall really yo u?

Fog Fog Server Installa Installation tion On On CentOS CentOS 66 Guide G Guide uide Fog Server ServerInstallation Installation Installation Guide uide

Setu Setup p& Install Setup Set up & Instal Installllation Instal ation The FOG application needs to be installed on an underlying Operating system. In this project the FOG solution was implemented in a Linux environment. The Linux distribution of choice for this particular project was CentOS 6.1. It is important to point out that the Operating system 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 syst em is much much more sec ure than an older version CentOS 6.1 installation installation step by step Step one, download CentOS 6.1 from the vendors site “http://www.centos.org/ “ 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 tw o solutions solutions was used in this this projec project. t. This is how CentOS 6.1 was installed on the server computer. 1. In the first st ep of the installation, the inst installation allation gui guide de wants t o know know how the new Operating system should be installed on the server. Of all the options that were presented c hoose option one one “Install or upgrade on existing system” and system”  and then click next. 2. In the next next st ep the syst sys t em want wants s to t o know know if it it should run run a Mem Memory ory test on the the server and the options that are presented is “Ok or Skip” press Skip”  press “Skip”. “Skip”. 3. Because Cent OS 6.1 was inst installed alled via via the t he network netwo rk.. The T he inst installation allation program program needs to t o know know the way t o the CentOS 6.1 6.1 ISO ISO file. file. To spec ify the way to t he file file use the option “Install  from URL”  4. Under t he URL URL sett ing ings s there is multipl multiple e choices, c hoices, c hoose the recom rec omm mended sett in ings. gs. Then T hen

 joppes.  joppes.org/?p org/?page_ age_id=12 id=120 0

1/6 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 t he beginning of the CentOS 6.1 installation sec tion, clic k on the button next. 7. In the next step t he option to select a language is presented; choose “English” and then click next. 8. Once that st ep is complete, it is time to selec t t he keyboard layout, c hoose “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 c hoose time zone, “Europe/Stockholm” is most suitable for us. 12. To c omplete t his step, t he root password needs to be set. T ype the password “password”  in the box and then click next. 13. The next st ep in this installation is about how the syst em 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. Aft er this step the installation applic ation wants to know in witc h 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 ac count, to c reate this login as root and use this syntax: “useradd (name of the account) “admin”, then press enter. 2. The admin ac count needs a password, to set a password on an acc ount use t he syntax: “passwd (Password of choice) “password”.

 joppes.org/?page_id=120

2/6

5/3/13

Fog Server Installation On CentOS 6 Guide - Joppes.org

3. The next st ep is to add this user to t he Admin group, but in CentOS c ase t he Admin group is called Wheel. This is done by entering the following syntax: “usermod -G wheel admin”, then press enter. 4. Now the admin ac count is a part of the wheel group, but the admin ac c ount 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 stat ic 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 aa MySQL MySQL account account The FOG solution will only work correctly if a MySQL account is created. This 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 link the account to the FOG database. Step one: create a MySQL account 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 acc ount. 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 data bases Note! This step is done after the FOG solution is installed on the server. 1. To link the MySQL ac count t o 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 acc ount must be c reated. 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/htm l/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 c ommands that follow. “useradd  FOG” then enter. T hen give t he ac count a password with the c ommand “passwd  (Username)”FOG” then press enter, after that type the new password twice. 2. Before the ac tual FOG installation two pac kages have to be downloaded, the first pac ket is called yum-priorities, to download it use the commands that follows; “yum install yum priorities” 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 pac ket t hat 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 direc tory called fog, then go to it. T o do dis use the following syntax:”mkdir fog then press enter” then move into that directory with help of the following command “c d  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. Aft er 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 direc tory and exec ute t he command: “./installfog.sh”. This will start the FOG installation. 5. At t he initial fog installation prompt t here are two options to c hoose 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, c hoose “NO”. 9. When asked about DNS, type “NO” then press enter. 10. Do not change the network interfac e 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 cont inue 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/c onfig.sh”, and remove “php-gettext” from line 22. Then save and exit.

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 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”.

Joppes.org | Powered by Mantra & WordPress.

 joppes.org/?page_id=120

6/6

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF