Book description
Your one-stop resource to learn, configure and use Ubuntu 22.04 for your day-to-day operations and deployments. Purchase of the print or Kindle book includes a free eBook in PDF format.
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.
Table of contents
- Preface
- Deploying Ubuntu Server
-
Managing Users and Permissions
- Understanding the purpose of users and groups
- Understanding when to use root
- Creating and removing users
- Understanding the /etc/passwd and /etc/shadow files
- Distributing default configuration files with /etc/skel
- Switching users
- Managing groups
- Managing passwords and password policies
- Configuring administrator access with sudo
- Setting permissions on files and directories
- Summary
- Relevant videos
- Further reading
-
Managing Software Packages
- Understanding Linux package management
- Understanding the differences between Debian and Snap packages
- Installing and removing software
- Searching for packages
- Managing package repositories
- Backing up and restoring Debian packages
- Cleaning up orphaned apt packages
- Taking advantage of hardware enablement updates
- Summary
- Relevant video
- Further reading
- Navigating and Essential Commands
- Managing Files and Directories
- Boosting Your Command-line Efficiency
- Controlling and Managing Processes
- Monitoring System Resources
- Managing Storage Volumes
- Connecting to Networks
- Setting Up Network Services
- Sharing and Transferring Files
- Managing Databases
- Serving Web Content
- Automating Server Configuration with Ansible
- Virtualization
- Running Containers
- Container Orchestration
-
Deploying Ubuntu in the Cloud
- Understanding the difference between on-premises and cloud infrastructure
- Important considerations when considering cloud computing as a potential solution
- Becoming familiar with some basic AWS concepts
- Creating an AWS account
- Choosing a region
- Deploying Ubuntu as an AWS EC2 instance
- Creating and deploying Ubuntu AMIs
- Automatically scaling Ubuntu EC2 deployments with Auto Scaling
- Keeping costs down: understanding how to save money and make cost-effective decisions
- Taking the cloud further: additional resources to grow your knowledge
- Summary
- Further reading
-
Automating Cloud Deployments with Terraform
- Why it’s important to automate your infrastructure
- Introduction to Terraform and how it can fit within your workflow
- Installing Terraform
- Automating an EC2 instance deployment
- Managing security groups with Terraform
- Using Terraform to destroy unused resources
- Combining Ansible with Terraform for a full deployment solution
- Summary
-
Securing Your Server
- Lowering your attack surface
- Understanding and responding to CVEs
- Installing security updates
- Automatically installing patches with the Canonical Livepatch service
- Securing OpenSSH
- Installing and configuring Fail2ban
- MariaDB best practices for secure database servers
- Setting up a firewall
- Encrypting and decrypting disks with LUKS
- Locking down sudo
- Summary
- Further reading
- Troubleshooting Ubuntu Servers
- Preventing Disasters
- Other Books You May Enjoy
- Index
Product information
- Title: Mastering Ubuntu Server - Fourth Edition
- Author(s):
- Release date: September 2022
- Publisher(s): Packt Publishing
- ISBN: 9781803234243
You might also like
book
Mastering Ubuntu Server - Third Edition
This is the third edition of the bestselling one-stop resource for sysadmins and DevOps professionals to …
video
Linux Fundamentals
The second edition of this video title is available. Please go to Linux Fundamentals, 2nd Edition …
book
Linux Basics for Hackers
If you’re getting started along the exciting path of hacking, cybersecurity, and pentesting, Linux Basics for …
book
The Linux Command Line, 2nd Edition
The Linux Command Line takes you from your very first terminal keystrokes to writing full programs …