ubuntu server guide - ubuntu server guide iv 3. troubleshooting ... ubuntu 14.04 lts server edition

Download Ubuntu Server Guide - Ubuntu Server Guide iv 3. Troubleshooting ... Ubuntu 14.04 LTS Server Edition

If you can't read please download the document

Post on 10-Jun-2020

7 views

Category:

Documents

2 download

Embed Size (px)

TRANSCRIPT

  • Ubuntu Server Guide

  • Ubuntu Server Guide Copyright © 2014 Contributors to the document

    Abstract

    Welcome to the Ubuntu Server Guide! It contains information on how to install and configure various server

    applications on your Ubuntu system to fit your needs. It is a step-by-step, task-oriented guide for configuring

    and customizing your system.

    Credits and License

    This document is maintained by the Ubuntu documentation team (https://wiki.ubuntu.com/DocumentationTeam). A list of contributors is

    below.

    This document is made available under the Creative Commons ShareAlike 3.0 License (CC-BY-SA).

    You are free to modify, extend, and improve the Ubuntu documentation source code under the terms of this license. All derivative works

    must be released under this license.

    This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty

    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE AS DESCRIBED IN THE DISCLAIMER.

    A copy of the license is available here: Creative Commons ShareAlike License1.

    Contributors to this document are:

    • Members of the Ubuntu Documentation Project2

    • Members of the Ubuntu Server Team3

    • Contributors to the Community Help Wiki4

    • Other contributors can be found in the revision history of the serverguide5 and ubuntu-docs6 bzr branches available on Launchpad.

    1 http://creativecommons.org/licenses/by-sa/3.0/ 2 https://launchpad.net/~ubuntu-core-doc 3 https://launchpad.net/~ubuntu-server 4 https://help.ubuntu.com/community/ 5 https://bazaar.launchpad.net/~ubuntu-core-doc/serverguide/trunk/changes 6 https://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-docs/trunk/changes

    http://creativecommons.org/licenses/by-sa/3.0/ https://launchpad.net/~ubuntu-core-doc https://launchpad.net/~ubuntu-server https://help.ubuntu.com/community/ https://bazaar.launchpad.net/~ubuntu-core-doc/serverguide/trunk/changes https://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-docs/trunk/changes http://creativecommons.org/licenses/by-sa/3.0/ https://launchpad.net/~ubuntu-core-doc https://launchpad.net/~ubuntu-server https://help.ubuntu.com/community/ https://bazaar.launchpad.net/~ubuntu-core-doc/serverguide/trunk/changes https://bazaar.launchpad.net/~ubuntu-core-doc/ubuntu-docs/trunk/changes

  • iii

    Table of Contents

    1. Introduction ............................................................................................................................ 1

    1. Support ........................................................................................................................... 2

    2. Installation .............................................................................................................................. 3

    1. Preparing to Install ......................................................................................................... 4

    2. Installing from CD .......................................................................................................... 6

    3. Upgrading ....................................................................................................................... 9

    4. Advanced Installation .................................................................................................... 10

    5. Kernel Crash Dump ...................................................................................................... 17

    3. Package Management ............................................................................................................ 20

    1. Introduction .................................................................................................................. 21

    2. dpkg ............................................................................................................................. 22

    3. Apt-Get ........................................................................................................................ 23

    4. Aptitude ........................................................................................................................ 25

    5. Automatic Updates ........................................................................................................ 27

    6. Configuration ................................................................................................................ 29

    7. References .................................................................................................................... 31

    4. Networking ........................................................................................................................... 32

    1. Network Configuration .................................................................................................. 33

    2. TCP/IP ......................................................................................................................... 42

    3. Dynamic Host Configuration Protocol (DHCP) .............................................................. 46

    4. Time Synchronisation with NTP .................................................................................... 49

    5. DM-Multipath ....................................................................................................................... 51

    1. Device Mapper Multipathing ......................................................................................... 52

    2. Multipath Devices ......................................................................................................... 55

    3. Setting up DM-Multipath Overview ............................................................................... 58

    4. The DM-Multipath Configuration File ........................................................................... 62

    5. DM-Multipath Administration and Troubleshooting ........................................................ 74

    6. Remote Administration .......................................................................................................... 79

    1. OpenSSH Server ........................................................................................................... 80

    2. Puppet .......................................................................................................................... 83

    3. Zentyal ......................................................................................................................... 86

    7. Network Authentication ......................................................................................................... 90

    1. OpenLDAP Server ........................................................................................................ 91

    2. Samba and LDAP ....................................................................................................... 117

    3. Kerberos ..................................................................................................................... 123

    4. Kerberos and LDAP .................................................................................................... 131

    5. SSSD and Active Directory ......................................................................................... 138

    8. Domain Name Service (DNS) .............................................................................................. 143

    1. Installation .................................................................................................................. 144

    2. Configuration .............................................................................................................. 145

  • Ubuntu Server Guide

    iv

    3. Troubleshooting .......................................................................................................... 151

    4. References .................................................................................................................. 155

    9. Security .............................................................................................................................. 156

    1. User Management ....................................................................................................... 157

    2. Console Security ......................................................................................................... 163

    3. Firewall ...................................................................................................................... 164

    4. AppArmor .................................................................................................................. 171

    5. Certificates .................................................................................................................. 175

    6. eCryptfs ...................................................................................................................... 180

    10. Monitoring ........................................................................................................................ 182

    1. Overview .................................................................................................................... 183

    2. Nagios ........................................................................................................................ 184

    3. Munin ..............................................................................................