Product SiteDocumentation Site

Debian 8

Handbok för Debianadministratören

Debian Jessie från upptäckt till bemästrande

Utgåva 1

Raphaël Hertzog

Rättsligt Meddelande

ISBN: 979-10-91414-04-3 (Engelsk pocketbok)
ISBN: 979-10-91414-05-0 (Engelsk e-bok)
Denna bok är tillgänglig under villkoren för två licenser som är kompatibla med Debians riktlinjer för fri programvara.
Notis för Creative Commons-licens:
Denna bok är licensierad under licensen Creative Commons Attribution-ShareAlike 3.0 Unported.
Notis för GNU General Public License:
Denna bok är fri dokumentation: du får återdistributera den och/eller modifiera den under villkoren för GNU General Public License så som den publicerats av Free Software Foundation, antingen version 2 av licensen, eller (om du så väljer) en senare version.
Denna bok distribueras med förhoppningen att den kommer att vara användbar, men UTAN NÅGON SOM HELST GARANTI; inte ens den underförstådda garantin för SÄLJBARHET eller LÄMPLIGHET FÖR NÅGOT SPECIELLT ÄNDAMÅL. Se GNU General Public License för vidare detaljer.
Du borde ha erhållit en kopia av Gnu General Public License tillsammans med detta program. Om inte, se http://www.gnu.org/licenses/.

Visa din uppskattning

Denna bok har publicerats under en fri licens eftersom vi vill att alla ska kunna dra nytta av den. Med det sagt så tar det tid och energi att underhålla den, och vi hade uppskattat att bli tackade för detta. Om du tycker att boken är värdefull, överväg att bidra till dess fortsatta underhåll antingen genom att köpa en pocketbok i papper eller genom att göra en donation via bokens officiella webbplats:

Sammanfattning

