Oracle Linux Cookbook - Erik Benner - E-Book

Oracle Linux Cookbook E-Book

Erik Benner

0,0
35,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Discover the power of Oracle Linux 8, the free and enterprise-grade Linux distribution designed for use in any environment, with this recipe-style book.
Starting with instructions on how to obtain Oracle Linux for both X86 and ARM-based platforms, this book walks you through various installation methods, from running it as a Windows service to installing it on a Raspberry Pi. It unravels advanced topics such as system upgrades using Leapp for major version transitions and using a PXE server and kickstart files for more advanced installations. The book then delves into swapping kernels to take advantage of Oracle’s UEK, exploring boot options, managing software with DNF, and achieving high availability. Detailed recipes involving security topics will assist with tasks such as data encryption, both at rest and in motion.
For developers, it offers guidance on building RPM files, using Docker and Podman in a containerized environment, working with AppStreams, and more. For large-scale deployments, the book introduces Oracle Linux Automation Manager for enterprise-level Ansible utilization, from setting up the Ansible server to basic playbook writing. Finally, you’ll discover strategies for cloud migration.
By the end of this book, you’ll possess a comprehensive toolkit that will elevate your skills as a Linux administrator.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB

Seitenzahl: 511

Veröffentlichungsjahr: 2024

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Oracle Linux Cookbook

Embrace Oracle Linux and master Linux Server Management

Erik Benner

Erik B. Thomsen

Jonathan Spindel

BIRMINGHAM—MUMBAI

Oracle Linux Cookbook

Copyright © 2024 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Group Product Manager: Pavan Ramchandani

Publishing Product Manager: Neha Sharma

Book Project Manager: Neil Dmello

Senior Editor: Romy Dias

Technical Editor: Rajat Sharma

Copy Editor: Safis Editing

Language Support Editor: Safis Editing

Proofreader: Safis Editing

Indexer: Subalakshmi Govindhan

Production Designer: Nilesh Mohite

DevRel Marketing Coordinator: Marylou Dmello

First published: January 2024

Production reference: 1221223

Published by Packt Publishing Ltd.

Grosvenor House

11 St Paul’s Square

Birmingham

B3 1RB, UK

ISBN 978-1-80324-928-5

www.packtpub.com

To Wim Coekaerts, Robert Shimp, Jim Wright, and the Oracle Product Management team, which works to keep Oracle Linux free to download, free to distribute, and free to use.

Foreword

This book is for systems administrators who are either interested in, looking to switch to, or have chosen Oracle Linux for their IT infrastructure. Welcome!

Oracle Linux Cookbook brings together two great technologists (Erik Benner and Erik Thomsen) serving up a generous helping of Linux know-how that will have you hungry for more. The Eriks share their combined knowledge and experience through easy-to-follow steps, troubleshooting tips, and tested best practices that can help you master adopting and managing your Oracle Linux systems.

I’ve had the pleasure of knowing Erik Benner for many years, as we’ve both worked with (or in my case, at) Oracle since the mid-late 1990s. Erik is well versed in core Oracle technologies, including Oracle Linux, Oracle Cloud, and Oracle Database. His experience in creating, delivering, and managing Oracle-based solutions spans government and commercial customers of all sizes, which means he’s dealt with nearly everything imaginable when it comes to technology implementations—from those that deserved a Michelin star rating to those he’s had to save from being undercooked catastrophes.

A member of the Oracle Linux team, Erik B. Thomsen started his software career while on active duty in the US Air Force. There, he sought creative, out-of-the-box ways to solve problems, including using database technology. He sharpened his skills at a global aerospace company where his passion for Linux and open source software took hold. He has held positions including as a DBA, product manager, and DevOps engineer. Erik is passionate about delivering finely assembled technological solutions and writing thorough procedural documentation, akin to a masterful recipe. He has proved his mettle helping customers streamline processes and achieve outstanding results.

