Book Image

Mastering Linux Administration

By : Alexandru Calcatinge, Julian Balog
Book Image

Mastering Linux Administration

By: Alexandru Calcatinge, Julian Balog

Overview of this book

Linux plays a significant role in modern data center management and provides great versatility in deploying and managing your workloads on-premises and in the cloud. This book covers the important topics you need to know about for your everyday Linux administration tasks. The book starts by helping you understand the Linux command line and how to work with files, packages, and filesystems. You'll then begin administering network services and hardening security, and learn about cloud computing, containers, and orchestration. Once you've learned how to work with the command line, you'll explore the essential Linux commands for managing users, processes, and daemons and discover how to secure your Linux environment using application security frameworks and firewall managers. As you advance through the chapters, you'll work with containers, hypervisors, virtual machines, Ansible, and Kubernetes. You'll also learn how to deploy Linux to the cloud using AWS and Azure. By the end of this Linux book, you'll be well-versed with Linux and have mastered everyday administrative tasks using workflows spanning from on-premises to the cloud. If you also find yourself adopting DevOps practices in the process, we'll consider our mission accomplished.
Table of Contents (20 chapters)
Section 1: Linux Basic Administration
Section 2: Advanced Linux Server Administration
Section 3: Cloud Administration

Building a package from source

Building from source is an activity that is less and less needed on a day-by-day basis. Most of the distributions are already providing the most necessary packages for any task. The days of building applications from source are long gone. Repositories provide tens of thousands of packages that you can easily install.

The two scenarios where you would have to build from source would be: (1) if you need a legacy app that is no longer maintained and delivered with your current distribution; and (2) when you need to use an application developed in-house. If those scenarios apply, you will probably need to build from source.

Compiling a source package would require you to have proper development tools installed on your system. In the following example, we will use a simple script written in bash that shows the IP and network interface to the standard output. This would be our application developed in-house. Please keep in mind that the following is only...