CentOS 7 Linux Server Cookbook - Second Edition

Get your CentOS server up and running with this collection of more than 80 recipes created for CentOS 7 - essential for Linux fans!

CentOS 7 Linux Server Cookbook - Second Edition

This ebook is included in a Mapt subscription
Oliver Pelz, Jonathan Hobson

1 customer reviews
Get your CentOS server up and running with this collection of more than 80 recipes created for CentOS 7 - essential for Linux fans!
$0.00
$20.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781785887284
Paperback326 pages

Book Description

This book will provide you with a comprehensive series of starting points that will give you direct access to the inner workings of the latest CentOS version 7 and help you trim the learning curve to master your server.

You will begin with the installation and basic configuration of CentOS 7, followed by learning how to manage your system, services and software packages. You will then gain an understanding of how to administer the file system, secure access to your server and configure various resource sharing services such as file, printer and DHCP servers across your network. Further on, we cover advanced topics such as FTP services, building your own DNS server, running database servers, and providing mail and web services. Finally, you will get a deep understanding of SELinux and you will learn how to work with Docker operating-system virtualization and how to monitor your IT infrastructure with Nagios.

By the end of this book, you will have a fair understanding of all the aspects of configuring, implementing and administering CentOS 7 Linux server and how to put it in control.

Table of Contents

Chapter 1: Installing CentOS
Introduction
Downloading CentOS and confirming the checksum on Windows or OS X
Creating USB installation media on Windows or OS X
Performing an installation of CentOS using the graphical installer
Running a netinstall over HTTP
Installing CentOS 7 using a kickstart file
Getting started and customising the boot loader
Troubleshooting the system in rescue mode
Updating the installation and enhancing the minimal install with additional administration and development tools
Chapter 2: Configuring the System
Introduction
Navigating text files with less
Introduction to Vim
Speaking the right language
Synchronizing the system clock with NTP and the chrony suite
Setting your hostname and resolving the network
Building a static network connection
Becoming a superuser
Customizing your system banners and messages
Priming the kernel
Chapter 3: Managing the System
Introduction
Knowing and managing your background services
Troubleshooting background services
Tracking system resources with journald
Configuring journald to make it persistent
Managing users and their groups
Scheduling tasks with cron
Synchronizing files and doing more with rsync
Maintaining backups and taking snapshots
Monitoring important server infrastructure
Taking control with GIT and Subversion
Chapter 4: Managing Packages with YUM
Introduction
Using YUM to update the system
Using YUM to search for packages
Using YUM to install packages
Using YUM to remove packages
Keeping YUM clean and tidy
Knowing your priorities
Using a third-party repository
Creating a YUM repository
Working with the RPM package manager
Chapter 5: Administering the Filesystem
Introduction
Creating a virtual block device
Formatting and mounting a filesystem
Using disk quotas
Maintaining a filesystem
Extending the capacity of the filesystem
Chapter 6: Providing Security
Introduction
Locking down remote access and hardening SSH
Installing and configuring fail2ban
Working with a firewall
Forging the firewall rules by example
Generating self-signed certificates
Using secure alternatives to FTP
Chapter 7: Building a Network
Introduction
Printing with CUPS
Running a DHCP server
Using WebDAV for file sharing
Installing and configuring NFS
Working with NFS
Securely sharing resources with Samba
Chapter 8: Working with FTP
Introduction
Installing and configuring the FTP service
Working with virtual FTP users
Customizing the FTP service
Troubleshooting users and file transfers
Chapter 9: Working with Domains
Introduction
Installing and configuring a caching-only nameserver
Setting up an authoritative-only DNS server
Creating an integrated nameserver solution
Populating the domain
Building a secondary (slave) DNS server
Chapter 10: Working with Databases
Introduction
Installing a MariaDB database server
Managing a MariaDB database
Allowing remote access to a MariaDB server
Installing a PostgreSQL server and managing a database
Configuring remote access to PostgreSQL
Installing phpMyAdmin and phpPgAdmin
Chapter 11: Providing Mail Services
Introduction
Configuring a domain-wide mail service with Postfix
Working with Postfix
Delivering the mail with Dovecot
Using Fetchmail
Chapter 12: Providing Web Services
Introduction
Installing Apache and serving web pages
Enabling system users and building publishing directories
Implementing name-based hosting
Implementing CGI with Perl and Ruby
Installing, configuring, and testing PHP
Securing Apache
Setting up HTTPS with Secure Sockets Layer (SSL)
Chapter 13: Operating System-Level Virtualization
Introduction
Installing and configuring Docker
Downloading an image and running a container
Creating your own images from Dockerfiles and uploading to Docker Hub
Setting up and working with a private Docker registry
Chapter 14: Working with SELinux
Introduction
Installing and configuring important SELinux tools
Working with SELinux security contexts
Working with policies
Troubleshooting SELinux
Chapter 15: Monitoring IT Infrastructure
Introduction
Installing and configuring Nagios Core
Setting up NRPE on remote client hosts
Monitoring important remote system metrics