Jonathan Spindel is a seasoned technologist and an Oracle subject matter expert, with more than 23 years of experience providing end-to-end management and delivering turnkey cloud solutions. This, coupled with his expertise in automation leads to high quality processes and satisfied customers.

Oracle Linux Cookbook covers a wide range of topics: from installation and upgrades to software management and security to storage and containers. Several Oracle Linux ingredients are detailed, such as the Unbreakable Enterprise Kernel, Red Hat Compatible Kernel, Btrfs, Leapp, and Podman. A chapter is dedicated to the use of Oracle Ksplice to help you improve system security. Guides to building an operational Preboot Execution Environment (PXE) are provided and Application Streams are described in depth. You will also discover how to automate tasks with Ansible and Terraform and build RPM packages for custom applications.

After reading this book, you’ll have a solid understanding of Oracle Linux and how to use it to optimize server performance, availability, and security—in addition to getting a taste of what makes it unique among Enterprise Linux distributions. In my decades of working with our customers, they consistently say that performance, stability, and security are the key reasons they’ve become Oracle Linux connoisseurs. I hope you’ll join them.

Whether you’re new to Oracle Linux or an experienced systems administrator continuing to sharpen your skills, this is an excellent reference book and one that should become an indispensable addition to your bookshelf.

It’s time to get cooking with Oracle Linux.

Robert G. Shimp,

Senior Vice President,

Infrastructure Software Product Management, Oracle

Contributors

About the authors

Erik Benner is the VP of Enterprise Transformation and an Oracle ACE director. He is an expert strategist for customers across the United States. His customer engagements range from enterprise cloud transformations to data center consolidation and modernization. He frequently presents at conferences such as Oracle CloudWorld, ASCEND, BLUEPRINT 4D, and FOSSY. Having worked with Oracle and Sun Systems since the mid-90s, Erik is well-versed in most of the core Oracle technologies, including Oracle Cloud, Oracle Linux, and Oracle Database. When not flying to far points of the country from the Metro Atlanta area, he enjoys spending time with his family at their observatory, where the telescopes outnumber the people.

This book is for all the family members who felt left out when the last one was dedicated to someone from work. I also want to thank Sloan Frey for supporting my after-hours efforts. 😊

Erik B. Thomsen is a principal sales consultant passionate about Linux, cloud-native technologies, and “Everything as Code.” He is an innovative strategist with extensive experience working in multiple facets of IT, including DevSecOps, product management for databases and Linux, and platform engineering, where he led the development of an enterprise Kubernetes container platform. He has many years of consulting experience working for numerous Fortune 500 companies. Often described as a “visionary” or “thought leader” by his peers, Erik leverages his expertise in technology with his creative development and automation skills to help customers design, deploy, and manage cutting-edge IT solutions.

I dedicate this book to my parents, wife, and children. To my parents, thank you for always believing in me and teaching me there are no limits if we have the right mindset. To my wife, for all your support in proofreading my work and letting me geek out on my hobbies. To my children, for giving me some of the most joyous moments of my life that I will forever cherish. I love you all.

Jonathan Spindel is a highly skilled and experienced technology leader and evangelist with a strong emphasis on Oracle ecosystems cloud infrastructure and automation. With over 23 years in the industry, he possesses a comprehensive understanding of managing, designing, and deploying multi-tenant enterprise systems and cloud solutions to address business needs and enhance operational processes. Jonathan excels in providing end-to-end management and technical turnkey cloud solutions that drive increased business productivity and reduce operational costs, ultimately delivering timely returns on investment. His hands-on approach and deep expertise in Oracle and mainstream infrastructure and cloud technologies enable him to optimize performance and streamline operations, while his proficiency in automation ensures efficient and error-free processes.

