Search found 365 matches

Author Message

iPhone

Post Yesterday 07:40

[Quote]

Yocto Project Customization for LinuxLinux: The Essential Guide for Embedded Developers / Настройка проекта Yocto для Linux: Основное руководство для разработчиков встраиваемых систем
Год издания: 2025
Автор: Giometti Rodolfo / Джометти Родольфо
Издательство: Apress Media LLC
ISBN: 979-8-8688-1435-8
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Количество страниц: 738
Описание: Embedded computers have become very complex and are now called upon to solve a range of increasingly advanced problems. This added complexity means embedded systems need even more complex operating systems in order to work as required.
The Yocto Project is now the effective standard for most embedded systems around the world due to its robustness and high configuration, availability of software packages and the ability to support several hardware platforms with common mechanisms so that developers can deploy their systems with ease regardless of the machine.
Yocto Project Customization for Linux is not just another book talking about the Yocto Project, but shows how the Yocto Build system really works. Developers can easily and quickly move from the demo Yocto Project distributions that silicon vendors rely on for their development kits to their final product. This book is a practical guide teaching you everything you need to know about writing new recipes and customizing existing ones by explaining the Build System internals and how to manage them for your ongoing projects.
You Will Learn:
To understand Yocto Project internals and how Yocto Project tools work
How to define a new meta layer or a new machine/distro in order to generate a custom Yocto Project image for their embedded system
To generate a new Yocto Project recipe for your software, or to alter an already existing recipe in order to fit your needs
How to update one or more packages on their running Yocto Project system
How to optimize and effectively manage the Yocto Build System
Who is it for:
This is for embedded developers as well as Linux users who want to know more how to use Yocto.
Встраиваемые компьютеры стали очень сложными, и в настоящее время им приходится решать целый ряд все более сложных задач. Это усложнение означает, что встраиваемые системы нуждаются в еще более сложных операционных системах для обеспечения требуемой работы.
Проект Yocto в настоящее время является эффективным стандартом для большинства встраиваемых систем по всему миру благодаря своей надежности и высокой конфигурации, доступности пакетов программного обеспечения и возможности поддерживать несколько аппаратных платформ с общими механизмами, что позволяет разработчикам с легкостью развертывать свои системы независимо от типа оборудования.
Yocto Project Customization для Linux - это не просто очередная книга, рассказывающая о проекте Yocto, но и показывающая, как на самом деле работает система Yocto Build. Разработчики могут легко и быстро перейти от демонстрационных дистрибутивов Yocto Project, на которые вендоры silicon используют свои наборы для разработки, к конечному продукту. Эта книга представляет собой практическое руководство, в котором вы узнаете все, что вам нужно знать о написании новых рецептов и настройке существующих, а также о внутренних компонентах системы сборки и о том, как управлять ими для ваших текущих проектов.
Вы узнаете:
Разобраться во внутренней части Yocto Project и в том, как работают инструменты Yocto Project
Как определить новый метауровень или новую машину/дистрибутив, чтобы создать пользовательский образ Yocto Project для своей встроенной системы
Как создать новый рецепт Yocto Project для вашего программного обеспечения или изменить уже существующий рецепт в соответствии с вашими потребностями
Как обновить один или несколько пакетов в запущенной системе Yocto Project
Как оптимизировать систему сборки Yocto и эффективно управлять ею
Для кого это предназначено:
Это предназначено для разработчиков встраиваемых систем, а также пользователей Linux, которые хотят больше узнать о том, как использовать Yocto.

Примеры страниц (скриншоты)

Оглавление

About the Author .............................................................................xiii
About the Technical Reviewer ............................................................xv
Acknowledgments ............................................................................xvii
Introduction ....................................................................................xix
Chapter 1: Setting Up the Building Environment ..................................1
Chapter 2: Installing the Sources .......................................................29
Chapter 3: Yocto Project Basics ..........................................................63
Chapter 4: Yocto Tools ......................................................................117
Chapter 5: BitBake Internals ..............................................................195
Chapter 6: Recipes ...........................................................................249
Chapter 7: Generating and Managing Layers ........................................327
Chapter 8: Adding New Hardware .......................................................359
Chapter 9: C Application Recipes ........................................................427
Chapter 10: Python Application Recipes ...............................................505
Chapter 11: Miscellaneous Recipes ......................................................539
Chapter 12: Image Recipes ................................................................601
Chapter 13: Optimizations and Best Practices .......................................641
Index ..............................................................................................689

iPhone

Post Yesterday 07:40

[Quote]

sed & awk. 2nd ed.
Год: 1997
Автор: Dale Dougherty, Arnold Robbins / Дейл Дакерти, Арнольд Роббинс
Издательство: O'Reilly Media
ISBN: 1-56592-225-5
Язык: Английский
Формат: PDF
Качество: Издательский макет
Интерактивное оглавление: Да
Количество страниц: 434
Описание: sed & awk describes two text processing programs that are mainstays of the UNIX programmer's toolbox.
sed is a "stream editor" for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger data processing step. The most common operation done with sed is substitution, replacing one block of text with another.
awk is a complete programming language. Unlike many conventional languages, awk is "data driven" -- you specify what kind of data you are interested in and the operations to be performed when that data is found. awk does many things for you, including automatically opening and closing data files, reading records, breaking the records up into fields, and counting the records. While awk provides the features of most conventional programming languages, it also includes some unconventional features, such as extended regular expression matching and associative arrays. sed & awk describes both programs in detail and includes a chapter of example sed and awk scripts.
This edition covers features of sed and awk that are mandated by the POSIX standard. This most notably affects awk, where POSIX standardized a new variable, CONVFMT, and new functions, toupper() and tolower(). The CONVFMT variable specifies the conversion format to use when converting numbers to strings (awk used to use OFMT for this purpose). The toupper() and tolower() functions each take a (presumably mixed case) string argument and return a new version of the string with all letters translated to the corresponding case.
In addition, this edition covers GNU sed, newly available since the first edition. It also updates the first edition coverage of Bell Labs nawk and GNU awk (gawk), covers mawk, an additional freely available implementation of awk, and briefly discusses three commercial versions of awk, MKS awk, Thompson Automation awk (tawk), and Videosoft (VSAwk).
Доп. информация:
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of sed & awk is a slender loris. Lorises are nocturnal, tree- dwelling, tailless primates with thick, soft fur and large, round eyes. They are found in Southern India and Ceylon, where they live in trees, rarely descending to the ground. Lorises have been observed urinating on their hands and feetit is thought that they do this to improve their grip while climbing and to leave a scent trail.
A small animal, the slender loris is generally between 7 and 10 inches in size and weighs 12 ounces or less. It subsists on a diet of fruit, leaves, and shoots and small animals that it captures by hand. Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.3 using the ITC Garamond font.
The inside layout was designed by Nancy Priest and Mary Jane Walsh. Text was prepared in SGML using the DocBook 2.1 DTD. The print version of this book was created by trans- lating the SGML source into a set of gtroff macros using a filter developed at ORA by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff -gs macros; Lenny Muellner adapted them to SGML and implemented the book design. The GNU groff text formatter version 1.09 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the constant-width font used in this book is Letter Gothic. The illustrations that appear in the book were created in Macromedia Freehand 5.0 by Chris Reilley.

Примеры страниц

iPhone

Post 04-Jul-2025 07:30

[Quote]

Ubuntu System Administration Guide: Ubuntu Desktop, Server, security, and DevOps automation / Руководство по администрированию системы Ubuntu: Рабочий стол Ubuntu, сервер, безопасность и автоматизация DevOps
Год издания: 2025
Автор: Hemmingsson Mattias / Хеммингссон Маттиас
Издательство: BPB Publications
ISBN: 978-93-65897-883
Язык: Английский
Формат: PDF (Not True)/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 365
Описание: Ubuntu, a powerful and versatile Linux operating system, is the cornerstone for countless personal desktops, robust servers, and cutting-edge cloud deployments. The Ubuntu System Administration Guide provides a rapid yet comprehensive journey, equipping you with the practical skills to confidently navigate and master this essential ecosystem, from basic commands to advanced infrastructure.
This book systematically builds your expertise, starting with Ubuntu's ecosystem, installation, and desktop configuration, including diverse window managers and essential networking like VPNs. You will then cover virtualization with KVM and Vagrant, followed by modern containerization using Docker and local Kubernetes (Minikube). The book transitions to server mastery, covering various installation methods, robust health checks, and advanced server networking, including firewalls and VPN servers. It progresses to professional server virtualization with KVM and the deployment of full Kubernetes clusters. Finally, you will learn to set up web servers, deploy diverse applications, and automate tasks with powerful CI/CD pipelines, embodying DevOps practices.
Upon completing this practical guide, you will possess a profound understanding of Ubuntu, gaining both beginner-friendly competence and professional-level skills in system administration, modern application deployment, and automation, ready to tackle real-world challenges.
What you will learn
● Learn Ubuntu installation, desktop configuration, and network security essentials.
● Implement desktop virtualization (KVM, Vagrant) and local containerization (Docker, Minikube).
● Deploy Ubuntu Server on metal, cloud, and configure advanced networking.
● Build production Kubernetes clusters, including master, workers, and services.
● Automate server deployments and service delivery via CI/CD pipelines.
● Troubleshoot server logs, implement security HIDS, and set up alerts.
Who this book is for
This book is perfect for aspiring system administrators, developers, DevOps engineers, and IT professionals. Readers should have basic computer literacy and a desire to learn, as it guides them from fundamental Ubuntu concepts to advanced server and cloud-native practices.
Ubuntu, мощная и универсальная операционная система Linux, является краеугольным камнем для бесчисленных персональных компьютеров, надежных серверов и передовых облачных решений. Руководство по системному администрированию Ubuntu представляет собой краткое, но всестороннее руководство, которое поможет вам овладеть практическими навыками, необходимыми для уверенной навигации и освоения этой важной экосистемы, от базовых команд до продвинутой инфраструктуры.
Эта книга систематизирует ваши знания, начиная с экосистемы Ubuntu, установки и настройки рабочего стола, включая различные оконные менеджеры и основные сетевые сервисы, такие как VPN. Затем вы познакомитесь с виртуализацией с помощью KVM и Vagrant, а затем с современной контейнеризацией с использованием Docker и локального Kubernetes (Minikube). В книге рассказывается о различных методах установки, надежных проверках работоспособности и расширенных серверных сетях, включая брандмауэры и VPN-серверы. Затем вы перейдете к профессиональной виртуализации серверов с помощью KVM и развертыванию полноценных кластеров Kubernetes. Наконец, вы научитесь настраивать веб-серверы, развертывать разнообразные приложения и автоматизировать задачи с помощью мощных конвейеров CI/CD, воплощающих методы DevOps.
После прочтения этого практического руководства вы будете обладать глубоким пониманием Ubuntu, приобретете как навыки, понятные новичкам, так и навыки профессионального уровня в области системного администрирования, развертывания современных приложений и автоматизации, и будете готовы решать реальные задачи.
Что вы узнаете
● Изучите установку Ubuntu, настройку рабочего стола и основы сетевой безопасности.
● Реализуйте виртуализацию рабочего стола (KVM, Vagrant) и локальную контейнеризацию (Docker, Minikube).
● Разверните сервер Ubuntu в metal, cloud и настройте расширенную сеть.
● Создавайте производственные кластеры Kubernetes, включая основные, рабочие и службы.
● Автоматизируйте развертывание серверов и предоставление услуг с помощью конвейеров CI/CD.
● Устраняйте неполадки в журналах сервера, внедряйте идентификаторы безопасности и настраивайте оповещения.
Для кого предназначена эта книга
Эта книга идеально подходит для начинающих системных администраторов, разработчиков, инженеров DevOps и ИТ-специалистов. Читатели должны обладать базовой компьютерной грамотностью и желанием учиться, поскольку она поможет им перейти от фундаментальных концепций Ubuntu к передовым серверным и облачным практикам.

Примеры страниц (скриншоты)

Оглавление

1. Getting Getting Familiar with Ubuntu Ecosystem
Introduction
Structure
Objectives
Linux history
Linux stack
Usage and stats of Linux
Ubuntu history
Ubuntu releases
Ubuntu version
Mint
Pop
LXLE
Other Linux distributions
Create GitHub and blogger account
Git
Blog
Book Git Repo
Conclusion
References
2. Install, Upgrade, and Configure Ubuntu Desktop
Introduction
Structure
Objectives
Installing Ubuntu
Pre-installing Ubuntu
Dual-boot Windows or Ubuntu
Boot Ubuntu and install
Making boot USB with Etcher
Boot Ubuntu for the first time
Pre-checks before installations
Verify computer device
Commands
Installing Ubuntu
Update and other software
Installation type
Ubuntu running
Installing software
Software store
Snap Store
Updating Ubuntu
Upgrading Ubuntu LTS
.config folder
Conclusion
3. Environments and Window Managers
Introduction
Structure
Objectives
Install i3 window manager
Tiling
Extra commands
Troubleshooting commands
Commands in i3
Custom shortcuts
Background image
Lock screen
Extra configs
Extra Trix with i3
Work on Ubuntu
Email
Password manager
PGP encryption
Communication tools
Watching video on Ubuntu
Stream your desktop live
Sound and video
Webcam
Syncing files
Developing with Ubuntu
Git
Code
PyCharm
About code editors
Conclusion
4. Setting up Firewall, VPN, and Wi-Fi Networks
Introduction
Structure
Objectives
Network DHCP or static
Network static
Connect to segment VLAN networks
Connect to wireless network
Hide your computer by changing MAC address
Secure your connections with VPN service
OpenVPN
WireGuard
Protect your traffic by using DNSS
Protect your computer by applying a firewall
Detect and stop computer virus
Update virus database
ClamAV GUI
Conclusion
5. Preparing Virtualization Environment
Introduction
Structure
Objectives
Overview of virtualization in Ubuntu
KVM virtualization in Ubuntu
Create bridge
Installing our first VM
Settings for your VM
Snapshots
Custom snapshot
Access to VM
Using hardware devices directly in your VM
Other virtualizations
Build and run a Vagrant box inside KVM
Run VirtualBox inside KVM
Converting images back and forth
Conclusion
6. Up and Running with Kubernetes and
Introduction
Structure
Objectives
Docker and container
Installing Docker
Setting up Docker repos for Ubuntu
Docker Hub
Official images
Start your first Docker
Expanding our Docker Compose to run services
Adding Docker Compose
Connecting service with Docker Compose
Expanding Docker Compose
Connecting two stacks
Local development with Docker
About Kubernetes
Deploy app on Kubernetes
MySQL
WordPress
Access your service
Conclusion
7. Install Ubuntu Server on Metal, Cloud, and Network
Introduction
Structure
Objectives
Cattle vs. pets
Using SSH to connect to your server
Install Ubuntu Server with USB
Connect to your Ubuntu Server
Using Ubuntu in VM
Ubuntu Server in Google Cloud and Hetzner
Hetzner cloud and metal provider
Creating an Ubuntu Server in Google cloud
Large Ubuntu installations made easy
PXE booting
Provision VM with MAAS
Setting up our network
PXE installation on our server
Time to boot
More control
Conclusion
8. Keeping
Introduction
Structure
Objectives
Commands for monitoring a Linux server
Top
Netstat
lsof
du
Monitoring Ubuntu Server using Cockpit
Monitoring Ubuntu Server data at scale
Installing Grafana on Ubuntu
Visualizing your metrics with Grafana
Pushing data vs. pulling data
Installing Node Exporter to export server data
Combining tools to visualize the data
Grafana dashboards
Logs command
Collecting and storing logs together
Detecting hacking on your server
Fail2Ban
Setting up a HIDS
Sending OSSEC logs with Filebeat to Elasticsearch
Conclusion
9. Setup Advanced Network, Firewall, and VPN Servers
Introduction
Structure
Objectives
Using Ubuntu as the main firewall
Ubuntu virtual NIC and VLAN
VLAN
Setup network for routing
Controlling traffic with iptables
Keeping you safe
Network clients with DHCP and DNS
DNS settings
Securing communications
OpenVPN
To connect our client
On the Client
WireGuard VPN
VPN troubleshooting
Conclusion
10. Running Virtualization Server Environment
Introduction
Structure
Objectives
Installing KVM on your Ubuntu Server
Connecting from the desktop using KVM GUI
Installing the KVM web interface
Creating a VM server
Control your VM using the virsh command
Shared storage
Dedicated VM Linux version
Containers
Podman´s features
Installing Podman
Setting up Podman Repo
Podman error with CNI plugin
Setup and monitoring with Grafana and Prometheus
Reading logs with Loki
Journal logs
Container based monitoring clients
Conclusion
11. Setup Webserver, Deploy and Run Webapps
Introduction
Structure
Objectives
Web servers
Apache
Webb content
First config
NGINX
Databases
MariaDB SQL
MongoDB
Database tools
phpmyadmin
Deploying web apps
WordPress
Observium
Rocket.Chat
Webb performance
Backup
Database user
Conclusions
12. Kubernetes Run and Setup
Introduction
Structure
Objectives
Installing Kubernetes on Ubuntu
Installing Kubernetes requirements
Setting up our Kubernetes cluster
Deploy Kubernetes base service
Installing Helm
Storage
Monitoring
Ingress
Load balancer
Logs
Install WordPress in Kubernets
MySQL
WordPress
Access our WordPress
Setup MetalLB
Monitoring Kubernetes cluster with Grafana
Kubectl command to remember
Pods
Conclusions
13. Task Automations, CI/CD Pipeline, and Service Deployment
Introduction
Structure
Objectives
Basic Bash
Automate tasks with Ansible
Run host command from Docker
Build and push Docker images
Docker hub
Build local
Build and push
Deploy with terraform against Kubernetes
Init Terraform
Terraform commands
Terraform plan
Terraform apply
CI/CD
Conclusion
Index

