Book description
Get up-to-date with the finer points of Ubuntu Server using this comprehensive guide
About This Book- A practical easy-to-understand book that will teach you how to deploy, maintain and troubleshoot Ubuntu Server
- Get well-versed with newly-added features in Ubuntu 18.04.
- Learn to manage cutting-edge technologies such as virtualization, containers, Nextcloud and more
This book is intended for readers with intermediate or advanced-beginner skills with Linux, who would like to learn all about setting up servers with Ubuntu Server. This book assumes that the reader knows the basics of Linux, such as editing configuration files and running basic commands.
What You Will Learn- Manage users, groups, and permissions
- Encrypt and decrypt disks with Linux Unified Key Setup (LUKS)
- Set up SSH for remote access, and connect it to other nodes
- Add, remove, and search for packages
- Use NFS and Samba to share directories with other users
- Get to know techniques for managing Apache and MariaDB
- Explore best practices and troubleshooting techniques
- Get familiar with scripting
- Automate server deployments with Ansible
Ubuntu Server has taken the data centers by storm. Whether you're deploying Ubuntu for a large-scale project or for a small office, it is a stable, customizable, and powerful Linux distribution that leads the way with innovative and cutting-edge features. For both simple and complex server deployments, Ubuntu's flexible nature can be easily adapted to meet to the needs of your organization. With this book as your guide, you will learn all about Ubuntu Server, from initial deployment to creating production-ready resources for your network. The book begins with the concept of user management, group management, and filesystem permissions. Continuing into managing storage volumes, you will learn how to format storage devices, utilize logical volume management, and monitor disk usage. Later, you will learn how to virtualize hosts and applications, which will cover setting up KVM/QEMU, as well as containerization with both Docker and LXD. As the book continues, you will learn how to automate configuration with Ansible, as well as take a look at writing scripts. Lastly, you will explore best practices and troubleshooting techniques when working with Ubuntu Server that are applicable to real-world scenarios.
By the end of the book, you will be an expert Ubuntu Server administrator who is well-versed in its advanced concepts.
Style and approachThis book is an advanced guide that will show readers how to administer, manage, and deploy Ubuntu server and will also provide expert-level knowledge on advanced security and backup techniques.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
-
Deploying Ubuntu Server
- Technical requirements
- Setting up our lab
- Determining your server's role
- Deciding between 32- and 64-bit installations
- Obtaining Ubuntu Server installation media
- Creating a bootable Ubuntu Server flash drive
- Planning the partitioning layout
- Installing Ubuntu Server
- Installing Ubuntu Server on Raspberry Pi 3
- Summary
- Questions
- Further reading
-
Managing Users
- 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
- Questions
- Further reading
-
Managing Storage Volumes
- Understanding the Linux filesystem
- Using symbolic and hard links
- Viewing disk usage
- Adding additional storage volumes
- Partitioning and formatting volumes
- Mounting and unmounting volumes
- Understanding the /etc/fstab file
- Managing swap
- Utilizing LVM volumes
- Understanding RAID
- Summary
- Questions
- Further reading
- Connecting to Networks
-
Managing Software Packages
- Understanding Linux package management
- Taking advantage of hardware enablement updates
- 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
- Making use of Aptitude
- Summary
- Questions
- Controlling and Monitoring Processes
- Setting Up Network Services
- Sharing and Transferring Files
- Managing Databases
- Serving Web Content
- Learning Advanced Shell Techniques
- Virtualization
- Running Containers
- Automating Server Configuration with Ansible
-
Securing Your Server
- Lowering your attack surface
- Understanding and responding to CVEs
- Installing security updates
- Automatically installing patches with the Canonical Livepatch service
- Monitoring Ubuntu servers with Canonical's Landscape 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
- Questions
- Further reading
- Troubleshooting Ubuntu Servers
- Preventing and Recovering from Disasters
- Using the Alternate Installer
-
Assessments
- Chapter 1 – Deploying Ubuntu Server
- Chapter 2 – Managing Users
- Chapter 3 – Managing Storage Volumes
- Chapter 4 – Connecting to Networks
- Chapter 5 – Managing Software Packages
- Chapter 6 – Controlling and Monitoring Processes
- Chapter 7 – Setting Up Network Services
- Chapter 8 - Accessing and sharing files
- Chapter 9 - Sharing and Transferring Files
- Chapter 10 – Serving Web Content
- Chapter 11 – Learning Advanced Shell Techniques
- Chapter 12 – Virtualization
- Chapter 13 – Running Containers
- Chapter 14 – Automating Server Configuration with Ansible
- Chapter 15 – Securing Your Server
- Chapter 16 – Troubleshooting Ubuntu Servers
- Chapter 17 – Preventing and Recovering from Disasters
- Other Books You May Enjoy
Product information
- Title: Mastering Ubuntu Server - Second Edition
- Author(s):
- Release date: May 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788997560
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 …
book
Linux Server Hacks, Volume Two
Today's system administrators deal with a vast number of situations, operating systems, software packages, and problems. …
book
Ubuntu Server Cookbook
Arm yourself to make the most of the versatile, powerful Ubuntu Server with over 100 hands-on …
book
CentOS 7 Linux Server Cookbook - Second Edition
Over 80 recipes to get up and running with CentOS 7 Linux server About This Book …