Introduction to Freebsd Additional Topics

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Freebsd Additional Topics Introduction to FreeBSD Topics Additional Topics How FreeBSD boots (more detail) - devfs filesytem ccTLD Workshop Nairobi Recompiling the FreeBSD kernel - Accessing devices Kernel loadable modules - crontab and hardware support September, 2005 Nairobi, Kenya Firewalls X Window vs. Gnome vs. KDE cvs in detail FreeBSD file system: UFS Hervey Allen Logs Use of su Lots more commands How FreeBSD Boots How FreeBSD Boots cont. Initial boot items are in /boot (this resides Stage 3 or /boot/loader: under “/”, or in it's own partition). ¡ Probes for consoles and disk boot0: ¡ Reads in this order: Copy of MBR is in /boot/boot0. MBR is at start of ¢ /boot/loader.rc the boot disk and is 512 bytes in size. If you use ¢ lilo, grub, or other MBR then this is not relevant. /boot/defaults/loader.conf ¢ boot1/boot2 or Stage 1 and 2: /boot/loader.conf to override previous ¡ Kernel and modules are loaded after a 10 /boot/boot1 is 512 bytes in size and runs second wait for key press. Interactive prompt /boot/boot2. available. /boot/boot2 is more complex and runs / For more discussion and examples see: boot/loader. http://www.freebsd.org/doc/en_US.ISO8859- 1/books/handbook/boot-blocks.html How FreeBSD Boots cont. How FreeBSD Boots cont. The init process: The init process cont.: ¡ After the kernel boots it hands over control to ¡ Once file systems are mounted then the the user process /sbin/init. following starts: ¢ ¡ If filesystems look good then init begins reading Networking services the resource configuration of the system. These ¢ System daemons files are read in this order: ¢ Locally installed package daemons ¢ /etc/defaults/rc.conf (/usr/local/etc/rc.d scripts) ¢ /etc/rc.conf (overrides previous) Init process and shutdown: ¢ /etc/rc.conf.local (overrides previous) ¡ When shutdown is called then init runs the ¡ Mounts file systems in /etc/fstab scripts /etc/rc.shutdown. The FreeBSD Kernel Recompiling the FreeBSD Kernel You might rebuild a kernel to add hardware See FreeBSD Handbook section 8.3 support, additional filesystem support, etc. /usr/src/sys/ /conf Config file in arch Or, to remove extraneous drivers. Kernel source, if installed, is in /usr/src/sys Example (old style): cp GENERIC /root/kernel/MYNEWKERNEL “If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The ln -s /root/kernel/MYNEWKERNEL easiest way to do this is by running /stand/sysinstall as root, choosing Configure, then Distributions, then src, Edit MYNEWKERNEL file to set options then sys.” (FreeBSD Handbook 9.3) see /usr/src/sys/arch/conf/NOTES To rebuild your kernel you use the default /usr/sbin/config MYNEWKERNEL configuration file, update settings as cd ../compile/MYNEWKERNEL needed, then recompile the kernel, installing it in /boot. make depend, make, make install Recompiling the FreeBSD Kernel cont. Recompiling the FreeBSD Kernel cont. Example (new style): The kernel config file has many options. For a After you've edited MYKERNEL for options more complete explanation of the various cd /usr/src options see (e.g. on a PC with Intel CPU): make buildkernel kernconf=MYNEWKERNEL ¡ /usr/src/sys/i386/conf/NOTES make installkernel kernconf=MYNEWKERNEL And, for non-architecture specific notes see: Kernel installed as /boot/kernel/kernel ¡ /usr/src/sys/conf/NOTES Old kernel is in /boot/kernel.old/kernel Or look at the FreeBSD Handbook section 8.4 If new kernel does not boot, go to boot for some more examples. loader prompt and type: unload boot /boot/kernel.old/kernel Kernel and Hardware Support Kernel Loadable & Static Modules FreeBSD is moving towards “modularizing” Static (in conf) – built-in during recompile hardware support. That is “drivers” (kernel vs. loadable modules) are loaded at boot time Kernel loadable (kld) /boot/kernel modules. to support your systems' hardware. Autoloading using /etc/rc.conf directives Some hardware is still supported by statically and/or using /boot/loader.conf, which loaded software directly in the kernel. overrides /boot/defaults/loader.conf Some hardware use is optimized by setting Address security in FreeBSD vs. Linux and kernel state using the sysctl facility. modules. ¢ Commands kldload, kldstat, kldunload Firewalls Installing a Binary File Building an appropriate firewall ruleset for This is much less common, but you can precompile your situation requires thought: a program for a specific version of FreeBSD. See FreeBSD Handbook section 10.8 to get started. Clearly this would be something that might be done Enable IP FireWall support (IPFW) by adding one, or with commercial applications that have restrictive more options to kernel configuration file. licensing agreements. ipfw was updated to “ipfw2” in July 2002. Normally installation is done using a shell script that Starting and stopping in /etc/rc.conf and /etc/rc.firewall. copies compressed files to the appropriate ipfw rules and firewall set are in /etc/rc.firewall. locations and updates configurations as needed. You can dynamically control ipfw as well: Adobe's Acrobat Reader, Macromedia Flash plugin, ipfw flush, ipfw enable, ipfw disable, etc. are examples (/usr/local/bin/acroread). ipfw flush, etc. Installing with CVS Install cvsup CVS: Concurrent Versions System If you are using KDE or Gnome, then check: Somewhat detailed FreeBSD Handbook entry: pkg_info | grep cvs http://www.freebsd.org/doc/en_US.ISO8859- If CVS is installed you can skip this. Otherwise: 1/books/handbook/cvsup.html ¢ cd /usr/ports/net/cvsup-without-gui Typical use for CVS and FreeBSD (other than software projects) is to keep your Ports collection or up-to-date. cd /usr/ports/net/cvsup ¢ To do this be sure you have installed the Ports collection at initial installation. make ¢ Now install cvsup-without-gui from source if make install necessary: make clean Install cvsup cont. Install and Use cvsup Now copy the cvsup configuration file needed At this point you are ready to update your to tell CVS to upgrade your ports collection. A entire Ports collection with one simple sample is located in /usr/share/examples: command: cp /usr/share/examples/cvsup/ports-supfile /root/. Edit this file to look like this (line 50): cvsup -g -L 2 /root/ports-supfile # IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=cvsupNAME.FreeBSD.org *default base=/usr “-g” : don't use graphical interface. *default prefix=/usr -L 2 *default release=cvs tag=. “ ” : verbosity level. Level 2 is verbose. *default delete use-rel-suffix CVS Summary X Windows – Gnome – KDE CVS is a powerful and complex tool. For some The first thing to understand is that Gnome more hints and information see: and KDE use the X graphical subsystem. man cvsup Generally KDE programs run in Gnome and vice-versa. info cvs For a server you do not need to run, or install, FreeBSD Handbook: any of these. http://www.freebsd.org/doc/en_US.ISO8859- 1/books/handbook/ports-using.html You can run one, both, or other window managers like fwvm, windowmaker, etc. X – Gnome – KDE cont. X – Gnome – KDE cont. ¢ Which desktop environment is better? There's no ¢ You can install Gnome and/or KDE by choosing the correct answer to this. gnome or kde “base” packages in under Packages ¢ using the /stand/sysinstall utility. To configure how X runs you specify this in the file /etc/X11/xorg.conf. ¢ Under FreeBSD 5.4 (July 2005) just install these to ¢ pull in the entire desktop installations: You general configure using the command: ¡ gnome2-2.10.0 Xorg -config ¡ kde-3.4.1 ¢ To exit X you can press ALT-CTRL-Backspace. ¢ Once installed you can generally just run either gdm ¢ You can, also, go directly to a terminal using alt- or kdm to start the Gnome or KDE Display Managers. ctrl-f1 through f8. alt-ctrl-f9 returns to X. ¢ kdm supports multiple desktop choices. ¢ For details on setting up your desktop environment read: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html The FreeBSD Unix File System FreeBSD UFS cont. Taken from Wikipedia: UFS2 and Soft Updates make for a powerful UNIX file system (UFS) is a file system used by many unix combination: operating systems. It is derived from the Berkeley Fast File Data is clustered on cylinders to reduce fragmentation. System (FFS), which itself was originally developed from FS Block level fragmentation to avoid wasting disk space in the first versions of UNIX developed at Bell Labs. when large block sizes are used. Nearly all BSD unix derivatives including FreeBSD, NetBSD, Extended attribute support. OpenBSD, NeXTStep, and Solaris use a variant of UFS. In Support for 1TB file systems. Mac OS X it is available as an alternative to HFS. In Linux, Fast file system creation using “lazy” inode partial UFS support is available and the native linux ext2 initizializtion. filesystem is derived from UFS. Soft updates to dramatically improve metadata operations. UFS is journaled so no need for fsck on large drives. FreeBSD UFS cont. Installing FreeBSD (5.2.1) To learn more about UFS and Soft Updates: Sample install session... Boot from CD-ROM Click Exit twice to get to media dialogue - Configure Gnome Choose to install from CD/DVD UFS Definition from Wikipedia: Say "Yes" to last chance to set options - Get from CD/DVD Pick default FreeBSD install - set root password - add users - Add package bash - configure addtion network interfaces - install packages Choose Express install option - configure dc0 http://en.wikipedia.org/wiki/UFS - shells - no dhcp Delete any slices laying around - Add package
Recommended publications
  • Embedding Redhat Linux in a Diskonchip - HOWTO
    Embedding Redhat Linux in a DiskOnChip - HOWTO Don Davies, Prosig Ltd ( [email protected]) October 2002 Describes the configuration and setup of a development environment for a Single Board Computer running Redhat Linux from a DiskOnChip device. Contents 1.0 Introduction ..........................................................................................................3 1.1 Hardware Details..................................................................................................3 1.2 System Configuration ...........................................................................................4 2.0 DOS Development Environment...........................................................................5 2.1 DiskOnChip Tools ................................................................................................5 2.2 Boot Loader..........................................................................................................6 2.3 MS-DOS System Startup......................................................................................6 3.0 Linux Development Environment ......................................................................7 3.1 Custom Kernel Configuration ............................................................................8 3.2 Building Custom Kernel ..................................................................................10 3.3 Booting Custom Kernel ...................................................................................10 3.4 Formatting DiskOnChip for Linux
    [Show full text]
  • Introduction to Debugging the Freebsd Kernel
    Introduction to Debugging the FreeBSD Kernel John H. Baldwin Yahoo!, Inc. Atlanta, GA 30327 [email protected], http://people.FreeBSD.org/˜jhb Abstract used either directly by the user or indirectly via other tools such as kgdb [3]. Just like every other piece of software, the The Kernel Debugging chapter of the FreeBSD kernel has bugs. Debugging a ker- FreeBSD Developer’s Handbook [4] covers nel is a bit different from debugging a user- several details already such as entering DDB, land program as there is nothing underneath configuring a system to save kernel crash the kernel to provide debugging facilities such dumps, and invoking kgdb on a crash dump. as ptrace() or procfs. This paper will give a This paper will not cover these topics. In- brief overview of some of the tools available stead, it will demonstrate some ways to use for investigating bugs in the FreeBSD kernel. FreeBSD’s kernel debugging tools to investi- It will cover the in-kernel debugger DDB and gate bugs. the external debugger kgdb which is used to perform post-mortem analysis on kernel crash dumps. 2 Kernel Crash Messages 1 Introduction The first debugging service the FreeBSD kernel provides is the messages the kernel prints on the console when the kernel crashes. When a userland application encounters a When the kernel encounters an invalid condi- bug the operating system provides services for tion (such as an assertion failure or a memory investigating the bug. For example, a kernel protection violation) it halts execution of the may save a copy of the a process’ memory current thread and enters a “panic” state also image on disk as a core dump.
    [Show full text]
  • Active-Active Firewall Cluster Support in Openbsd
    Active-Active Firewall Cluster Support in OpenBSD David Gwynne School of Information Technology and Electrical Engineering, University of Queensland Submitted for the degree of Bachelor of Information Technology COMP4000 Special Topics Industry Project February 2009 to leese, who puts up with this stuff ii Acknowledgements I would like to thank Peter Sutton for allowing me the opportunity to do this work as part of my studies at the University of Queensland. A huge thanks must go to Ryan McBride for answering all my questions about pf and pfsync in general, and for the many hours working with me on this problem and helping me test and debug the code. Thanks also go to Theo de Raadt, Claudio Jeker, Henning Brauer, and everyone else at the OpenBSD network hackathons who helped me through this. iii Abstract The OpenBSD UNIX-like operating system has developed several technologies that make it useful in the role of an IP router and packet filtering firewall. These technologies include support for several standard routing protocols such as BGP and OSPF, a high performance stateful IP packet filter called pf, shared IP address and fail-over support with CARP (Common Address Redundancy Protocol), and a protocol called pfsync for synchronisation of the firewalls state with firewalls over a network link. These technologies together allow the deployment of two or more computers to provide redundant and highly available routers on a network. However, when performing stateful filtering of the TCP protocol with pf, the routers must be configured in an active-passive configuration due to the current semantics of pfsync.
    [Show full text]
  • BSD UNIX Toolbox: 1000+ Commands for Freebsd, Openbsd and Netbsd Christopher Negus, Francois Caen
    To purchase this product, please visit https://www.wiley.com/en-bo/9780470387252 BSD UNIX Toolbox: 1000+ Commands for FreeBSD, OpenBSD and NetBSD Christopher Negus, Francois Caen E-Book 978-0-470-38725-2 April 2008 $16.99 DESCRIPTION Learn how to use BSD UNIX systems from the command line with BSD UNIX Toolbox: 1000+ Commands for FreeBSD, OpenBSD and NetBSD. Learn to use BSD operation systems the way the experts do, by trying more than 1,000 commands to find and obtain software, monitor system health and security, and access network resources. Apply your newly developed skills to use and administer servers and desktops running FreeBSD, OpenBSD, NetBSD, or any other BSD variety. Become more proficient at creating file systems, troubleshooting networks, and locking down security. ABOUT THE AUTHOR Christopher Negus served for eight years on development teams for the UNIX operating system at the AT&T labs, where UNIX was created and developed. He also worked with Novell on UNIX and UnixWare development. Chris is the author of the bestselling Fedora and Red Hat Linux Bible series, Linux Toys II, Linux Troubleshooting Bible, and Linux Bible 2008 Edition. Francois Caen hosts and manages business application infrastructures through his company Turbosphere LLC. As an open- source advocate, he has lectured on OSS network management and Internet services, and served as president of the Tacoma Linux User Group. He is a Red Hat Certified Engineer (RHCE). To purchase this product, please visit https://www.wiley.com/en-bo/9780470387252.
    [Show full text]
  • Mellanox OFED for Freebsd for Connectx-4 and Above Adapter Cards User Manual
    Mellanox OFED for FreeBSD for ConnectX-4 and above Adapter Cards User Manual Rev 3.5.2 www.mellanox.com Mellanox Technologies NOTE: THIS HARDWARE, SOFTWARE OR TEST SUITE PRODUCT (“PRODUCT(S)”) AND ITS RELATED DOCUMENTATION ARE PROVIDED BY MELLANOX TECHNOLOGIES “AS-IS” WITH ALL FAULTS OF ANY KIND AND SOLELY FOR THE PURPOSE OF AIDING THE CUSTOMER IN TESTING APPLICATIONS THAT USE THE PRODUCTS IN DESIGNATED SOLUTIONS. THE CUSTOMER'S MANUFACTURING TEST ENVIRONMENT HAS NOT MET THE STANDARDS SET BY MELLANOX TECHNOLOGIES TO FULLY QUALIFY THE PRODUCT(S) AND/OR THE SYSTEM USING IT. THEREFORE, MELLANOX TECHNOLOGIES CANNOT AND DOES NOT GUARANTEE OR WARRANT THAT THE PRODUCTS WILL OPERATE WITH THE HIGHEST QUALITY. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL MELLANOX BE LIABLE TO CUSTOMER OR ANY THIRD PARTIES FOR ANY DIRECT, INDIRECT, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES OF ANY KIND (INCLUDING, BUT NOT LIMITED TO, PAYMENT FOR 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 FROM THE USE OF THE PRODUCT(S) AND RELATED DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Mellanox Technologies 350 Oakmead Parkway Suite 100 Sunnyvale, CA 94085 U.S.A. www.mellanox.com Tel: (408) 970-3400 Fax: (408) 970-3403 © Copyright 2019. Mellanox Technologies Ltd. All Rights Reserved. Mellanox®, Mellanox logo, Mellanox Open Ethernet®, LinkX®, Mellanox Spectrum®, Mellanox Virtual Modular Switch®, MetroDX®, MetroX®, MLNX-OS®, ONE SWITCH.
    [Show full text]
  • Reference Guide
    Reference Guide Scyld ClusterWare Release 5.10.1-5101g0000 December 18, 2013 Reference Guide: Scyld ClusterWare Release 5.10.1-5101g0000; December 18, 2013 Revised Edition Published December 18, 2013 Copyright © 1999 - 2013 Penguin Computing, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording or otherwise) without the prior written permission of Penguin Computing, Inc.. The software described in this document is "commercial computer software" provided with restricted rights (except as to included open/free source). Use beyond license provisions is a violation of worldwide intellectual property laws, treaties, and conventions. Scyld ClusterWare, the Highly Scyld logo, and the Penguin Computing logo are trademarks of Penguin Computing, Inc.. Intel is a registered trademark of Intel Corporation or its subsidiaries in the United States and other countries. Infiniband is a trademark of the InfiniBand Trade Association. Linux is a registered trademark of Linus Torvalds. Red Hat and all Red Hat-based trademarks are trademarks or registered trademarks of Red Hat, Inc. in the United States and other countries. All other trademarks and copyrights referred to are the property of their respective owners. Table of Contents Preface .....................................................................................................................................................................................v
    [Show full text]
  • Performance, Scalability on the Server Side
    Performance, Scalability on the Server Side John VanDyk Presented at Des Moines Web Geeks 9/21/2009 Who is this guy? History • Apple // • Macintosh • Windows 3.1- Server 2008R2 • Digital Unix (Tru64) • Linux (primarily RHEL) • FreeBSD Systems Iʼve worked with over the years. Languages • Perl • Userland Frontier™ • Python • Java • Ruby • PHP Languages Iʼve worked with over the years (Userland Frontier™ʼs integrated language is UserTalk™) Open source developer since 2000 Perl/Python/PHP MySQL Apache Linux The LAMP stack. Time to Serve Request Number of Clients Performance vs. scalability. network in network out RAM CPU Storage These are the basic laws of physics. All bottlenecks are caused by one of these four resources. Disk-bound •To o l s •iostat •vmstat Determine if you are disk-bound by measuring throughput. vmstat (BSD) procs memory page disk faults cpu r b w avm fre flt re pi po fr sr tw0 in sy cs us sy id 0 2 0 799M 842M 27 0 0 0 12 0 23 344 2906 1549 1 1 98 3 3 0 869M 789M 5045 0 0 0 406 0 10 1311 17200 5301 12 4 84 3 5 0 923M 794M 5219 0 0 0 5178 0 27 1825 21496 6903 35 8 57 1 2 0 931M 784M 909 0 0 0 146 0 12 955 9157 3570 8 4 88 blocked plenty of RAM, idle processes no swapping CPUs A disk-bound FreeBSD machine. b = blocked for resources fr = pages freed/sec cs = context switches avm = active virtual pages in = interrupts flt = memory page faults sy = system calls per interval vmstat (RHEL5) # vmstat -S M 5 25 procs ---------memory-------- --swap- ---io--- --system- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 1301 194 5531 0 0 0 29 1454 2256 24 20 56 0 0 3 0 0 1257 194 5531 0 0 0 40 2087 2336 34 27 39 0 0 2 0 0 1183 194 5531 0 0 0 53 1658 2763 33 28 39 0 0 0 0 0 1344 194 5531 0 0 0 34 1807 2125 29 19 52 0 0 no blocked busy but not processes overloaded CPU in = interrupts/sec cs = context switches/sec wa = time waiting for I/O Solving disk bottlenecks • Separate spindles (logs and databases) • Get rid of atime updates! • Minimize writes • Move temp writes to /dev/shm Overview of what weʼre about to dive into.
    [Show full text]
  • OS Awareness Manual Linux
    OS Awareness Manual Linux TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents ...................................................................................................................... OS Awareness Manuals ................................................................................................................ OS Awareness and Run Mode Debugging for Linux .............................................................. OS Awareness Manual Linux ................................................................................................. 1 Overview ............................................................................................................................... 4 Terminology 4 Brief Overview of Documents for New Users 5 Supported Versions 5 Configuration ........................................................................................................................ 6 Quick Configuration Guide 6 Hooks & Internals in Linux 6 Features ................................................................................................................................ 8 Display of Kernel Resources 8 Task-Related Breakpoints 8 Task Context Display 9 MMU Support 11 Space IDs 11 MMU Declaration 11 Debugger Table Walk 17 Symbol Autoloader 18 SMP Support 19 Dynamic Task Performance Measurement 20 Task Runtime Statistics 20 Process / thread switch support for ARM using context ID register: 21 Task State Analysis 21 Function Runtime Statistics 22 Linux Specific Menu 24 Debugging Linux Kernel
    [Show full text]
  • The Dragonflybsd Operating System
    1 The DragonFlyBSD Operating System Jeffrey M. Hsu, Member, FreeBSD and DragonFlyBSD directories with slightly over 8 million lines of code, 2 million Abstract— The DragonFlyBSD operating system is a fork of of which are in the kernel. the highly successful FreeBSD operating system. Its goals are to The project has a number of resources available to the maintain the high quality and performance of the FreeBSD 4 public, including an on-line CVS repository with mirror sites, branch, while exploiting new concepts to further improve accessible through the web as well as the cvsup service, performance and stability. In this paper, we discuss the motivation for a new BSD operating system, new concepts being mailing list forums, and a bug submission system. explored in the BSD context, the software infrastructure put in place to explore these concepts, and their application to the III. MOTIVATION network subsystem in particular. A. Technical Goals Index Terms— Message passing, Multiprocessing, Network The DragonFlyBSD operating system has several long- operating systems, Protocols, System software. range technical goals that it hopes to accomplish within the next few years. The first goal is to add lightweight threads to the BSD kernel. These threads are lightweight in the sense I. INTRODUCTION that, while user processes have an associated thread and a HE DragonFlyBSD operating system is a fork of the process context, kernel processes are pure threads with no T highly successful FreeBSD operating system. Its goals are process context. The threading model makes several to maintain the high quality and performance of the FreeBSD guarantees with respect to scheduling to ensure high 4 branch, while exploring new concepts to further improve performance and simplify reasoning about concurrency.
    [Show full text]
  • BSD UNIX Toolbox 1000+ Commands for Freebsd, Openbsd
    76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page iii BSD UNIX® TOOLBOX 1000+ Commands for FreeBSD®, OpenBSD, and NetBSD®Power Users Christopher Negus François Caen 76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page ii 76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page i BSD UNIX® TOOLBOX 76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page ii 76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page iii BSD UNIX® TOOLBOX 1000+ Commands for FreeBSD®, OpenBSD, and NetBSD®Power Users Christopher Negus François Caen 76034ffirs.qxd:Toolbox 4/2/08 12:50 PM Page iv BSD UNIX® Toolbox: 1000+ Commands for FreeBSD®, OpenBSD, and NetBSD® Power Users Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2008 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-37603-4 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 Library of Congress Cataloging-in-Publication Data is available from the publisher. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permis- sion should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions.
    [Show full text]
  • Absolute BSD—The Ultimate Guide to Freebsd Table of Contents Absolute BSD—The Ultimate Guide to Freebsd
    Absolute BSD—The Ultimate Guide to FreeBSD Table of Contents Absolute BSD—The Ultimate Guide to FreeBSD............................................................................1 Dedication..........................................................................................................................................3 Foreword............................................................................................................................................4 Introduction........................................................................................................................................5 What Is FreeBSD?...................................................................................................................5 How Did FreeBSD Get Here?..................................................................................................5 The BSD License: BSD Goes Public.......................................................................................6 The Birth of Modern FreeBSD.................................................................................................6 FreeBSD Development............................................................................................................7 Committers.........................................................................................................................7 Contributors........................................................................................................................8 Users..................................................................................................................................8
    [Show full text]
  • Linux Kernel and Driver Development Training Slides
    Linux Kernel and Driver Development Training Linux Kernel and Driver Development Training © Copyright 2004-2021, Bootlin. Creative Commons BY-SA 3.0 license. Latest update: October 9, 2021. Document updates and sources: https://bootlin.com/doc/training/linux-kernel Corrections, suggestions, contributions and translations are welcome! embedded Linux and kernel engineering Send them to [email protected] - Kernel, drivers and embedded Linux - Development, consulting, training and support - https://bootlin.com 1/470 Rights to copy © Copyright 2004-2021, Bootlin License: Creative Commons Attribution - Share Alike 3.0 https://creativecommons.org/licenses/by-sa/3.0/legalcode You are free: I to copy, distribute, display, and perform the work I to make derivative works I to make commercial use of the work Under the following conditions: I Attribution. You must give the original author credit. I Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one. I For any reuse or distribution, you must make clear to others the license terms of this work. I Any of these conditions can be waived if you get permission from the copyright holder. Your fair use and other rights are in no way affected by the above. Document sources: https://github.com/bootlin/training-materials/ - Kernel, drivers and embedded Linux - Development, consulting, training and support - https://bootlin.com 2/470 Hyperlinks in the document There are many hyperlinks in the document I Regular hyperlinks: https://kernel.org/ I Kernel documentation links: dev-tools/kasan I Links to kernel source files and directories: drivers/input/ include/linux/fb.h I Links to the declarations, definitions and instances of kernel symbols (functions, types, data, structures): platform_get_irq() GFP_KERNEL struct file_operations - Kernel, drivers and embedded Linux - Development, consulting, training and support - https://bootlin.com 3/470 Company at a glance I Engineering company created in 2004, named ”Free Electrons” until Feb.
    [Show full text]