iPhone

Post 04-Jul-2025 07:30

[Quote]

Linux Kernel Programming: Developing kernel architecture and device drivers for character, block, USB, and network interfaces / Программирование ядра Linux: Разработка архитектуры ядра и драйверов устройств для символьных, блочных, USB- и сетевых интерфейсов
Год издания: 2025
Автор: Gayet Thierry / Гайе Тьерри
Издательство: BPB Publications
ISBN: 978-93-65897-913
Язык: Английский
Формат: PDF (Not True)/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 550
Описание: Linus Torvald released the first version of a kernel in 1991, inspired at the time by both proprietary Unix and the Minix system. Thirty-four years later, this system has evolved with stability and robustness, making it almost indispensable for the DevSecOps community. The Linux kernel forms the robust core of countless systems, from embedded devices to vast data centers, driving unparalleled power and flexibility. This book is your essential guide to deeply understanding this fundamental component and mastering the art of developing high-performance kernel-level code.
This book meticulously details the kernel's history, architectural evolution, and custom build processes. You will master device driver fundamentals, distinguishing user from kernel space, and understanding the Linux Device Model (LDM). It explores Linux Security Modules, intricate kernel memory management, and various vital communication interfaces like I2C, SPI, SERIAL, PCI, and RTC. The guide concludes with task/process management, real-time concepts, and essential kernel debugging and profiling.
By the end of this book, you will be well-equipped to confidently develop, optimize, and debug kernel-level code. This empowers you to build custom Linux systems, craft efficient device drivers, and troubleshoot complex issues, ready to tackle advanced Linux system programming challenges. You will also be able to better understand this system and develop your own drivers or low-level developments for it.
What you will learn
● GNU/Linux kernel history, feature evolution, and licensing.
● Understand and develop your character and block drivers.
● Develop new file systems.
● Manage your systems by communicating with the USB protocol.
● Debug your drivers, your kernel, or any other module in the kernel space.
● Understand the layout of the Linux device model.
● Memory management in the kernel, as well as via DMA or NUMA.
● Implement Linux Security Modules (LSM) and Netfilter stack hooks.
Who this book is for
This book is for software engineers looking to understand the Linux kernel’s architecture, modify it, and develop custom modules. It also supports project managers, team leaders, and technical managers seeking a clear view of kernel development and capabilities. CISOs and IT managers will benefit from insights into kernel limitations, vulnerabilities, and security measures, such as Linux Security Modules (LSMs).
Линус Торвальд выпустил первую версию ядра в 1991 году, вдохновленный в то время как собственной Unix, так и системой Minix. Тридцать четыре года спустя эта система стала стабильной и надежной, что сделало ее практически незаменимой для сообщества разработчиков. Ядро Linux является надежным ядром бесчисленного множества систем, от встраиваемых устройств до огромных центров обработки данных, обеспечивая непревзойденную мощность и гибкость. Эта книга - ваше основное руководство по глубокому пониманию этого фундаментального компонента и овладению искусством разработки высокопроизводительного кода на уровне ядра.
В этой книге подробно описывается история ядра, эволюция архитектуры и процессы пользовательской сборки. Вы освоите основы работы с драйверами устройств, научитесь отличать пространство пользователя от пространства ядра и разберетесь в модели устройств Linux (LDM). В нем рассматриваются модули безопасности Linux, сложное управление памятью ядра и различные важные коммуникационные интерфейсы, такие как I2C, SPI, SERIAL, PCI и RTC. В конце руководства рассказывается об управлении задачами/процессами, концепциях реального времени и основных аспектах отладки и профилирования ядра.
К концу прочтения этой книги вы будете хорошо подготовлены для уверенной разработки, оптимизации и отладки кода на уровне ядра. Это позволит вам создавать пользовательские Linux-системы, создавать эффективные драйверы устройств и устранять сложные неполадки, а также быть готовым к решению сложных задач системного программирования Linux. Вы также сможете лучше понять эту систему и разработать для нее свои собственные драйверы или низкоуровневые разработки.
Что вы узнаете
● История ядра GNU/Linux, эволюция функций и лицензирование.
● Понять и усовершенствовать свои драйверы персонажей и блоков.
● Разрабатывать новые файловые системы.
● Управляйте своими системами, обмениваясь данными по протоколу USB.
● Отлаживайте свои драйверы, ядро или любой другой модуль в пространстве ядра.
● Разбирайтесь в компоновке модели устройства Linux.
● Управление памятью в ядре, а также с помощью DMA или NUMA.
● Внедрение модулей безопасности Linux (LSM) и подключений к стеку Netfilter.
Для кого предназначена эта книга
Эта книга предназначена для инженеров-программистов, которые хотят разобраться в архитектуре ядра Linux, модифицировать его и разрабатывать пользовательские модули. Она также предназначена для руководителей проектов, руководителей групп и технических менеджеров, которые хотят получить четкое представление о разработке ядра и его возможностях. Руководители CISO и ИТ-менеджеры получат полезную информацию об ограничениях ядра, уязвимостях и мерах безопасности, таких как модули безопасности Linux (LSM).

Примеры страниц (скриншоты)

Оглавление

1. History of the GNU/Linux Kernel
Introduction
Structure
Objectives
Inspirations
Linux kernel history
Evolutions of the several features by release/milestones
Early development (1991-1993)
Kernel version 1.0 (1994)
Kernel version 2.0 (1996)
Kernel version 2.2 (1999)
Kernel version 2.4 (2001)
Kernel version 2.6 (2003)
Kernel version 3.0 (2011)
Kernel version 4.0 (2015)
Kernel version 5.0 (September 2021)
Kernel version 6.0 (October 2022)
License of the GNU/Linux
Conclusion
2. Introduction to the Linux Kernel
Introduction
Structure
Objectives
Preparing the work environment
Introduction to the kernel
Downloading the GNU/Linux kernel sources to recompile them
Using distributions’ packages
Downloading official tarball from kernel.org
Cloning the official Git repo
Configuring a custom kernel and modules
Building your own kernel
Generating a DEB package for Ubuntu/Debian/Mint
Packaging for Fedora Core/Red Hat/SUSE
Installation
Execution and boot sequence
Coding styles
Conclusion
3. Introduction to Device Drivers
Introduction
Structure
Objectives
User space, kernel space, and syscalls interface
Driver’s compilation within or outside the kernel
Compilation within the GNU/Linux kernel
Compilation outside the GNU/Linux kernel
Compilation inside Buildroot project
Compilation inside Yocto project
Kernel facilities and helper functions
Error handling
Installing modules
Loading and unloading dynamic modules
Modules dependencies
Modules parameters
Modules licensing
Modules logging
Dynamic kernel module support
Installation
Configuration
Functioning
Adding DKMS support for a driver
Generation for the current kernel
Installing a module managed by DKMS
Uninstalling a driver managed by DKMS
Removing
Conclusion
4. Linux Device Model
Introduction
Structure
Objectives
Linux device model data structure
The bus model
Devices connected to the bus
The device models
The driver model
The classes
About procfs
About the DTB device tree
Purpose
Compilation command
Using U-Boot to Load DTB
Conclusion
5. Character Device Drivers
Introduction
Structure
Objectives
Types of drivers
The mknod command
Communication userspace/kernel
The udev daemon and the dynamic files
First readonly character’s drivers
Second readwrite character’s drivers
Third ioctl character’s drivers
Loading a driver at boot
Conclusion
6. Block Drivers and Virtual Filesystem
Introduction
Structure
Objectives
The GNU/Linux storage stack
The I/O layer
The I/O scheduler
Overview of Linux I/O schedulers
Considerations and choosing a scheduler
The block drivers
Block Layer components
Core operations
The virtual file system layer
Implement a new filesystem in user/kernel space
Communication
Conclusion
7. USB Drivers and libusb
Introduction
Structures
Objectives
USB architecture
USB features
USB standards and specifications
USB 2.0 standard
USB 3.2 standard
USB 3.2 generation 2
USB 3.2 generation 2x2
Thunderbolt 3 standard
USB 4 standard
Advantages and disadvantages of USB
Linux USB subsystem
Types of endpoint
USB transport (IN) algorithm:
USB transport (OUT) algorithm
Linux USB data struct
Enumeration
Class drivers
Gadget drivers
Write a USB driver in userspace using the libusb
Conclusion
8. Network Drivers
Introduction
Structure
Objectives
History of the network stack
Network architecture
Protocols layer
Network module
Network driver loading
The sk_buff
Performance and tuning
The DPDK project
Conclusion
9. Linux Security Modules
Introduction
Structure
Objectives
Mandatory access control
Anatomy of the usual Linux Security Modules
Architecture of a Linux Security Module
Develop a custom Linux Security Module
Conclusion
10. Kernel Memory and DMA
Introduction
Structure
Objectives
From physical to virtual memory
Non-uniform memory access
Userspace commands
Methods of memory allocation
Functions for memory-level operations
Accessing memory using a DMA
Conclusion
11. Navigating Linux Communication Interfaces
Introduction
Structure
Objectives
2-Wire interface architecture
Usage
Serial Peripheral Interface architecture
Usage
Serial architecture
Usage
Peripheral Component Interconnect architecture
Usage
Conclusion
12. Process Management
Introduction
Structure
Objectives
Tasks scheduling
GNU/Linux and real-time
Kthreads
Workqueue
Locks
Conclusion
13. Debugging GNU/Linux Kernel and Drivers
Introduction
Structure
Objectives
GNU/Linux kernel debugging options
Magic SysRq key
Debugging by printing
Dynamic debugging
kgdb/kdb kernel debugger
KDB
KGDB
Kernel probes
Kprobe
KRETPROBE
OOPS
Profiling
Conclusion
Index

iPhone

Post 28-Jun-2025 07:40

[Quote]

Конфигурирование программного обеспечения вычислительных систем: командная строка, менеджеры пакетов, системы управления версиями: Учебно-методическое пособие
Год издания: 2025
Автор: Советов П.Н., Горчаков А.В.
Издательство: Перо
ISBN: 978-5-00258-685-1
Язык: Русский
Формат: PDF
Качество: Отсканированные страницы + слой распознанного текста
Количество страниц: 143
Описание: В книге рассматриваются практические задачи, программное решение которых демонстрировалось на лекциях в РТУ МИРЭА в 2024-2025 учебном году, а именно: реализация модели конвейера командной оболочки Linux на языке Python; реализация конвейера на разных языках программирования для задач обработки данных; разработка эмулятора командной оболочки Linux с виртуальной файловой системой; разработка средства построения графов зависимостей пакетов Debian; разработка средства для автоматического разрешения зависимостей пакетов на основе
SMT-решателя; реализация алгоритма diff на основе модифицированного расстояния Левенштейна; реализация модели системы контроля версий git и разбор объектов git-репозитория.
В конце каждого раздела приводятся задачи для самостоятельного выполнения. В книге также приведены примеры двух типов задач для итоговой проверки знаний студентов. Книга содержит примеры кода на языках программирования Python, Bash и C.
Учебно-методическое пособие предназначено для преподавателей, для студентов бакалавриата Института информационных технологий, изучающих дисциплину «Конфигурационное управление», для студентов магистратуры Института информационных технологий, изучающих дисциплину «Документирование и управление версиями программного обеспечения», для аспирантов, обучающихся по направлениям подготовки технических наук, а также для практикующих программистов, стремящихся углубить свои знания командной оболочки Linux, узнать о том, как работают менеджеры пакетов и система контроля версий git изнутри.
Учебное пособие издается в авторской редакции.

Примеры страниц (скриншоты)

Оглавление

