For Slackware Linux 12 - Rlworkman

2y ago
30 Views
2 Downloads
1.17 MB
234 Pages
Last View : 28d ago
Last Download : 3m ago
Upload by : Hayden Brunner
Transcription

Slackware Linux BasicsFor Slackware Linux 12.0Daniël de Kok

Slackware Linux Basics: For Slackware Linux 12.0by Daniël de KokPublished Sun Jan 20 19:45:13 CET 2008Copyright 2002-2008 Daniël de KokLicenseRedistribution and use in textual and binary forms, with or without modification, are permitted provided that the following conditions are met:1. Redistributions of this book must retain the above copyright notice, this list of conditions and the following disclaimer.2. The names of the authors may not be used to endorse or promote products derived from this book without specific prior written permission.THIS BOOK IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ORTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS BOOK, EVEN IF ADVISEDOF THE POSSIBILITY OF SUCH DAMAGE.Linux is a registered trademark of Linus Torvalds. Slackware Linux is a registered trademark of Patrick Volkerding and Slackware Linux, Inc.UNIX is a registered trademark of The Open Group.

Table of ContentsPreface . xiiiI. Getting started . 11. About this book . 51.1. Availability . 51.2. Conventions . 52. An introduction to Slackware Linux . 72.1. What is Linux? . 72.2. What is GNU/Linux? . 72.3. What is Slackware Linux? . 72.4. The UNIX philosophy . 82.5. Free and open source software . 82.6. Slackware Linux 12.0 features . 82.7. Getting Slackware Linux . 93. Sources of help . 113.1. On your system . 113.2. On the Internet . 124. General concepts . 154.1. Multitasking . 154.2. Filesystem hierarchy . 164.3. Devices . 175. Installing Slackware Linux . 195.1. Booting the installation CD-ROM . 195.2. Partitioning a hard disk . 205.3. Installing Slackware Linux . 216. Custom installation . 436.1. Partitioning a hard disk . 436.2. Initializing and mounting filesystems . 436.3. Installing packages . 456.4. Post-install configuration . 456.5. Automated installation script . 48II. Slackware Linux Basics . 537. The shell . 577.1. Introduction . 577.2. Executing commands . 577.3. Moving around . 587.4. Command history . 637.5. Completion . 637.6. Wildcards . 647.7. Redirections and pipes . 658. Files and directories . 678.1. Some theory . 678.2. Analyzing files . 708.3. Working with directories . 758.4. Managing files and directories . 768.5. Permissions . 788.6. Finding files . 868.7. Archives . 938.8. Mounting filesystems . 958.9. Encrypting and signing files . 979. Text processing . 1039.1. Simple text manipulation . 103v

viSlackware Linux Basics9.2. Regular expressions .9.3. grep .10. Process management .10.1. Theory .10.2. Analyzing running processes .10.3. Managing processes .10.4. Job control .III. Editing and typesetting .11. LaTeX .11.1. Introduction .11.2. Preparing basic LaTeX documents .IV. Electronic mail .12. Reading and writing e-mail with mutt .12.1. Introduction .12.2. Usage .12.3. Basic setup .12.4. Using IMAP .12.5. Signing/encrypting e-mails .13. Sendmail .13.1. Introduction .13.2. Installation .13.3. Configuration .V. System administration .14. User management .14.1. Introduction .14.2. Adding and removing users .14.3. Avoiding root usage with su .14.4. Disk quota .15. Printer configuration .15.1. Introduction .15.2. Preparations .15.3. Configuration .15.4. Access control .15.5. Ghostscript paper size .16. X11 .16.1. X Configuration .16.2. Window manager .17. Package Management .17.1. Pkgtools .17.2. Slackpkg .17.3. Getting updates through rsync .17.4. Tagfiles .18. Building a kernel .18.1. Introduction .18.2. Configuration .18.3. Compilation .18.4. Installation .19. System initialization .19.1. The bootloader .19.2. init .19.3. Initialization scripts .19.4. Hotplugging and device node management .19.5. Device firmware .20. Security 184185186186189

Slackware Linux Basics20.1. Introduction .20.2. Closing services .21. Miscellaneous .21.1. Scheduling tasks with cron .21.2. Hard disk parameters .21.3. Monitoring memory usage .VI. Network administration .22. Networking configuration .22.1. Hardware .22.2. Configuration of interfaces .22.3. Configuration of interfaces (IPv6) .22.4. Wireless interfaces .22.5. Resolving .22.6. IPv4 Forwarding .23. IPsec .23.1. Theory .23.2. Linux configuration .23.3. Installing IPsec-Tools .23.4. Setting up IPsec with manual keying .23.5. Setting up IPsec with automatic key exchanging .24. The Internet super server .24.1. Introduction .24.2. Configuration .24.3. TCP wrappers .25. Apache .25.1. Introduction .25.2. Installation .25.3. User directories .25.4. Virtual hosts .26. BIND .26.1. Introduction .26.2. Making a caching nameserver vii

viiiviii

