Reader small image

You're reading from  Oracle Linux Cookbook

Product typeBook
Published inJan 2024
Reading LevelBeginner
PublisherPackt
ISBN-139781803249285
Edition1st Edition
Languages
Tools
Right arrow
Authors (3):
Erik Benner
Erik Benner
author image
Erik Benner

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.
Read more about Erik Benner

Erik B. Thomsen
Erik B. Thomsen
author image
Erik B. Thomsen

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.
Read more about Erik B. Thomsen

Jonathan Spindel
Jonathan Spindel
author image
Jonathan Spindel

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.
Read more about Jonathan Spindel

View More author details
Right arrow

Preface

Enterprise Linux stands out as the premier choice for organizations seeking a robust, secure, and reliable operating system. In the realm of Linux distributions, Enterprise Linux, exemplified by distributions such as Oracle Linux and Rocky Linux, has earned its reputation as the go-to solution for businesses worldwide. This book explores the key reasons why Oracle Linux is considered the best distribution for enterprise environments and explores several technologies, including Oracle’s distribution, through a series of easy-to-follow, step-by-step examples called recipes. These recipes will teach you how to use technologies in several key areas.

Security is paramount in enterprise environments, and Oracle Linux has set the standard for robust security features. Features such as Security-Enhanced Linux (SELinux), mandatory access control, and a proactive security patching system for no-downtime patching contribute to creating a secure environment. Regular security audits and prompt zero-downtime patching help mitigate vulnerabilities, making Oracle Linux a trusted choice for handling sensitive and mission-critical data.

Enterprise Linux distributions are designed to scale seamlessly, whether on a single server or in a large-scale, clustered environment. The performance optimizations integrated into these distributions ensure that they can handle the demands of modern enterprise applications. Oracle Linux is the leader in performance, with the option to use the Oracle Unbreakable Enterprise Kernel (UEK). This book covers how to install this option and shows several of the key features it brings to the table, such as the Btrfs filesystem. We also cover availability, with more easy-to-follow recipes that cover highly available storage and application clustering.

Oracle Linux benefits from a vast ecosystem of software and applications that are certified and optimized for compatibility. This ecosystem includes database management systems, development tools, middleware, and enterprise applications, making it easier for organizations to build, deploy, and manage their software stacks. This book highlights some of these technologies that support DevOps and DevSecOps teams, such as Ansible and Podman.

Oracle Linux stands tall as the best distribution for enterprise environments due to its rock-solid stability, robust security features, scalability, comprehensive support, compliance with industry standards, and a rich ecosystem. Whether managing critical workloads, securing sensitive data, or ensuring high-performance computing, Enterprise Linux continues to be the top choice for organizations aiming for a reliable and secure operating system.

Who this book is for

This book is for Enterprise Linux admins, specifically admins that manage Oracle Enterprise Linux. Whether you are migrating from CentOS or building a new system, this book is full of useful tricks and tips. The author’s goal is to help you be a more productive admin, adding new technologies to your bag of tricks to make you stand out from the rest.

This book is for Linux system administrators and developers of applications that run on Oracle Linux 8, so you should have a basic understanding of Linux administration and be comfortable with editing configuration files.

What this book covers

Chapter 1, Oracle Linux 8 – Get It? Got It? Good!, covers how you can get Oracle Linux, upgrade Oracle Linux versions, and run them on ARM systems and the cloud!

Chapter 2, Installing with and without Automation Magic, is where we will automate the installation of Oracle Linux with PXE and kickstart the process.

Chapter 3, Exploring the Various Boot Options and Kernels in Oracle Linux, explores what a kernel is and how UEK is different.

Chapter 4, Creating and Managing Single-Instance Filesystems, provides tricks and tips to better manage Btrfs, xfs, and RAID.

Chapter 5, Software Management with DNF, we will look at how to build local reops, make custom RPMs, and better leverage DNF.

Chapter 6, Eliminate All the SPOFs! An Exercise in Redundancy, covers eliminating single points of failure through load balancing, proxies, clusters, cluster filesystems, and network redundancy options.

Chapter 7, Oracle Linux 8 – Patching Doesn’t Have to Mean Rebooting, covers how to patch without rebooting. We will also look at what Ksplice is and why you should be using it.

