Book Image

Mastering CentOS 7 Linux Server

By : Mohamed Alibi, BHASKARJYOTI ROY
Book Image

Mastering CentOS 7 Linux Server

By: Mohamed Alibi, BHASKARJYOTI ROY

Overview of this book

Most server infrastructures are equipped with at least one Linux server that provides many essential services, both for a user's demands and for the infrastructure itself. Setting up a sustainable Linux server is one of the most demanding tasks for a system administrator to perform. However, learning multiple, new technologies to meet all of their needs is time-consuming. CentOS 7 is the brand new version of the CentOS Linux system under the RPM (Red Hat) family. It is one of the most widely-used operating systems, being the choice of many organizations across the world. With the help of this book, you will explore the best practices and administration tools of CentOS 7 Linux server along with implementing some of the most common Linux services. We start by explaining the initial steps you need to carry out after installing CentOS 7 by briefly explaining the concepts related to users, groups, and right management, along with some basic system security measures. Next, you will be introduced to the most commonly used services and shown in detail how to implement and deploy them so they can be used by internal or external users. Soon enough, you will be shown how to monitor the server. We will then move on to master the virtualization and cloud computing techniques. Finally, the book wraps up by explaining configuration management and some security tweaks. All these topics and more are covered in this comprehensive guide, which briefly demonstrates the latest changes to all of the services and tools with the recent shift from CentOS 6 to CentOS 7.
Table of Contents (16 chapters)
Mastering CentOS 7 Linux Server
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

CentOS 7 Linux is one of the most reliable Linux operating systems to be used for multiple functionalities in a computer infrastructure. It is like Pandora's box for any system administrator in that he can shape it to perform any task for his environment.

Having a CentOS 7 server in any infrastructure can help deploy a number of useful services to maintain, secure, and manage the infrastructure in a smart and automated way.

What this book covers

Chapter 1, Advanced User Management, teaches you how to manage users and groups on CentOS 7 to get a better understanding of how it is organized.

Chapter 2, Security, shows the best practices to secure your CentOS 7 and some of its valuable services from many attacks that could disable the services or expose some critical data.

Chapter 3, Linux for Different Purposes, enumerates and introduces a step-by-step tutorial on how to set up a list of very useful services that your computer infrastructure should have.

Chapter 4, Mail Server with Postfix, introduces you to Postfix as a common open source mail server to have it installed and configured for advanced usage.

Chapter 5, Monitoring and Logging, monitors your infrastructure and follows your machine's issues via user-friendly monitoring and logging tools.

Chapter 6, Virtualization, initiates your virtual environment and explores the possibilities and benefits all the virtual technologies can offer.

Chapter 7, Cloud Computing, explores Cloud computing by building your own Cloud environment using OpenStack and its amazing components.

Chapter 8, Configuration Management, takes your infrastructure to an advanced level where everything runs on configuration management using Puppet, as it is one of the most famous configuration management tools in this field.

Chapter 9, Some Additional Tricks and Tools, teaches you the small tricks and tools that can make your life easier when administrating the CentOS 7 server for any use.

What you need for this book

To follow this book properly, we recommend that you have one CentOS 7 server to hold most of these services with the following characteristics:

  • CPU: 4 Core 3.00 GHz

  • Memory: 6 GB RAM

  • Hard Disk: 150 GB

  • Network: 1 Gbit/s

Also, you will need some machines with the following characteristics to test the services on:

  • CPU: 2 Core 3.00 GHz

  • Memory: 2 GB RAM

  • Hard Disk: 50 GB

  • Network: 1Gbit/s

A good Internet connection and a Gigabit network switch are also required.

Who this book is for

If you are a Linux system administrator with an intermediate administration level, this is your opportunity to master the brand new distribution of CentOS. If you wish to possess a fully sustainable Linux server, with all its new tools and tweaks, that serves a variety of services to your users and customers, this book is ideal for you. It is your ticket to easily adapting to all the changes made in the latest shift.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

<html>
    <title>
  Test page
    </title>
    <body>
  <h1>This is a test page</h1>
    </body>
</html>

Any command-line input or output is written as follows:

testuser:x:1001:1001::/home/testuser:/bin/bash

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Then we define the fields asked to fill Country Name, State or Province Name, Locality Name, Organization Name, Organizational Unit Name, Common Name, and Email Address."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/MasteringCentOS7LinuxServer_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.