To my amazing parents, whose love and sacrifice have been the foundation of my life. Your unwavering support and belief in me have fueled my aspirations. To my loving wife, your unwavering presence, love, and encouragement have been my anchor in the stormy seas of life. To my wonderful children, you are my greatest joy and inspiration. Every word I write, every accomplishment I achieve, is dedicated to you. This book is a tribute to the immeasurable love and gratitude I hold in my heart for each of you. Thank you for being my rock, my light, and my reason to dream.

About the reviewers

For nearly a decade, Avi Miller was one of the Oracle Linux product managers at Oracle. His experience spans the operating system, virtualization, and application stacks, having worked at both small development houses and large enterprise hardware and software vendors. These days, he does open source things for Oracle Cloud Infrastructure. At night and on weekends, his love for technology extends to annoying his husband with smart home upgrades as well as more useful stuff such as volunteering for community-based organizations.

Satishbabu Gunukula has over 23 years of experience in a wide range of technologies and specializes in highly available solutions such as databases (Oracle, MS SQL Server, SAP HANA, MySQL, etc.), data analytics, and visualization (Tableau, SAP, Microsoft, etc.), middleware, the cloud (OCI, AWS, Azure), business apps (ERP, Hyperion, Agile, etc.) and systems administration. He has implemented business-critical systems for Fortune 500 companies. He has been honored with the prestigious Oracle ACE Pro Award and World Innovation Day Hack 2023 Honorable and Finalist Mentor awards. He has done a master’s degree in computer applications, written articles for major publications, spoken at Oracle-related events, and technical reviews for five books with PACKT Publishing.

I am grateful to my whole family for providing me with support, tolerating my busy schedule, and still standing by my side.

Table of Contents

Preface

1

Oracle Linux 8 – Get It? Got It? Good!

Technical requirements

Oracle Linux 8 – which ISO is right? USB? Does anyone use DVDs?

Getting ready

How to do it…

Burning an ISO so it’s bootable

Getting ready

How to do it…

How it works…

Two for the price of one – running Oracle Linux on Windows Subsystem for Linux (WSL)

Getting ready

How to do it…

Arm'ing for the future of IT – it’s not just a slice of Raspberry Pi

Getting ready

How to do it…

Leapping from Oracle Linux 7 to 8

Getting ready

How to do it…

How it works…

There’s more…

Migrating from CentOS to Oracle Linux

CentOS is dead as we know it, have you looked at Oracle Linux yet?

Getting ready

How to do it…

How it works…

2

Installing with and without Automation Magic

Technical requirements

Automating the OS install options with kickstart

Getting ready

How to do it…

How it works…

DHCP server – more than just IPs

Getting ready

How to do it…

Setting up the web server – HTTPD

Getting ready

How to do it…

Serving up the boot – TFTPD

Getting ready

How to do it…

How it works…

Back in the day – a manual installation

Getting ready

How to do it…

How it works…

Appendix – kickstart options

3

Exploring the Various Boot Options and Kernels in Oracle Linux

Kernel basics – UEK and RHCK

Kernel basics – UEK and RHCK

Getting ready

How to do it…

How it works…

Playing with UEFI

Getting ready

How to do it…

How it works…

Playing with Secure Boot

Getting ready

How to do it…

How it works…

TrenchBoot – improving boot security and integrity

How it works…

Removing the RHCK

Getting ready

How to do it…

4

Creating and Managing Single-Instance Filesystems

Technical requirements

What you need to know about local filesystems

Getting ready

How to do it…

How it works…

Btrfs – creating, resizing, and monitoring

Getting ready

How to do it…

How it works…

Btrfs – subvolumes, snapshots, quotas, and more

Getting ready

How to do it…

There’s more…

Protecting data with mdadm – a software RAID solution

Getting ready

How to do it…

How it works…

Playing with logical volume management

Getting ready

How to do it…

How it works…

XFS – creating, modifying, and more

Getting ready

How to do it…

How it works…

5

Software Management with DNF

What have they done to YUM, moving to DNF?

Getting ready