Введение ..........................................................................5
1. Командная строка .........................................................8
1.1. Модель конвейера ......................................................8
1.1.1. Простая модель конвейера .......................................9
1.1.2. Сопрограммная модель конвейера ............................13
1.1.3. Упражнения ............................................................16
1.2. Конвейер на разных языках программирования ............17
1.2.1. Поиск по подстроке на языке Python .........................18
1.2.2. Поиск по подстроке на языке C .................................21
1.2.3. Вывод статистики на языке Python ............................24
1.3. Однострочники для анализа данных ............................26
1.3.1. Разбор JSON для получения статистики из GitHub ......26
1.3.2. Разбор XLSX для поиска бассейнов ...........................34
1.3.3. Разбор HTML для получения индекса Хирша ............. 40
1.3.4. Упражнения ............................................................49
1.4. Эмулятор командной оболочки Linux ............................49
1.4.1. Простые команды .....................................................50
1.4.2. Виртуальная файловая система .................................51
1.4.3. Упражнения .............................................................59
2. Менеджеры пакетов .......................................................61
2.1. Граф зависимостей пакетов .........................................61
2.1.1. Загрузка списка пакетов Debian ................................61
2.1.2. Разбор формата Packages.gz .....................................66
2.1.3. Визуализация графа в редакторе yEd ........................70
2.1.4. Упражнения .............................................................77
2.2. Задача разрешения зависимостей пакетов ....................78
2.2.1. SAT- и SMT-решатели ................................................78
2.2.2. Пример описания задачи для SMT-решателя ...............79
2.2.3. Разрешение зависимостей с помощью SMT-решателя ...81
2.2.4. Упражнения .............................................................86
3. Системы управления версиями ........................................88
3.1. Алгоритм diff ...............................................................88
3.1.1. Команда git diff .........................................................88
3.1.2. Расстояние Левенштейна ...........................................91
3.1.3. diff на основе расстояния Левенштейна ......................94
3.1.4. Упражнения .............................................................97
3.2. Модель git ..................................................................99
3.2.1. Наивное управление версиями ..................................99
3.2.2. Управление версиями в git .......................................101
3.2.3. Модель git на Python ................................................103
3.2.4. Упражнения ............................................................109
3.3. Разбор объектов git-репозитория .................................110
3.3.1. Служебная папка .git ...............................................110
3.3.2. Утилита cat-file ........................................................112
3.3.3. Реализация cat-file на Python ....................................114
3.3.4. Упражнения ............................................................119
4. Задачи на зачёт ............................................................121
4.1. Работа с git из командной строки .................................121
4.1.1. Разбор задачи .........................................................121
4.1.2. Упражнения ............................................................129
4.2. Разрешение зависимостей пакета ................................133
4.2.1. Разбор задачи .........................................................133
4.2.2. Упражнения ............................................................136
Список литературы ...........................................................138

iPhone

Post 02-Jun-2025 09:50

[Quote]

Mastering Ubuntu Server: Explore the versatile, powerful Linux Server distribution Ubuntu 22.04 with this comprehensive guide, 4th Edition / Осваиваем Ubuntu Server: Познакомьтесь с универсальным и мощным серверным дистрибутивом Linux Ubuntu 22.04 с помощью этого подробного руководства, 4-е издание
Год издания: 2022
Автор: LaCroix Jay / Лакруа Джей
Издательство: Packt Publishing
ISBN: 978-1-80323-424-3
Серия: Expert Insight
Язык: Английский
Формат: PDF/EPUB/MOBI
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 583
Описание: Your one-stop resource to learn, configure and use Ubuntu 22.04 for your day-to-day operations and deployments.
Key Features
Get well-versed with newly added features in Ubuntu 22.04
Master the art of installing, managing, and troubleshooting Ubuntu Server
Leverage the improved performance and security-related aspects of Ubuntu Server 22.04
Book Description
Ubuntu Server is taking the server world by storm - and for a good reason! The server-focused spin of Ubuntu is a stable, flexible, and powerful enterprise-class distribution of Linux with a focus on running servers both small and large.
Mastering Ubuntu Server is a book that will teach you everything you need to know in order to manage real Ubuntu-based servers in actual production deployments. This book will take you from initial installation to deploying production-ready solutions to empower your small office network, or even a full data center. You'll see examples of running an Ubuntu Server in the cloud, be walked through set up popular applications (such as Nextcloud), host your own websites, and deploy network resources such as DHCP, DNS, and others. You’ll also see how to containerize applications via LXD to maximize efficiency and learn how to build Kubernetes clusters. This new fourth edition updates the popular book to cover Ubuntu 22.04 LTS, which takes advantage of the latest in Linux-based technologies.
By the end of this Ubuntu book, you will have gained all the knowledge you need in order to work on real-life Ubuntu Server deployments and become an expert Ubuntu Server administrator who is well versed in its feature set.
What you will learn
Install Ubuntu Server on physical servers and on the Raspberry Pi
Deploy Ubuntu Server in the cloud and host websites on your own server
Deploy your applications to their own containers and scale your infrastructure
Set up popular applications such as Nextcloud
Automate deployments and configuration with Ansible to save time
Containerize applications via LXD to maximize efficiency
Discover best practices and troubleshooting techniques
Who this book is for
This book is for System Administrators, Site Reliability Engineers, DevOps professionals, enthusiasts, as well as for individuals looking to make a career change and learn the skills they'll need to work with Ubuntu servers. Prior knowledge of Ubuntu is not required but a basic understanding of basic computing concepts is assumed. Some IT administration, Linux, and shell scripting experience is preferred, although the first several chapters will bring newcomers up to speed as well.
Ваш универсальный ресурс для изучения, настройки и использования Ubuntu 22.04 в повседневной работе и развертывании.
Ключевые функции
Познакомьтесь с новыми функциями Ubuntu 22.04
Освоите технику установки, управления и устранения неполадок на сервере Ubuntu Server
Используйте улучшенные возможности Ubuntu Server 22.04, связанные с производительностью и безопасностью
Описание книги
Ubuntu Server стремительно завоевывает мир серверов - и не без оснований! Серверная составляющая Ubuntu - это стабильный, гибкий и мощный дистрибутив Linux корпоративного класса, ориентированный на работу как с маленькими, так и с большими серверами.
"Освоение Ubuntu Server" - это книга, которая научит вас всему, что вам нужно знать для управления реальными серверами на базе Ubuntu в реальных производственных условиях. В этой книге вы пройдете путь от начальной установки до развертывания готовых к работе решений для расширения возможностей вашей небольшой офисной сети или даже полноценного центра обработки данных. Вы увидите примеры запуска сервера Ubuntu в облаке, узнаете о настройке популярных приложений (таких как Nextcloud), размещении собственных веб-сайтов и развертывании сетевых ресурсов, таких как DHCP, DNS и другие. Вы также узнаете, как контейнеризировать приложения с помощью LXD для достижения максимальной эффективности, и научитесь создавать кластеры Kubernetes. В этом новом, четвертом издании популярной книги рассказывается об Ubuntu 22.04 LTS, в которой используются новейшие технологии на базе Linux.
К концу прочтения этой книги по Ubuntu вы получите все знания, необходимые для работы с реальными установками Ubuntu Server, и станете опытным администратором Ubuntu Server, который хорошо разбирается в наборе функций Ubuntu Server.
Чему вы научитесь
Установите Ubuntu Server на физические серверы и на Raspberry Pi
Развертывайте сервер Ubuntu в облаке и размещайте веб-сайты на своем собственном сервере
Размещайте свои приложения в собственных контейнерах и масштабируйте инфраструктуру
Настраивайте популярные приложения, такие как Nextcloud
Автоматизируйте развертывание и настройку с помощью Ansible для экономии времени
Контейнеризируйте приложения с помощью LXD для максимальной эффективности
Ознакомьтесь с рекомендациями и методами устранения неполадок
Для кого предназначена эта книга
Эта книга предназначена для системных администраторов, инженеров по обеспечению надежности сайтов, специалистов DevOps, энтузиастов, а также для тех, кто хочет сменить профессию и приобрести навыки, необходимые для работы с серверами Ubuntu. Предварительное знание Ubuntu не требуется, но предполагается базовое понимание основных компьютерных концепций. Желательно иметь некоторый опыт ИТ-администрирования, работы с Linux и shell-скриптами, хотя первые несколько глав также введут в курс дела новичков.

Примеры страниц (скриншоты)

Оглавление

Preface xi
Chapter 1: Deploying Ubuntu Server 1
Technical requirements ............................................................................................................ 2
Determining your server’s role .................................................................................................. 2
Choosing a device for our server ............................................................................................... 3
Physical server • 3
Physical desktop • 4
Laptop • 4
Virtual machine • 5
Virtual private server • 5
Raspberry Pi • 5
Obtaining installation media .................................................................................................... 6
Creating a bootable flash drive .................................................................................................. 8
Planning the partitioning layout • 11
Installing Ubuntu Server ........................................................................................................ 12
Installing Ubuntu on a Raspberry Pi ....................................................................................... 25
Summary ............................................................................................................................... 28
Relevant tutorials ................................................................................................................... 29
Chapter 2: Managing Users and Permissions 31
Understanding the purpose of users and groups ...................................................................... 32
Understanding when to use root ............................................................................................. 32
Using sudo to run privileged commands • 33
Creating and removing users .................................................................................................. 34
Using useradd • 34
Using adduser • 36
Removing users • 37
Understanding the /etc/passwd and /etc/shadow files .............................................................. 39
Understanding the /etc/passwd file • 39
Understanding the /etc/shadow file • 41
Distributing default configuration files with /etc/skel ............................................................... 43
Switching users ...................................................................................................................... 45
Managing groups ................................................................................................................... 46
Managing passwords and password policies ............................................................................ 49
Locking and unlocking user accounts • 49
Setting password expiration information • 50
Setting a password policy • 51
Configuring administrator access with sudo ............................................................................ 53
Setting permissions on files and directories ............................................................................ 56
Viewing permissions • 56
Changing permissions • 59
Changing the ownership of objects • 60
Summary ............................................................................................................................... 61
Relevant videos ...................................................................................................................... 61
Further reading ...................................................................................................................... 62
Chapter 3: Managing Software Packages 63
Understanding Linux package management ............................................................................ 63
Understanding the differences between Debian and Snap packages ......................................... 65
Debian packages • 65
Snap packages • 66
Installing and removing software ............................................................................................ 68
Managing Debian packages with apt • 68
Managing Snap packages with snap • 71
Searching for packages ........................................................................................................... 73
Managing package repositories ............................................................................................... 75
Adding additional repositories • 75
Adding Personal Package Archives • 77
Backing up and restoring Debian packages .............................................................................. 78
Cleaning up orphaned apt packages ........................................................................................ 79
Taking advantage of hardware enablement updates ................................................................. 81
Summary ............................................................................................................................... 83
Relevant video ........................................................................................................................ 83
Further reading ...................................................................................................................... 83
Chapter 4: Navigating and Essential Commands 85
Learning essential Linux commands ....................................................................................... 85
Understanding the Linux filesystem layout .............................................................................. 89
Viewing the contents of files ................................................................................................... 91
Viewing application log files ................................................................................................... 94
Summary ............................................................................................................................... 95
Relevant video ........................................................................................................................ 95
Further reading ...................................................................................................................... 95
Chapter 5: Managing Files and Directories 97
Copying, moving, and renaming files and directories .............................................................. 97
Editing files with the Nano and Vim text editors ....................................................................... 99
Editing with Nano • 100
Editing with Vim • 102
Input and output streams ..................................................................................................... 108
Using symbolic and hard links .............................................................................................. 111
Summary ............................................................................................................................. 113
Relevant videos .................................................................................................................... 113
Chapter 6: Boosting Your Command-line Efficiency 115
Understanding the Linux shell .............................................................................................. 115
Understanding Bash history ................................................................................................. 117
Learning some useful command-line tricks ........................................................................... 119
Understanding variables ....................................................................................................... 122
Writing simple scripts .......................................................................................................... 124
Putting it all together – Writing an rsync backup script .......................................................... 129
Summary ............................................................................................................................. 131
Relevant videos .................................................................................................................... 131
Further reading .................................................................................................................... 131
Chapter 7: Controlling and Managing Processes 133
Managing jobs ...................................................................................................................... 133
Understanding the ps command ........................................................................................... 136
Viewing running processes with ps • 136
Configuring arguments to ps • 137
Changing the priority of processes ........................................................................................ 141
Dealing with misbehaving processes ..................................................................................... 145
Managing system processes .................................................................................................. 148
Scheduling tasks with cron ................................................................................................... 151
Summary ............................................................................................................................. 153
Relevant videos .................................................................................................................... 154
Further reading .................................................................................................................... 154
Chapter 8: Monitoring System Resources 155
Viewing disk usage ............................................................................................................... 155
Using df • 156
Diving deeper into disk usage • 158
Monitoring memory usage .................................................................................................... 161
Understanding server memory • 161
Managing swap • 163
Understanding load average ................................................................................................. 166
Viewing resource usage with htop ......................................................................................... 168
Summary ............................................................................................................................. 172
Relevant videos .................................................................................................................... 172
Further reading .................................................................................................................... 172
Chapter 9: Managing Storage Volumes 173
Adding additional storage volumes ........................................................................................ 173
Formatting and partitioning storage devices .......................................................................... 176
Creating a partition • 177
Formatting partitions • 180
Mounting and unmounting volumes ...................................................................................... 182
Understanding the /etc/fstab file ........................................................................................... 184
Analyzing the contents of /etc/fstab • 184
Adding to the /etc/fstab file • 186
Backing up and restoring volumes ........................................................................................ 188
Utilizing LVM ....................................................................................................................... 190
Getting started with LVM • 191
Formatting logical volumes • 195
Removing volumes with LVM • 197
Understanding LVM snapshots • 198
Summary ............................................................................................................................. 199
Relevant videos .................................................................................................................... 200
Further reading .................................................................................................................... 200
Chapter 10: Connecting to Networks 201
Setting the hostname ............................................................................................................ 201
Managing network interfaces ............................................................................................... 204
Assigning static IP addresses ................................................................................................ 209
Understanding Linux name resolution .................................................................................. 213
Getting started with OpenSSH ............................................................................................... 215
Installing OpenSSH • 216
Issuing commands with OpenSSH • 217
Getting started with SSH key management ............................................................................ 219
Generating public and private keys • 220
Copying your public key to a remote server • 221
Utilizing an SSH agent • 222
Changing the passphrase of an OpenSSH key • 223
Simplifying SSH connections with a config file ...................................................................... 223
Summary ............................................................................................................................. 225
Relevant videos .................................................................................................................... 225
Further reading .................................................................................................................... 225
Chapter 11: Setting Up Network Services 227
Planning your IP address scheme .......................................................................................... 227
Setting up a DHCP server for serving IP addresses ................................................................. 231
Adding a DNS server ............................................................................................................. 236
Setting up external DNS with bind • 237
Setting up internal DNS and adding hosts • 239
Setting up an internet gateway .............................................................................................. 243
Summary ............................................................................................................................. 245
Further reading .................................................................................................................... 245
Chapter 12: Sharing and Transferring Files 247
File server considerations ..................................................................................................... 247
Sharing files with Windows users via Samba .......................................................................... 249
Setting up NFS shares ........................................................................................................... 254
Transferring files with rsync ................................................................................................. 258
Transferring files with SCP ................................................................................................... 261
Summary ............................................................................................................................. 263
Relevant videos .................................................................................................................... 263
Further reading .................................................................................................................... 263
Chapter 13: Managing Databases 265
Preparations for setting up a database server ........................................................................ 265
Installing MariaDB ............................................................................................................... 267
Understanding the MariaDB configuration files ..................................................................... 269
Managing MariaDB databases ............................................................................................... 272
Setting up a secondary database server ................................................................................. 278
Summary ............................................................................................................................. 283
Further reading .................................................................................................................... 283
Chapter 14: Serving Web Content 285
Installing and configuring Apache ........................................................................................ 285
Installing additional Apache modules ................................................................................... 291
Securing Apache with TLS .................................................................................................... 293
Installing and configuring NGINX ......................................................................................... 299
Setting up and configuring Nextcloud ................................................................................... 303
Summary ............................................................................................................................. 310
Relevant videos .................................................................................................................... 310
Further reading .................................................................................................................... 310
Chapter 15: Automating Server Configuration with Ansible 313
Understanding the need for configuration management ........................................................ 313
Why Ansible? ....................................................................................................................... 315
Creating a Git repository ....................................................................................................... 316
Getting started with Ansible ................................................................................................. 319
Making your servers do your bidding .................................................................................... 321
Setting up an inventory file and configuring Ansible settings • 321
Configuring client servers • 323
Putting it all together – automating web server deployment ................................................... 327
Using Ansible’s pull method .................................................................................................. 330
Summary ............................................................................................................................. 334
Relevant videos .................................................................................................................... 334
Further reading .................................................................................................................... 334
Chapter 16: Virtualization 337
Prerequisites and considerations .......................................................................................... 337
Setting up a virtual machine server ....................................................................................... 339
Creating virtual machines .................................................................................................... 345
Bridging the virtual machine network ................................................................................... 351
Simplifying virtual machine creation with cloning ................................................................ 354
Managing virtual machines via the command line ................................................................. 356
Summary ............................................................................................................................. 357
Relevant video ...................................................................................................................... 357
Further reading .................................................................................................................... 357
Chapter 17: Running Containers 359
What is containerization? ..................................................................................................... 359
Understanding the differences between Docker and LXD ....................................................... 361
Installing Docker .................................................................................................................. 362
Managing Docker containers ................................................................................................ 363
Automating Docker image creation with Dockerfiles .............................................................. 371
Managing LXD containers ..................................................................................................... 373
Summary ............................................................................................................................. 377
Relevant videos .................................................................................................................... 377
Further reading .................................................................................................................... 377
Chapter 18: Container Orchestration 379
Container orchestration ....................................................................................................... 380
Preparing a lab environment for Kubernetes testing .............................................................. 381
Utilizing MicroK8s ................................................................................................................ 383
Installing MicroK8s on Linux • 383
Installing MicroK8s on macOS • 384
Installing MicroK8s on Windows • 386
Interacting with MicroK8s • 390
Setting up a Kubernetes cluster ............................................................................................. 392
Preliminary setup • 393
Installing Kubernetes • 397
Deploying containers via Kubernetes .................................................................................... 402
Summary ............................................................................................................................. 408
Relevant videos .................................................................................................................... 408
Further reading .................................................................................................................... 408
Chapter 19: Deploying Ubuntu in the Cloud 409
Understanding the difference between on-premises and cloud infrastructure ........................ 410
Important considerations when considering cloud computing as a potential solution ............. 411
Becoming familiar with some basic AWS concepts ................................................................. 413
Creating an AWS account ...................................................................................................... 416
Signing up for AWS • 417
Implementing basic user security • 421
Choosing a region ................................................................................................................ 427
Deploying Ubuntu as an AWS EC2 instance ............................................................................ 428
Setting up an IAM role for Session Manager • 428
Creating an Ubuntu Server instance in AWS • 432
Creating and deploying Ubuntu AMIs .................................................................................... 444
Automatically scaling Ubuntu EC2 deployments with Auto Scaling ......................................... 446
Creating a launch template • 447
Creating an Auto Scaling group • 448
Keeping costs down: understanding how to save money and make cost-effective decisions ..... 455
Viewing billing information • 455
Adding a billing alert • 456
Removing unneeded backups • 456
Running EC2 instances only when they’re needed • 456
Stopping or terminating unneeded EC2 instances • 457
Taking the cloud further: additional resources to grow your knowledge ................................. 457
Online training and labs • 457
Certification • 458
Keep experimenting and learning • 458
AWS documentation • 458
Summary ............................................................................................................................. 458
Further reading .................................................................................................................... 459
Chapter 20: Automating Cloud Deployments with Terraform 461
Why it’s important to automate your infrastructure ............................................................... 462
Introduction to Terraform and how it can fit within your workflow ........................................ 463
Installing Terraform ............................................................................................................. 465
Automating an EC2 instance deployment ............................................................................... 470
Managing security groups with Terraform ............................................................................. 476
Using Terraform to destroy unused resources ........................................................................ 479
Combining Ansible with Terraform for a full deployment solution ......................................... 481
Summary ............................................................................................................................. 484
Chapter 21: Securing Your Server 485
Lowering your attack surface ................................................................................................ 485
Understanding and responding to CVEs ................................................................................ 490
Installing security updates ................................................................................................... 490
Automatically installing patches with the Canonical Livepatch service ................................... 494
Securing OpenSSH ............................................................................................................... 495
Installing and configuring Fail2ban ....................................................................................... 498
MariaDB best practices for secure database servers ............................................................... 502
Setting up a firewall .............................................................................................................. 505
Encrypting and decrypting disks with LUKS .......................................................................... 507
Locking down sudo .............................................................................................................. 509
Summary ............................................................................................................................. 510
Further reading .................................................................................................................... 510
Chapter 22: Troubleshooting Ubuntu Servers 511
Evaluating the scope ............................................................................................................. 511
Conducting a root cause analysis ........................................................................................... 513
Viewing system logs ............................................................................................................. 515
Tracing network issues ......................................................................................................... 520
Troubleshooting resource issues ........................................................................................... 524
Diagnosing defective RAM .................................................................................................... 527
Summary ............................................................................................................................. 530
Further reading .................................................................................................................... 530
Chapter 23: Preventing Disasters 531
Preventing disasters ............................................................................................................. 531
Utilizing Git for configuration management ........................................................................... 533
Implementing a backup plan ................................................................................................ 538
Utilizing bootable recovery media ......................................................................................... 540
Summary ............................................................................................................................. 541
Further reading .................................................................................................................... 542
Other Books You May Enjoy 545
Index 549

