Share E-Book

Mastering Linux Administration, 2nd Edition (Alexandru Calcating, Julian Balog)(Z-Library)

Author

,

Rating No ratings yet

Log in to rate

Linux
Language English

Harness the power of Linux in modern data center management, leveraging its unparalleled versatility for efficiently managing your workloads in on-premises and cloud environments. In this second edition, you'll find updates on the latest advancements in Linux administration including containerization, shell scripting, and hypervisors. Written by an experienced Linux trainer, this book will start you off with Linux installation on on-premises systems. As you progress, you’ll master the Linux command line, files, packages, and filesystems. You'll explore essential Linux commands and techniques to secure your Linux environment. New to this edition is a chapter on shell scripting, providing structured guidance on using shell programming for basic Linux automation. This book also delves into the world of containers, with two new chapters dedicated to Docker containers and hypervisors, including KVM virtual machines. Once adept with Linux containers, you'll learn about modern cloud technologies, managing and provisioning container workloads using Kubernetes, and automating system tasks using Ansible. Finally, you'll get to grips with deploying Linux to the cloud using AWS and Azure-specific tools. By the end of this Linux book, you'll have mastered everyday administrative tasks, seamlessly navigating workflows spanning from on-premises to the cloud.

Format PDF
Size 39.0 MB
6
Views
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
T.me/nettrain
Page 2
Mastering Linux Administration Copyright © 2024 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Group Product Manager: Pavan Ramchandani Publishing Product Manager: Prachi Sawant Book Project Manager: Ashwini Gowda Senior Editors: Shruti Menon and Adrija Mitra Technical Editor: Irfa Ansari Copy Editor: Safis Editing Proofreader: Safis Editing Indexer: Rekha Nair Production Designer: Jyoti Kadam Senior DevRel Marketing Coordinator: Marylou De Mello First published: June 2021 Second edition: March 2024 T.me/nettrain
Page 3
Production reference: 1230224 Published by Packt Publishing Ltd. Grosvenor House 11 St Paul’s Square Birmingham B3 1RB, UK. ISBN 978-1-83763-069-1 www.packtpub.com T.me/nettrain
Page 4
This is to everyone who did not believe in me, and to everyone who believed in me. T.me/nettrain
Page 5
To my mother and father, my twin sister, my beloved Uca, and my truthful friends. T.me/nettrain
Page 6
In memory of my late grandfather, Miron, who would have loved to see this new book finished before he passed away. Contributors About the author Alexandru Calcatinge is an open-minded architect with a background in computer science and mathematics. He is a senior university lecturer with a PhD in urban planning from Ion Mincu University of Architecture and Urban Planning and a postgraduate degree in DevOps from Caltech’s Center for Technology and Management Education (CTME). He teaches students about architectural programming and development and open source technologies. He has authored five books on architecture and urban planning and numerous scientific articles on urban and rural development. Alex was certified as a Linux trainer in 2017. He loves the DevOps philosophy and the possibilities that cloud technologies bring for the future. He is also a certified programming analyst, computer network administrator, trainer, designer, and life coach. T.me/nettrain
Page 7
I want to thank the people who have been close to me and supported me unconditionally, especially my parents, my twin sister, and my friends. I want to express my deepest gratitude to my one and only Uca for sticking by my side during a time of turmoil, and for her constant support and trust in me. Julian Balog is a senior software engineer with more than 15 years of experience in the industry. Currently, his work primarily focuses on application delivery controllers, containerized workflows, networking, and security. With a never-ending passion for Linux and open-source technologies, Julian is always in pursuit of learning new things while solving problems and making things work through simple, efficient, and practical engineering. He lives with his wife, two children, and an Aussie-doodle in the greater Seattle area, Washington. T.me/nettrain
Page 8
The authors would like to thank the wonderful editorial and production team at Packt for their professional leadership, dedication, and guidance throughout the writing of this book. We are indebted to them for many helpful suggestions and the comprehensive revision of the drafts. We are also grateful to the reviewers for their critical comments. We could not have hoped for a better team and support. About the reviewers Himanshu Sharma has nearly 18 years of experience in designing, architecting, and developing cloud and network software. He previously worked for some of the biggest companies such as Brocade and Juniper and start-ups such as Netskope. Currently, he is working with Netskope as a Principal Engineer, responsible for Netskope’s security service offering. He designed, architected, and developed Netskope’s advanced threat protection services from the ground up. He has a keen interest and experience in developing scalable cloud services with cutting-edge technologies. His favorite hobbies are skiing and playing video games. T.me/nettrain
Page 9
I would like to thank my wife, Puja, who gave me all her support, and my two loving and beautiful daughters, Navya and Jaanvi. T.me/nettrain
Page 10
Also, I want to thank my brother, Sudhanshu, for always having my back, and my parents for all their sacrifices to get me where I am today. Dennis Salamanca is a passionate technology enthusiast with a solid track record of over 12 years in the IT industry. Throughout his career, he has had the privilege of working with renowned industry leaders such as Amazon, VMware, Microsoft, and Hewlett-Packard Enterprise. His dedication to continuous learning is reflected in an extensive collection of over 15 technical certifications spanning various domains including cloud, storage, Linux, Kubernetes, and virtualization. Notably, he is actively involved in the development team for Linux+ and Cloud+ certifications and proudly contributes as a member of the esteemed CompTIA Linux and Cloud Subject Matter Experts and Technical Advisory Committee. T.me/nettrain
Page 11
I would like to acknowledge my wife and family for all their support over these years. Without their motivation and support, nothing would’ve been possible. T.me/nettrain
Page 12
Table of Contents Preface T.me/nettrain
Page 13
Part 1: Basic Linux Administration 1 Install ing Linux Technical requirements Introducing the Linux operating system Exploring Linux distributions Choosing a Linux distribution Installing Linux – the basics How to install Linux on bare metal Linux in a VM VM provisioning using Hyper-V VM provisioning using Oracle’s VirtualBox Enabling Windows Subsystem for Linux Installing Linux – the advanced stages The Linux boot process PXE network boot explained Linux distributions – a practical guide Case study – development workstation Case study – secure web server Use case – personal blog Use case – media server Summary Questions Further reading 2 T.me/nettrain
Page 14
The Linux Shell and Filesystem Technical requirements Introducing the Linux shell Establishing the shell connection The command-line prompt Shell command types Explaining the command structure Consulting the manual The Linux filesystem Directory structure Working with files and directories Understanding file paths Basic file operations Commands for fi le viewing Commands for fi le properties Using text editors to create and edit fi les Using Vim to edit text fi les The nano text editor Summary Questions Further reading 3 Linux Software Management Technical requirements Linux software package types The DEB and RPM package types The snap and flatpak package types T.me/nettrain
Page 15
Managing software packages Managing DEB packages Managing RPM packages Using the snap and flatpak packages Installing new desktop environments in Linux Installing KDE Plasma on Fedora Linux Summary Questions Further reading 4 Managing Users and Groups Technical requirements Managing users Understanding sudo Creating, modifying, and deleting users Managing groups Creating, modifying, and deleting groups Managing permissions File and directory permissions Summary Questions Further reading 5 Working with Processes, Daemons, and Signals Technical requirements T.me/nettrain
Page 16
Introducing processes Understanding process types The anatomy of a process Working with processes Using the ps command Using the pstree command Using the top command Using the kill and killall commands Using the pgrep and pkill commands Working with daemons Working with systemd daemons Explaining inter-process communication Working with signals Summary Questions Further reading T.me/nettrain
Page 17
Part 2: Advanced Linux Administration 6 Working with Disks and Filesystems Technical requirements Understanding devices in Linux Linux abstraction layers Device files and naming conventions Understanding filesystem types in Linux Understanding disks and partitions Common disk types Partitioning disks Introducing LVM in Linux LVM snapshots Summary Questions Further reading 7 Networking with Linux Technical requirements Exploring basic networking Computer networks The OSI model The TCP/IP network stack model TCP/IP protocols T.me/nettrain
Page 18
IP addresses Sockets and ports Linux network configuration Working with network services DHCP servers DNS servers Authentication servers File sharing Printer servers File transfer Mail servers NTP servers Remote access Understanding network security Summary Questions Further reading 8 Linux Shell Scripting Technical requirements Exploring the Linux shell Bash shell features Bash shell variables Basics of shell scripting Creating a shell script fi le Variables in shell scripts Using mathematical expressions in shell scripts T.me/nettrain
Page 19
Using programming structures Using arrays in Bash Reading input data Formatting output data Understanding exit statuses and testing structures Using conditional if statements Using looping statements Working with functions Using sed and (g)awk commands Using scripts to showcase interprocess communication Shared storage Unnamed pipes Named pipes Sockets Scripting for administrative tasks Creating scripts for system administrative tasks Packaging scripts Summary Questions Further reading 9 Securing Linux Technical requirements Understanding Linux security Introducing SELinux Working with SELinux Introducing AppArmor T.me/nettrain
Page 20
Working with AppArmor Final considerations Working with firewalls Understanding the firewall chain Introducing Netfilter Working with iptables Introducing nftables Using firewall managers Summary Exercises Further reading 10 Disaster Recovery, Diagnostics, and Troubleshooting Technical requirements Planning for disaster recovery A brief introduction to risk management Risk calculation Designing a DRP Backing up and restoring the system Disk cloning solutions Introducing common Linux diagnostic tools for troubleshooting Tools for troubleshooting boot issues Tools for troubleshooting general system issues Tools for troubleshooting network issues Tools for troubleshooting hardware issues Summary Questions T.me/nettrain
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List