Book Image

Troubleshooting Ubuntu Server

By : Skanda Bhargav
Book Image

Troubleshooting Ubuntu Server

By: Skanda Bhargav

Overview of this book

Table of Contents (16 chapters)
Troubleshooting Ubuntu Server
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Preface

The mission of this book is to simplify the tasks of an administrator and equip them with the tools to win the battle not once, not twice, but each time the server acts in a way that is not in accordance with the usual behavior. This book will help administrators ensure that the servers do not face even a nanosecond of outage as businesses in today's world are entirely dependent on these machines.

After reading and following the guidelines carefully, you will be able to identify the problems in Ubuntu Server, diagnose the causes, and rectify them. The areas this book intends to cover are networks, CPU, memory, and handling cloud computing-related issues using OpenStack.

What this book covers

Chapter 1, Package Management, covers the different ways software can be installed, configured, upgraded, and removed using package management tools. There are various ways and tools to do this. Technical topics that are covered in this chapter are dpkg, aptitude, and apt-get, which are the command-line utilities used to automate some of the package management tasks. You will learn the various tools and methodologies to handle software, such as the command-line tools, as well as GUI for the installation, mirroring, upgrade, and removal of software along with their dependencies.

Chapter 2, Networking and DNS, deals with networking. This chapter covers how to understand, configure, and troubleshoot network-related issues. This is a very brief introduction to networking and handling wired and wireless networking. This chapter covers DNS setup, networking concepts, interface configuration, DHCP, network sniffing, binding, and bonding. Regarding DNS, the topics covered are forward zone, reverse zone, and configuring the primary master and secondary master. You will learn the networking concepts, which are key to diagnosing and rectifying networking issues in Ubuntu Server. It also covers the configuration of DHCP, DNS, and interfaces.

Chapter 3, Network Authentication, deals with network authentication for managing users' access to other systems in a secure way. It covers the different tools and methods for letting users access systems and services with restricted authentication. The technical topics covered are OpenLDAP, Kerberos, Kerberos with LDAP, NIS, Samba (optional), PAM, SSH, public and private keys, the RSA and DSA algorithms, passwordless SSH, X forwarding, and sshd. You will be able to set up and manage the users' access to systems and services as well as install, configure, and troubleshoot the services and tools.

Chapter 4, Monitoring and Optimization, deals with monitoring various resources on the server and load balancing with tools. This chapter also covers Nagios, Munin, Puppet, and ClusterSSH. System monitoring, CPU load, storage, networks, memory, resource monitoring, load balancing with IPVS, and ldirectord are also covered in this chapter. You will learn about resource monitoring for CPU, memory, and networks.

Chapter 5, Process Management, covers all the processes, their states, and how to manage them by using the command-line tools. The topics that are covered are ps, top, renice, kill, $$ and $PPID, job, fg, queues, process switching, process priority, and background jobs. You will learn how to handle process management using the command-line tools.

Chapter 6, Shell Management, Tools, and User Management, discusses shell, shell management tools, and user management. Topics such as the Secure Shell server, scheduling using cron, shell optimization, file management and permissions, bash functions, managing user accounts, user properties, and temporary disabling are covered in this chapter. You will learn how to use shell effectively, secure user management, and set user properties.

Chapter 7, Virtualization, explains how virtualization helps administrators separate the services and keep the working environment safe from the development environment. Topics such as KVM, Xen, and Qemu are addressed. You will learn about virtualization, its pros and cons, setting up KVM, and Xen.

Chapter 8, OpenStack with Ubuntu, deals with using OpenStack with Ubuntu Server, understanding the environment, architecture, and the host of services. The topics covered are the OpenStack environment, OpenStack architecture, and a host of services, such as Image, Identity, Networking components, Compute, Object Storage, Block Storage, and dashboard. You will learn how to use OpenStack, its environment, and architecture, along with the Ubuntu Server integration.

Chapter 9, OpenStack and Ubuntu Best Practices, discusses the various components of OpenStack, such as Data Processing, Database, Telemetry, and Orchestration. Some of the best practices for using Ubuntu Server are also discussed in this chapter.

What you need for this book

You will need an active Internet connection and a bootable image of Ubuntu Server 14.04. All the required packages will be downloaded from the Internet.

Who this book is for

This book is aimed at making the life of server administrators easier by helping them solve the various errors and issues encountered in Ubuntu Server and OpenStack. This book is intended for the people who handle the critical tasks of administrating mission critical servers running on Linux. In today's world of free and open source software (FOSS) technology, Ubuntu has emerged as one of the favorite Linux flavors of both desktop users and administrators alike. The easy-to-use GUI and the powerful built-in security features of Ubuntu are enough to convince tech enthusiasts to adopt it. A large scale use and implementation of Ubuntu on servers has given rise to a vast army of Linux administrators who battle day in and day out to make sure that the systems are in the right frame of operation and preempt any untoward incidents that may result in catastrophes for the businesses using them.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The apt-get check command is a diagnostic tool for package management."

A block of code is set as follows:

zone "ubuntuserver.org" {
  type slave;
  file "sec.ubuntuserver.org";
  masters {10.200.12.68;};
};

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

sudo apt-cache rdepends ssl-cert

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The second line, New Packages, shows the number of packages that are new and can be installed on your Ubuntu Server."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.