Chapter 8, DevOps Automation Tools – Terraform, Ansible, Packer, and More, looks at automating the management with Terraform, Vagrant, and Packer.

Chapter 9, Keeping the Data Safe – Securing a System, looks at how to keep out of the news by securing your systems. We will cover encrypting your data, using SELinux, scanning systems for vulnerabilities, and managing GPG keys for signing things.

Chapter 10, Revisiting Modules and AppStreams, looks at how AppStreams has changed software deployment and modernizing application deployments.

Chapter 11, Lions, Tigers, and Containers – Oh My! Podman and Friends, looks at what Podman is, how to use it as a Docker replacement, and how to use Podman, Buildah, and Skopeo to facilitate all your containerized needs.

Chapter 12, Navigating Ansible Waters, covers everything Ansible, from deploying Ansible at the enterprise level with Oracle Linux Automation Manager (OLAM) to writing playbooks.

Chapter 13, Let’s All Go to the Cloud, moves us to the cloud, where we will look at building custom images for AWS and OCI, as well as how to build new VMs in the cloud.

To get the most out of this book

Many of the recipes in this book can be carried out on your desktop system, leveraging Oracle VM VirtualBox to run some complex systems as VMs. We are assuming you are familiar with the basic Linux installation process and admin skills such as becoming the root user.

Software/hardware covered in the book

OS requirements

Oracle Linux 8

Oracle Linux 8

Many of these recipes assume you are the root user, and most admin tasks require this access.

If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (link available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Download the example code files

You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Oracle-Linux-Cookbook. In case there’s an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Using the .efi file gives a user more control of the boot process, including the ability to take advantage of new security features.”

A block of code is set as follows:

[ req ]
default_bits = 4096
distinguished_name = req_distinguished_name
prompt = no
string_mask = utf8only
x509_extensions = extensions

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    </Directory>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</VirtualHost>

Any command-line input or output is written as follows:

[root@ol8 # grubby --info=/boot/vmlinuz-0-rescue-c32316cc4b5241b8adb312707ae46458

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: “Select Enroll MOK from the menu.”

Tips or important notes

Appear like this.

Sections

In this book, you will find several headings that appear frequently (Getting ready, How to do it..., How it works..., There’s more..., and See also).

To give clear instructions on how to complete a recipe, use these sections as follows:

Getting ready

This section tells you what to expect in the recipe and describes how to set up any software or any preliminary settings required for the recipe.

How to do it…

This section contains the steps required to follow the recipe.

How it works…

This section usually consists of a detailed explanation of what happened in the previous section.

There’s more…

This section consists of additional information about the recipe in order to make you more knowledgeable about the recipe.

See also

This section provides helpful links to other useful information for the recipe.

Get in touch

Feedback from our readers is always welcome.

General feedback: If you have questions about any aspect of this book, mention the book title in the subject of your message and email us at customercare@packtpub.com.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/support/errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packt.com with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packt.com.

Share Your Thoughts

Once you’ve read Oracle Linux Cookbook, we’d love to hear your thoughts! Please click here to go straight to the Amazon review page for this book and share your feedback.

Your review is important to us and the tech community and will help us make sure we’re delivering excellent quality content.

Download a free PDF copy of this book

Thanks for purchasing this book!

Do you like to read on the go but are unable to carry your print books everywhere?

Is your eBook purchase not compatible with the device of your choice?

Don’t worry, now with every Packt book you get a DRM-free PDF version of that book at no cost.

Read anywhere, any place, on any device. Search, copy, and paste code from your favorite technical books directly into your application.

The perks don’t stop there, you can get exclusive access to discounts, newsletters, and great free content in your inbox daily

Follow these simple steps to get the benefits:

  1. Scan the QR code or visit the link below

https://packt.link/free-ebook/978-1-80324-928-5

  1. Submit your proof of purchase
  2. That’s it! We’ll send your free PDF and other benefits to your email directly
lock icon
The rest of the chapter is locked
You have been reading a chapter from
Oracle Linux Cookbook
Published in: Jan 2024Publisher: PacktISBN-13: 9781803249285
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (3)

author image
Erik Benner

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.
Read more about Erik Benner

author image
Erik B. Thomsen

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.
Read more about Erik B. Thomsen

author image
Jonathan Spindel

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.
Read more about Jonathan Spindel