Ubuntu Server Guide Ubuntu Server Guide Copyright © 2010 Canonical Ltd
Total Page:16
File Type:pdf, Size:1020Kb
Ubuntu Server Guide Ubuntu Server Guide Copyright © 2010 Canonical Ltd. and members of the Ubuntu Documentation Project3 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). For a list of contributors, see the contributors page1 This document is made available under the Creative Commons ShareAlike 2.5 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 License2. 3 https://launchpad.net/~ubuntu-core-doc 1 ../../libs/C/contributors.xml 2 /usr/share/ubuntu-docs/libs/C/ccbysa.xml 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 3. Package Management ........................................................................................................... 17 1. Introduction ................................................................................................................. 18 2. dpkg ............................................................................................................................ 19 3. Apt-Get ........................................................................................................................ 20 4. Aptitude ....................................................................................................................... 22 5. Automatic Updates ....................................................................................................... 24 6. Configuration ............................................................................................................... 26 7. References ................................................................................................................... 28 4. Networking .......................................................................................................................... 29 1. Network Configuration ................................................................................................. 30 2. TCP/IP ......................................................................................................................... 38 3. Dynamic Host Configuration Protocol (DHCP) .............................................................. 42 4. Time Synchronisation with NTP ................................................................................... 45 5. Remote Administration ......................................................................................................... 47 1. OpenSSH Server .......................................................................................................... 48 2. eBox ............................................................................................................................ 51 6. Network Authentication ........................................................................................................ 54 1. OpenLDAP Server ....................................................................................................... 55 2. Samba and LDAP ........................................................................................................ 74 3. Kerberos ...................................................................................................................... 79 4. Kerberos and LDAP ..................................................................................................... 86 7. Domain Name Service (DNS) ............................................................................................... 92 1. Installation ................................................................................................................... 93 2. Configuration ............................................................................................................... 94 3. Troubleshooting ........................................................................................................... 99 4. References ................................................................................................................. 103 8. Security ............................................................................................................................. 104 1. User Management ....................................................................................................... 105 2. Console Security ........................................................................................................ 111 3. Firewall ...................................................................................................................... 112 4. AppArmor .................................................................................................................. 119 5. Certificates ................................................................................................................. 123 6. eCryptfs ..................................................................................................................... 128 iii Ubuntu Server Guide 9. Monitoring ......................................................................................................................... 130 1. Overview ................................................................................................................... 131 2. Nagios ....................................................................................................................... 132 3. Munin ........................................................................................................................ 136 10. Web Servers ..................................................................................................................... 138 1. HTTPD - Apache2 Web Server ................................................................................... 139 2. PHP5 - Scripting Language ......................................................................................... 146 3. Squid - Proxy Server .................................................................................................. 148 4. Ruby on Rails ............................................................................................................ 150 5. Apache Tomcat .......................................................................................................... 152 11. Databases ......................................................................................................................... 156 1. MySQL ...................................................................................................................... 157 2. PostgreSQL ................................................................................................................ 159 12. LAMP Applications .......................................................................................................... 161 1. Overview ................................................................................................................... 162 2. Moin Moin ................................................................................................................. 163 3. MediaWiki ................................................................................................................. 165 4. phpMyAdmin ............................................................................................................. 167 13. File Servers ...................................................................................................................... 169 1. FTP Server ................................................................................................................. 170 2. Network File System (NFS) ........................................................................................ 174 3. CUPS - Print Server ................................................................................................... 176 14. Email Services .................................................................................................................. 179 1. Postfix ......................................................................................................................