O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ubuntu Server Essentials

Book Description

Unleash the true potential of Ubuntu Server in your production environment using this administration guide

About This Book

  • Learn how to deploy and configure Ubuntu servers and work with cloud and hyper-visors
  • Optimize network traffic to broadcast and multicast the traffic flow in OpenStack clouds
  • Discover the essentials of the latest version of Ubuntu, which are good in both looks and performance, using this fast-paced guide

Who This Book Is For

This book is for system administrators who are familiar with the fundamentals of the Linux operating system and are looking for a fast-paced guide on Ubuntu, and those who are familiar with the older versions of Ubuntu and want to get up to scratch. Basic knowledge of Linux administration is assumed.

What You Will Learn

  • Install and set up Ubuntu Server in the shortest possible time, manually as well as in an automated way, for a single server or hundreds of servers
  • Discover the fundamentals of the Ubuntu command-line interface
  • Configure and administer Ubuntu Server using networking and CLI
  • Deploy servers on Ubuntu in the simplest and fastest ways
  • Enhance security within Ubuntu Server using tools such as firewalls, IDS, and IPS and procedures such as restore, rescue, and recovery
  • Work with virtualization, clouds, and one of the best in open source cloud computing —OpenStack
  • Optimize CLI for grep and exec commands and gain some best tips and tricks for Ubuntu Server administration

In Detail

Ubuntu is a Debian-based Linux operating system built on top of the Debian architecture. It is used to make operating systems for multiple platforms, including phones, desktops, TVs and mobiles. It has made some serious progress in the realms of efficiency and user friendliness.

With evolving technology trends, demands on software have changed, with more and more skilled users. Over the past few years, services such as Facebook, Twitter, and push notifications on smartphones mean that users are used to being up to date with everything that happens all the time. With SignalR, the applications stay connected and will generate notifications when something happens either from the system or by other users. This provides new opportunities for the system administrators, to enter this new and exciting world of real-time application development.

This is a concise and a cost-friendly guide, packed with up-to-date essentials on Ubuntu Server fundamentals.

It will guide you through deploying and configuring Ubuntu servers in your office environments. You’ll start by installing Ubuntu Server, then move to the most useful aspect —the command-line interface inside it. You’ll extend your knowledge by learning how to administrate and configure Ubuntu Server. You will also see how to deploy services on Ubuntu Server and find out how to secure it. You’ll get to grips with the virtualization and cloud computing facilities provided by Ubuntu, and finally, you’ll gain some very useful tips.

Style and approach

This concise and easy-to-follow guide follows a step-by-step approach to help you master Ubuntu server, no matter what your level of expertise it. Each topic is explained sequentially with both essential information and whenever needed, in-depth references.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Ubuntu Server Essentials
    1. Table of Contents
    2. Ubuntu Server Essentials
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. The Ubuntu Server Installation
      1. Preparation before the installation
        1. The latest Ubuntu release
        2. System requirements
        3. Additional resources
      2. The manual installation
        1. A simple installation from a CD
        2. Upgrading from an old release
      3. The advanced installation
        1. Using RAID
        2. Using LVM
      4. The automated installation
        1. The PXE process
          1. The PXE installation procedure
        2. Additional resources
      5. Summary
    9. 2. Configuring and Administering Ubuntu Server
      1. Administering using the command line
      2. The package management for an Ubuntu Server
        1. Package repositories
        2. Package management utilities
          1. The dpkg tool
          2. The aptitude tool
          3. The apt tools
        3. Adding software collections using tasksel
      3. The network configuration for an Ubuntu Server
        1. The configuration files
        2. The network utilities
      4. Performing essential system administration tasks
        1. Monitoring resources
        2. Processes management
        3. Scheduling the processes that need to be run
      5. Summary
    10. 3. Deploying Servers on Ubuntu
      1. Deploying an OpenSSH server
        1. Installing the OpenSSH server
        2. Configuring the OpenSSH server
      2. Setting up a DNS server
        1. The BIND installation
          1. Ubuntu's BIND conventions
        2. Configuring BIND
        3. Zone file configuration
        4. DNS redundancy
        5. DNS testing
      3. Turning on a web server
        1. The LAMP Installation
          1. Ubuntu's LAMP Conventions
        2. Apache management and testing
          1. apache2ctl
          2. Stopping Apache gracefully
          3. Diagnostic apache2ctl commands
      4. Deploying an e-mail server
        1. The MTA server
          1. Installing Postfix
          2. Managing Postfix

        2. The MDA server
      5. Filters and security for an e-mail server
        1. Other facilities
      6. Setting up a database server
        1. The MySQL server
        2. The Postgre server
      7. Setting up a DHCP server
        1. Installing DHCP
        2. Ubuntu DHCP Conventions
        3. Configuring DHCP
      8. Installing a file server
        1. The FTP server
        2. The Samba server
      9. Summary
    11. 4. Security with Ubuntu
      1. The basic security settings
        1. Managing users
          1. User account administration
          2. Password administration
          3. Permission settings
            1. File ownership
            2. Configuring permissions
        2. Applying quota to user accounts
      2. Configuring administration tasks with sudo
        1. Configuring the AppArmor tool
      3. Advanced security configuration
        1. SSH security enhancement
        2. Configuring firewalls
      4. Backuping and restoring
        1. The principles of backup
        2. Drive imaging
        3. Database backups
        4. Backup tools
      5. Summary
    12. 5. Virtualization and Cloud Computing inside the Ubuntu Server
      1. Virtualization
        1. An introduction to virtualization
        2. The benefits of virtualization
        3. Different techniques of virtualization
          1. Type 1 hypervisor
          2. Type 2 hypervisor
          3. An isolator
        4. The different approaches towards virtualization
          1. Paravirtualization
          2. Full virtualization
        5. KVM (Kernel-based Virtual Machine)
          1. Prerequisites
          2. Configuring the KVM networking
          3. The KVM installation
          4. Managing virtual machines
        6. XenServer
          1. Prerequisites
          2. Installing XenServer
          3. The networking concept in a XenServer environment
          4. Managing virtual machines
        7. An introduction to Docker
          1. How Docker works
          2. Installing Docker
          3. Using Docker
      2. Cloud computing for the Ubuntu Server
        1. The ownCloud software
          1. The technology used in ownCloud
          2. The ownCloud server installation
        2. CozyCloud
          1. Installing CozyCloud on Ubuntu Server
          2. Using CozyCloud
        3. OpenStack
          1. OpenStack tools
            1. Juju
            2. MAAS
            3. Landscape
            4. LXD
            5. Snappy
          2. The OpenStack setup
          3. Installing OpenStack using DevStack
          4. The manual installation
      3. Summary
    13. 6. Tips and Tricks for Ubuntu Server
      1. General tips
        1. Ubuntu Server CLI tips and tricks
        2. How to prevent server daemons from starting during installation
        3. How to move or copy a directory
        4. System resource limits
        5. Running a command over and over
      2. Troubleshooting tips
        1. Customizing log rotation on Ubuntu Server
        2. The main system log files
        3. Checking opened files
        4. Getting information from /proc
        5. Recovering the root password under Ubuntu Server
      3. Useful tools and utilities
        1. NetHogs, a network monitoring tool
        2. vnStat, a network monitoring tool
        3. Tailing multiple files using multitail
        4. The program cockpit – a remote manager for Ubuntu servers
        5. Webmin: the famous system administration tool
        6. Using the uvtool program and extending the use of Cloud images
      4. Summary
    14. Index