Le Guide NetBSD

Les développeurs NetBSD

Toutes les marques et noms de produits utilisés dans ce guide sont ou peuvent être des marques commerciales ou des marques déposées de leurs propriétaires respectifs.

NetBSD® est une marque déposée de la fondation NetBSD.

Published: 2008/01/09 19:36:03

$NetBSD: netbsd.xml,v 1.4 2008/01/09 19:36:03 dsieger Exp $


Table of Contents

Objectifs de ce guide
I. Que peut-on dire de NetBSD ?
1. Que peut-on dire de NetBSD ?
1.1. L'histoire de NetBSD
1.2. Les possibilités de NetBSD
1.3. Plateformes supportées
1.4. Utilisateurs concernés par NetBSD
1.5. Les applications sur NetBSD
1.6. La philosophie de NetBSD
1.7. Comment télécharger NetBSD
II. Installation du système et problèmes liés
2. Installation de NetBSD : conseils et préparations préliminaires
2.1. Première introduction
2.1.1. Double amorçage
2.1.2. Emulation et virtualisation de NetBSD
2.2. Introduction sur l'installation
2.2.1. Les documents INSTALL*
2.2.2. Géometrie du disque dur
2.2.3. Partitions
2.2.4. Espace disque requis
2.2.5. Configuration du réseau
2.2.6. Sauvegarder vos données et vos systèmes d'exploitation!
2.2.7. Préparation du media d'installation
2.3. Liste de vérification
3. Exemple d'installation
3.1. Introduction
3.2. The installation process
3.3. Keyboard layout
3.4. Starting the installation
3.5. MBR partitions
3.6. Disklabel partitions
3.7. Setting the disk name
3.8. Last chance!
3.9. The disk preparation process
3.10. Choosing the installation media
3.10.1. Installing from CD-ROM or DVD
3.10.2. Installing from an unmounted file system
3.10.3. Installing via FTP
3.10.4. Installing via NFS
3.11. Extracting sets
3.12. System configuration
3.13. Finishing the installation
4. Mise à jour de NetBSD
4.1. Introduction
4.2. Les documents INSTALL*
4.3. Effectuer une mise à jour
III. Configuration du système, administration et personnalisation
5. Les premiers pas avec NetBSD
5.1. Les premiers problèmes
5.1.1. Si le système de démarre pas
5.1.2. Mauvaise configuration du fichier /etc/rc.conf
5.2. La commande man
5.3. Editer les fichiers de configuration
5.4. Connexion au login
5.5. Changement du mot de passe root
5.6. Ajouter des utilisateurs
5.7. Mots de passe shadow
5.8. Changement de langue du clavier
5.9. Heure du système
5.10. Secure Shell (ssh(1))
5.11. Configuration de base de /etc/rc.conf
5.12. Paramètres réseau simplifiés
5.13. Monter un CD-ROM
5.14. Monter une disquette
5.15. Installation des paquets additionnels
5.16. Bulletins de sécurité
5.17. Arrêter et redémarrer le système
6. Editeur de texte vi
6.1. Introduction à vi
6.1.1. L'interface de vi
6.1.2. Aller au mode édition
6.1.3. Retourner au mode commande et sauvegarder le fichier
6.1.4. Effectuer un simple copier - coller
6.1.5. Naviguer dans le fichier
6.1.6. Rechercher une expression dans un fichier
6.1.7. Exemple
6.2. Configuration de vi
6.2.1. Extensions de .exrc
6.2.2. Documentation
6.3. Utilisation des tags avec vi
7. Système de démarrage rc.d
7.1. Configuration de rc.d
7.2. Descriptions des scripts rc.d
7.3. Quels sont les rôles de rcorder et des scripts rc
7.4. Autres lectures
8. Console drivers
8.1. wscons
8.1.1. wsdisplay
8.1.2. wskbd
8.1.3. wsmouse
8.2. pccons
9. X
9.1. What is X?
9.2. Configuration
9.3. The mouse
9.4. The keyboard
9.5. The monitor
9.6. The video card
9.6.1. XFree 3.x
9.6.2. XFree86 4.x
9.7. Starting X
9.8. Customizing X
9.9. Other window managers
9.10. Graphical login with xdm
10. Emulation linux
10.1. Installer l'émulation
10.1.1. Configuration du noyau
10.1.2. Installation des bibliothèques Linux
10.1.3. Installation du programme Acrobat Reader
10.2. Structure du répertoire /emul/linux
10.3. Emulation du dossier /proc
10.4. Utilisation des plugins pour navigateurs internet
10.5. Autres lectures
11. Audio
11.1. Basic hardware elements
11.2. BIOS settings
11.3. Configuring the audio device
11.4. Configuring the kernel audio devices
11.5. Advanced commands
11.5.1. audioctl(1)
11.5.2. mixerctl(1)
11.5.3. audioplay(1)
11.5.4. audiorecord(1)
12. Printing
12.1. Enabling the printer daemon
12.2. Configuring /etc/printcap
12.3. Configuring Ghostscript
12.4. Printer management commands
12.5. Remote printing
13. Utilisation de support amovible
13.1. Initialisation et utilisation de disquette
13.2. Utiliser une disquette ZIP
13.3. Lecture d'un CD de donnée avec NetBSD
13.4. Lecture de CDs multi-session avec NetBSD
13.5. Permettre l'accès des CDs aux utilisateurs normaux
13.6. Monter une image ISO
13.7. Utiliser des CDs vidéo avec NetBSD
13.8. Utiliser des CDs audio avec NetBSD
13.9. Création d'un fichier MP3 (MPEG layer 3) à partir d'un CD audio
13.10. Utilisation d'un graveur CD-R avec des CDs de données
13.11. Utilisation d'un graveur de CD-R pour créer des CDs audio
13.12. Créer un CD audio avec des fichiers mp3
13.13. Copier un CD audio
13.14. Copier un CD avce deux graveurs
13.15. Utiliser les CDs ré-inscriptibles
13.16. Support du DVD
13.17. Création d'une image ISO à partir d'un CD
13.18. Obtenir les informations de volume d'un CD et d'une image ISO
14. The cryptographic device driver (CGD)
14.1. Overview
14.1.1. Why use disk encryption?
14.1.2. Logical Disk Drivers
14.1.3. Availability
14.2. Components of the Crypto-Graphic Disk system
14.2.1. Kernel driver pseudo-device
14.2.2. Ciphers
14.2.3. Verification Methods
14.3. Example: encrypting your disk
14.3.1. Preparing the disk
14.3.2. Scrubbing the disk
14.3.3. Creating the cgd
14.3.4. Modifying configuration files
14.3.5. Restoring data
14.4. Example: encrypted CDs/DVDs
14.4.1. Introduction
14.4.2. Creating an encrypted CD/DVD
14.4.3. Using an encrypted CD/DVD
14.5. Suggestions and Warnings
14.5.1. Using a random-key cgd for swap
14.5.2. Warnings
14.6. Further Reading
15. Concatenated Disk Device (CCD) configuration
15.1. Install physical media
15.2. Configure Kernel Support
15.3. Disklabel each volume member of the CCD
15.4. Configure the CCD
15.5. Initialize the CCD device
15.6. Create a 4.2BSD/UFS filesystem on the new CCD device
15.7. Mount the filesystem
16. NetBSD RAIDframe
16.1. RAIDframe Introduction
16.1.1. About RAIDframe
16.1.2. A warning about Data Integrity, Backups, and High Availability
16.1.3. Getting Help
16.2. Setup RAIDframe Support
16.2.1. Kernel Support
16.2.2. Power Redundancy and Disk Caching
16.3. Example: RAID-1 Root Disk
16.3.1. Pseudo-Process Outline
16.3.2. Hardware Review
16.3.3. Initial Install on Disk0/wd0
16.3.4. Preparing Disk1/wd1
16.3.5. Initializing the RAID Device
16.3.6. Setting up Filesystems
16.3.7. Setting up kernel dumps
16.3.8. Migrating System to RAID
16.3.9. The first boot with RAID
16.3.10. Adding Disk0/wd0 to RAID
16.3.11. Testing Boot Blocks
16.4. Testing kernel dumps
17. Pluggable Authentication Modules (PAM)
17.1. About
17.2. Introduction
17.3. Terms and conventions
17.3.1. Definitions
17.3.2. Usage examples
17.4. PAM Essentials
17.4.1. Facilities and primitives
17.4.2. Modules
17.4.3. Chains and policies
17.4.4. Transactions
17.5. PAM Configuration
17.5.1. PAM policy files
17.5.2. Breakdown of a configuration line
17.5.3. Policies
17.6. PAM modules
17.6.1. Common Modules
17.6.2. FreeBSD-specific PAM Modules
17.6.3. NetBSD-specific PAM Modules
17.7. PAM Application Programming
17.8. PAM Module Programming
17.9. Sample PAM Application
17.10. Sample PAM Module
17.11. Sample PAM Conversation Function
17.12. Further Reading
18. Tuning NetBSD
18.1. Introduction
18.1.1. Overview
18.2. Tuning Considerations
18.2.1. General System Configuration
18.2.2. System Services
18.2.3. The NetBSD Kernel
18.3. Visual Monitoring Tools
18.3.1. The top Process Monitor
18.3.2. The sysstat utility
18.4. Monitoring Tools
18.4.1. fstat
18.4.2. iostat
18.4.3. ps
18.4.4. vmstat
18.5. Network Tools
18.5.1. ping
18.5.2. traceroute
18.5.3. netstat
18.5.4. tcpdump
18.6. Accounting
18.6.1. Accounting
18.6.2. Reading Accounting Information
18.6.3. How to Put Accounting to Use
18.7. Kernel Profiling
18.7.1. Getting Started
18.7.2. Interpretation of kgmon Output
18.7.3. Putting it to Use
18.7.4. Summary
18.8. System Tuning
18.8.1. Using sysctl
18.8.2. memfs & softdeps
18.8.3. LFS
18.9. Kernel Tuning
18.9.1. Preparing to Recompile a Kernel
18.9.2. Configuring the Kernel
18.9.3. Building the New Kernel
18.9.4. Shrinking the NetBSD kernel
19. Système Veriexec sous NetBSD
19.1. Comment cela fonctionne-t-il
19.2. Registre des signatures
19.3. Générer des empreintes
19.4. Niveaux de sécurité
19.5. Veriexec et les systèmes de fichier à couches multiples
19.6. Configuration du noyau
20. Bluetooth on NetBSD
20.1. Introduction
20.2. Supported Hardware
20.3. System Configuration
20.4. Human Interface Devices
20.4.1. Mice
20.4.2. Keyboards
20.5. Personal Area Networking
20.5.1. Personal Area Networking User
20.6. Serial Connections
20.7. Audio
20.7.1. SCO Audio Headsets
20.7.2. SCO Audio Handsfree
20.8. Object Exchange
20.9. Troubleshooting
21. Miscellaneous operations
21.1. Installing the boot manager
21.2. Deleting the disklabel
21.3. Speaker
21.4. Forgot root password?
21.5. Password file is busy?
21.6. Adding a new hard disk
21.7. How to rebuild the devices in /dev
IV. Configuration réseau et problèmes liés
22. Introduction to TCP/IP Networking
22.1. Audience
22.2. Supported Networking Protocols
22.3. Supported Media
22.3.1. Serial Line
22.3.2. Ethernet
22.4. TCP/IP Address Format
22.5. Subnetting and Routing
22.6. Name Service Concepts
22.6.1. /etc/hosts
22.6.2. Domain Name Service (DNS)
22.6.3. Network Information Service (NIS/YP)
22.6.4. Other
22.7. Next generation Internet protocol - IPv6
22.7.1. The Future of the Internet
22.7.2. What good is IPv6?
22.7.3. Changes to IPv4
23. Setting up TCP/IP on NetBSD in practice
23.1. A walk through the kernel configuration
23.2. Overview of the network configuration files
23.3. Connecting to the Internet with a modem
23.3.1. Getting the connection information
23.3.2. resolv.conf and nsswitch.conf
23.3.3. Creating the directories for pppd
23.3.4. Connection script and chat file
23.3.5. Authentication
23.3.6. pppd options
23.3.7. Testing the modem
23.3.8. Activating the link
23.3.9. Using a script for connection and disconnection
23.3.10. Running commands after dialin
23.4. Creating a small home network
23.5. Setting up an Internet gateway with IPNAT
23.5.1. Configuring the gateway/firewall
23.5.2. Configuring the clients
23.5.3. Some useful commands
23.6. Setting up a network bridge device
23.6.1. Bridge example
23.7. A common LAN setup
23.8. Connecting two PCs through a serial line
23.8.1. Connecting NetBSD with BSD or Linux
23.8.2. Connecting NetBSD and Windows NT
23.8.3. Connecting NetBSD and Windows 95
23.9. IPv6 Connectivity & Transition via 6to4
23.9.1. Getting 6to4 IPv6 up & running
23.9.2. Obtaining IPv6 Address Space for 6to4
23.9.3. How to get connected
23.9.4. Security Considerations
23.9.5. Data Needed for 6to4 Setup
23.9.6. Kernel Preparation
23.9.7. 6to4 Setup
23.9.8. Quickstart using pkgsrc/net/hf6to4
23.9.9. Known 6to4 Relay Routers
23.9.10. Tunneling 6to4 through an IPFilter firewall
23.9.11. Conclusion & Further Reading
24. The Internet Super Server inetd
24.1. Overview
24.2. What is inetd?
24.3. Configuring inetd - /etc/inetd.conf
24.4. Services - /etc/services
24.5. Protocols - /etc/protocols
24.6. Remote Procedure Calls (RPC) - /etc/rpc
24.7. Allowing and denying hosts - /etc/hosts.{allow,deny}
24.8. Adding a Service
24.9. When to use or not to use inetd
24.10. Other Resources
25. The Domain Name System
25.1. DNS Background and Concepts
25.1.1. Naming Services
25.1.2. The DNS namespace
25.1.3. Resource Records
25.1.4. Delegation
25.1.5. Delegation to multiple servers
25.1.6. Secondaries, Caching, and the SOA record
25.1.7. Name Resolution
25.1.8. Reverse Resolution
25.2. The DNS Files
25.2.1. /etc/namedb/named.conf
25.2.2. /etc/namedb/localhost
25.2.3. /etc/namedb/zone.127.0.0
25.2.4. /etc/namedb/diverge.org
25.2.5. /etc/namedb/1.168.192
25.2.6. /etc/namedb/root.cache
25.3. Using DNS
25.4. Setting up a caching only name server
25.4.1. Testing the server
26. Mail and news
26.1. postfix
26.1.1. Configuration of generic mapping
26.1.2. Testing the configuration
26.1.3. Using an alternative MTA
26.2. fetchmail
26.3. Reading and writing mail with mutt
26.4. Strategy for receiving mail
26.5. Strategy for sending mail
26.6. Advanced mail tools
26.7. News with tin
27. Introduction to the Common Address Redundancy Protocol (CARP)
27.1. CARP Operation
27.2. Configuring CARP
27.3. Enabling CARP Support
27.4. CARP Example
27.5. Advanced CARP configuration
27.6. Forcing Failover of the Master
28. Network services
28.1. The Network File System (NFS)
28.1.1. NFS setup example
28.1.2. Setting up NFS automounting for /net with amd(8)
28.2. The Network Time Protocol (NTP)
V. Construction du système
29. Obtaining the sources
29.1. Preparing directories
29.2. Terminology
29.3. Downloading tarballs
29.3.1. Downloading sources for a NetBSD release
29.3.2. Downloading sources for a NetBSD stable branch
29.3.3. Downloading sources for a NetBSD-current development branch
29.4. Fetching by CVS
29.4.1. Fetching a NetBSD release
29.4.2. Fetching a NetBSD stable branch
29.4.3. Fetching the NetBSD-current development branch
29.4.4. Saving some cvs(1) options
29.5. Sources on CD (ISO)
30. Crosscompiling NetBSD with build.sh
30.1. Building the crosscompiler
30.2. Configuring the kernel manually
30.3. Crosscompiling the kernel manually
30.4. Crosscompiling the kernel with build.sh
30.5. Crosscompiling the userland
30.6. Crosscompiling the X Window System
30.7. Changing build behaviour
30.7.1. Changing the Destination Directory
30.7.2. Static Builds
30.7.3. Using build.sh options
30.7.4. make(1) variables used during build
31. Compiling the kernel
31.1. Requirements and procedure
31.2. Installing the kernel sources
31.3. Creating the kernel configuration file
31.4. Building the kernel manually
31.4.1. Configuring the kernel manually
31.4.2. Generating dependencies and recompiling manually
31.5. Building the kernel using build.sh
31.6. Installing the new kernel
31.7. If something went wrong
32. Updating an existing system from sources
32.1. The updating procedure
32.1.1. Building a new userland
32.1.2. Building a new kernel
32.1.3. Installing the kernel and userland
32.1.4. Updating the system configuration files
32.1.5. Summary
32.1.6. Alternative: using sysinst
32.2. More details about the updating of configuration and startup files
32.2.1. Using etcupdate with source files
32.2.2. Using etcupdate with binary distribution sets
32.2.3. Using etcmanage instead of etcupdate
33. Building NetBSD installation media
33.1. Creating custom install or boot floppies for your architecture e.g. i386
33.2. Creating a custom install or boot CD with build.sh
A. Information
A.1. Where to get this document
A.2. Guide history
B. Contributing to the NetBSD guide
B.1. Translating the guide
B.1.1. What you need to start a translation
B.1.2. Writing XML/DocBook
B.2. Sending contributions
B.3. XML/DocBook template
C. Getting started with XML/DocBook
C.1. What is XML/DocBook
C.2. Installing the necessary tools
C.3. Using the tools
C.4. Language-specific notes
C.4.1. Enabling hyphenation for the Italian language
C.5. Links
D. Acknowledgements
D.1. Original acknowledgements
D.2. Current acknowledgements
D.3. Licenses
D.3.1. Federico Lupi's original license of this guide
D.3.2. Networks Associates Technology's license on the PAM article
D.3.3. Joel Knight's license on the CARP article
E. Bibliography
Bibliography