iPhone

Post 12-May-2025 21:25

[Quote]

systemd for Linux SysAdmins: All You Need to Know About the systemd Suite for Linux Users / systemd для системных администраторов Linux: Все, что Вам нужно знать о systemd Suite для пользователей Linux
Год издания: 2025
Автор: Both David / Бот Дэвид
Издательство: Apress Media LLC
ISBN: 979-8-8688-1328-3
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Количество страниц: 436
Описание: Explore the world of systemd—yes, all lower-case, even at the beginning of a sentence— which is the modern replacement for init and SystemV init scripts. It is also much more. It can evoke a wide range of reactions from SysAdmins and others responsible for keeping Linux systems up and running. The fact that systemd is taking over so many tasks in modern Linux systems has engendered push-back and discord among certain groups of developers and SysAdmins.
You will learn systemd’s strengths and weaknesses, and why there’s no truth in the myth that systemd is a monolithic monstrosity. Learn how systemd is the mother of all processes, and is responsible for bringing the Linux host up to a state in which productive work can be done. You’ll learn about the functions assumed by systemd, which is far more extensive than the old init program, and how it manages many aspects of a running Linux host, including:
Mounting filesystems
Managing hardware
Creating new systemd services and understanding existing ones
Creating timers that trigger system maintenance events
Starting and managing the system services that are required to have a productive Linux host
Using the systemd journal to access critical performance and problem solving information.
Why the systemd plan to take over the world is actually a good thing
systemd for Linux SysAdmins is your one-stop shop, giving you everythiing you need to get started and utilize this software suite for Linux operatiing systems.
You Will Learn:
How to use systemd, what it is, and what it does
To manage each of the major functional components of systemd and learn from real-world examples to illustrate their typical usage by SysAdmins
Pragmatic work-arounds, hints and tricks to minimize issues to ensure you have greater systemd functionality
This Book is for:
Linux system administrators (SysAdmins) who need to or are already in the process of switching from SystemV to systemd. It’s also intended for SysAdmins with more systemd experience but who want to improve their knowledge and skills with systemd.
Познакомьтесь с миром systemd — да, все строчные буквы, даже в начале предложения, — который является современной заменой сценариям инициализации init и SystemV. Это также гораздо больше. Это может вызвать широкий спектр реакций со стороны сисадминов и других лиц, ответственных за поддержание работоспособности Linux-систем. Тот факт, что systemd берет на себя так много задач в современных системах Linux, вызвал противодействие и разногласия среди определенных групп разработчиков и сисадминов.
Вы узнаете о сильных и слабых сторонах systemd и о том, почему миф о том, что systemd - это монолитное чудовище, не соответствует действительности. Узнайте, что systemd является прародителем всех процессов и отвечает за приведение Linux-сервера в состояние, при котором возможна продуктивная работа. Вы узнаете о функциях systemd, которые намного шире, чем у старой программы init, и о том, как она управляет многими аспектами работы Linux-сервера, включая:
Монтирование файловых систем
Управление оборудованием
Создание новых служб systemd и понимание существующих.
Создание таймеров, запускающих события обслуживания системы
Запуск системных служб и управление ими, необходимые для обеспечения работоспособности Linux-узла
Использование журнала systemd для доступа к важной информации о производительности и решении проблем.
Почему план systemd по завоеванию мира на самом деле хорош
systemd для системных администраторов Linux - это ваш универсальный сервис, предоставляющий вам все необходимое для начала работы и использования этого пакета программного обеспечения для операционных систем Linux.
Вы узнаете:
Как использовать systemd, что это такое и что он делает
Чтобы управлять каждым из основных функциональных компонентов systemd и учиться на реальных примерах, иллюстрирующих их типичное использование системными администраторами
Практические решения, советы и хитрости, позволяющие минимизировать проблемы и обеспечить более высокую функциональность systemd
Эта книга предназначена для:
Системные администраторы Linux (сисадмины), которым необходимо или которые уже находятся в процессе перехода с SystemV на systemd. Это приложение также предназначено для системных администраторов с большим опытом работы с systemd, но которые хотят улучшить свои знания и навыки с помощью systemd.

Примеры страниц (скриншоты)

Оглавление

About the Author ...................................................................................................xv
About the Technical Reviewer ..................................................................................xvii
Acknowledgments ..................................................................................................xix
Introduction ..........................................................................................................xxi
Chapter 1: Learning to Love systemd ........................................................................1
Objectives .............................................................................................................1
Overview ...............................................................................................................2
Linux Boot .............................................................................................................2
systemd Controversy ..............................................................................................3
Why I Prefer SystemV ............................................................................................4
Why I Prefer systemd ............................................................................................5
The Real Issue .....................................................................................................5
Replacing SystemV ..............................................................................................6
systemd Tasks ....................................................................................................7
More Data for the Admin .....................................................................................11
systemd Standardizes Configuration ......................................................................13
Architecture ........................................................................................................13
systemd As PID 1 ................................................................................................14
Preparation .........................................................................................................20
Summary ............................................................................................................21
Exercises .............................................................................................................22
Chapter 2: Linux Boot and Startup ..........................................................................23
Objectives ...........................................................................................................23
Overview .............................................................................................................24
Hardware Boot ....................................................................................................25
The Boot Sector .............................................................................................26
Linux Boot ...........................................................................................................28
GRUB .............................................................................................................28
The GUID Partition Table ................................................................................29
The Kernel .....................................................................................................33
Linux Startup .......................................................................................................34
systemd .........................................................................................................36
Graphical Login ...................................................................................................46
Display Manager ............................................................................................47
Window Manager ...........................................................................................48
How Do I Deal with All These Choices? .........................................................50
Console Login ......................................................................................................57
Virtual Consoles .............................................................................................59
How Logins Work ................................................................................................61
CLI Login Screen ............................................................................................63
GUI Login Screen ...........................................................................................64
Summary ............................................................................................................65
Exercises .............................................................................................................66
Chapter 3: Understanding Linux Startup with systemd ...............................................67
Objectives ...........................................................................................................67
Overview .............................................................................................................68
Exploring Linux Startup with systemd ................................................................68
Targets ................................................................................................................73
Exploring the Current Target ..........................................................................76
Switching to a Different Target ......................................................................78
Changing the Default Target ..........................................................................79
Summary ............................................................................................................85
Exercises .............................................................................................................85
Chapter 4: How to Manage Startup Using systemd ....................................................87
Objectives ...........................................................................................................87
Overview .............................................................................................................88
Preparation .........................................................................................................88
The Program .......................................................................................................89
The Service Unit ..................................................................................................90
Creating the Service Unit ...............................................................................93
Start the Service ............................................................................................96
Reboot—Finally ...........................................................................................104
Changing the Sequence ..............................................................................106
Ensure a Service Starts After the Network Is Running .....................................111
Summary ..........................................................................................................114
Exercises ...........................................................................................................115
Chapter 5: Manage systemd Units with systemctl ....................................................117
Objectives .........................................................................................................117
Overview ...........................................................................................................117
Preparation .......................................................................................................118
systemd Suite ...................................................................................................118
Practical Structure .......................................................................................119
systemctl .....................................................................................................121
Service Units ...............................................................................................128
Mounts the Old Way .....................................................................................133
Creating a Mount Unit ..................................................................................139
Summary ..........................................................................................................142
Exercises ...........................................................................................................142
Chapter 6: Control Your Computer Time and Date with systemd ................................145
Objectives .........................................................................................................145
Overview ...........................................................................................................146
Why Time Is Important to Computers ................................................................147
Multiple Times ...................................................................................................147
NTP ...................................................................................................................148
The NTP Server Hierarchy ...........................................................................149
NTP Implementation Options .......................................................................149
NTP Client Configuration .............................................................................151
NTP Server Pools .........................................................................................153
Chrony ...............................................................................................................154
Using chronyc from the Command Line ......................................................155
Chronyc As an Interactive Tool .....................................................................162
systemd-timesync ............................................................................................164
Configure systemd-timesyncd .....................................................................169
Start timesyncd ...........................................................................................171
Set the Hardware Clock ...............................................................................172
Do You Really Need RTC? ............................................................................175
Summary ..........................................................................................................176
Exercises ...........................................................................................................177
Chapter 7: Analyzing systemd Calendar and Time Spans .........................................179
Objectives .........................................................................................................179
Overview ...........................................................................................................180
Definitions .........................................................................................................180
Absolute Timestamp ....................................................................................180
Accuracy ......................................................................................................181
Calendar Event ............................................................................................181
Time Span ....................................................................................................182
Calendar Event Expressions ........................................................................182
Exploring systemd Time Syntax ...................................................................183
Summary ..........................................................................................................193
Exercises ...........................................................................................................193
Chapter 8: Using systemd Timers .........................................................................195
Objectives .........................................................................................................195
Overview ...........................................................................................................195
System Maintenance Timers .............................................................................196
Creating a Timer ................................................................................................202
Timer Accuracy .................................................................................................207
Timer Types .......................................................................................................210
OnCalendar Event Expressions .........................................................................212
Superfluous Timers ...........................................................................................214
Summary ..........................................................................................................215
Exercises ...........................................................................................................216
Chapter 9: Using systemd Journals .......................................................................219
Objectives .........................................................................................................219
Overview ...........................................................................................................219
The Journal .......................................................................................................221
The systemd Journal Service ............................................................................224
Configuration ....................................................................................................225
About that Binary Data Format… .....................................................................226
The journalctl Command ...................................................................................229
Commonly Used Options .............................................................................238
Other Interesting Options ............................................................................240
Journal Files ................................................................................................242
Adding Your Own Journal Entries ................................................................243
Journal Storage Usage ......................................................................................244
Journal File Rotation ...................................................................................246
Summary ..........................................................................................................253
Exercises ...........................................................................................................253
Chapter 10: Managing the Firewall with firewalld ....................................................255
Objectives .........................................................................................................255
Introduction .......................................................................................................256
Ports ............................................................................................................256
Firewall Rules ...................................................................................................259
Firewall Tools ....................................................................................................261
Block (Almost) Everything .................................................................................262
Crunchy on the Outside .....................................................................................263
firewalld ............................................................................................................263
firewalld Zones ............................................................................................264
Using --reload ..............................................................................................288
Zone Files ....................................................................................................289
Panic Mode ..................................................................................................293
firewall-config GUI .......................................................................................295
nftables .............................................................................................................295
Outbound Blocking ............................................................................................297
Fail2Ban ............................................................................................................298
Cleanup .............................................................................................................302
Summary ..........................................................................................................302
Exercises ...........................................................................................................303
Chapter 11: Resource Management with cgroups ....................................................305
Objectives .........................................................................................................305
Introduction .......................................................................................................305
Using cgroups for Process Management ..........................................................306
Exploring the Cgroup Hierarchy ........................................................................311
Managing cgroups with systemd ......................................................................316
Summary ..........................................................................................................317
Exercises ...........................................................................................................318
Chapter 12: Using systemd-resolved Name Service .................................................319
Objectives .........................................................................................................319
Introduction .......................................................................................................320
How a Name Search Works ...............................................................................320
resolv.conf .........................................................................................................322
Historical Usage ..........................................................................................323
Current Usage ..............................................................................................324
Name Service Strategies ..................................................................................326
The /etc/hosts File .......................................................................................326
mDNS ..........................................................................................................329
nss-DNS .......................................................................................................337
systemd-resolved.service ...........................................................................343
Fedora Name Resolution Fails When Using systemd-resolved .........................345
Determining the Problem ............................................................................346
Resolving the Problem .................................................................................349
Concluding Thoughts About nsswitch ..........................................................355
Summary ..........................................................................................................356
Exercises ...........................................................................................................356
Chapter 13: Replacing rc.local in systemd ..............................................................357
Objectives .........................................................................................................357
Introduction .......................................................................................................357
Boot vs. Startup ...........................................................................................358
Local Startup .....................................................................................................359
Create the Executable File ...........................................................................359
Create the systemd Service ........................................................................361
Enable the New Service ..............................................................................363
Revise mystartup.sh ....................................................................................364
Final Test .....................................................................................................365
A Temporary Option ...........................................................................................367
Cleanup .............................................................................................................368
Summary ..........................................................................................................368
Exercises ...........................................................................................................368
Chapter 14: Getting More Out of the Journal ..........................................................371
Objectives .........................................................................................................371
Introduction .......................................................................................................371
Options to Narrow Search Results ....................................................................372
A Troubleshooting Example .........................................................................377
Determining the Problem ............................................................................377
First Solution ...............................................................................................380
The Better Solution ......................................................................................383
Summary ..........................................................................................................385
Exercises ...........................................................................................................386
Chapter 15: Analyzing systemd Startup and Configuration .......................................387
Objectives .........................................................................................................387
Overview ...........................................................................................................388
Linux Startup .....................................................................................................388
Basic Analysis ..............................................................................................389
The Blame Game .........................................................................................390
Critical Chain ...............................................................................................391
System State ...............................................................................................396
Analytic Graphs ...........................................................................................399
Conditionals .................................................................................................401
Listing Configuration Files ................................................................................402
Unit File Verification ..........................................................................................405
Security .............................................................................................................405
Summary ..........................................................................................................407
Exercises ...........................................................................................................408
Chapter 16: Why I Support the systemd Plan to Take Over the World ........................409
Introduction .......................................................................................................409
More Data for the Admin ...................................................................................411
systemd Standardizes Configuration ................................................................416
Sometimes, the Pain .........................................................................................416
Five Reasons SysAdmins Love systemd ...........................................................417
Boot Management .......................................................................................418
Log Reviews ................................................................................................419
Service Management ..................................................................................420
Timers .....................................................................................................422
Targets ....................................................................................................423
Taking Control with systemd .......................................................................423
Final Exercise ...........................................................................................424
Appendix A: systemd Resources ...................................................................425
Index ........................................................................................................429

