The Linux System Administrator's Guide

Total Page:16

File Type:pdf, Size:1020Kb

The Linux System Administrator's Guide The Linux System Administrator's Guide Version 0.9 Lars Wirzenius <Email address removed by request> Joanna Oja <Current email address unknown> Stephen Stafford <[email protected]> Alex Weeks <[email protected]> An introduction to system administration of a Linux system for novices. Copyright 1993−−1998 Lars Wirzenius. Copyright 1998−−2001 Joanna Oja. Copyright 2001−−2003 Stephen Stafford. Copyright 2003−−2004 Stephen Stafford & Alex Weeks. Copyright 2004−−Present Alex Weeks. Trademarks are owned by their owners. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front−Cover Texts, and no Back−Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". The Linux System Administrator's Guide Table of Contents About This Book.................................................................................................................................................1 1. Acknowledgments................................................................................................................................1 1.1. Joanna's acknowledgments.........................................................................................................1 1.2. Stephen's acknowledgments.......................................................................................................1 1.3. Alex's Acknowledgments...........................................................................................................2 2. Revision History..................................................................................................................................2 3. Source and pre−formatted versions available......................................................................................2 4. Typographical Conventions.................................................................................................................3 Chapter 1. Introduction......................................................................................................................................4 1.1. Linux or GNU/Linux, that is the question........................................................................................5 1.2. Trademarks.......................................................................................................................................5 Chapter 2. Overview of a Linux System...........................................................................................................7 2.1. Various parts of an operating system................................................................................................7 2.2. Important parts of the kernel.............................................................................................................7 2.3. Major services in a UNIX system.....................................................................................................8 2.3.1. init............................................................................................................................................9 2.3.2. Logins from terminals.............................................................................................................9 2.3.3. Syslog......................................................................................................................................9 2.3.4. Periodic command execution: cron and at............................................................................10 2.3.5. Graphical user interface.........................................................................................................10 2.3.6. Networking............................................................................................................................10 2.3.7. Network logins......................................................................................................................11 2.3.8. Network file systems.............................................................................................................11 2.3.9. Mail.......................................................................................................................................11 2.3.10. Printing................................................................................................................................12 2.3.11. The filesystem layout..........................................................................................................12 Chapter 3. Overview of the Directory Tree....................................................................................................13 3.1. Background.....................................................................................................................................13 3.2. The root filesystem.........................................................................................................................14 3.3. The /etc directory............................................................................................................................15 3.4. The /dev directory...........................................................................................................................17 3.5. The /usr filesystem..........................................................................................................................19 3.6. The /var filesystem..........................................................................................................................19 3.7. The /proc filesystem........................................................................................................................20 Chapter 4. Hardware, Devices, and Tools......................................................................................................22 4.1. Hardware Utilities...........................................................................................................................22 4.1.1. The MAKEDEV Script.........................................................................................................22 4.1.2. The mknod command............................................................................................................22 4.1.3. The lspci command...............................................................................................................23 4.1.4. The lsdev command...............................................................................................................23 4.1.5. The lsusb command...............................................................................................................23 4.1.6. The lsraid command..............................................................................................................23 4.1.7. The hdparm command...........................................................................................................23 4.1.8. More Hardware Resources....................................................................................................23 i The Linux System Administrator's Guide Table of Contents Chapter 4. Hardware, Devices, and Tools 4.2. Kernel Modules...............................................................................................................................23 4.2.1. lsmod.....................................................................................................................................24 4.2.2. insmod...................................................................................................................................24 4.2.3. depmod..................................................................................................................................24 4.2.4. rmmod...................................................................................................................................24 4.2.5. modprobe...............................................................................................................................24 Chapter 5. Using Disks and Other Storage Media.........................................................................................25 5.1. Two kinds of devices......................................................................................................................25 5.2. Hard disks.......................................................................................................................................26 5.3. Storage Area Networks − Draft......................................................................................................28 5.4. Network Attached Storage − Draft.................................................................................................28 5.4.1. NFS........................................................................................................................................29 5.4.2. CIFS.......................................................................................................................................29 5.5. Floppies...........................................................................................................................................29 5.6. CD−ROMs......................................................................................................................................30 5.7. Tapes...............................................................................................................................................31
Recommended publications
  • Membrane: Operating System Support for Restartable File Systems Swaminathan Sundararaman, Sriram Subramanian, Abhishek Rajimwale, Andrea C
    Membrane: Operating System Support for Restartable File Systems Swaminathan Sundararaman, Sriram Subramanian, Abhishek Rajimwale, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau, Michael M. Swift Computer Sciences Department, University of Wisconsin, Madison Abstract and most complex code bases in the kernel. Further, We introduce Membrane, a set of changes to the oper- file systems are still under active development, and new ating system to support restartable file systems. Mem- ones are introduced quite frequently. For example, Linux brane allows an operating system to tolerate a broad has many established file systems, including ext2 [34], class of file system failures and does so while remain- ext3 [35], reiserfs [27], and still there is great interest in ing transparent to running applications; upon failure, the next-generation file systems such as Linux ext4 and btrfs. file system restarts, its state is restored, and pending ap- Thus, file systems are large, complex, and under develop- plication requests are serviced as if no failure had oc- ment, the perfect storm for numerous bugs to arise. curred. Membrane provides transparent recovery through Because of the likely presence of flaws in their imple- a lightweight logging and checkpoint infrastructure, and mentation, it is critical to consider how to recover from includes novel techniques to improve performance and file system crashes as well. Unfortunately, we cannot di- correctness of its fault-anticipation and recovery machin- rectly apply previous work from the device-driver litera- ery. We tested Membrane with ext2, ext3, and VFAT. ture to improving file-system fault recovery. File systems, Through experimentation, we show that Membrane in- unlike device drivers, are extremely stateful, as they man- duces little performance overhead and can tolerate a wide age vast amounts of both in-memory and persistent data; range of file system crashes.
    [Show full text]
  • Driver Installation Guide
    Operating Instructions Driver Installation Guide For safe and correct use, be sure to read the Safety Information in "Read This First" before using the machine. TABLE OF CONTENTS 1. Introduction Start Installer........................................................................................................................................................3 Software and Utilities Included on the CD-ROM.............................................................................................5 Printer Drivers..................................................................................................................................................5 TWAIN Driver.................................................................................................................................................7 LAN-Fax Driver...............................................................................................................................................8 For Mac OS X Users...........................................................................................................................................9 2. Installing the Printer Driver Confirming the Connection Method............................................................................................................... 11 Network Connection................................................................................................................................... 11 Local Connection........................................................................................................................................
    [Show full text]
  • Building a Beowulf Cluster
    Building a Beowulf cluster Åsmund Ødegård April 4, 2001 1 Introduction The main part of the introduction is only contained in the slides for this session. Some of the acronyms and names in this paper may be unknown. In Appendix B we includ short descriptions for some of them. Most of this is taken from “whatis” [6] 2 Outline of the installation ² Install linux on a PC ² Configure the PC to act as a install–server for the cluster ² Wire up the network if that isn’t done already ² Install linux on the rest of the nodes ² Configure one PC, e.g the install–server, to be a server for your cluster. These are the main steps required to build a linux cluster, but each step can be done in many different ways. How you prefer to do it, depends mainly on personal taste, though. Therefor, I will translate the given outline into this list: ² Install Debian GNU/Linux on a PC ² Install and configure “FAI” on the PC ² Build the “FAI” boot–floppy ² Assemble hardware information, and finalize the “FAI” configuration ² Boot each node with the boot–floppy ² Install and configure a queue system and software for running parallel jobs on your cluster 3 Debian The choice of Linux distribution is most of all a matter of personal taste. I prefer the Debian distri- bution for various reasons. So, the first step in the cluster–building process is to pick one of the PCs as a install–server, and install Debian onto it, as follows: ² Make sure that the computer can boot from cdrom.
    [Show full text]
  • Paperstream Capture 2.5 User's Guide P2WW-4050-01ENZ0 Issue Date: March 2018 Issued By: PFU Limited ● the Contents of This Manual Are Subject to Change Without Notice
    P2WW-4050-01ENZ0 PaperStream Capture 2.5 User's Guide Contents Chapter 1 Introduction 4 Chapter 2 Conventions 6 Chapter 3 Prior to Use 8 3.1 Overview..............................................................................................................................................8 3.2 Features...............................................................................................................................................8 3.3 System Requirements .......................................................................................................................11 Chapter 4 Installation 14 4.1 Installing PaperStream Capture.........................................................................................................14 4.2 Installing PaperStream Capture Pro.................................................................................................. 14 Chapter 5 Basic Scanning Operations 17 5.1 Scanning in Simple Scan...................................................................................................................17 5.1.1 Operation Flow ..........................................................................................................................................17 5.1.2 Scanning a Document ...............................................................................................................................17 5.1.3 Naming and Saving the Images That Are Checked and Edited ................................................................19 5.2 Scanning in Batch Scan.....................................................................................................................19
    [Show full text]
  • Marjn Norling November 2012
    Mar$n Norling November 2012 UNIX Lecture Goals • Goal 1: Know basic UNIX commands and their use from memory. • Goal 2: Know how to find informaon on more advanced UNIX commands and their use. • Goal 3: Understand the basics of regular expression paerns. • Goal 4: Know the basic loops and condi$onals for shell scrip$ng and understand how to use them. UNIX Schedule Thursday Friday 09.00-09.45 UNIX introduc$on 09.00-09.45 Bash Scrip$ng 10.00-10.45 UNIX basics 10.00-10.45 Tutorial: Bash scrip$ng 11.00-12.00 Redirects to regexp 11.00-12.00 Tips & Quesons 12.00-13.00 Lunch 12.00-13.00 Lunch 13.00-16.00 Tutorial: Basics 13.00-16.00 Tutorial: finishing up UNIX HISTORY UNIX History • 1969 – First Version of UNIX developed at Bell Labs by AT&T • 1975 – UNIX 6, the first to be widely available outside Bell Labs. The first “Berkeley So]ware Distribu$on” (BSD) is released. • 1989 – UNIX System V, the last tradi$onal UNIX version. • 1991 – Linus Torvalds begin developing Linux. “UNIX-like” • Today – UNIX itself, what’s now called “tradi$onal UNIX” is not used, except by enthusiasts. • There are many “UNIX-like” systems (also known as *nix or UN*X) that are similar to UNIX while not conforming to the Single UNIX Specificaon. • In fact, most operang systems today except windows are “UNIX like”. Single UNIX Specificaon (SUS) • Developed and maintained by the Aus$n Group, based on earlier work by the IEee and The Open Group.
    [Show full text]
  • AXIS NPS 630/632 User's Manual
    Preface Preface Thank you for purchasing the Axis NPS 630/632 Network Print Server. Our goal in developing this product is to enable you to connect your printers anywhere in your network, allowing all network users access to shared printer resources. About Axis Axis Communications, founded in 1984, is one of the world’s fastest growing companies in the printer interface and network print server market. The head quarters are located in Lund, Sweden, with subsidiaries in Boston, Tokyo, and Hong Kong. Axis Communications has a distributor network operating in more than 60 countries world-wide, marketing three product lines: Network CD- CD-ROM servers provide a flexible and cost-efficient solution for sharing ROM Servers CD-ROMs across the network. They are available in Ethernet and Token Ring versions, with or without built in drive option. Network Print These intelligent Ethernet and Token Ring print servers support a wide Servers range of LAN protocols. The Axis NPS 530, 532, 550, AXIS 150 and 152 are Ethernet print servers, and the Axis NPS 630, 632 and 650 are Token Ring print servers. IBM Mainframe These products include a wide range of plug-in interfaces and free and S/3x – AS/ standing products such as the Cobra+ and the AFP IPDS-to-PostScript 400 Printer converter. Interfaces Axis NPS 630/632 User’s Manual Version 2.0 Part No.:13768 October 1995 Copyright © Axis Communications AB Axis NPS 630/632 User’s Manual 1 Preface About this manual This manual will guide you through a simple step-by-step installation and configuration procedure.
    [Show full text]
  • 12/04/13 1. Einleitung 1
    12/04/13 1. Einleitung 1 1. Einleitung − Was ist Systemadministration? ============================================= 12/04/13 1. Einleitung 2 System Administration: It’s a dirty job, but someone said I had to do it. Aufgaben eines Sysadmin gestern und heute: Früher Heute − Einrichten von neuen Nutzern Auch heute gibt es neue User per Hand mit Scripte, Oberflächen automatisiert − Druckermanagment Tonerpatrone Wechseln, Druckerjobs canceln, Drucker reaktivieren, Nutzer beruhigen, Das ist immer noch so. "Der Drucker druckt nicht, ich habe nichts gemacht." − Fragen beantworten: "Wie kann ich ....?" Die Nutzer lesen immer Das "Dialog−Manual" noch keine Manuals. − Prozesse killen Auch heute sollen Prozesse noch endlos laufen. 12/04/13 1. Einleitung 3 Früher Heute − Prozesse/Daemone nach Möglich, aber es gibt Absturz neu starten auch Überwachungstools − Tastaturen aktivieren kommt seltener vor − Backups veranlassen Die Datenmengen sind (zeitzyklisch, häufig) nur viel größer. − Restore von Files Auch heute löschen Nutzer ihre Files unabsichtlich. − "Mein Rechner macht nichts mehr!!!!" Passiert seltener, da die Monitoring/Tracing Rechner schneller sind und mehr Prozessoren haben, gibt es dieses Problem nicht so oft. − Rebooting von Systemen Alle zwei bis drei Jahre kommt bei Fehlern so etwas noch vor. − Speicherplatz auf Platten schaffen Jeder erfüllte Wunsch erzeugt Hilferuf: "Ich kann nichts mehr viele neue kleine Wünsche speichern!!!!" − Sicherheitslöcher finden und Schlimmer als je zuvor, beseitigen, Einbrecher suchen dank Internet und verfolgen 12/04/13 1. Einleitung 4 Früher Heute − Passwörter prüfen Nicht mehr nötig dank neuer Technologien − Programme installieren Es soll auch heute noch neue Programme geben. Einheitliche Verfahren erleichtern aber die Arbeit. − Betriebssystemupdates Vereinfacht. − Konfiguration des Rechnernetzes ja − Installieren neuer Rechner.
    [Show full text]
  • Dynamic Web TWAIN
    TWAIN is a software protocol developed by member companies of TWAIN Working Group to provide what is today the most universal standard for communicating between applications and image acquisition devices, such as scanners and digital cameras. Over the years, TWAIN has dominated local or network software to device communication for image capture purposes. Today, the TWAIN standard is also playing a star role in web application communication with devices. Developers of web applications requiring use of the TWAIN standard have a variety of things to consider. This white paper is suited for software developers building web applications that acquire images from TWAIN-compatible devices through web browsers. In some rare cases an organization might attempt to build their own TWAIN-based web scanning component. However, most companies opt to find an off-the-shelf solution to save themselves from the cost and risks of attempting such a big effort. Regardless if you are buying or building, there are some rules to live by when evaluating a TWAIN component. By following these rules you'll find a solution that will save you time and improve your productivity. What to Look for when Evaluating Web Scanning Components Easy to Develop Rule #1: A web scanning component should make web development easier. The TWAIN 2.1 specification is a painful 664 pages long. It can take weeks just to read through the document, let alone to fully understand the specification. Additionally, after understanding TWAIN there is still an overwhelming amount of work to enable features like image compression, image uploading, and image downloading.
    [Show full text]
  • Filesystems HOWTO Filesystems HOWTO Table of Contents Filesystems HOWTO
    Filesystems HOWTO Filesystems HOWTO Table of Contents Filesystems HOWTO..........................................................................................................................................1 Martin Hinner < [email protected]>, http://martin.hinner.info............................................................1 1. Introduction..........................................................................................................................................1 2. Volumes...............................................................................................................................................1 3. DOS FAT 12/16/32, VFAT.................................................................................................................2 4. High Performance FileSystem (HPFS)................................................................................................2 5. New Technology FileSystem (NTFS).................................................................................................2 6. Extended filesystems (Ext, Ext2, Ext3)...............................................................................................2 7. Macintosh Hierarchical Filesystem − HFS..........................................................................................3 8. ISO 9660 − CD−ROM filesystem.......................................................................................................3 9. Other filesystems.................................................................................................................................3
    [Show full text]
  • SGI™ Propack 1.3 for Linux™ Start Here
    SGI™ ProPack 1.3 for Linux™ Start Here Document Number 007-4062-005 © 1999—2000 Silicon Graphics, Inc.— All Rights Reserved The contents of this document may not be copied or duplicated in any form, in whole or in part, without the prior written permission of Silicon Graphics, Inc. LIMITED AND RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in the Rights in Data clause at FAR 52.227-14 and/or in similar or successor clauses in the FAR, or in the DOD, DOE or NASA FAR Supplements. Unpublished rights reserved under the Copyright Laws of the United States. Contractor/ manufacturer is SGI, 1600 Amphitheatre Pkwy., Mountain View, CA 94043-1351. Silicon Graphics is a registered trademark and SGI and SGI ProPack for Linux are trademarks of Silicon Graphics, Inc. Intel is a trademark of Intel Corporation. Linux is a trademark of Linus Torvalds. NCR is a trademark of NCR Corporation. NFS is a trademark of Sun Microsystems, Inc. Oracle is a trademark of Oracle Corporation. Red Hat is a registered trademark and RPM is a trademark of Red Hat, Inc. SuSE is a trademark of SuSE Inc. TurboLinux is a trademark of TurboLinux, Inc. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd. SGI™ ProPack 1.3 for Linux™ Start Here Document Number 007-4062-005 Contents List of Tables v About This Guide vii Reader Comments vii 1. Release Features 1 Feature Overview 2 Qualified Drivers 3 Patches and Changes to Base Linux Distributions 3 2.
    [Show full text]
  • Dwarf's Guide to Debian GNU/Linux
    Dwarf’s Guide to Debian GNU/Linux 2001 Dale Scheetz Dwarf’s Guide to Debian GNU/Linux Copyright c 2001 Dale Scheetz Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being Chapter 1 Introduction, with no Front-Cover Texts, and with the Back-Cover Texts being “The early development of the material in this work was produced with the financial support of Planet Linux. This support was intrumental in bringing this project to completion.” A copy of the license is included in the section entitled “Appendix 9: GNU Free Documentation License” which can be found on page 271. Trademark Acknowledgements All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. The publisher cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. Apple and Macintosh are registered trademarks of Apple Computer, Inc. CP/M is a registered trademark of Caldera, Inc. IBM is a registered trademark of International Business Machines, Inc. MS is a trademark of Microsoft Corporation. Windows is a trademark of Microsoft Corporation. X Window System is a registered trademark of X Consortium, Inc. ii dedicated to Linux users everywhere iii CREDITS First I want to thank Ian Murdock for writing the History section. His per- spectives on those early years have helped latecomers like Dwarf understand the founding principles upon which Debian is based.
    [Show full text]
  • Manualai6 K1 Pt.Qxd6 13.01.2004 11:35 Uhr Seite 1 Silverfast® Manual
    ManualAi6 K1 Pt.qxd6 13.01.2004 11:35 Uhr Seite 1 SilverFast® Manual Português ManualAi6 K1 Pt.qxd6 13.01.2004 11:35 Uhr Seite 2 Introdução 1 ManualAi6 K1 Pt.qxd6 ® 2 130104 Manual SilverFast ManualAi6 K1 Pt.qxd6 13.01.2004 11:35 Uhr Seite 3 Introdução Direitos autorais Copyright © 1994-2005 SilverFast, LaserSoft Imaging AG, Aleman- ha. Copyright © 1994-2005 Manual SilverFast, LaserSoft Imaging AG, 24105 Kiel. Nenhuma parte desta publicação pode ser reproduzida, armazena- da num sistema de reprodução ou transmitida, sob qualquer forma 1 ou através quaisquer meios, quer sejam eletrónicos ou mecânicos, sem o consentimento prévio por escrito da LaserSoft Imaging AG. O software SilverFast está protegido pelos direitos autorais da LaserSoft Imaging AG e só pode ser utilizado de acordo com o estabelecido no contrato de licença. O adquirente só pode copiar o software para efetuar cópias de segurança. Todas as outras formas de reprodução são proibidas e poderão ser punidas por lei. A LaserSoft Imaging AG não garante que este software seja execu- tado sem ocorrerem erros em todos os sistemas do Macintosh ou do Windows. No entanto, a LaserSoft Imaging AG vai substituir o software que estiver danificado. O software descrito neste manual está incluído no contrato de Sede licença e entra em vigor quando o adquirente abrir o pacote do CD. O software pode ser utilizado de acordo com estes contratos LaserSoft Imaging AG de licença. Luisenweg 6-8 , 24105 Kiel, Alemanha Telefone: +49-431-56009-0 Todas as marcas comerciais mencionadas são as marcas comer- Fax: +49-431-56009-98 ciais registadas dos respectivos proprietários.
    [Show full text]