Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CentOS Quick Start Guide

You're reading from   CentOS Quick Start Guide Get up and running with CentOS server administration

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher
ISBN-13 9781789344875
Length 320 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Shiwang Kalkhanda Shiwang Kalkhanda
Author Profile Icon Shiwang Kalkhanda
Shiwang Kalkhanda
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with CentOS 7 FREE CHAPTER 2. Command-Line and Filesystem Navigation 3. Managing Text Files 4. User and Group Management 5. Managing File Permissions 6. Process Management 7. Managing Networking in CentOS 8. Software Package Management 9. Overview of Essential Advance Utilities 10. Other Books You May Enjoy

Performing manual installation

Nowadays, the fastest and easiest way to install CentOS is to use a bootable USB drive; however, in our case, I have chosen to use the DVD ISO image with a virtual machine. First, we need to boot the computer system/virtual machine using the DVD. On booting from the DVD, you will get a cool CentOS screen displaying the basic installation options, and testing the media and troubleshooting options. Once your system/virtual machine is up and running with a bootable DVD of CentOS 7, follow these steps to install CentOS on your system:

  1. We have to choose the Install CentOS 7 option and press Enter, as shown in the following screenshot. This will start the graphical installer and ask about the language to be used during the installation process:
  1. Now, you will see a WELCOME TO CENTOS 7 screen, prompting you to choose your language and keyboard settings. Choose your respective language and keyboard settings and click on the Continue button, as shown in the following screenshot. In my case, I have chosen English:
  1. After this, you will see an INSTALLATION SUMMARY screen. From this screen, you can specify the settings you want to use for the three different sections and their sub-sections, as shown in the following screenshot:

On this screen, the Begin Installation button will remain disabled as long as any setting from a section or subsection displayed on the INSTALLATION SUMMARY screen is still incomplete. If all the sections and subsections displayed on this screen are complete with minimum installation instructions, only then will the Begin Installation button be enabled.

By default, the installer does automatic partitioning for our hard disk. If we want to use the default layout, then we must click on INSTALLATION DESTINATION, and then approve the disk device we want to use for automatic partitioning by clicking on the Done button on the next screen. Thereafter, the Begin Installation button will be enabled and we can install CentOS with a minimal configuration, as shown in the following screenshot:

The minimal installation of CentOS 7 doesn’t have a graphical interface—it has a bare minimum set of packages installed, with limited features available in the command-line interface.
  1. If you are a beginner and want to use CentOS 7 with a graphical user interface (GUI), then follow these installation instructions. In this step, we'll learn about the usage of CentOS and then modify certain options that need to be configured during installation. The INSTALLATION SUMMARY screen has three sections, as follows:
    • LOCALIZATION
    • SOFTWARE
    • SYSTEM

These three sections are explained as follows:

  • LOCALIZATION: This section further contains the following three sub-sections for configuration:
    • DATE & TIME
    • KEYBOARD
    • LANGUAGE SUPPORT

Or these three, the DATE & TIME sub-section is often required to be configured. The other two we have already configured in the previous steps.

In the DATE & TIME option, select the time zone that you are in by clicking on your location on the world map. You can also configure your current specific DATE & TIME from this window, as shown in the following screenshot:

We leave the KEYBOARD and LANGUAGE SUPPORT settings at their defaults, and move to the next section to be configured—in this case, SOFTWARE.

  • SOFTWARE: This section further contains two sub-sections for configuration:
    • INSTALLATION SOURCE
    • SOFTWARE SELECTION

Under the SOFTWARE section, we keep INSTALLATION SOURCE set to its default local media (DVD-ROM), as shown in the following screenshot:

The next sub-section for configuration is SOFTWARE SELECTION. This forms an important part of the installation procedure. Click on this option and you will get the screen shown in the following screenshot. From here, you can choose the default base environment and add-ons that are available for the selected environment. For our practice demonstration, we will install the GNOME Desktop base environment with four add-ons: GNOME Applications, Office Suite and Productivity, Development Tools and System Administration Tools as shown in the following screenshot:

  • SYSTEM: This section further contains four sub-sections for configuration:
    • INSTALLATION DESTINATION
    • KDUMP
    • NETWORK & HOST NAME
    • SECURITY POLICY

In this section, we keep the KDUMP and SECURITY POLICY sub-sections set to their default parameters, and configure the two remaining sub-sections as follows:

In the INSTALLATION DESTINATION sub-section, we specify where we want to install CentOS. Automatic partitioning is selected by default, but we can create a manual partitioning scheme of our own as per our requirements. As a bare minimum standard, we will create the following three partitions:

    • Boot partition: This partition stores bootable files such as the kernel image, and so on.
    • Swap partition: This is for swapping files and programs in and out of the RAM. It is generally twice the size of the RAM.
    • Root (/) partition: This contains the Linux filesystem.

The following screenshot shows where to click to create manual partitions:

  1. Choose the device onto which to install the OS, and select I will configure partitioning. Finally, click on the Done button to proceed with the creation of multiple partitions as shown in the following screenshot:
  1. Now, we create a minimum of three partitions in the partition table (boot, swap, and /). In my case, I have kept File System as xfs, with the Standard Partition type for the boot and / partitions. For the swap partition, the File System type is kept as swap, as shown in the following screenshot:
  1. Next, on pressing Done, you will get the SUMMARY OF CHANGES dialog box. Click on the Accept Changes button to begin creating on the disk the partitions that we specified in the partition table, as shown in the following screenshot:
  1. NETWORK & HOST NAME: In this final part of the installation summary, which we'll configure networking. You can leave the default settings as they are to get the IP address from the DHCP server, or click on NETWORK & HOST NAME to set up networking manually. From the dialog box, click on the IPv4 Settings Tab, then choose the method as Manual from drop-down menu and specify the private IP address, as shown in the following screenshot:

Further in the NETWORK & HOST NAME settings, change the network connection state from Off to On, as shown in the following screenshot:

  1. Now that all the INSTALLATION SUMMARY sections are configured as required, the Begin Installation button is enabled. Click on the Begin Installation button to start the process of installation, as shown in the following screenshot:
  1. Next, the screen prompts for user settings. Here, we click Root Password first and set the password to Linux@12345.
  1. Next, we click on CREATE USER to create a user. For both the Full name and User name fields, enter student, and set Password as Student@12345. Here also we have to click on the Done button twice to confirm the password, as shown in the following screenshot:
  1. Have a cup of coffee while the installation process is in progress. Once the installation is complete, remove any installation media (the instructions only apply to the DVD method) and click on the Reboot button, as shown in the following screenshot:
  1. Once the system has rebooted, we will get the INITIAL SETUP screen, where we have to accept an EULA agreement before logging in to the system. Here, we click on LICENSE INFORMATION to accept the license agreement, as shown in the following screenshot:
  1. Once the license agreement has been accepted, the FINISH CONFIGURATION button will become enabled. Click on it to reach the login screen.
  1. On the login screen, click on the student username and enter the password as Student@12345, as shown in the following screenshot:
  1. After a successful login, you will see the welcome screen that is displayed only when the user LOGS IN for the first time. Click on the Next button to reach the desktop.
  2. Congratulations! You have successfully installed the latest version of CentOS 7 on your computer system or virtual machine. You can explore your new CentOS 7 environment and perform other tasks, such as updating the system or installing other useful software for daily operational requirements. To power down the system, click on the right corner of desktop. You will get a drop-down menu; from there you can click on Shut down, as shown in the following screenshot:

With this, your installation process is complete. In the upcoming section, we will learn how to access the command-line console.

You have been reading a chapter from
CentOS Quick Start Guide
Published in: Dec 2018
Publisher:
ISBN-13: 9781789344875
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime