Linux System Administration Table of Contents Linux System Administration, Second Edition

Total Page:16

File Type:pdf, Size:1020Kb

Linux System Administration Table of Contents Linux System Administration, Second Edition Linux System Administration Table of Contents Linux System Administration, Second Edition...............................................................................1 Foreword............................................................................................................................................3 Acknowledgments....................................................................................................................3 Introduction........................................................................................................................................4 The Benefits of Linux...............................................................................................................4 Who Should Buy This Book.....................................................................................................5 About the Second Edition........................................................................................................5 How This Book Is Organized...................................................................................................6 Chapter 1: The Basics of System Administration...............................................................6 Chapter 2: Installing Linux..................................................................................................6 Chapter 3: Startup and Shutdown......................................................................................6 Chapter 4: Tools of the Trade............................................................................................7 Chapter 5: Creating and Maintaining User Accounts.........................................................7 Chapter 6: Filesystems and Disk Management.................................................................7 Chapter 7: Linux Files and Processes...............................................................................7 Chapter 8: Software Administration...................................................................................7 Chapter 9: Backup and Restore.........................................................................................7 Chapter 10: Printers and the Spooling Subsystem............................................................7 Chapter 11: Serial Communications, Terminals, and Modems..........................................7 Chapter 12: TCP/IP Linux Networking...............................................................................8 Chapter 13: The X Window System...................................................................................8 Chapter 14: Setting Up Your Mail Server...........................................................................8 Chapter 15: Security..........................................................................................................8 Chapter 16: Performance Tuning.......................................................................................8 Chapter 17: Making Your Job Easier with Scripts..............................................................8 Chapter 18: Troubleshooting Your Linux System..............................................................8 Conventions Used in This Book...............................................................................................9 Help Us Help You..................................................................................................................10 Part I: The Basics.............................................................................................................................11 Chapter List............................................................................................................................11 Featuring................................................................................................................................11 Chapter 1: The Basics of System Administration........................................................................12 Overview................................................................................................................................12 Your Role as a System Administrator....................................................................................12 Tasks of a System Administrator...........................................................................................13 Configuring Hardware......................................................................................................13 Installing the Operating System.......................................................................................14 Installing Application Software.........................................................................................14 System Security...............................................................................................................14 Configuring the Kernel.....................................................................................................14 Creating Users and Groups.............................................................................................15 Software Updates.............................................................................................................15 Performance Tuning.........................................................................................................15 Disaster Recovery............................................................................................................15 Capacity Planning............................................................................................................16 Network Administration....................................................................................................16 i Table of Contents Chapter 1: The Basics of System Administration "When You Have a Minute..."...........................................................................................16 Tools of the Linux Administrator............................................................................................16 Commands.......................................................................................................................17 System Logbook..............................................................................................................18 Communicating with Users..............................................................................................20 Working on the System as Root............................................................................................21 Becoming the Root User..................................................................................................21 In Sum....................................................................................................................................23 Chapter 2: Installing Linux..............................................................................................................24 Overview................................................................................................................................24 Benchmarks...........................................................................................................................24 Selecting Hardware................................................................................................................25 Minimal Acceptable Hardware.........................................................................................25 CPU Performance............................................................................................................25 Random Access Memory.................................................................................................26 Selecting Hardware by Intended Usage...........................................................................27 Specialized Hardware Performance Solutions.................................................................28 Types of Hardware to Avoid.............................................................................................33 Selecting a Linux Distribution.................................................................................................35 Red Hat Linux..................................................................................................................35 Mandrake.........................................................................................................................37 Caldera.............................................................................................................................37 SuSE Linux......................................................................................................................38 Slackware Linux...............................................................................................................38 Debian..............................................................................................................................39 The Choice Is Yours.........................................................................................................39 Installing Red Hat Linux.........................................................................................................40 Preparing for Installation..................................................................................................40 Choosing a Partitioning Scheme......................................................................................41 Installing a Server............................................................................................................42
Recommended publications
  • THE Advancedlinux
    THE advanced linux POCKETBOOK This Pocketbook is for Advanced users of Linux. If you find the information over your head, we recommend that Editorial you look at the 2003 Edition Linux Pocketbook, which can be found on last month’s cover CD. If you missed out, Hello and welcome to the 2003 Edition of the Advanced Linux Pocketbook. Last month we gave you the updated Linux Pocketbook, so by now you should be an old then don’t worry... we can help you! Call 136 116 or visit hand when it comes to the basics; installing software, configuring settings, and www.magshop.com.au to order your back issue for connecting to other machines. You should be at least savvy when it comes to the command line, even if you can’t do much more than manipulate files. Grep should $9.80 + $6.50 for postage within Australia. be in your bag of tricks, and your fingers should gravitate to the ‘l’ and ‘s’ keys automatically when you sit idle at the console. If you’re keen to learn how to make the most out of Linux, you’re in the right place. While the first book dealt with how May the source be with you! to get Linux up and running on your system, this Advanced Pocketbook develops your skills from there. Remember back to when you installed your first Linux distribution and looked up to the geeks that seemed to know so much more about this obscure yet powerful operating system. They dazzled you with talk of Python scripts, pages built using PHPNuke, and staying up late at night, fuelled by litres of Jolt cola, to recompile their kernels.
    [Show full text]
  • Eyelink 1000 Installation Guide
    EyeLink® 1000 Installation Guide Tower, Desktop, LCD Arm, Primate, and Long Range Mounts Remote, 2000 Hz and Fiber Optic Camera Upgrades Version 1.5.0 Copyright ©2005-2009, SR Research Ltd. EyeLink is a registered trademark of SR Research Ltd., Mississauga, Ontario, Canada Read instructions before use. US Entela Safety Mark: Compliance of this product with UL 60950 3rd Edition, CSA C22.2 No 60950-00-CAN/CSA is certified by Entela, an independent testing body. C Certified CLASS 1 LED DEVICE IEC 60825-1 (Ed. 1.2:2001) CONTACT ADDRESS SR Research Ltd. 5516 Osgoode Main St., Ottawa, Ontario, Canada K0A 2W0 Fax: 613-482-4866 Phone: 613-826-2958 Toll Free: 1-866-821-0731 Email: [email protected] http://www.sr-research.com/ ii © 2005-2009 SR Research Ltd. Table of Contents 1. Introduction ....................................................................................................... 1 1.1 Suggested Equipment Layout ............................................................. 2 2. Installation and System Cabling .................................................................. 4 2.1 Unpacking ......................................................................................... 4 2.2 Display PC Hardware Installation ....................................................... 4 2.3 Setting up the Host PC ....................................................................... 5 2.3.1 Rebuilding the Host PC ............................................................................... 6 2.4 Host PC Wiring .................................................................................
    [Show full text]
  • Microkernels in a Bit More Depth • Early Operating Systems Had Very Little Structure • a Strictly Layered Approach Was Promoted by Dijkstra
    Motivation Microkernels In a Bit More Depth Early operating systems had very little structure A strictly layered approach was promoted by Dijkstra THE Operating System [Dij68] COMP9242 2007/S2 Week 4 Later OS (more or less) followed that approach (e.g., Unix). UNSW Such systems are known as monolithic kernels COMP9242 07S2 W04 1 Microkernels COMP9242 07S2 W04 2 Microkernels Issues of Monolithic Kernels Evolution of the Linux Kernel E Advantages: Kernel has access to everything: all optimisations possible all techniques/mechanisms/concepts implementable Kernel can be extended by adding more code, e.g. for: new services support for new harwdare Problems: Widening range of services and applications OS bigger, more complex, slower, more error prone. Need to support same OS on different hardware. Like to support various OS environments. Distribution impossible to provide all services from same (local) kernel. COMP9242 07S2 W04 3 Microkernels COMP9242 07S2 W04 4 Microkernels Approaches to Tackling Complexity Evolution of the Linux Kernel Part 2 A Classical software-engineering approach: modularity Software-engineering study of Linux kernel [SJW+02]: (relatively) small, mostly self-contained components well-defined interfaces between them Looked at size and interdependencies of kernel "modules" enforcement of interfaces "common coupling": interdependency via global variables containment of faults to few modules Analysed development over time (linearised version number) Doesn't work with monolithic kernels: Result 1:
    [Show full text]
  • Building Performance Measurement Tools for the MINIX 3 Operating System
    Building Performance Measurement Tools for the MINIX 3 Operating System Rogier Meurs August 2006 Contents 1 INTRODUCTION 1 1.1 Measuring Performance 1 1.2 MINIX 3 2 2 STATISTICAL PROFILING 3 2.1 Introduction 3 2.2 In Search of a Timer 3 2.2.1 i8259 Timers 3 2.2.2 CMOS Real-Time Clock 3 2.3 High-level Description 4 2.4 Work Done in User-Space 5 2.4.1 The SPROFILE System Call 5 2.5 Work Done in Kernel-Space 5 2.5.1 The SPROF Kernel Call 5 2.5.2 Profiling using the CMOS Timer Interrupt 6 2.6 Work Done at the Application Level 7 2.6.1 Control Tool: profile 7 2.6.2 Analyzing Tool: sprofalyze.pl 7 2.7 What Can and What Cannot be Profiled 8 2.8 Profiling Results 8 2.8.1 High Scoring IPC Functions 8 2.8.2 Interrupt Delay 9 2.8.3 Profiling Runs on Simulator and Other CPU Models 12 2.9 Side-effect of Using the CMOS Clock 12 3 CALL PROFILING 13 3.1 Introduction 13 3.1.1 Compiler-supported Call Profiling 13 3.1.2 Call Paths, Call and Cycle Attribution 13 3.2 High-level Description 14 3.3 Work Done in User-Space 15 3.3.1 The CPROFILE System Call 15 3.4 Work Done in Kernel-Space 16 3.4.1 The PROFBUF and CPROF Kernel Calls 16 3.5 Work Done in Libraries 17 3.5.1 Profiling Using Library Functions 17 3.5.2 The Procentry Library Function 17 3.5.3 The Procexit Library Function 20 3.5.4 The Call Path String 22 3.5.5 Testing Overhead Elimination 23 3.6 Profiling Kernel-Space/User-Space Processes 24 3.6.1 Differences in Announcing and Table Sizes 24 3.6.2 Kernel-Space Issue: Reentrancy 26 3.6.3 Kernel-Space Issue: The Call Path 26 3.7 Work Done at the Application
    [Show full text]
  • Implementing Hard Drives 10
    All-in-1 / A+ Certification Exm Gde, 6th Ed. / Meyers / 6311-3 CHAPTER Implementing Hard Drives 10 In this chapter, you will learn how to • Explain the partitions available in Windows • Discuss the formatting options • Partition and format hard drives • Maintain and troubleshoot a hard drive From the standpoint of your PC, a new hard drive successfully installed is nothing more than a huge pile of sectors. CMOS sees the drive; it shows up in your autodetect screen and BIOS knows how to talk to the drive; but as far as an operating system is concerned, that drive is unreadable. Your operating system must organize that big pile of sectors so you can create two things: folders and files. This chapter covers that process. Historical/Conceptual After you’ve successfully installed a hard drive, you must perform two more steps to translate a drive’s geometry and circuits into something usable to the system: partition- ing and formatting. Partitioning is the process of electronically subdividing the physical hard drive into groups of cylinders called partitions (or volumes). A hard drive must have at least one partition, and you can create multiple partitions on a single hard drive if you wish. In Windows, each of these partitions typically is assigned a drive letter such as C: or D:. After partitioning, you must format the drive. This step installs a file system onto the drive that organizes each partition in such a way that the operating system can store files and folders on the drive. Several different types of file systems are used in the Windows world.
    [Show full text]
  • Alivenf6p-VSTA
    ALiveNF6P-VSTA User Manual Version 1.1 Published November 2007 Copyright©2007 ASRock INC. All rights reserved. 1 Copyright Notice: No part of this manual may be reproduced, transcribed, transmitted, or translated in any language, in any form or by any means, except duplication of documentation by the purchaser for backup purpose, without written consent of ASRock Inc. Products and corporate names appearing in this manual may or may not be regis- tered trademarks or copyrights of their respective companies, and are used only for identification or explanation and to the owners’ benefit, without intent to infringe. Disclaimer: Specifications and information contained in this manual are furnished for informa- tional use only and subject to change without notice, and should not be constructed as a commitment by ASRock. ASRock assumes no responsibility for any errors or omissions that may appear in this manual. With respect to the contents of this manual, ASRock does not provide warranty of any kind, either expressed or implied, including but not limited to the implied warran- ties or conditions of merchantability or fitness for a particular purpose. In no event shall ASRock, its directors, officers, employees, or agents be liable for any indirect, special, incidental, or consequential damages (including damages for loss of profits, loss of business, loss of data, interruption of business and the like), even if ASRock has been advised of the possibility of such damages arising from any defect or error in the manual or product. This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
    [Show full text]
  • Zenon Manual Programming Interfaces
    zenon manual Programming interfaces v.7.11 ©2014 Ing. Punzenberger COPA-DATA GmbH All rights reserved. Distribution and/or reproduction of this document or parts thereof in any form are permitted solely with the written permission of the company COPA-DATA. The technical data contained herein has been provided solely for informational purposes and is not legally binding. Subject to change, technical or otherwise. Contents 1. Welcome to COPA-DATA help ...................................................................................................... 6 2. Programming interfaces ............................................................................................................... 6 3. Process Control Engine (PCE) ........................................................................................................ 9 3.1 The PCE Editor ............................................................................................................................................. 9 3.1.1 The Taskmanager ....................................................................................................................... 10 3.1.2 The editing area .......................................................................................................................... 10 3.1.3 The output window .................................................................................................................... 11 3.1.4 The menus of the PCE Editor .....................................................................................................
    [Show full text]
  • Operating Systems and Computer Networks
    Operating Systems and Computer Networks Exercise 1: Introduction to Operating System Faculty of Engineering Operating Systems and Institute of Computer Engineering Computer Networks Exercises Prof. Dr.-Ing. Axel Hunger Alexander Maxeiner, M.Sc. Q1.1 – Operating System (OS) • Operating System is – a program that manages computer hardware and resources – providing Interfaces between hardware and applications – the intermediary between computer and users • Functions: – For Users: convenient usage of computer system and usage of applications – For System: Management of Computer Resources and abstraction of underlying (complex) machine Faculty of Engineering Operating Systems and Institute of Computer Engineering Computer Networks Exercises Prof. Dr.-Ing. Axel Hunger Alexander Maxeiner, M.Sc. Q1.1 – Operating System (OS) Computer systems •provide a capability for gathering data (i.e. data mining, to get information that lead to tailored commercials) •performing computations (modeling large system instead of building them) •storing information, (Photos, tables, etc.) •communicating with other computer systems (I.e. Internet) “The operating system defines our computing experience. It is the first software we see when we turn on the computer and the last software we see when the computer is turned off.” Faculty of Engineering Operating Systems and Institute of Computer Engineering Computer Networks Exercises Prof. Dr.-Ing. Axel Hunger Alexander Maxeiner, M.Sc. Q1.1 – Operating System (OS) User Application Interfaces nice Operating System Interfaces
    [Show full text]
  • Linux Journal | System Administration Special Issue | 2009
    Cfengine VNC Billix Zenoss Thin Clients MySQL Heartbeat ™ SPECIAL SYSTEM ADMINISTRATION ISSUE Since 1994: The Original Magazine of the Linux Community 2009 | Supplement Issue | www.linuxjournal.com MAY THE SOURCE BE WITH YOU Billix: the Sysadmin Toolkit for Your Pocket Authentication with Fedora Directory Server Remote Desktop Administration with OpenSSH or VNC Manage Configuration Files with Cfengine Setting Up a PXE Boot Server Network Monitoring with Zenoss SPECIAL SYSTEM CONTENTS ADMINISTRATION ISSUE 5 SPECIAL_ISSUE.TAR.GZ 26 PXE MAGIC: FLEXIBLE System Administration: Instant NETWORK BOOTING WITH Gratification Edition MENUS Shawn Powers What if you never had to carry around an install or rescue CD 6 CFENGINE FOR again? Set up a PXE boot server ENTERPRISE with menus and put them all on CONFIGURATION the network. MANAGEMENT Kyle Rankin How to use cfengine to manage configuration files across large 30 CREATING VPNS WITH 17 ZENOSS numbers of machines. IPSEC AND SSL/TLS Scott Lackey The two most common and current techniques for creating VPNs. 10 SECURED REMOTE Rami Rosen Linux Journal DESKTOP/APPLICATION SESSIONS 34 MYSQL 5 STORED 2009 Lineup Different ways to control a Linux PROCEDURES: RELIC OR system over a network. REVOLUTION? JANUARY Mick Bauer Do MySQL 5 Stored Procedures Security produce tiers of joy or sorrow? FEBRUARY Guy Harrison Web Development 38 GETTING STARTED WITH MARCH Desktop HEARTBEAT Availability in a heartbeat. APRIL Daniel Bartholomew System Administration 14 BILLIX: A SYSADMIN’S MAY SWISS ARMY KNIFE 42 FEDORA DIRECTORY Cool Projects SERVER: THE EVOLUTION Build a toolbox in your pocket by JUNE installing Billix on that spare USB key.
    [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]
  • Introduction to Bioinformatics Introduction to Bioinformatics
    Introduction to Bioinformatics Introduction to Bioinformatics Prof. Dr. Nizamettin AYDIN [email protected] Introduction to Perl http://www3.yildiz.edu.tr/~naydin 1 2 Learning objectives Setting The Technological Scene • After this lecture you should be able to • One of the objectives of this course is.. – to enable students to acquire an understanding of, and understand : ability in, a programming language (Perl, Python) as the – sequence, iteration and selection; main enabler in the development of computer programs in the area of Bioinformatics. – basic building blocks of programming; – three C’s: constants, comments and conditions; • Modern computers are organised around two main – use of variable containers; components: – use of some Perl operators and its pattern-matching technology; – Hardware – Perl input/output – Software – … 3 4 Introduction to the Computing Introduction to the Computing • Computer: electronic genius? • In theory, computer can compute anything – NO! Electronic idiot! • that’s possible to compute – Does exactly what we tell it to, nothing more. – given enough memory and time • All computers, given enough time and memory, • In practice, solving problems involves are capable of computing exactly the same things. computing under constraints. Supercomputer – time Workstation • weather forecast, next frame of animation, ... PDA – cost • cell phone, automotive engine controller, ... = = – power • cell phone, handheld video game, ... 5 6 Copyright 2000 N. AYDIN. All rights reserved. 1 Layers of Technology Layers of Technology • Operating system... – Interacts directly with the hardware – Responsible for ensuring efficient use of hardware resources • Tools... – Softwares that take adavantage of what the operating system has to offer. – Programming languages, databases, editors, interface builders... • Applications... – Most useful category of software – Web browsers, email clients, web servers, word processors, etc..
    [Show full text]
  • Recompiling Minix
    8 RECOMPILING MINIX This chapter is intended for those readers who wish to modify MINIX or its utili- ties. In the following pages we will tell what the various files do and howthe pieces are put together to form the whole. It should be emphasized that if you simply intend to use MINIX as distributed, then you do not have torecompile the system and you do not have toread this chapter.Howev er, ifyou want to makechanges to the core of the operating system itself, for example, to add a device driverfor a streamer tape, then you should read this chapter. 8.1. REBUILDING MINIX ON THE IBM PC Although this section is specifically for IBM PC users, it should also be read carefully by everyone interested in recompiling MINIX.Most of what is said here applies to all versions of MINIX.The sections about other processors mostly discuss the differences between recompiling MINIX on an IBM PC and on another system. The MINIX sources are contained in the following directories, normally all subdi- rectories of /usr/src except for include which goes in /usr/include: center allbox; l l. Directory Contents include The headers used by the SEC. 8.1 REBUILDING MINIX ON THE IBM PC 113 commands (has twosubdirectories) kernel Process, message, and I/O device handling mm The memory manager fs The file system tools Miscellaneous tools and utilities test Test programs lib Libraries (has several subdirectories) commands The utility programs (has manysubdirectories) Some of the directories contain subdirectories. If you are working on a hard disk, be sure that all these directories have been set up, and all files copied there from the dis- tribution diskettes and decompressed and dearchived.
    [Show full text]