List of Figures4.1. Forking of a process . 154.2. The filesystem structure . 165.1. The cfdisk parition tool . 205.2. The setup tool . 215.3. Setting up the swap partition . 225.4. Selecting a partition to initialize . 225.5. Formatting the partition . 235.6. Selecting a filesystem type . 245.7. Selecting the source medium . 255.8. Selecting the disk sets . 255.9. Installing the kernel . 265.10. Creating a bootdisk . 275.11. Selecting the default modem . 275.12. Enabling hotplugging . 285.13. Selecting the kind of LILO installation . 295.14. Choosing the framebuffer resolution . 295.15. Adding kernel parameters . 305.16. Choosing where LILO should be installed . 315.17. Configuring a mouse . 315.18. Choosing whether GPM should be started or not . 325.19. Choosing whether you would like to configure network connectivity . 325.20. Setting the host name . 335.21. Setting the domain name . 345.22. Manual or automatic IP address configuration . 355.23. Setting the IP addres . 355.24. Setting the netmask . 365.25. Setting the gateway . 365.26. Choosing whether you want to use a nameserver or not . 375.27. Setting the nameserver(s) . 385.28. Confirming the network settings . 385.29. Enabling/disabling startup services . 395.30. Choosing whether the clock is set to UTC . 395.31. Setting the timezone . 405.32. Choosing the default window manager . 415.33. Setting the root password . 415.34. Finished . 427.1. Standard input and output . 657.2. A pipeline . 668.1. The structure of a hard link . 698.2. The structure of a symbolic link . 7010.1. Process states . 12422.1. The anatomy of an IPv6 address . 20022.2. Router example . 204ix

xx

List of Tables5.1. Installation kernels . 197.1. Moving by character . 597.2. Deleting characters . 597.3. Swapping characters . 607.4. Moving by word . 617.5. Deleting words . 617.6. Modifying words . 627.7. Moving through lines . 637.8. Deleting lines . 637.9. Bash wildcards . 648.1. Common inode fields . 678.2. Meaning of numbers in the mode octet . 688.3. less command keys . 738.4. System-specific setfacl flags . 838.5. Parameters for the '-type' operand . 878.6. Archive file extensions . 939.1. tr character classes . 10510.1. The structure of a process . 12311.1. LaTeX document classes . 13811.2. LaTeX font styles . 14017.1. Tagfile fields . 17322.1. Important IPv6 Prefixes . 20126.1. DNS records . 219xi

xiixii

PrefaceThis book aims to provide an introduction to Slackware Linux. It addresses people who have little or no GNU/Linux experience, and covers the Slackware Linux installation, basic GNU/Linux commands and the configuration ofSlackware Linux. After reading this book, you should be prepared to use Slackware Linux for your daily work, andmore than that. Hopefully this book is useful as a reference to more experienced Slackware Linux users as well.Thanks to the rapid development of open source software, there are now comprehensive desktop environments andapplications for GNU/Linux. Most current distributions and books focus on using GNU/Linux with such environments.I chose to ignore most of the graphical applications for this book, and tried to focus this book on helping you, as areader, to learn using GNU/Linux in a more traditional UNIX-like way. I am convinced that this approach is oftenmore powerful, and helps you to learn GNU/Linux well, and not just one distribution or desktop environment. TheUNIX philosophy is described in the overview of U

Linux experience, and covers the Slackware Linux installation, basic GNU/Linux commands and the configuration of Slackware Linux. After reading this book, you should be prepared to use Slackware Linux for your daily work, and more than that. Hopefully this book is useful as a reference to more experienced Slackware Linux users as well.

Related Documents:

Installing Slackware 14 on a Linux Software RAID 1 (MIRRORING) This is beginners guide on how to install Slackware Linux 14 on a RAID 1 (mirrored) drive. Boot the system with Slackware 14 ISO and then when prompted, choose the appropriate keyboard type. To login type root and press enter.

Slackware Linux [6] - It was one of the earliest operating systems to be built on top of the Linux kernel and is the oldest currently being maintained. Slackware is pretty popular among the hardcore Linux users and sys admins. Linux Mint Linux [7] - Linux Mint provides an up-to-date, stable operating system for the average user, with a

The Slackware Linux operating system is a powerful platform for Intel-based computers. It is designed to be stable, secure, and functional as both a high-end server and powerful workstation. This book is designed to get you started with the Slackware Linux operating system. It's not meant to cover every single aspect of

Slackware installs lots of programming stu by default. I did not test to see how extensive this was. A very nasty di erence between Slackware and Fedora in particular, is that your hard drive gets reformatted early in the installation. A Fedora instal-lation does not touch your hard drive until you nally hit the install

Linux in a Nutshell Linux Network Administrator’s Guide Linux Pocket Guide Linux Security Cookbook Linux Server Hacks Linux Server Security Running Linux SELinux Understanding Linux Network Internals Linux Books Resource Center linux.oreilly.comis a complete catalog of O’Reilly’s books on Linux and Unix and related technologies .

No bugzilla, no public code reposito,ry no code contributors No procedures to become a developer. "Benevolent Dictatorship" (although Pat would not agree). The nal decision about what goes into Slackware remains with Patrick Volkerding. But. he listens to common sense. Not a one-man show! Slackware has a core team of contributors

Bruksanvisning för bilstereo . Bruksanvisning for bilstereo . Instrukcja obsługi samochodowego odtwarzacza stereo . Operating Instructions for Car Stereo . 610-104 . SV . Bruksanvisning i original

Agile software development therefore has a focus on: . Scrum is one of the most popular agile development methodologies. Scrum is a lightweight framework designed to help small, close-knit teams of people to create complex software products. The key features of the scrum methodology are as follows: Scrum team: A team of people using this methodology are called a “scrum”. Scrums usually .