How to do it…

Using the DNF time machine

Getting ready

How to do it…

Building a DNF/YUM mirror from ULN

Getting ready

How to do it…

Creating a new RPM package

Getting ready

How to do it…

6

Eliminating All the SPOFs! An Exercise in Redundancy

Technical requirements

Getting 99.999% availability and beyond

Getting ready

How to do it…

Load balancing a website

Getting ready

How it works…

Making HAProxy highly available with Keepalived

Getting ready

How to do it…

HA clustering for all with Corosync and Pacemaker

Getting ready

How to do it…

How it works…

Sharing a filesystem across multiple machines – cluster or distribute?

Getting ready

How to do it…

How it works…

Generating, configuring, and monitoring Ethernet traffic over bond

Getting ready

How to do it…

How it works…

7

Oracle Linux 8 – Patching Doesn’t Have to Mean Rebooting

Setting up Ksplice with internet access

What’s all the fuss about Ksplice?

Getting ready

How to do it…

How it works…

Using Ksplice with no internet access

Getting ready

How to do it…

How it works…

Installing and enabling Known Exploit Detection

Getting ready

How to do it…

How it works…

8

DevOps Automation Tools – Terraform, Ansible, Packer, and More

Technical requirements

Ansible

Packer, Vagrant, and Terraform

Downloading the source code

Do it once manually – rinse and repeat with Terraform

Getting started

How to do it…

Creating portable roles for Ansible

Getting started

How to do it…

Managing secrets with Ansible Vault

Getting started

How to do it…

Cooking up the perfect lab environment with Vagrant

Getting ready

How to do it…

Using Packer to modify source images

Getting ready

How to do it…

Pack it up, pack it in, let me begin, err, umm… build

Getting started

How to do it…

9

Keeping the Data Safe – Securing a System

Technical requirements

Signing Git commits with GPG

Getting ready

How to do it…

How it works…

Encrypting all web traffic

Getting ready

How to do it…

How it works…

Encrypting all data at rest

Getting ready

How to do it…

How it works…

Validating adherence to a compliance policy

Getting ready

How to do it…

How it works…

Port protection and restricting network access

Getting ready

How to do it…

How it works…

Keeping SELinux active

Getting ready

How to do it…

How it works…

10

Revisiting Modules and AppStreams

Technical requirements

Searching and listing AppStream modules

How to do it…

Installing applications and development tools via AppStream

How to do it…

Using AppStreams to install different versions of software

How to do it…

Removing packages via AppStream

How to do it…

There’s more…

11

Lions, Tigers, and Containers – Oh My! Podman and Friends

Technical requirements

Ridding yourself of demons – err um – daemons, with Podman

Getting ready

How to do it…

Giving your containers a root canal

Getting ready

How to do it…

Creating handy-dandy utility containers

Getting ready

How to do it…

Docker Compose with Podman

Getting ready

How to do it…

Managing stacks with pods

Getting ready

How to do it…

Containerized databases

Getting ready

How to do it…

Buildah and Skopeo – Podman’s friends with benefits

Getting ready

How to do it…

12

Navigating Ansible Waters

Installing OLAM

Getting ready

How to do it…

Zip through configuring and managing OLAM from the foundation up

Getting ready

How to do it…

OLAM isn’t fantasy football, but they both use playbooks

Getting ready

How to do it…

Controlling the patching chaos

Getting ready

How to do it…

Look beyond automation

Getting ready

How to do it…

Set it and forget it

Getting ready

How to do it…

13

Let’s All Go to the Cloud

Technical requirements

Oracle Linux in the cloud

Getting ready

How to do it…

Making Docker Desktop more manageable with Portainer

Getting ready

How to do it…

Using VirtualBox to springboard VMs to OCI

Getting ready

How to do it…

For everyone else, let’s make custom images for AWS

Getting ready

How to do it…

Index

Other Books You May Enjoy