Ubuntu Server Guide Ubuntu Server Guide Copyright © 2016 Contributors to the Document
Total Page:16
File Type:pdf, Size:1020Kb
Ubuntu Server Guide Ubuntu Server Guide Copyright © 2016 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 https://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 Table of Contents 1. Introduction ........................................................................................................................................ 1 1. Support ...................................................................................................................................... 2 2. Installation .......................................................................................................................................... 3 1. Preparing to Install ..................................................................................................................... 4 2. Installation .................................................................................................................................. 6 3. Upgrading .................................................................................................................................. 9 4. Advanced Installation ................................................................................................................ 10 5. Kernel Crash Dump .................................................................................................................. 19 3. Package Management ........................................................................................................................ 25 1. Introduction .............................................................................................................................. 26 2. dpkg ......................................................................................................................................... 27 3. Apt ........................................................................................................................................... 28 4. Aptitude ................................................................................................................................... 30 5. Automatic Updates ................................................................................................................... 32 6. Configuration ............................................................................................................................ 34 7. References ................................................................................................................................ 36 4. Networking ....................................................................................................................................... 37 1. Network Configuration .............................................................................................................. 38 2. TCP/IP ..................................................................................................................................... 47 3. Dynamic Host Configuration Protocol (DHCP) .......................................................................... 51 4. Time Synchronisation with NTP ................................................................................................ 54 5. Data Plane Development Kit ..................................................................................................... 57 5. DM-Multipath ................................................................................................................................... 72 1. Device Mapper Multipathing ..................................................................................................... 73 2. Multipath Devices ..................................................................................................................... 76 3. Setting up DM-Multipath Overview ........................................................................................... 79 4. The DM-Multipath Configuration File ....................................................................................... 83 5. DM-Multipath Administration and Troubleshooting .................................................................... 95 6. Remote Administration .................................................................................................................... 100 1. OpenSSH Server ..................................................................................................................... 101 2. Puppet .................................................................................................................................... 104 3. Zentyal ................................................................................................................................... 107 7. Network Authentication ................................................................................................................... 111 1. OpenLDAP Server .................................................................................................................. 112 2. Samba and LDAP ................................................................................................................... 137 3. Kerberos ................................................................................................................................. 143 4. Kerberos and LDAP ................................................................................................................ 151 5. SSSD and Active Directory ..................................................................................................... 158 8. Domain Name Service (DNS) ......................................................................................................... 163 1. Installation .............................................................................................................................. 164 iii Ubuntu Server Guide 2. Configuration .......................................................................................................................... 165 3. Troubleshooting ...................................................................................................................... 171 4. References .............................................................................................................................. 175 9. Security .......................................................................................................................................... 176 1. User Management ................................................................................................................... 177 2. Console Security ..................................................................................................................... 183 3. Firewall .................................................................................................................................. 184 4. AppArmor .............................................................................................................................. 191 5. Certificates ............................................................................................................................. 195 6. eCryptfs .................................................................................................................................. 200 10. Monitoring .................................................................................................................................... 202 1. Overview ................................................................................................................................ 203 2. Nagios .................................................................................................................................... 204 3. Munin ..................................................................................................................................... 208 11. Web Servers ................................................................................................................................. 210