List of Figures

2.1. Partitions
3.1. Selecting the language
3.2. Selecting a keyboard type
3.3. The sysinst main menu
3.4. Confirming to install NetBSD
3.5. Choosing a hard disk
3.6. Full or custom installation
3.7. Selecting distribution sets
3.8. Choosing the partitioning scheme
3.9. fdisk
3.10. Partition options
3.11. Installing the boot selector
3.12. Editing partitions?
3.13. Setting partition sizes
3.14. The disklabel editor
3.15. Disklabel partition editing
3.16. Naming the NetBSD disk
3.17. Last chance to abort
3.18. Selecting a bootblock
3.19. Choosing the verbosity of the extraction process
3.20. Installation media
3.21. CD-ROM/DVD installation
3.22. Mounting a file system
3.23. Mounting a partition
3.24. Accessing a MSDOS file system
3.25. Which network interface to configure
3.26. Using DHCP for network configuration
3.27. Entering and configuring network data
3.28. Confirming network parameters
3.29. Defining the FTP settings
3.30. Saving the network settings
3.31. NFS install screen
3.32. NFS example
3.33. Extraction of sets completed
3.34. Selecting the system's time zone
3.35. Selecting a password encryption scheme
3.36. Setting root password?
3.37. Setting root password
3.38. Choosing a shell
3.39. Installation completed
3.40. Reboot to finish installation
4.1. Commencer la mise à jour
4.2. Poursuivre la mise à jour
4.3. Choisir le disque dur
4.4. Choisir le type d'installation
4.5. Processus de mise à jour - degré d'information
4.6. Vérification des systèmes de fichier
4.7. Sélection du programme de démarrage
4.8. Installer à partir d'un média d'installation
4.9. Mise à jour achevée
16.1. RAID-1 Disk Logical Layout
16.2. Perform generic install onto Disk0/wd0
16.3. Setup RAID Set
16.4. Reboot using Disk1/wd1 of RAID
16.5. Mirror Disk1/wd1 back to Disk0/wd0
16.6. Award BIOS i386 Boot Disk1/wd1
16.7. Award BIOS i386 Boot Disk0/wd0
22.1. IPv4-addresses are divided into more significant network- and less significant hostbits
22.2. Our demo-network
22.3. Attaching one subnet to another one
22.4. IPv6-addresses are divided into more significant network- and less significant hostbits, too
22.5. IPv6-addresses have a similar structure to class B addresses
22.6. Several interfaces attached to a link result in only one scope ID for the link
23.1. Network with gateway
23.2. A frequently used method for transition is tunneling IPv6 in IPv4 packets
23.3. 6to4 derives an IPv6 from an IPv4 address
23.4. Request and reply can be routed via different gateways in 6to4
23.5. Enabling packet forwarding is needed for a 6to4 router
26.1. Structure of the mail system

List of Tables

17.1. PAM chain execution summary
19.1. Veriexec fingerprints tools
19.2. Veriexec access type aliases

List of Examples

12.1. /etc/printcap
12.2. /usr/local/libexec/lpfilter
12.3. /etc/printcap
12.4. /usr/local/libexec/lpfilter-ps
23.1. resolv.conf
23.2. nsswitch.conf
23.3. Connection script
23.4. Chat file
23.5. Chat file with login
23.6. /etc/ppp/options
23.7. ppp-start
23.8. ppp-stop
23.9. /etc/hosts
25.1. strider's /etc/hosts file
25.2. localhost
29.1. .cvsrc