iPhone

Post 06-May-2025 08:40

[Quote]

Linux Basics for Hackers, 2nd Edition / Основы Linux для хакеров, 2-е издание
Год издания: 2025
Автор: OccupyTheWeb
Издательство: No Starch Press, Inc.
ISBN: 978-1-7185-0355-7
Язык: Английский
Формат: PDF (Not True)/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 341
Описание: A revised introduction to the Linux operating system for beginning hackers and penetration testers.
If you’re just getting started along the exciting path of hacking, cybersecurity, and pentesting, Linux Basics for Hackers is an excellent introduction. With Kali Linux, an operating system designed for digital forensics and penetration testing, you’ll learn the basics of using Linux and acquire the tools and techniques you’ll need to take control of a Linux environment.
First, you’ll learn how to install Kali on a virtual machine and get an introduction to basic Linux concepts. Next, you’ll tackle broader Linux topics like manipulating text, controlling file and directory permissions, and managing user environment variables. You’ll then focus on foundational hacking concepts like security and anonymity and learn scripting skills with bash and Python.
Practical tutorials and exercises throughout will reinforce and test your skills as you learn how to:
Cover your tracks by changing your network information and manipulating the journalctl logging utility
Write a tool to scan for network connections, and connect and listen to wireless networks
Keep your internet activity stealthy using Tor, proxy servers, VPNs, and encrypted email
Write a bash script to find potential attack targets over a range of IP addresses
Use and abuse services like MySQL, the Apache web server, and OpenSSH
Build your own hacking tools, such as remote spy cameras and password crackers
New to this edition: This second edition has been updated to address recent changes to Kali and Linux, including a more secure approach to root privileges, updates to Bluetooth and Linux logging functions, and a new chapter with advice on AI in cybersecurity.
Hacking is complex, and there is no single way in. Why not start at the beginning with Linux Basics for Hackers?
Обновленное введение в операционную систему Linux для начинающих хакеров и тестировщиков на проникновение.
Если вы только начинаете свой увлекательный путь взлома, кибербезопасности и пентестирования, "Основы Linux для хакеров" - отличное введение. С Kali Linux, операционной системой, предназначенной для цифровой криминалистики и тестирования на проникновение, вы познакомитесь с основами использования Linux и приобретете инструменты и методы, необходимые для управления средой Linux.
Сначала вы узнаете, как установить Kali на виртуальную машину, и познакомитесь с основными концепциями Linux. Далее вы познакомитесь с более широкими темами Linux, такими как манипулирование текстом, управление правами доступа к файлам и каталогам, а также управление пользовательскими переменными среды. Затем вы сосредоточитесь на основополагающих концепциях взлома, таких как безопасность и анонимность, и освоите навыки написания сценариев на bash и Python.
Практические руководства и упражнения на протяжении всего курса укрепят и проверят ваши навыки по мере того, как вы научитесь:
Чтобы замести следы, измените информацию о своей сети и воспользуйтесь утилитой ведения журнала journalctl
Напишите инструмент для сканирования сетевых подключений, а также для подключения и прослушивания беспроводных сетей
Сохраняйте свою активность в Интернете в тайне, используя Tor, прокси-серверы, VPN и зашифрованную электронную почту
Напишите сценарий bash для поиска потенциальных объектов атаки по целому ряду IP-адресов
Пользуйтесь такими сервисами, как MySQL, веб-сервер Apache и OpenSSH, и злоупотребляйте ими
Создавайте свои собственные инструменты для взлома, такие как удаленные камеры-шпионы и средства для взлома паролей
Новое в этом издании: Это второе издание было обновлено с учетом последних изменений в Kali и Linux, включая более безопасный подход к привилегиям root, обновления функций ведения журнала Bluetooth и Linux, а также новую главу с рекомендациями по использованию искусственного интеллекта в кибербезопасности.
Взлом - дело сложное, и единого способа взлома не существует. Почему бы не начать с основ Linux для хакеров?

Примеры страниц (скриншоты)

Оглавление

Preface
Acknowledgments
Introduction
Chapter 1: Getting Started with the Basics
Chapter 2: Text Manipulation
Chapter 3: Analyzing and Managing Networks
Chapter 4: Adding and Removing Software
Chapter 5: Controlling File and Directory Permissions
Chapter 6: Process Management
Chapter 7: Managing User Environment Variables
Chapter 8: Bash Scripting
Chapter 9: Compressing and Archiving
Chapter 10: Filesystem and Storage Device Management
Chapter 11: The Logging System
Chapter 12: Using and Abusing Services
Chapter 13: Becoming Secure and Anonymous
Chapter 14: Understanding and Inspecting Wireless Networks
Chapter 15: Managing the Linux Kernel and Loadable Kernel Modules
Chapter 16: Automating Tasks with Job Scheduling
Chapter 17: Python Scripting Basics for Hackers
Chapter 18: Artificial Intelligence for Hackers
Index

iPhone

Post 21-Apr-2025 00:05

[Quote]

Zabbix 7: мониторинг ИТ-инфраструктуры
Год издания: 2025
Автор: Лифтинг Натан, ван Бэкел Брайан
Переводчик: Ларин А.
Издательство: Спринт Бук
ISBN: 978-601-08-4700-2
Язык: Русский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 512
Описание: Обновленное третье издание «Zabbix 7: мониторинг ИТ-инфраструктуры» познакомит вас со всеми возможностями Zabbix. Эта книга, включающая различные примеры и описывающая обновленные функциональные возможности Zabbix, охватывает все, что нужно знать для настройки высокой доступности серверов, расширенной аутентификации пользователей с помощью LDAP, реализации низкоуровневого обнаружения хостов и создания продвинутых триггеров.
В этом практическом руководстве вы найдете простые и понятные рецепты применения Zabbix для мониторинга устройств и приложений в сети. Сначала вы узнаете, как установить Zabbix, и познакомитесь с его наиболее важными функциями, что поможет вам принимать правильные решения при создании масштабируемых и легко управляемых окружений. Прорабатывая каждый пример, вы научитесь создавать элементы данных и триггеры для различных типов мониторинга, разрабатывать шаблоны и использовать прокси-серверы Zabbix. Вы также научитесь использовать Zabbix API для настройки сервера и базы данных Zabbix и управления ими. Наконец, вы найдете быстрые решения распространенных и не очень проблем, возникающих в процессе мониторинга с применением Zabbix.
Прочитав всю книгу, вы получите полное представление о том, как использовать Zabbix для мониторинга, и сможете построить надежную систему Zabbix, используя ее ключевые функции.
P.S. Книга на английском здесь.

Примеры страниц (скриншоты)

Оглавление

Глава 1. Установка Zabbix и начало работы с веб-интерфейсом...............................................20
Глава 2. Настраиваем пользователей в Zabbix........................................................................59
Глава 3. Настройка мониторинга в Zabbix...............................................................................93
Глава 4. Работа с триггерами и оповещениями........................................................................161
Глава 5. Создание собственных шаблонов..............................................................................197
Глава 6. Визуализация данных, инвентаризация и отчетность..................................................229
Глава 7. Использование службы Discovery в Zabbix..................................................................291
Глава 8. Настройка прокси-серверов Zabbix............................................................................336
Глава 9. Интеграция Zabbix с внешними сервисами..................................................................371
Глава 10. Расширение функциональности Zabbix с помощью пользовательских скриптов и API...412
Глава 11. Поддержка и обслуживание Zabbix..........................................................................434
Глава 12. Продвинутая настройка СУБД..................................................................................465
Глава 13. Мониторинг облачной инфраструктуры....................................................................490

iPhone

Post 17-Apr-2025 01:05

[Quote]

Для devops и сисадмина. Работаем с файлами в Linux
Год издания: 2024
Автор: Серебренников А. М.
Издательство: Литрес/Автор
Язык: Русский
Формат: PDF
Качество: Отсканированные страницы + слой распознанного текста
Количество страниц: 140
Описание: Devops и системные администраторы несут ответственность за проектирование, развертывание и поддержку сложных инфраструктур, обеспечивая их надежную и бесперебойную работу. Одна из важнейших обязанностей этих специалистов — автоматизация повседневных задач, что позволяет повысить эффективность работы и минимизировать ошибки. Данная книга содержит уже готовые рецепты для быстрого применения тех или иных решений, которые могут помочь сократить время на поиск информации или разработку скриптов на серверах с операционной системой Linux.

Примеры страниц (скриншоты)

Оглавление