En referensbok som presenterar Debian-distributionen, från inledande installation till konfiguration av tjänster.
Försättsblad
Förord
1. Varför denna bok?
2. Vem är denna bok till för?
3. Generell strategi
4. Bokens struktur
5. Tack
5.1. En liten bit historia
5.2. Födelsen av den engelska boken
5.3. Frisättningen av den franska boken
5.4. Speciellt tack till understödjare
5.5. Tack till översättare
5.6. Personliga tack från Raphaël
5.7. Personliga tack från Roland
1. Debian-projektet
1.1. Vad är Debian?
1.1.1. Ett operativsystem för flera plattformar
1.1.2. Kvaliteten på fri programvara
1.1.3. Rättslig ram: En icke-vinstdrivande organisation
1.2. Grunddokumenten
1.2.1. Förpliktelsen mot användare
1.2.2. Debians riktlinjer för fri programvara
1.3. Hur Debianprojektet fungerar internt
1.3.1. Debian-utvecklarna
1.3.2. Användarnas aktiva roll
1.3.3. Grupper och underprojekt
1.4. Följ nyheter om Debian
1.5. Distributionernas roller
1.5.1. Installationsprogrammet: debian-installer
1.5.2. Programvarubiblioteket
1.6. En utgåvas livscykel
1.6.1. Statusen Experimental
1.6.2. Statusen Unstable
1.6.3. Migration till Testing
1.6.4. Förflytta Testing till Stable
1.6.5. Status Oldstable och Oldoldstable
2. Presenting the Case Study
2.1. Fast Growing IT Needs
2.2. Master Plan
2.3. Why a GNU/Linux Distribution?
2.4. Why the Debian Distribution?
2.4.1. Commercial and Community Driven Distributions
2.5. Why Debian Jessie?
3. Analyzing the Existing Setup and Migrating
3.1. Coexistence in Heterogeneous Environments
3.1.1. Integration with Windows Machines
3.1.2. Integration with OS X machines
3.1.3. Integration with Other Linux/Unix Machines
3.2. How To Migrate
3.2.1. Survey and Identify Services
3.2.2. Backing up the Configuration
3.2.3. Taking Over an Existing Debian Server
3.2.4. Installing Debian
3.2.5. Installing and Configuring the Selected Services
4. Installation
4.1. Installation Methods
4.1.1. Installing from a CD-ROM/DVD-ROM
4.1.2. Booting from a USB Key
4.1.3. Installing through Network Booting
4.1.4. Other Installation Methods
4.2. Installing, Step by Step
4.2.1. Booting and Starting the Installer
4.2.2. Selecting the language
4.2.3. Selecting the country
4.2.4. Selecting the keyboard layout
4.2.5. Detecting Hardware
4.2.6. Loading Components
4.2.7. Detecting Network Hardware
4.2.8. Configuring the Network
4.2.9. Administrator Password
4.2.10. Creating the First User
4.2.11. Configuring the Clock
4.2.12. Detecting Disks and Other Devices
4.2.13. Starting the Partitioning Tool
4.2.14. Installing the Base System
4.2.15. Configuring the Package Manager (apt)
4.2.16. Debian Package Popularity Contest
4.2.17. Selecting Packages for Installation
4.2.18. Installing the GRUB Bootloader
4.2.19. Finishing the Installation and Rebooting
4.3. After the First Boot
4.3.1. Installing Additional Software
4.3.2. Upgrading the System
5. Packaging System: Tools and Fundamental Principles
5.1. Structure of a Binary Package
5.2. Package Meta-Information
5.2.1. Description: the control File
5.2.2. Configuration Scripts
5.2.3. Checksums, List of Configuration Files
5.3. Structure of a Source Package
5.3.1. Format
5.3.2. Usage within Debian
5.4. Manipulating Packages with dpkg
5.4.1. Installing Packages
5.4.2. Package Removal
5.4.3. Querying dpkg's Database and Inspecting .deb Files
5.4.4. dpkg's Log File
5.4.5. Multi-Arch Support
5.5. Coexistence with Other Packaging Systems
6. Underhåll och uppdateringar: APT-verktygen
6.1. Att fylla i filen sources.list
6.1.1. Syntax
6.1.2. Repositories for Stable Users
6.1.3. Repositories for Testing/Unstable Users
6.1.4. Non-Official Resources: mentors.debian.net
6.1.5. Caching Proxy for Debian Packages
6.2. aptitude, apt-get, and apt Commands
6.2.1. Initialization
6.2.2. Installing and Removing
6.2.3. System Upgrade
6.2.4. Configuration Options
6.2.5. Managing Package Priorities
6.2.6. Working with Several Distributions
6.2.7. Tracking Automatically Installed Packages
6.3. The apt-cache Command
6.4. Frontends: aptitude, synaptic
6.4.1. aptitude
6.4.2. synaptic
6.5. Checking Package Authenticity
6.6. Upgrading from One Stable Distribution to the Next
6.6.1. Recommended Procedure
6.6.2. Handling Problems after an Upgrade
6.7. Keeping a System Up to Date
6.8. Automatic Upgrades
6.8.1. Configuring dpkg
6.8.2. Configuring APT
6.8.3. Configuring debconf
6.8.4. Handling Command Line Interactions
6.8.5. The Miracle Combination
6.9. Searching for Packages
7. Solving Problems and Finding Relevant Information
7.1. Documentation Sources
7.1.1. Manual Pages
7.1.2. info Documents
7.1.3. Specific Documentation
7.1.4. Websites
7.1.5. Tutorials (HOWTO)
7.2. Common Procedures
7.2.1. Configuring a Program
7.2.2. Monitoring What Daemons Are Doing
7.2.3. Asking for Help on a Mailing List
7.2.4. Reporting a Bug When a Problem Is Too Difficult
8. Basic Configuration: Network, Accounts, Printing...
8.1. Configuring the System for Another Language
8.1.1. Setting the Default Language
8.1.2. Configuring the Keyboard
8.1.3. Migrating to UTF-8
8.2. Configuring the Network
8.2.1. Ethernet Interface
8.2.2. Connecting with PPP through a PSTN Modem
8.2.3. Connecting through an ADSL Modem
8.2.4. Automatic Network Configuration for Roaming Users
8.3. Setting the Hostname and Configuring the Name Service
8.3.1. Name Resolution
8.4. User and Group Databases
8.4.1. User List: /etc/passwd
8.4.2. The Hidden and Encrypted Password File: /etc/shadow
8.4.3. Modifying an Existing Account or Password
8.4.4. Disabling an Account
8.4.5. Group List: /etc/group
8.5. Creating Accounts
8.6. Shell Environment
8.7. Printer Configuration
8.8. Configuring the Bootloader
8.8.1. Identifying the Disks
8.8.2. Configuring LILO
8.8.3. GRUB 2 Configuration
8.8.4. For Macintosh Computers (PowerPC): Configuring Yaboot
8.9. Other Configurations: Time Synchronization, Logs, Sharing Access…
8.9.1. Timezone
8.9.2. Time Synchronization
8.9.3. Rotating Log Files
8.9.4. Sharing Administrator Rights
8.9.5. List of Mount Points
8.9.6. locate and updatedb
8.10. Compiling a Kernel
8.10.1. Introduction and Prerequisites
8.10.2. Getting the Sources
8.10.3. Configuring the Kernel
8.10.4. Compiling and Building the Package
8.10.5. Compiling External Modules
8.10.6. Applying a Kernel Patch
8.11. Installing a Kernel
8.11.1. Features of a Debian Kernel Package
8.11.2. Installing with dpkg
9. Unixtjänster
9.1. System Boot
9.1.1. Systemds init-system
9.1.2. System Vs init-system
9.2. Fjärrinloggning
9.2.1. Säker fjärrinloggning: SSH
9.2.2. Använda grafiska fjärrskrivbord
9.3. Hantera behörigheter
9.4. Adminstrationsgränssnitt
9.4.1. Administrera över ett webbgränsnitt: webmin
9.4.2. Konfigurera paket: debconf
9.5. syslog Systemhändelser
9.5.1. Princip och mekanism
9.5.2. Konfigurationsfilen
9.6. Superservern inetd Super-Server
9.7. Scheduling Tasks with cron and atd
9.7.1. Format för crontab
9.7.2. Using the at Command
9.8. Scheduling Asynchronous Tasks: anacron
9.9. Quotas
9.10. Säkerhetskopia
9.10.1. Backing Up with rsync
9.10.2. Restoring Machines without Backups
9.11. Hot Plugging: hotplug
9.11.1. Introduction
9.11.2. The Naming Problem
9.11.3. How udev Works
9.11.4. Ett konkret exempel
9.12. Power Management: Advanced Configuration and Power Interface (ACPI)
10. Network Infrastructure
10.1. Gateway
10.2. Virtual Private Network
10.2.1. OpenVPN
10.2.2. Virtual Private Network with SSH
10.2.3. IPsec
10.2.4. PPTP
10.3. Quality of Service
10.3.1. Principle and Mechanism
10.3.2. Configuring and Implementing
10.4. Dynamic Routing
10.5. IPv6
10.5.1. Tunneling
10.6. Domain Name Servers (DNS)
10.6.1. Principle and Mechanism
10.6.2. Configuring
10.7. DHCP
10.7.1. Configuring
10.7.2. DHCP and DNS
10.8. Network Diagnosis Tools
10.8.1. Local Diagnosis: netstat
10.8.2. Remote Diagnosis: nmap
10.8.3. Sniffers: tcpdump and wireshark
11. Network Services: Postfix, Apache, NFS, Samba, Squid, LDAP, SIP, XMPP, TURN
11.1. Mail Server
11.1.1. Installing Postfix
11.1.2. Configuring Virtual Domains
11.1.3. Restrictions for Receiving and Sending
11.1.4. Setting Up greylisting
11.1.5. Customizing Filters Based On the Recipient
11.1.6. Integrating an Antivirus
11.1.7. Authenticated SMTP
11.2. Web Server (HTTP)
11.2.1. Installing Apache
11.2.2. Configuring Virtual Hosts
11.2.3. Common Directives
11.2.4. Log Analyzers
11.3. FTP File Server
11.4. NFS File Server
11.4.1. Securing NFS
11.4.2. NFS Server
11.4.3. NFS Client
11.5. Setting Up Windows Shares with Samba
11.5.1. Samba Server
11.5.2. Samba Client
11.6. HTTP/FTP Proxy
11.6.1. Installing
11.6.2. Configuring a Cache
11.6.3. Configuring a Filter
11.7. LDAP Directory
11.7.1. Installing
11.7.2. Filling in the Directory
11.7.3. Managing Accounts with LDAP
11.8. Real-Time Communication Services
11.8.1. DNS settings for RTC services
11.8.2. TURN Server
11.8.3. SIP Proxy Server
11.8.4. XMPP Server
11.8.5. Running services on port 443
11.8.6. Adding WebRTC
12. Advanced Administration
12.1. RAID and LVM
12.1.1. Software RAID
12.1.2. LVM
12.1.3. RAID or LVM?
12.2. Virtualization
12.2.1. Xen
12.2.2. LXC
12.2.3. Virtualization with KVM
12.3. Automated Installation
12.3.1. Fully Automatic Installer (FAI)
12.3.2. Preseeding Debian-Installer
12.3.3. Simple-CDD: The All-In-One Solution
12.4. Monitoring
12.4.1. Setting Up Munin
12.4.2. Setting Up Nagios
13. Workstation
13.1. Configuring the X11 Server
13.2. Customizing the Graphical Interface
13.2.1. Choosing a Display Manager
13.2.2. Choosing a Window Manager
13.2.3. Menu Management
13.3. Graphical Desktops
13.3.1. GNOME
13.3.2. KDE
13.3.3. Xfce and Others
13.4. Email
13.4.1. Evolution
13.4.2. KMail
13.4.3. Thunderbird and Icedove
13.5. Web Browsers
13.6. Development
13.6.1. Tools for GTK+ on GNOME
13.6.2. Tools for Qt on KDE
13.7. Collaborative Work
13.7.1. Working in Groups: groupware
13.7.2. Collaborative Work With FusionForge
13.8. Office Suites
13.9. Emulating Windows: Wine
13.10. Real-Time Communications software
14. Security
14.1. Defining a Security Policy
14.2. Firewall or Packet Filtering
14.2.1. Netfilter Behavior
14.2.2. Syntax of iptables and ip6tables
14.2.3. Creating Rules
14.2.4. Installing the Rules at Each Boot
14.3. Supervision: Prevention, Detection, Deterrence
14.3.1. Monitoring Logs with logcheck
14.3.2. Monitoring Activity
14.3.3. Detecting Changes
14.3.4. Detecting Intrusion (IDS/NIDS)
14.4. Introduction to AppArmor
14.4.1. Principles
14.4.2. Enabling AppArmor and managing AppArmor profiles
14.4.3. Creating a new profile
14.5. Introduction to SELinux
14.5.1. Principles
14.5.2. Setting Up SELinux
14.5.3. Managing an SELinux System
14.5.4. Adapting the Rules
14.6. Other Security-Related Considerations
14.6.1. Inherent Risks of Web Applications
14.6.2. Knowing What To Expect
14.6.3. Choosing the Software Wisely
14.6.4. Managing a Machine as a Whole
14.6.5. Users Are Players
14.6.6. Physical Security
14.6.7. Legal Liability
14.7. Dealing with a Compromised Machine
14.7.1. Detecting and Seeing the Cracker's Intrusion
14.7.2. Putting the Server Off-Line
14.7.3. Keeping Everything that Could Be Used as Evidence
14.7.4. Re-installing
14.7.5. Forensic Analysis
14.7.6. Reconstituting the Attack Scenario
15. Creating a Debian Package
15.1. Rebuilding a Package from its Sources
15.1.1. Getting the Sources
15.1.2. Making Changes
15.1.3. Starting the Rebuild
15.2. Building your First Package
15.2.1. Meta-Packages or Fake Packages
15.2.2. Simple File Archive
15.3. Creating a Package Repository for APT
15.4. Becoming a Package Maintainer
15.4.1. Learning to Make Packages
15.4.2. Acceptance Process
16. Slutsats: Debians framtid
16.1. Kommande utveckling
16.2. Debians framtid
16.3. Framtiden för denna bok
A. Distributionsderivat
A.1. Räkning och samarbete
A.2. Ubuntu
A.3. Linux Mint
A.4. Knoppix
A.5. Aptosid och Siduction
A.6. Grml
A.7. Tails
A.8. Kali Linux
A.9. Devuan
A.10. Tanglu
A.11. DoudouLinux
A.12. Raspbian
A.13. Och många andra
B. Kort snabbkurs
B.1. Skalet och grundläggande kommandon
B.1.1. Att bläddra i katalogstrukturen och att hantera filer
B.1.2. Visa och modifiera textfiler
B.1.3. Att söka efter filer och inom filer
B.1.4. Hantera processer
B.1.5. Systeminformation: Minne, diskutrymme, identitet
B.2. Organisation av filsystemshierarkin
B.2.1. Rotkatalogen
B.2.2. Användarens hemkatalog
B.3. Hur en dator fungerar inuti: de olika lagren som är inblandade
B.3.1. Det djupaste lagret: hårdvaran
B.3.2. Uppstartaren: BIOS eller UEFI
B.3.3. Kärnan
B.3.4. Användarrymden
B.4. Vissa uppgifter hanteras av kärnan
B.4.1. Köra hårdvaran
B.4.2. Filsystem
B.4.3. Delade funktioner
B.4.4. Hantera processer
B.4.5. Rättighetshantering
B.5. Användarrymden
B.5.1. Process
B.5.2. Demoner
B.5.3. Interprocesskommunikation
B.5.4. Bibliotek