Step-By-Step Install Guide Linux CentOS-5 Server

Document Sample
Step-By-Step Install Guide Linux CentOS-5 Server
Global Open Versity

Systems Integration Hands-on Labs Training Manual



Step-By-Step Install Guide Linux CentOS-5 Server

Kefa Rabah

Global Open Versity, Vancouver Canada

krabah@globalopenversity.org

www.globalopenversity.org



Table of Contents Page No.





STEP-BY-STEP INSTALL GUIDE LINUX CENTOS-5 SERVER 4

Introduction 4



Part 1: Install CentOS 5 4



Part 2: Post Installation Configurations. 30

Step 1: Perform System Upgrade 30

Step 2: Configure NIC to Static IP Address. 32

Step 3: Change Computer Hostname 35

Step 4: Modify the Hosts file 36

Step 5: Modify your Screen Resolution when using VMware 38



Part 3: Installing and Configuring Webmin 38

Step 1: Install Webmin 38

Step 2: Install Web server ("httpd") daemon 39



Part 4: Post Install GUI Configuration 43

Step 1: Using “yum grouplist” and “yum groupinstall” 43

Step 2: Install X window, GNOME, or KDE 44



Part 5: Upgrading from PHP 5.1 to PHP 5.2 44

Step 1: Verify current installed PHP Package 44

Step 2: Add Development Repositories 45

Step 3: Update PHP packages 45



Part 6: How to add / install JSON support to PHP 46



Part 7: Install and Configure NFS 47

Step 1: On the Server Side 47

Step 2: On the client Side 48



Part 8: Install and Configure FTP Server 49

Step 1: Install and Configure VSFTPD Server 49

Step 2: Users Login 51



Part 9: Install MySQL Server 52



Part 10: Dynamic Host Configuration Protocol (DHCP) 53

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4







Step 1: Install and Configure DHCP Server 53

Step 2: Configure dhcpd.config file 53

Step 3: Adding Static IP's & MAC Addresses to dhcpd.conf file 55

Step 4: Configure Static IP address on eth1 on LAN side 55



Part 10: Need More Training on Windows 57

OpenNebula Cloud Computing Training 57



Linux Administration Training 57



Part 11: Hands-on Labs Assignments 57









A GOV Open Access Technical Academic Publications

Enhancing education & empowering people worldwide through eLearning in the 21st Century

3

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4









Global Open Versity

Systems Integration Hands-on Labs Training Manual



Step-By-Step Install Guide Linux CentOS-5 Server

By Kefa Rabah, krabah@globalopenversity.org Sept 22, 2010 GTS Institute





Introduction

CentOS is a community-supported, free and open source operating system based on Red Hat Enterprise

Linux. It exists to provide a free enterprise class computing platform and strives to maintain 100% binary

compatibility with its upstream distribution .CentOS stands for "Community ENTerprise Operating

System". CentOS is the perfect server for people who need an enterprise class operating system stability

without the cost of certification and support and pocket burning baggage that comes with proprietary

software. And the beauty is CentOS is free.



CentOS Structure

CentOS developers use Red Hat's source code to create a final product very similar to Red Hat Enterprise

Linux. CentOS is available free of charge. Technical support is primarily provided by the community via

official mailing lists, web forums, and chat rooms. The project is not affiliated with Red Hat and thus

receives no financial or logistical support from the company; instead, the CentOS Project relies on

donations from users and organizational sponsors.



CentOS Versioning

CentOS version numbers have two parts, a major version and a minor version. The major and

minor version numbers respectively correspond to the major version and update set of Red Hat

Enterprise Linux from which the source packages used to build CentOS are taken. For example,

CentOS 4.4 is built from the source packages from Red Hat Enterprise Linux 4 update 4.

However, since mid-2006, starting with version 4.4 (formerly known as Red Hat Enterprise

Linux 4.0 update 4), Red Hat has adopted a versioning convention identical to that of CentOS,

e.g., Red Hat Enterprise Linux 4.5. The current version is CentOS5.



Hands-on Lab Session

In this Hands-on lab session, you will learn how to install CentOS5 with two NICs. You’ll also

learn how to perform post-installation configuration e.g., upgrade the system with new patches

and bug fixes, configure static IP address from dynamic one, change the computer hostname,

modify hosts file, perform ping test among others. I’ll also show you how to install GNOME & X

Window GUI, upgrade from PHP 5.1 to PHP 5.2, setup NFS server, apache server, and vsftpd

server. Finally, Administering Linux and Unix-based servers does not need to be the scourge of your

work day. With a handy tool called Webmin as part of your arsenal, you can regain full control of your

servers’ setup and configuration via the Web browser. So in the final analysis, I will show you how to

install Webmin to add teeth and clout in taking control of administrating your servers. The entire lab

training was performed on VMware.



Part 1: Install CentOS 5

1. Insert CentOS5 (at the time of writing. version CentOS 5 DVD or CDROM 1 into CD/DVD drive and

reboot the computer.

4

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4







2. From Fig. 1, press the key, to start loading the packages and installing CentOS5.









Fig. 1: Hit the key to start loading & installing CentOS5



3. Next, you should see streams of information flowing up the screen, as shown in Fig. 2.









Fig. 2



5

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4







4. From Fig. 3, select OK, and press the key, to test the CD media and check & verify that it

was not in anyway damaged or corrupted during the download or burning stages.









Fig. 3



5. From Fig. 4, select Test, and press the key to begin testing the media.









, Fig. 4





6. Fig. 5 shows the media check progress.









6

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4









Fig. 5

7. When done, you should see a "Media Check Result" screen as shown in Fig. 6. Hit the

key to continue.









Fig. 6

8. From Fig. 7, select the "Continue" button, and then hit the key to continue.









Fig. 7









7

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4







9. Next, you should see the screen like shown in Fig. 8.









Fig. 8

10. Next, you should see the screen like shown in Fig. 9. Click Next to continue.









Fig. 9

11. From Fig. 10, select the language you desired to use during installation process, and then click Next.









8

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4









Fig. 10





12. From Fig. 11, select the appropriate keyboard for the system as desired, and then click Next.









Fig. 11



9

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada



www.globalopenversity.org ICT202 - Linux Enterprise Infrastructure Engineering Diploma

Global Open Versity, ICT Labs Install Guide Linux CentOS-5 Server v1.4







13. From Fig. 13, read the warning on "loss of ALL DATA on this drive". Click Yes, & then Next.









Fig. 13





14. From Fig. 14, just wait as the installation process performs "Searching for CentOS

Installation.." task.





by registering with docstoc.com you agree to our
privacy policy

Successfully added document to cart!

Successfully added document to cart!