Введение ......... ................. ... ................. .................................... .... ........................ .................. 8
Цель книги .. ... ................. ... ....... .......... ....... ............. ............................................ ................. 10
Для кого предназначена эта книга ... .............................................................................................. 12
Об авторе ..... ... .................... ................. ...... .............................................................................. 13
Глава 1. Поиск в Linux . ........... ..................... ................ .......... ........................... ........................ 14
Пример использования apt-cache search ......... .............. .................... ........... ..... ........................... 14
Пример Playbook на Debian/Ubuntu ........................... ................................... .... ..... ........................ 15
Пример Playbook на Red Hat/CentOS ............................................................ .................. ................. 15
Пример Playbook на Suse ................................................... .......................................... .... ............. 16
Поиск па кетов ............. ... .......... ...... .............................. ....... .......... ....... .................................. 16
Глава 2. Арсенал автоматизации для работы с файлами в Linux . .................. ......... ..................../...... 18
Инструменты для управления конфигурацией .......................... .................. .............. .. ... ................ 18
Инструменты для оркестрации контейнеров ..................................... .......... .............. .... .... ............. 18
Инструменты для управления инфраструктурой как кодом (laC) ... ...................................................... 19
Инструменты для управления CI/CD ....... ................ ......................................................................... 19
Инструменты для мониторинга и логирования .................................................................................... 19
Ansible ........................................................... ......... ....... .............................................................. 20
Основные особенности Ansible ........... .......................................................... ................................... 20
Основные компоненты Ansible ...................................................................................... ......... .......... 20
Преимущества использования Ansible ................................................................................................ 21
Примеры использования Ansible ............................... ................. .................. ................................... 21
Как использовать Playbook .. .......... ....... ....................................... ....................... ......... ............... 21
Пример Playbook для установки LibreOffice ........... .......... .... ............. .... ....................... ......... ....... 22
Пример Playbook для настройки сервера nginx ........................................... ....................................... 23
Пример Playbook для установки Apache2 и РНР 8 ........ ....................................................................... 24
Puppet ..... ......... ... .... .................... ........................................................ ...................................... 27
Основные особенности Puppet ........... ........................... ................................................. ................. 27
Основны е компоненты Puppet ................ ........................................................................ ................. 27
Пример манифеста Puppet .................. ........................................ ..................................................... 27
Преимущества Puppet .............................. ........................... ........................... ..... ........... ...... ....... 28
Недостатки Puppet .. ..................................................... ........ ........................... .............................. 28
Chef ........ ................ ................................................................... .................................................. 29
Основные концепции Chef ........................................................... ..................................................... 29
Компоненты Chef .... ........................ ...... ....................... ................. ............................................... 29
Приме р рецепта Chef ............................................................. ......................................................... 29
Преимущества Chef .......................................................................................................................... 30
Недостатки Chef ............................................................................................................................... 30
SaltStack (Salt) ................................................................................... .................................. .......... 31
Основные особенности SaltStack ................... ......... ....... .................... .......... ...... .......... ................ 31
Пример использования SaltStack .................................................................. .. .................................. 31
Преимущества SaltStack ............................................................................................... .................... 32
Недостатки SaltStack ...... .............................................. ....... .... ............. ........................................ 32
Глава 3. Файлы в Linux и их использование .................................................... ..... .............................. 33
Формат файлов .BIN ............................................ ............................................................................. 37
Основные характеристики файлов .bin ................................................................................................ 37
Преимущества файлов .bin ................................................................................................................. 37
Примеры использования BIN файлов в Linux ............................................................. .... .... ................ 37
Формат файлов .BZIP2 ... .......... ................. ............ ....... ... .... ............. ....... ................................... 39
Основные характеристики файлов .bzip2 ............................................................................................. 39
Преимущества файлов .bzip2 .......................... ...... .............................. ........................... ................. 39
Основные задачи, в которых используется BZIP2 ................................................................................. 39
Примеры архивации файлов с использованием BZIP2 в конвейере или скриптах .. ................................ .40
Формат файлов .С/. СС/.СРР ............................................................ ........... ....... .............. .... .......... 43
Основные характеристики файлов . С, . се, . СРР ................................................................................ .43
Преимущества языков С и С++ ............................................ ......... .................................................... 43
Примеры использования файлов .с, .се, и .срр ............................................................... ..................... 44
Примеры ситуаций, где С и С++ могут использоваться: ........................................................................ 45
Примеры инструментов и библиотек, написанных на С/С++ : .............................................................. .45
Формат файлов .CONF/CFG .... ........................................................ ................................................... 46
Структура файлов .conf ................................................................................... ........................ ......... 46
Основные задачи и области применения ....... ....... .............. ...... ....... ............................. ........... ...... 46
Преимущества использования файлов .conf ......................................................................................... .47
Примеры использования ..... ................ ............................... ......... ........ .......... ......... ................... ... 47
Формат файлов .DEB ............... ....................................... ................. ................................................. 48
Структура файлов .deb ....................................................................................................................... 48
Пример структуры файла .deb ............................................................................................................. 48
Преимущества файлов .deb ......................................................................................... ....................... 48
Основные задачи и области применения .................................................... ...................... .................. 49
Формат файлов .DIFF/.PATCH ......... ....... .... .......... ... .......... .... ......... ........ ... ............ ..... .... ...... ... 51
Основные характеристики файлов .diff/.patch .... .... ...... .... ................ .......... ...... ............. ....... ........ 51
Преимущества файлов .diff/.patch ........................................................................................................ 51
Примеры использования файлов .diff ....................... ................. ........ .......... .................. ........ ......... 51
Формат файлов .GZIP ........ ....... ....................................... ................................................................ 53
Основные характеристики файлов .gzip ..................................... ......................................................... 53
Преимущества файлов .gzip ......................................................... ....................... ........... ... .............. 53
Основные задачи, в которых используется GZIP ........... ....................................................................... 53
Примеры использования GZIP ......................................................................... ................ .................. 54
Основные утилиты ..... .......... .............................. ...................................................... ....................... 55
Дополнительные утилиты ...................................................... ............................................................. 56
Формат файлов .Н ..... ........................................................... ................. .................. .... ................... 57
Основные характеристики файлов .h ............ .............................................................. ........................ 57
Преимущества заголовочных файлов .h .................... ........................................................................... 57
Примеры использования заголовочных файлов ..................................................................................... 58
Компиляция и линковка ................. .......... .................................... .................. ................................. 58
Формат файлов .НТМ/.НТМL ..... ................. ... ....................... ............. ....... ................................... ... 59
Преимущества файлов .html/.htm ............................................... ........................................................ 59
Основные задачи, в которых используется .html/.htm ................................. ......................................... 59
Примеры работы с файлами .htm/.html в Linux ......................... .................. .............. ..... .................... 60
Формат файлов .INl ........ ... ........... ............. ... ........... .......... .......... .................... ........................... 63
Структура файла .ini ................................................................ ............................. ............................ 63
Преимущества файлов .ini ... ................ .... ......... ................................... ................... ..... ................. 63
Основные задачи и области применения .................................. ........................................................... 63
Примеры работы с файлами INI в Linux .. .............................. ........................ ..................................... 64
Формат файлов .ISO .................................. .......................... ............................................................. 66
Преимущества файлов .iso ........................................................... ................................ ..... ................ 66
Основные задачи и области применения .................................. .................................... ....................... 66
Работа с ISO файлами в Linux ......................................................................... .. .................................. 66
Примеры использования файлов .iso .. ............ ....... .................... ....... ........... ................ ................... 67
Формат файлов .JAR ............................................................................................................................ 68
Основные характеристики файлов .jar ....................................... ........ .......... ...................................... 68
Основные задачи, в которых используются .jar файлы ............. ........... ......................... ....................... 68
Примеры работы с файлами JAR в Linux ..................................... .......................................................... 68
Формат файлов .JAVA .......................................................................................................................... 70
Основные характеристики файлов .java ............................... ................................................................ 70
Основные задачи, в которых используются .java файлы ......................................................................... 70
Примеры работы с .java файлами в Linux ........ ..................... ...... ........... ....... ..... ........................ ...... 70
Примеры использования Java в DevOps ........ .......... ...... ... .... ............................. ........................... ... 72
Формат файлов .JSON ...................................... ................................................................................... 74
Структура файла .json .... ........................ ............ ..................... ...... ........ .......... ............................. 74
Основные задачи и области применения .................................. ....................... ................. .................. 74
Преимущества и недостатки ........................................................................................ ........................ 76
Обмен данными с СУБД ....... .................................... ....... .... ................................ ......... .... .............. 76
Microsoft SQL Server ... ........................................ ................. ................. .......... ................................. 76
MariaDB .... ... ... ................................................................................................................ ..... .......... 77
PostgreSQL ............................................................................................ .......... ... ............................. 78
Формат файлов .КО ........... ......................................................... ...................................................... 80
Основные характеристики файлов .ko ........................................ .................. .................. ................... 80
Преимущества файлов .ko .................................... ........................................................ .......... .......... 80
Примеры использования файлов .ko .................................................................................................... 80
Формат файлов .РНР .................... ...................................................................................................... 82
Преимущества файлов .php ........... ...... .... ......................................................................................... 82
Основные задачи и области применения ....... ........ ...... ............. ....... .......... ...... ........................... ... 82
Примеры установки РНР ...................................................................................................................... 82
Примеры использования РНР ............................................ .................................................................. 85
Выполнение РНР скриптов из командной строки ................................................................................... 86
Примеры выполнения РНР скриптов из командной строки ................ ....... ............... ... ......................... 87
Формат файлов .PL ............................................................................................................................. 90
Основные характеристики скриптов .pl ................................................................................................ 90
Преимущества Perl скриптов ................................ ... ........... ......... ..................................................... 90
Задачи, в которых чаще всего используются файлы .pl ......................................................................... 90
Примеры использования файлов .pl .......................... .......................................................................... 91
Формат файлов .РY ............................................................................................................................. 95
Основные характеристики скриптов .ру .................... ........ ......... ........................................................ 95
Преимущества Python скриптов ..................... ... ...... ........... ......... ........... ...... .................................. 95
Примеры использования файлов .ру ... ............ ....... .................... ....... ........... ................................... 96
Формат файлов .RВ ............................................................................................................................. 100
Преимущества файлов .rb: .................................................................................................................. 100
Пример файлов .rb .................................................... ................. ....................................................... 100
Запуск файлов .rb в Linux ........................................................................................... ..... .................. 100
Формат файлов .RPM ....................................................... ... ............................................................... 101
Структура файла .rpm ................................................................... .................. ................ ................. 101
Преимущества файлов .rpm .............................. .................. ......... ....................... ......... ................... 101
Основные задачи и области применения ............................................................................................... 101
Формат файлов .SH ................................................... ....... ... ............................................................. 104
Основные характеристики файлов .sh .................................................................................................. 104
Преимущества файлов .sh ............................................... ....... ........................ .............. .... .... ......... 104
Примеры использования .sh ................................................................................................................ 105
Формат файлов .SO ............................................................................................................................ 113
Структура и особенности файлов .so ......................... ................. ....................................................... 113
Основные задачи и области применения ..... ................ ....................................................................... 113
Примеры использования .................................. ............................................. .................................... 113
Преимущества и недостатки ........................................................................................ ........ .............. 114
Формат файлов .SQL ...... .... ............................................................................................................... 116
Структура файлов .sql .... ......................................................... ...... .................. ............................... 116
Преимущества файлов .sql .................................... .................................................. ...... ................... 117
Примеры использования SQL ....... ....................................................................................................... 118
Формат файлов .SRC ............. ............................................................................................................. 120
Основные характеристики файлов .src ... .................................... .................................... .................... 120
Преимущества файлов .src ... ................. .......................... .............................. ............... ................... 120
Примеры использования файлов .src ......................................... .......................................................... 120
Формат файлов .TAR ...... ... ........................... ....................... ........................ .................................... 122
Основные характеристики файлов .tar ...................... ................. .................................... .................... 122
Преимущества файлов .tar .................... .......... ...... .... ......... .......... ........... ................ ..................... 122
Основные задачи, в которых используется TAR .. .......... ............. ........... ............ ................. ............... 122
Примеры использования TAR ............... ... .................................... ........ .......... ............... ... ............... 123
Примеры использования TAR в конвеерах ................................. ........................................................... 124
Примеры использования TAR в скриптах ............................................................................................... 124
Примеры использования TAR с другими коммандами .............................................................................. 126
Формат файлов .TCL ............................................................................................................................ 127
Основные характеристики файлов .tcl ............................... ......... ......................................................... 127
Преимущества файлов .tcl .................................... ....................... ................................ ..... ... .... ....... 127
Примеры использования файлов .tcl ... ............ ....... ........................... ........... ................................ .... 127
Формат файлов XML ............................................................................................................................. 129
Структура файла .xml ..... ....................... ............. .............. ....... ....................................................... 129
Основные задачи и области применения ............................ ...... ........... ......................... ..................... 129
Обмен данными с СУБД ............................................................... ....................... ............. .................. 130
Microsoft SQL Server .................................. .......................................................................................... 131
MariaDB/MySQL ................................................................................................................. .................. 131
PostgreSQL .. .................... ................. .............................................. .................. .............................. 132
Преимущества и недостатки ......... ....... .... .......... ... .......... .... ......... ........... ................... ... .... ... .... 133
Формат файлов .YМL/.YАМL ..................... ........... .. ........ ...... .... ... ............................. ...................... 135
Основные характеристики файлов .yml/.yaml ........................................................................................ 135
Преимущества файлов .yml/.yaml .............................. ................. ........................................................ 135
Примеры использования YAML в DevOps .......................................................... ..................................... 135
Формат файлов .ZIP .............................. .............................................................................................. 137
Основные характеристики файлов .zip .................... ............................................................................. 137
Преимущества файлов .zip .............................................. .................................................................... 137
Примеры использования ZIP файлов в Linux ................................................ ......................................... 137

iPhone

Post 16-Apr-2025 15:40

[Quote]

tmux 3: Productive Mouse-Free Development, 3rd Edition / tmux 3: Продуктивная разработка без использования мыши, 3-е издание
Год издания: 2025
Автор: Hogan B. P. / Хоган Б. П.
Издательство: The Pragmatic Programmers, LLC.
ISBN: 979-8-8886-5131-5
Серия: The Pragmatic Programmers, LLC.
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 167
Описание: Your mouse is slowing you down. You’re juggling multiple terminal windows, development tools, or shell sessions, and the context switching is eating away at your productivity. Take control of your environment with tmux, a keyboard-driven terminal multiplexer that you can tailor to your workflow. With this updated third edition for tmux 3, you’ll customize, script, and leverage tmux’s unique abilities to craft a productive terminal environment that lets you keep your fingers on your keyboard’s home row.
You have a database console, web server, background job service, front-end build tools, a test runner, and maybe a terminal-based text editor running simultaneously, often each in its own terminal window. Switching between these tools takes up valuable time and breaks your concentration. With tmux you can improve your productivity and regain your focus, all without ever touching your mouse.
Use tmux to manage multiple terminal sessions in a single window, manage and run programs side by side in panes, and create the perfect development environment with custom scripts so that when you’re ready to work, your programs are waiting for you. Manipulate text with tmux’s buffers as you move text around freely between applications. Collaborate with others remotely and integrate more advanced features into your workflow as you manage multiple sessions, add custom scripts to the status line, and hook into life cycle events. Whether you’re an application developer or a system administrator, you’ll find techniques to help you take control of your terminal.
This fully revised third edition includes updated configuration commands, a revised method for pair programming, and hands-on examples of new features like custom popups and event hooks that let you add even more automation to your workflow.
What You Need
This book is written for tmux 3.4 or higher. You’ll need a Mac or Linux machine, or a machine running Windows with the Windows Subsystem for Linux installed. You’ll also need some experience running shell commands.
Мышь замедляет работу. Вам приходится работать с несколькими окнами терминала, инструментами разработки или сеансами командной строки, а переключение контекста снижает производительность. Возьмите под контроль свою среду с помощью tmux - мультиплексора терминала, управляемого клавиатурой, который вы можете адаптировать к своему рабочему процессу. В этом обновленном третьем издании для tmux 3 вы сможете настраивать, создавать сценарии и использовать уникальные возможности tmux для создания продуктивной среды работы с терминалами, которая позволяет вам держать пальцы на главном ряду клавиатуры.
У вас есть консоль базы данных, веб-сервер, служба фоновых заданий, интерфейсные средства сборки, программа запуска тестов и, возможно, текстовый редактор на базе терминала, работающие одновременно, часто каждый в своем окне терминала. Переключение между этими инструментами отнимает драгоценное время и мешает вам сосредоточиться. С помощью tmux вы можете повысить свою производительность и восстановить концентрацию внимания, даже не прикасаясь к мыши.
Используйте tmux для управления несколькими сеансами терминала в одном окне, управления программами и их одновременного запуска в разных панелях и создания идеальной среды разработки с пользовательскими сценариями, чтобы, когда вы будете готовы к работе, ваши программы уже ждали вас. Управляйте текстом с помощью буферов tmux, свободно перемещая текст между приложениями. Сотрудничайте с другими пользователями удаленно и интегрируйте более продвинутые функции в свой рабочий процесс, управляя несколькими сеансами, добавляя пользовательские сценарии в строку состояния и подключаясь к событиям жизненного цикла. Независимо от того, являетесь ли вы разработчиком приложений или системным администратором, вы найдете методы, которые помогут вам управлять своим терминалом.
Это полностью переработанное третье издание включает обновленные команды настройки, пересмотренный метод парного программирования и практические примеры новых функций, таких как пользовательские всплывающие окна и перехватчики событий, которые позволяют еще больше автоматизировать рабочий процесс.
что вам нужно
Эта книга написана для tmux версии 3.4 или выше. Вам понадобится компьютер Mac или Linux, либо компьютер под управлением Windows с установленной подсистемой Windows для Linux. Вам также потребуется некоторый опыт работы с командами командной оболочки.

Примеры страниц (скриншоты)

Оглавление

