Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Compiling a program from source


Modern-day package managers make it easy to install software; with just a single command, we can install a program and its dependencies from any of our configured repositories. Yet an important value in the Linux community and free software movement is the ability to modify your software as you see fit (perhaps you want to fix a bug or add a new feature). For software written in a compiled language, such as C, this often means modifying the program's source code and compiling the code into an executable binary. This recipe walks you through compiling and installing the GNU Hello program.

Getting ready

This recipe requires a CentOS system with a working network connection. An unprivileged user account capable of escalating its privileges using sudo should also be available.

How to do it...

Perform the following steps to compile and install the program from the source code:

  1. Using sudo to elevate your account's privileges, install the gcc package:

    sudo yum install...