What You Will Learn

  • Install and configure CentOS 7 Linux server system from scratch using normal and advanced methods
  • Maintain a performance-based and secure server solution by deploying expert configuration advice and managing software packages
  • Monitor, manage and develop your server's file system to maintain a stable performance
  • Gain best practice methods on sharing files and resources through a network
  • Install and configure common standard services such as web, mail, FTP, database and domain name server technologies
  • Introduce you to the world of operating-system-level virtualization using the Docker platform.
  • Understand the fundamentals of the Security-Enhanced Linux access control architecture
  • Monitor your IT infrastructure using Nagios

Authors

Table of Contents

Chapter 1: Installing CentOS
Introduction
Downloading CentOS and confirming the checksum on Windows or OS X
Creating USB installation media on Windows or OS X
Performing an installation of CentOS using the graphical installer
Running a netinstall over HTTP
Installing CentOS 7 using a kickstart file
Getting started and customising the boot loader
Troubleshooting the system in rescue mode
Updating the installation and enhancing the minimal install with additional administration and development tools
Chapter 2: Configuring the System
Introduction
Navigating text files with less
Introduction to Vim
Speaking the right language
Synchronizing the system clock with NTP and the chrony suite
Setting your hostname and resolving the network
Building a static network connection
Becoming a superuser
Customizing your system banners and messages
Priming the kernel
Chapter 3: Managing the System
Introduction
Knowing and managing your background services
Troubleshooting background services
Tracking system resources with journald
Configuring journald to make it persistent
Managing users and their groups
Scheduling tasks with cron
Synchronizing files and doing more with rsync
Maintaining backups and taking snapshots
Monitoring important server infrastructure
Taking control with GIT and Subversion
Chapter 4: Managing Packages with YUM
Introduction
Using YUM to update the system
Using YUM to search for packages
Using YUM to install packages
Using YUM to remove packages
Keeping YUM clean and tidy
Knowing your priorities
Using a third-party repository
Creating a YUM repository
Working with the RPM package manager
Chapter 5: Administering the Filesystem
Introduction
Creating a virtual block device
Formatting and mounting a filesystem
Using disk quotas
Maintaining a filesystem
Extending the capacity of the filesystem
Chapter 6: Providing Security
Introduction
Locking down remote access and hardening SSH
Installing and configuring fail2ban
Working with a firewall
Forging the firewall rules by example
Generating self-signed certificates
Using secure alternatives to FTP
Chapter 7: Building a Network
Introduction
Printing with CUPS
Running a DHCP server
Using WebDAV for file sharing
Installing and configuring NFS
Working with NFS
Securely sharing resources with Samba
Chapter 8: Working with FTP
Introduction
Installing and configuring the FTP service
Working with virtual FTP users
Customizing the FTP service
Troubleshooting users and file transfers
Chapter 9: Working with Domains
Introduction
Installing and configuring a caching-only nameserver
Setting up an authoritative-only DNS server
Creating an integrated nameserver solution
Populating the domain
Building a secondary (slave) DNS server
Chapter 10: Working with Databases
Introduction
Installing a MariaDB database server
Managing a MariaDB database
Allowing remote access to a MariaDB server
Installing a PostgreSQL server and managing a database
Configuring remote access to PostgreSQL
Installing phpMyAdmin and phpPgAdmin
Chapter 11: Providing Mail Services
Introduction
Configuring a domain-wide mail service with Postfix
Working with Postfix
Delivering the mail with Dovecot
Using Fetchmail
Chapter 12: Providing Web Services
Introduction
Installing Apache and serving web pages
Enabling system users and building publishing directories
Implementing name-based hosting
Implementing CGI with Perl and Ruby
Installing, configuring, and testing PHP
Securing Apache
Setting up HTTPS with Secure Sockets Layer (SSL)
Chapter 13: Operating System-Level Virtualization
Introduction
Installing and configuring Docker
Downloading an image and running a container
Creating your own images from Dockerfiles and uploading to Docker Hub
Setting up and working with a private Docker registry
Chapter 14: Working with SELinux
Introduction
Installing and configuring important SELinux tools
Working with SELinux security contexts
Working with policies
Troubleshooting SELinux
Chapter 15: Monitoring IT Infrastructure
Introduction
Installing and configuring Nagios Core
Setting up NRPE on remote client hosts
Monitoring important remote system metrics

Book Details

ISBN 139781785887284
Paperback326 pages
Read More
From 1 reviews

Read More Reviews