Acknowledgments
Preface
What Is tmux?
Who Should Read This Book
What’s in This Book
Changes in the Third Edition
What You’ll Need
Conventions
Online Resources
1. Learning the Basics
Installing tmux
Starting tmux
The Command Prefix
Detaching and Attaching Sessions
Working with Windows
Working with Panes
Working with Command Mode
What’s Next?
For Future Reference
2. Configuring tmux
Introducing the .tmux.conf File
Customizing Keys, Commands, and User Input
Changing How tmux Looks
Customizing the Status Line’s Content
What’s Next?
For Future Reference
3. Scripting Customized tmux Environments
Creating a Custom Setup with tmux Commands
Using tmux Configuration Files for Setup
Managing Configuration with tmuxinator
What’s Next?
For Future Reference
4. Working With Text and Buffers
Scrolling Through Output with Copy Mode
Copying and Pasting Text
Integrating tmux with System Clipboards
What’s Next?
For Future Reference
5. Pair Programming with tmux
Pairing with a Shared Account
Using a Shared Account and Grouped Sessions
Quickly Pairing with Upterm
Pairing with Separate Accounts and Sockets
What’s Next?
For Future Reference
6. Workflows
Working Effectively with Panes and Windows
Managing Sessions
tmux and Your Operating System
Customizing Your Workflow
What’s Next?
For Future Reference
A1. Your Configuration

iPhone

Post 05-Mar-2025 06:05

[Quote]

Сетевые средства Linux, 2-е изд.
Год издания: 2016
Автор: Бражук А. И.
Издательство: НОУ "ИНТУИТ"
Язык: Русский
Формат: PDF
Качество: Отсканированные страницы + слой распознанного текста
Количество страниц: 148
Описание: Рассматриваются вопросы настройки сетевых интерфейсов, маршрутизации, фильтрации трафика базовыми средствами Linux, технологии трансляции сетевых адресов (NAT), а также диагностики сетевых подключении приложениями протокола ICMP и средствами анализа сетевого трафика.
В рамках курса рассматриваются вопросы использования программы VirtualBox для изучения сетевых возможностей Linux, настройки сетевых интерфейсов и маршрутизации сетевого трафика с помощью пакетов iproute2, команд ifconfig, arp, route, конфигурационных файлов сетевой подсистемы, особенности транспортного и прикладного уровней, диагностики сетевых подключений с помощью соответствующих утилит (ping, traceroute, netstat) и анализа сетевого трафика средствами tcpdump, организации на основе Linux маршрутизатора, межсетевого экрана и системы доступа в Интернет на сетевом уровне, использования технологий виртуальных частных сетей. Изложение материала сопровождается примерами, типичных для условий небольшой сети. Приведенные примеры можно легко воспроизвести в среде VirtualBox.

Примеры страниц (скриншоты)

Оглавление

Лекция 1. Использование виртуализации для изучения Linux
Лекция 2. Сетевая подсистема Linux
Лекция 3. Доступ к локальной сети средствами Linux
Лекция 4. Команды настройки протокола IP
Лекция 5. Постоянные сетевые конфигурации (на примере Debian/GNU Linux)
Лекция 6. Базовая диагностика сетевых подключений
Лекция 7. Транспортный и прикладной уровни модели сетевого взаимодействия
Лекция 8. Настройка некоторых сетевых служб в Debian GNU/Linux
Лекция 9. Анализ сетевого трафика как метод диагностики сети
Лекция 10. Маршрутизация в Linux
Лекция 11. Межсетевое экранирование в Linux
Лекция 12. Обеспечение доступа в сеть Интернет

iPhone

Post 06-Feb-2025 02:15

[Quote]

Mastering the Red Hat Certified Engineer (RHCE) Exam / Осваиваем экзамен Red Hat Certified Engineer (RHCE)
Год издания: 2025
Автор: Berton Luca / Бертон Люка
Издательство: BPB Publications
ISBN: 978-93-65896-800
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 452
Описание: "Mastering the Red Hat Certified Engineer (RHCE) Exam" is a comprehensive guide designed for IT professionals and system administrators aspiring to achieve RHCE certification. This book is an essential resource for mastering Red Hat Enterprise Linux (RHEL) skills and advancing careers in Linux administration.
This book is designed to guide you through every stage of preparing for the RHCE certification. It introduces the importance of RHCE in IT and breaks down the exam blueprint, covering both theory and practical skills. You will learn Linux basics, automate tasks using tools like bash scripting and Ansible, manage network services and SELinux security, and explore emerging technologies like containers and virtualization. The book also covers performance optimization and troubleshooting, providing strategies to tackle the exam with confidence. Practice exams simulate real-world scenarios to help you succeed and achieve your RHCE certification.
By the end, readers will be fully prepared for the RHCE exam and equipped with practical skills for Linux administration roles. This book enables aspiring engineers to excel in complex Linux environments, supporting their journey towards RHCE certification and professional growth in the dynamic IT landscape.
Key Features:
- Complete RHCE guide with theory, practical labs, and exam strategies.
- Offers deep insights into Ansible, networking, and Linux security.
- Prepares IT pros and students for real-world Linux administration.
What you will learn:
- The essentials of Red Hat Enterprise Linux administration.
- Automation of tasks using Ansible and scripting tools.
- Effective management of networking and security in RHEL.
- Hands-on skills in SELinux configuration and troubleshooting.
- Practical insights into container management and deployment.
- Preparation techniques for success in the RHCE certification.
Who this book is for:
This book is intended for IT professionals and system administrators with basic to intermediate Linux knowledge. It is also suitable for those aiming for RHCE certification and educators seeking a structured resource for teaching RHEL system management and automation.
"Осваиваем экзамен Red Hat Certified Engineer (RHCE)" - это всеобъемлющее руководство, предназначенное для ИТ-специалистов и системных администраторов, желающих получить сертификат RHCE. Эта книга является важным источником информации для овладения навыками Red Hat Enterprise Linux (RHEL) и продвижения по карьерной лестнице в области администрирования Linux.
Эта книга предназначена для того, чтобы помочь вам пройти все этапы подготовки к сертификации RHCE. В ней рассказывается о важности RHCE в IT и описывается схема экзамена, охватывающая как теорию, так и практические навыки. Вы познакомитесь с основами Linux, автоматизируете задачи с помощью таких инструментов, как bash scripting и Ansible, управлять сетевыми сервисами и безопасностью SELinux, а также изучите новые технологии, такие как контейнеры и виртуализация. В книге также рассматриваются вопросы оптимизации производительности и устранения неполадок, даются стратегии, позволяющие уверенно сдать экзамен. Практические экзамены имитируют реальные сценарии, которые помогут вам добиться успеха и получить сертификат RHCE.
К концу курса читатели будут полностью подготовлены к экзамену RHCE и получат практические навыки для выполнения функций администратора Linux. Эта книга позволяет начинающим инженерам преуспеть в сложных средах Linux, помогая им на пути к сертификации RHCE и профессиональному росту в динамичном ИТ-пространстве.
Ключевые функции:
- Полное руководство по RHCE с теорией, практическими лабораторными работами и стратегиями сдачи экзаменов.
- Предлагает глубокое понимание вопросов безопасности Ansible, сетей и Linux.
- Готовит ИТ-специалистов и студентов к реальному администрированию Linux.
Чему вы научитесь:
- Основы администрирования Red Hat Enterprise Linux.
- Автоматизация задач с использованием Ansible и скриптовых инструментов.
- Эффективное управление сетями и безопасностью в RHEL.
- Практические навыки настройки SELinux и устранения неполадок.
- Практические знания по управлению контейнерами и их развертыванию.
- Методы подготовки к успешной сертификации RHCE.
Для кого предназначена эта книга:
Эта книга предназначена для ИТ-специалистов и системных администраторов с базовым и средним уровнями знаний в области Linux. Она также подойдет тем, кто стремится получить сертификат RHCE, и преподавателям, которые ищут структурированный ресурс для обучения управлению системами RHEL и автоматизации.

Примеры страниц (скриншоты)

Оглавление

1. Introduction to RHCE Certification
Introduction
Structure
Objectives
IT industry
Overview of RHCE certification
RHCE and RHCSA
Getting certified
Already certified
RHCA
Open hybrid cloud program
DevOps, containers, and OpenShift program
Telco cloud program
Linux mastery program
Exam blueprint
Essential tools
After certification
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
2. Red Hat Enterprise Linux
Introduction
Structure
Objectives
Getting started
Installation methods
Anaconda
Subscription manager
IT Operations
Login
Command line interface
Logout
Shutting down
Reboot
Suspending and hibernating
Graphical user interface
Bash scripts
Getting help post-installation
Red Hat support tool
Red Hat Developer
Red Hat Insights
Users and groups
Switch user
Sudo
Storage
Configure devices
Manual mount
Persistent mount
Configure and maintain systems
Additional software
Update
Updating all packages
Updating a specific package
Kernel management
Removing a package
Log
Remote access
Web console
SSH network login
SSH key authentication
Network interfaces and settings
Manage files
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
3. Red Hat System Administration
Introduction
Structure
Objectives
Network settings
Hostname
Name resolution
Network interfaces
Date and time
Schedule future tasks
Cron
Automating backup
Anacron
Systemd timer
Manage local users and groups
User
Shell startup
Password
Superuser
Group
Files access control
Symbolic method
Numeric method
Special permissions
Default permissions
Access control lists
Linux processes
Load average
Real-time process monitoring
Process signals
Services and daemons
Service status
Start and stop services
Dependencies and conflicts
Boot process
Log files
Managing software using DNF
Storage in Linux
Logical Volume Manager
RAID configurations
File system
Swap
Hard and soft link
SMB storage
NFS storage
Mounting
Automounting
Direct and indirect maps
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
4. Automating Linux Tasks
Introduction
Structure
Objectives
Bash scripting versus Ansible
Ansible architecture
Quick start
Ansible ad hoc
Inventories
Modules
Using modules in playbooks
Documentation
Command line interface
Ansible language
Advanced playbook techniques
Plays
The power of multiple plays
Structured organization and task execution
Variables
Facts
Filters
Retrieve results
Capturing command output
Using registered variable
Practical use cases
Loops
LAMP example
Execution and output
Conditional
when statement
Conditional execution based on variable values
Handlers
Defining and using handlers
Multiple handlers
Conditional tasks
Practical example of conditional task execution
Handling task failure
Creating Ansible plays and playbooks
Crafting our first playbook
Error handling
Blocks, rescue, and always
Advanced error handling strategy
Testing a playbook
Configuration management
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
5. Ansible Enterprise
Introduction
Structure
Objectives
Ansible installation
Control node
Best practices and tips
Linux managed nodes
Configuring privilege escalation on managed nodes
Deploying files to managed nodes
Analyzing shell scripts and converting them to playbooks
Windows managed nodes
Setting up Windows managed nodes
Privilege escalation
Importance in security
Privilege escalation in Ansible
Security best practices for privilege escalation
Ansible navigator
Installation
Command line interface
Text-based interface
Ansible for Linux
File management
Ensure a directory exists
Copying a file
Remove a file
Service management
Rolling updates
Jinja2 templates
Basic syntax
Using Jinja2 templates in Ansible
Advanced Jinja2 features in Ansible
Best practices for Jinja2 templates in Ansible
User management
Ansible playbook for managing users
Advanced usage: Managing multiple users
Handling user absences
Ansible vault
Creating encrypted file
Best practices
Editing an encrypted file
Using encrypted files in playbooks
Configuration files
Roles
Use a role
Create a role
Working with roles
Using role in playbook
System roles
Collections
Simplifying playbooks
Installing content collections
Using collection in playbook
The requirements.yml file
Key tips
Troubleshooting
Tests
Debugging and asserting
Linting
Molecule
Ansible Automation Platform
Best practices
Conclusion
Points to remember
Multiple choice questions
Questions
Key terms
6. Network Services and Security Introduction
Introduction
Structure
Objectives
Dual stack
Routing
Monitor
Intrusion detection
Log management and analysis
Security
User and group management
File system security
SELinux management
Network security
Software package security
Monitoring and logs
Backup and recovery
System updates and patches
Services
Firewalld
Key components
OpenSSH
SELinux
Change SELinux contexts
Restore default SELinux contexts
Ansible SELinux
SELinux Booleans
Custom policies
Components in myservice.te
Steps
Best practices
Secure Sockets Layer
MD5 and SHA-1 sunset
MD5 vulnerabilities and sunsetting
SHA-1 vulnerabilities and sunsetting
Implications of hash function sunsetting
Podman
Conclusion
Points to remember
Multiple choice questions
Answers
Key terms
7. Emerging Technologies Integration
Introduction
Structure
Objectives
Integration of Red Hat's emerging technologies
Tuned
Active profile
List
Change
Recommended
Web console
CentOS Stream
Installation and management
Transition from CentOS Linux to CentOS Stream
Kernel live patch
Cockpit live patching
Advanced storage features
System Security Services Daemon
Key features
Working of SSSD
Configuration and management
Virtualization and containers
Podman
Rootless containers
Kubernetes and OpenShift
Universal Base Images
UBI images
Comparison with RHEL base images
Key features and benefits
Types
Cloud providers
Amazon Web Services
Launching RHEL on EC2
Google Cloud Platform
Microsoft Azure
VMware
Integrity Measurement Architecture
Enabling IMA measurement
IMA remeasurement
IMA appraisal
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
8. Performance Optimization and Troubleshooting
Introduction
Structure
Objectives
Bootstrap
Root password reset
Troubleshooting
File system
Virtual Data Optimizer
Installation
Configuring and managing VDO
Monitoring VDO
Log files
systemd
Basic concepts
Common commands
Configuring unit files
Search logs for relevant entries
syslog
Configuring and testing syslog
journalctl
rsyslog
Interaction between systemd-journald and rsyslog
Log rotation
Service failure
Apache
SSH
Network
Common tools for network troubleshooting
Diagnosing a network issue
Strategies for optimizing system performance
Processes
Process signals
Common commands
Using ps to view processes
Using kill to terminate processes
Using nice and renice to adjust process priority
Practical examples
Cron
Ansible
Playbook
Ansible role
Ansible collection
Best practices for role and collection testing
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
9. Practice Exams and Scenarios
Introduction
Structure
Objectives
Exam preparation
Overview of RHCE exam
Preparation strategies
Time management techniques
Recommended resources
Setup
Installation
Inventory
INI format inventory
YAML format inventory
Inventory best practices
Configuration
Breakdown of configuration options
Additional tips
View current configuration
Ad hoc
Play
Modules
Software packages and repositories
Services
Firewall rules
File systems
Storage
Logical Volume Manager
File content
Archiving
Task scheduling
Users and groups
Template
Message of the day
Playbook
Apache
Role
Custom role
Vault
Using vault in a playbook
Security
Securely transfer files
Using SFTP for file transfer
Best practices for secure file transfers
Failure package installation
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
10. Real World Application
Introduction
Structure
Objectives
RHCE in real-world
Master the fundamentals and beyond
Develop a career roadmap
Build a professional network
Showcase our skills
Understand employer expectations
Stay updated with industry trends
Red Hat Certified Architect
Job directories
Glassdoor
Jooble
Indeed
Real world customers
Advisory analysis
Forrester
International Data Corporation
Server use cases
Webserver
Compute server
Mail server
File server
Directory server
High-performance computing
Hybrid cloud
RHEL artificial intelligence
Cloud-native scalability and portability
Hardware and performance expectations
Ansible AI lightspeed
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
Index

iPhone

Post 03-Feb-2025 05:15

[Quote]

