The Netbsd Operating System
Total Page:16
File Type:pdf, Size:1020Kb
The NetBSD Operating System A Guide (2003/12/14) Federico Lupi The NetBSD Operating System: A Guide by Federico Lupi Published 2003/12/14 15:56:15 Copyright © 1999, 2000, 2001, 2002 by Federico Lupi Copyright © 2003 by The NetBSD Foundation License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Federico Lupi for the NetBSD Project. 4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Table of Contents Purpose of this guide .................................................................................................................................. i 1 What is NetBSD? .................................................................................................................................... 1 1.1 The story of NetBSD.................................................................................................................... 1 1.2 NetBSD features .......................................................................................................................... 1 1.3 Supported platforms..................................................................................................................... 2 1.4 NetBSD’s target users .................................................................................................................. 2 1.5 Applications for NetBSD ............................................................................................................. 2 1.6 The philosophy of NetBSD.......................................................................................................... 3 1.7 How to get NetBSD ..................................................................................................................... 3 2 New features in NetBSD 2.0................................................................................................................... 4 2.1 What’s new in NetBSD 2.0? ........................................................................................................ 4 2.1.1 Native threads .................................................................................................................. 4 2.1.2 Kernel events notification framework - kqueue...............................................................4 2.1.3 systrace ............................................................................................................................ 4 2.1.4 UFSv2.............................................................................................................................. 4 2.1.5 Java support ..................................................................................................................... 5 2.1.6 Verified Exec.................................................................................................................... 5 2.1.7 Cryptographic disk driver................................................................................................ 5 2.1.8 Non-executable stack and heap ....................................................................................... 5 2.1.9 New toolchain.................................................................................................................. 5 2.2 New ports and enhancements to existing ports ............................................................................5 2.2.1 amd64 .............................................................................................................................. 6 2.2.2 evbsh5.............................................................................................................................. 6 2.2.3 i386.................................................................................................................................. 6 2.2.4 macppc............................................................................................................................. 6 2.2.5 sparc................................................................................................................................. 6 2.3 The NetBSD Packages Collection (pkgsrc) .................................................................................6 3 Installation............................................................................................................................................... 7 3.1 Documentation............................................................................................................................. 7 3.2 The layout of a NetBSD installation ............................................................................................ 8 3.3 Installation.................................................................................................................................... 8 3.3.1 Keyboard ......................................................................................................................... 8 3.3.2 Geometries....................................................................................................................... 9 3.3.3 Partitions........................................................................................................................ 10 3.3.4 Hard disk space requirements........................................................................................ 10 3.3.5 Retry .............................................................................................................................. 11 4 Example Installation............................................................................................................................. 12 4.1 Installation example ................................................................................................................... 12 4.1.1 Preparing the installation............................................................................................... 12 4.1.2 Creating the installation floppy .....................................................................................12 4.1.3 Last preparatory steps.................................................................................................... 13 4.1.4 Beginning the installation.............................................................................................. 14 4.1.5 Partitions........................................................................................................................ 16 4.1.6 Disklabel........................................................................................................................ 21 iii 4.1.7 Creating a disklabel ....................................................................................................... 22 4.1.8 Final operations ............................................................................................................. 25 4.1.9 Choosing the installation media ....................................................................................25 5 The first boot ......................................................................................................................................... 29 5.1 If something went wrong ........................................................................................................... 29 5.2 Login .......................................................................................................................................... 29 5.3 Changing the keyboard layout ................................................................................................... 30 5.4 The man command..................................................................................................................... 30 5.5 Changing the root password..................................................................................................... 32 5.6 Changing the shell...................................................................................................................... 32 5.7 System time................................................................................................................................ 32 5.8 Basic configuration /etc/rc.conf.......................................................................................... 33 5.9 Rebooting the system