Программирование на Bash с нуля
Год издания: 2021
Автор: Шпигорь И.
Издательство: Leanpub
Язык: Русский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 325
Описание: Эта книга задумывалась не как очередное руководство по Bash и Unix-окружению. Перед вами самоучитель по программированию. Примеры программ написаны на языке Bash.
Программирование можно изучить самостоятельно. При этом неизбежны вопросы. Без некоторого опыта на них сложно найти ответы. Мы постараемся пройти по всем этим вопросам.
В книге подробно разбираются следующие темы:
Общие принципы работы компьютера.
Инструменты разработчика и требования к ним.
Основные концепции программирования.
По каждой теме приводятся упражнения. Выполним их вместе и так закрепим полученные знания.
После прочтения книги вы научитесь использовать Bash. Его возможности помогут вам в решении ежедневных задач по работе с компьютером. Некоторые из задач вы научитесь автоматизировать. Это отличный старт, чтобы научиться программировать.

Примеры страниц (скриншоты)

Оглавление

Вступление . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Общая информация . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Операционные системы . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Компьютерная программа . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Командный интерпретатор Bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Инструменты для разработки . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Командный интерпретатор . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Навигация по файловой системе . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Информация о командах . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Действия над файлами и каталогами . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Дополнительные возможности Bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Разработка Bash-скриптов . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Инструменты для разработки . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Зачем нужны скрипты? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Переменные и параметры . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Условные операторы . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Арифметические выражения . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Операторы цикла . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Функции . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Пакетный менеджер . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Репозиторий . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Работа с пакетами . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Заключение . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Благодарности . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Список терминов . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
А . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Б . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
В . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Д . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
ОГЛАВЛЕНИЕ
З . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
И . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
К . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Л . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
О . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
П . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Р . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
С . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
У . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Ф . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Х . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Ш . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Я . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
W . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Ответы . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Общая информация . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Командный интерпретатор Bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Разработка Bash-скриптов . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
Ссылки на ресурсы . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Общая информация . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Unix-окружение . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

iPhone

Post 01-Feb-2025 10:55

[Quote]

Practical Linux DevOps / Практический Linux DevOps
Год издания: 2022
Автор: Tonello John / Тонелло Джон
Издательство: Apress Media LLC
ISBN: 978-1-4842-8318-9
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 351
Описание: Learn, develop and hone your Linux and DevOps skills by building a lab for learning, testing and exploring the latest Linux and open-source technologies. This book helps Linux users and others to master modern DevOps practices using a wide range of software and tools.
Having a home or work-based Linux lab is indispensable to anyone looking to experiment with the ever-evolving landscape of new software and DevOps. With open-source tools and readily available hardware, you will end up with a lab you can use to try virtually any modern software, including Chef, Docker, Kubernetes and stalwarts like DNS, Dovecot, and Postfix for email. You'll set up pipelines for software deployment and focus on discrete projects that help you learn through doing. In the end, you'll acquire the skills needed to become better informed, more marketable engineers and developers, and better able to take on a wide array of software projects with confidence.
Practical Linux DevOps is the perfect companion for those who want to learn how to build systems with utility and learn about modern hardware and software practices.
What You'll Learn
Set up a Linux-based virtualization environment and workstation
Create a lab network with a fully qualified domain
Build web-based applications with NGINX and LAMP
Use version-control tools like Git
Automate deployments and configurations
Think like a modern DevOps engineer
Who This Book Is For
New and modestly experienced users with basic understanding of a basic understanding of Windows or Linux command line, as well as would-be and current DevOps engineers, and full-stack and other software developers
Изучайте, развивайте и оттачивайте свои навыки работы с Linux и DevOps, создав лабораторию для изучения, тестирования и изучения новейших технологий Linux и с открытым исходным кодом. Эта книга поможет пользователям Linux и другим пользователям освоить современные методы DevOps с использованием широкого спектра программного обеспечения и инструментов.
Наличие домашней или рабочей лаборатории Linux незаменимо для тех, кто хочет поэкспериментировать с постоянно меняющимся ландшафтом нового программного обеспечения и DevOps. Благодаря инструментам с открытым исходным кодом и легкодоступному оборудованию вы получите лабораторию, в которой сможете опробовать практически любое современное программное обеспечение, включая Chef, Docker, Kubernetes и такие стойкие решения, как DNS, Dovecot и Postfix для электронной почты. Вы настроите конвейеры для развертывания программного обеспечения и сосредоточитесь на отдельных проектах, которые помогут вам учиться на практике. В конце концов, вы приобретете навыки, необходимые для того, чтобы стать более информированными, востребованными инженерами и разработчиками и с большей уверенностью браться за широкий спектр программных проектов.
Практичный Linux DevOps - это идеальный помощник для тех, кто хочет научиться создавать системы с помощью утилит и ознакомиться с современными аппаратными и программными практиками.
Что вы узнаете
Настройка среды виртуализации и рабочей станции на базе Linux
Создайте лабораторную сеть с полностью квалифицированным доменом
Создавайте веб-приложения с помощью NGINX и LAMP
Используйте инструменты контроля версий, такие как Git
Автоматизируйте развертывание и настройку
Думайте как современный DevOps-инженер
Для кого предназначена эта книга
Новички и пользователи с небольшим опытом работы, имеющие базовые представления о командной строке Windows или Linux, а также будущие и действующие DevOps-инженеры, разработчики полного стека и другие разработчики программного обеспечения

Примеры страниц (скриншоты)

Оглавление

About the Author ...........................................................................................xi
About the Technical Reviewer ..........................................................................xiii
Introduction ..................................................................................................xv
Chapter 1: Gather Your Hardware ....................................................................1
The Basics: What You’ll Need to Build Your Linux Lab ..........................................2
Using New Equipment for Your Lab ...................................................................3
CPU Core Considerations .................................................................................4
Memory Considerations ...................................................................................5
Storage Considerations ...................................................................................6
Using Old PCs and Laptops for Your Linux Lab ....................................................7
Raspberry Pis and IoT Devices .........................................................................8
Building Your Network ....................................................................................10
Managed vs. Unmanaged Switches ..................................................................11
Using Your ISP Router ....................................................................................13
Deploy Managed and Unmanaged Switches ......................................................14
Use Network Bridges and Bonds to Improve Connectivity ...................................17
Tips for Avoiding Common Hardware Headaches ...............................................18
Reserve IP Address Pools Now, Not Later ......................................................19
Test and Document Your Configurations ........................................................19
Conclusion ...................................................................................................21
Chapter 2: Setting Up a Virtual Environment .....................................................23
About the Proxmox Virtualization Environment (PVE) ..........................................24
Set Up Proxmox .............................................................................................25
Post-install Configurations ............................................................................30
Prepare a Single-NIC Network Setup: VLAN-Aware ............................................33
Prepare a Dual-NIC Network Setup: VLAN-Aware ...............................................34
Additional Storage Considerations ......................................................................37
Thinking Ahead to Clustering .........................................................................39
Deploy Your First VM .....................................................................................41
Server Replication with Cloning and Templates ..................................................46
Deploy an LXC Template Container .....................................................................47
Set Up KVM ..................................................................................................52
Check for Virtualization Support ....................................................................54
Install KVM and Related Utilities ....................................................................55
Set Up Bridged Networking on AlmaLinux, Fedora, and openSUSE ....................56
Set Up Bridged Networking on Debian and Ubuntu Desktops ............................58
Set Up a Linux Bridge Using NetworkManager .............................................59
Set Up a Bridge Network with Netplan (Ubuntu) .................................................66
Run virt-manager and Create Your First KVM VM ..........................................68
Command-Line Deployments ..............................................................................70
The Proxmox qm Command ..........................................................................70
The KVM virt-install Command ......................................................................71
Conclusion ..........................................................................................................71
Chapter 3: Set Up a DNS Server ....................................................................73
Why It Matters .....................................................................................................73
Planning Your Network ........................................................................................74
Work with the Gear You Have ..............................................................................75
Will You Have Multiple Networks (Dual-Homed)? ...............................................75
What Domain Name Will You Use? ......................................................................76
Reserving Pools of Addresses for Static and DHCP IP Addresses ..........................77
Configure Your Routers and Switches .................................................................79
Add Internet Access to Your Private Network Switch ..........................................79
To DHCP or Not to DHCP ................................................................................82
Deploy a VM to Host Your DNS Server .................................................................84
Using a Proxmox LXC Template ...........................................................................85
Install a Base Linux Template ........................................................................86
Enable a Second Network Interface ..............................................................87
Set Up Bind ................................................................................................88
Configure named.conf ...................................................................................89
Check Your DNS Configurations .....................................................................93
Create a Forward Zone File ...........................................................................94
Create a Reverse Zone File ............................................................................95
Set Up an Optional DNS Slave Server ............................................................99
Create a Second Host ....................................................................................99
Set Up the DNS Slave Zone Entries .............................................................101
Test Your DNS Slave ....................................................................................102
Graphical DNS Deployments and Management ................................................104
Conclusion ........................................................................................................106
Chapter 4: Setting Up an Email Server .............................................................107
Set Up a DNS Server to Handle Email ...............................................................108
Install Postfix and Dovecot ................................................................................112
Install Postfix ....................................................................................................114
Install Dovecot ..................................................................................................116
Mail Server Security Considerations .................................................................117
Initial Email Service Test ...................................................................................119
Install Sendmail ...........................................................................................119
Install mailutils ............................................................................................120
Test Sending and Receiving Mail .................................................................120
Set Up an Email Client to Use the Email Server ................................................121
Install Postfix and Dovecot in a Docker Container ............................................124
Conclusion ........................................................................................................137
Chapter 5: Building a LAMP Stack: Apache and PHP ................................................139
Why LAMP? .......................................................................................................140
Configure a Web Server VM and Install the Packages ......................................140
Update Your DNS Settings to Add Websites ......................................................141
Install the Core LAMP Packages .......................................................................143
Create Two Web Server Directories ...................................................................144
Define Two Different Websites in Apache ..........................................................145
Finalize Settings for the First Website ..............................................................148
Configure Apache to Serve Up the Website Properly ........................................149
Create and Enable the Second Website ............................................................150
Take a Snapshot to Preserve Your Configuration ..............................................153
Use PHP with Your Website ...............................................................................154
Test the PHP Installation ..............................................................................154
Install RainLoop Webmail ..................................................................................157
Set Up RainLoop ..........................................................................................157
Set RainLoop Permissions ...........................................................................158
Configure RainLoop via the Admin Panel .....................................................158
Deploy Apache, PHP, and RainLoop as Docker Containers ................................161
How the Containers Interact ........................................................................161
Prepare the Docker Host .............................................................................162
Create a Docker Context for RainLoop .........................................................162
Add Additional Docker Containers to the RainLoop Application ........................165
Start the Multicontainer RainLoop Docker Application .....................................168
Troubleshoot the Docker Deployment ..........................................................169
Conclusion ........................................................................................................170
Chapter 6: Installing MariaDB and Creating a Simple Web
Application .....................................................................................................171
Set Up and Log In to MariaDB ...........................................................................172
Basic SQL Commands .......................................................................................175
Create MariaDB Users and Set Permissions .....................................................177
Create a Test MariaDB Database .......................................................................179
Create and Populate a Database Table .............................................................181
Add Data to a Table ...........................................................................................184
Update Table Entries .........................................................................................186
Delete Table Entries ..........................................................................................188
Read MariaDB Data with PHP ...........................................................................189
Containerize It ...................................................................................................192
Create the PHP Container ..................................................................................192
Create MariaDB and Adminer ............................................................................193
Launch Your Containerized Stack ......................................................................197
Try Out Adminer ................................................................................................199
Conclusion ........................................................................................................200
Chapter 7: Web Server Alternatives .....................................................................203
Deploy WordPress .............................................................................................204
Create a WordPress System User ................................................................207
Finish the WordPress Installation ................................................................207
Install and Configure NGINX ..............................................................................209
Manually Install NGINX ................................................................................209
Configure NGINX ..........................................................................................210
Install NGINX Using a Proxmox Template ..........................................................213
When a Little HTTP Is All You Need ...................................................................216
Python 3 http.server ....................................................................................216
Use the PHP CLI Built-In Server ...................................................................217
Run php-cli in a Container ...........................................................................218
Conclusion ........................................................................................................220
Chapter 8: Containerizing and Automating Your Deployments ..........................221
Thinking in terms of Containers and Microservices .........................................223
Deploy an NGINX Container .........................................................................224
Automate Your NGINX Deployment ....................................................................226
Automate with Ansible .................................................................................227
Ansible Playbook Example ...........................................................................229
Apply the NGINX Playbook ...........................................................................233
Automate NGINX with Chef ...............................................................................234
Create a Chef Cookbook and Recipes .........................................................235
Create a Chef Recipe ...................................................................................237
Create Templates .........................................................................................241
Create a Chef InSpec Profile ........................................................................244
Apply and Test Your Chef Configuration .......................................................246
Test with Test Kitchen ..................................................................................249
Conclusion ...................................................................................................252
Chapter 9: Server Management and Maintenance ..............................................253
A Closer Look at Webmin ..................................................................................254
Deploy Webmin with Chef .................................................................................257
Verify Your Webmin Installation .........................................................................257
Set Up Webmin for Multiple-Server Management ............................................260
Add Other Webmin Servers .........................................................................260
Add Cluster Capabilities ..............................................................................262
Test Some Cluster Actions ...........................................................................264
A More DevOps Way to Analyze Systems ..........................................................265
Use Chef InSpec to Scan Systems ...............................................................265
Apply a Linux Benchmark Profile .................................................................266
Create an InSpec Waiver File .......................................................................267
Other Ways to Apply InSpec Profiles .................................................................272
Apply an InSpec Profile via the Chef Supermarket ......................................272
Create and Apply Your Own InSpec Profile ..................................................272
Some Useful Backup Tools ................................................................................274
Set Up Proxmox Replication ........................................................................274
Back Up MariaDB Data ................................................................................275
Use Git to Store Your Code ...........................................................................276
Conclusion ........................................................................................................277
Chapter 10: Extend Your DevOps Capabilities with Git ............................................279
Get Started with Git ...........................................................................................280
Create a GitHub Account ..............................................................................280
The Advantage of SSH for Pushing ..............................................................284
Create a New Git Repo ................................................................................284
Create Some Content ...................................................................................286
Share Your Code ..........................................................................................291
Create a GitLab Host .........................................................................................295
Generate an SSL Key ...................................................................................298
Use Your New GitLab Repo ..........................................................................302
Other GitLab Capabilities ..................................................................................303
A Bit on CI/CD ..............................................................................................303
Create a GitLab Runner ...............................................................................304
Register Your Runner with Your GitLab Instance .........................................305
Create a Pipeline .........................................................................................306
Conclusion ........................................................................................................310
Chapter 11: Automate System Deployments with Terraform .....................................311
Install Terraform ................................................................................................312
A Terraform Example with Docker ....................................................................313
Use Git to Track Your Work ...........................................................................315
Terraform Your First Bit of Infrastructure ........................................................316
Use Terraform with Proxmox ........................................................................317
Configure Proxmox to Work with Terraform ....................................................317
Create a variables.tf File ..............................................................................319
Create Your LXC with Terraform ...................................................................325
Make Updates or Destroy It All ....................................................................326
Conclusion ................................................................................................327
Index .......................................................................................................329
 

Current time is: 11-Jul 13:38

All times are UTC + 2