Full Download Learn CentOS Linux Network Services Vazquez PDF DOCX
Full Download Learn CentOS Linux Network Services Vazquez PDF DOCX
com
https://textbookfull.com/product/learn-centos-linux-network-
services-vazquez/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/learn-centos-linux-network-services-
vazquez-2/
textboxfull.com
https://textbookfull.com/product/ubuntu-and-centos-linux-server-
administration-md-tanvir-rahman/
textboxfull.com
https://textbookfull.com/product/learn-linux-in-a-month-of-
lunches-1st-edition-steven-ovadia/
textboxfull.com
https://textbookfull.com/product/learn-amazon-web-services-in-a-month-
of-lunches-1st-edition-david-clinton/
textboxfull.com
Learn CentOS
Linux Network
Services
—
Antonio Vazquez
Learn CentOS Linux
Network Services
Antonio Vazquez
Learn CentOS Linux Network Services
Antonio Vazquez
Madrid, Madrid, Spain
ISBN-13 (pbk): 978-1-4842-2378-9 ISBN-13 (electronic): 978-1-4842-2379-6
DOI 10.1007/978-1-4842-2379-6
Library of Congress Control Number: 2016960292
Copyright © 2016 by Antonio Vazquez
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part
of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission
or information storage and retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are
brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for
the purpose of being entered and executed on a computer system, for exclusive use by the purchaser
of the work. Duplication of this publication or parts thereof is permitted only under the provisions
of the Copyright Law of the Publisher’s location, in its current version, and permission for use must
always be obtained from Springer. Permissions for use may be obtained through RightsLink at the
Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol
with every occurrence of a trademarked name, logo, or image, we use the names, logos, and images only
in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of
the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject
to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the author nor the editors nor the Publisher can accept any legal responsibility for
any errors or omissions that may be made. The Publisher makes no warranty, express or implied, with
respect to the material contained herein.
Managing Director: Welmoed Spahr
Acquisitions Editor: Louise Corrigan
Development Editor: James Markham
Technical Reviewer: Massimo Nardone
Editorial Board: Steve Anglin, Pramila Balen, Laura Berendson, Aaron Black, Louise Corrigan,
Jonathan Gennick, Todd Green, Celestin Suresh John, Nikhil Karkal, Robert Hutchinson,
James Markham, Matthew Moodie, Natalie Pao, Gwenan Spearing
Coordinating Editor: Nancy Chen
Copy Editor: Michael G. Laraque
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring
Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail
orders-ny@springer-sbm.com, or visit www.springer.com. Apress Media, LLC is a California LLC and
the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc).
SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.
eBook versions and licenses are also available for most titles. For more information, reference our
Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text are available
to readers at www.apress.com. For detailed information about how to locate your book’s source code,
go to www.apress.com/source-code/.
Printed on acid-free paper
This book is dedicated to my family, especially to my parents, who recently had to
endure some difficult times. I love you both.
Contents at a Glance
v
Contents
vii
■ CONTENTS
2.7. SELinux........................................................................................... 53
■Chapter 3: Networking ................................................................. 59
3.1. IPv4 ................................................................................................ 59
3.1.1. Special Addresses ........................................................................................ 60
3.1.2. Unicast, Multicast, and Broadcast ................................................................ 60
3.1.3. IPv4 Configuration in CentOS ........................................................................ 61
3.2. IPv6 ................................................................................................ 67
3.3. Networking Tools ............................................................................ 69
3.3.1. netstat .......................................................................................................... 69
3.3.2. lsof ................................................................................................................ 70
3.3.3. nmap............................................................................................................. 70
3.3.4. ping............................................................................................................... 72
3.3.5. ping6............................................................................................................. 72
viii
■ CONTENTS
ix
■ CONTENTS
x
■ CONTENTS
xi
■ CONTENTS
xii
About the Author
xiii
About the Technical
Reviewer
xv
Acknowledgments
I’d like to extend my gratitude to everybody at Apress, especially to those with whom I’ve
had the pleasure of working directly: Louise Corrigan and Nancy Chen. I would also like
to thank the technical reviewer, Massimo Nardone. They all helped me a lot.
Of course, I can’t forget my wife, who is also my biggest fan and always offers me her
support and patience.
xvii
Introduction
Many things have changed since that day in which a young Finnish student named
Linus Torvalds decided to post a message in a forum, searching for help with the
development of a new operating system. He hardly could have imagined that there
would be so many people eager to collaborate. And what had started as a hobby
became an efficient operating system (OS) used today by thousands of companies and
users around the world.
Linus decided to make this OS free for everybody to use, share, study, and modify
the code. So he licensed the code under the GNU license. This way, it was possible for
everybody to have access to the source code and modify it according to their likes and/
or needs. This resulted in many companies, universities, etc., having their own Linux
distributions.
Even though many of these distributions have remained confined to small areas
of influence, such as universities or official departments, a few have achieved general
recognition over the years. A few well-known examples include Red Hat, SUSE, Debian,
and Ubuntu.
The Red Hat Linux distribution system, developed by the Red Hat company is,
undoubtedly, one of the most important and influential. Red Hat has made many relevant
contributions to the Linux community, for example, the Red Hat Package Manager
(RPM), used by several other distributions, and Suse.
Red Hat used to publish desktop, as well as server, editions of its OS, and these
were made freely available for anyone to use. But in the year 2004, the company decided
that its OS would be provided only to clients. Obviously, this concerns only the binary
distributions, as the source code has to be made publicly available to comply with the
GNU license.
From that moment on, two new projects emerged with the aim of trying to maintain
a Red Hat clone that would be freely available to everyone. The first project was called
Fedora. It was sponsored by Red Hat itself and was conceived as some sort of beta Red
Hat platform.
Many users thought that Fedora was OK as a desktop platform, but it was by no
means a reliable enterprise solution. In order to fulfill this gap, many Linux professionals
and enthusiasts gathered around a new project called CentOS (Community Enterprise
Operating System), whose main goal was to become a freely available robust enterprise
operating system.
Today, CentOS is a reliable, efficient server operating system used by hundreds of
companies to provide critical services.
xix
■ INTRODUCTION
Audience
Some experience with computers is expected of readers of this book. Some previous
Linux experience is useful, if not absolutely necessary. The only requirement, however, is
the will to learn!
Conventions
The Code style attribute has been applied to file names, paths, commands, and URLs.
Feedback
I would really appreciate your opinions, suggestions, questions, or criticisms regarding
this book. Please feel free to e-mail me at antoniojvv@yahoo.es. Note, however, that I
cannot promise to respond to everyone.
xx
CHAPTER 1
Installation
1.1. CentOS 6
As it usually happens, there is more than one way to install CentOS on a computer. So,
depending on the way we initially boot the server and the source of the installation
packages, we have many options.
• We can boot and install the system from a DVD. This is probably
the most straightforward option, and the right choice if you only
have to install a couple of servers. We boot the server from the
DVD, and we install all the software from the DVD too.
• We can also use a CentOS Network netinstall DVD to boot the
server and then install the packages from a server in our local
network or from the Internet. This is a good choice if we have to
install a lot of servers.
• We could also use a USB device to boot the server. In this case,
we first prepare the USB device by using software packages
such as UNetbootin,1 and we also have to download the CentOS
installation files. Once the USB device is ready, we can use it to
boot the server and then choose whether to install from a local or
a network repository.
1
SourceForge, “UNetbootin: Bootable live USB creator for Ubuntu, Fedora, and Linux distributions,”
https://sourceforge.net/projects/unetbootin/, 2016.
Nevertheless, in order to keep things simple, in this book, we will avail ourselves only
of the typical DVD installation. The first thing one must do is to get the installation DVDs.
These can be downloaded from the CentOS official site.2 At the time of writing this book,
the ISO files could be downloaded from the links available from http://wiki.centos.
org/Download.3 We can choose the exact version we want to install, the architecture (32 or
64 bits), and the type of installation (minimal, network, etc.). We will download and burn
the ISO files CentOS-6.2-i386-bin-DVD1.iso and CentOS-6.2-i386-bin-DVD2.iso.
Once we have the DVDs, installation is fairly simple. We make sure that the computer is
configured to boot from a DVD, and we restart it with the first installation DVD inside.
After a few seconds, we’ll see the screen in shown in Figure 1-1.
We’ll select the first option, “Install or upgrade an existing system.” This will launch
the actual installation program. Now we are offered the possibility of checking the
installation media (Figure 1-2). Once we are sure that there is no problem with the DVDs,
we click Skip.
2
CentOS, “The CentOS Project,” http://centos.org/, 2016.
3
CentOS, http://wiki.centos.org/Download, 2016.
2
CHAPTER 1 ■ INSTALLATION
Now the system will init the graphical installer (Figure 1-3).
3
CHAPTER 1 ■ INSTALLATION
From the next screens, we’ll have to choose the language and the keyboard layout
(Figures 1-4 and 1-5).
4
CHAPTER 1 ■ INSTALLATION
5
CHAPTER 1 ■ INSTALLATION
After clicking the Next button, a warning appears (Figure 1-7), telling us that all data
in the disk will be lost. As this is either a blank disk or a disk whose data are no longer
needed, we click Yes.
6
CHAPTER 1 ■ INSTALLATION
The program now requests us to enter the name and the domain of the computer
we are about to install (Figure 1-8). We can write this information now or do it once the
installation is complete. We click Next.
From the upcoming screens, we’ll have to choose the time zone as well as the root
password (Figures 1-9 and 1-10).
7
CHAPTER 1 ■ INSTALLATION
8
CHAPTER 1 ■ INSTALLATION
Now we are offered several options before starting the actual installation (Figure 1-11).
We can choose to use the whole disk, no matter what Linux or non-Linux partitions might
exist on the disk, use only free disk space, customize the disk partitioning, etc. As the
default partitioning scheme is acceptable to start, we choose the first option. Although,
if we already had clearly in mind the role the server was to play in the network, we would
probably have to customize the partitioning layout to create separate partitions or
volumes for the different directories: /home, /var, etc.
We receive another warning (Figure 1-12), reminding us that the changes are going
to be written on disk, and we are requested to specify what software package we want
to install. There are several predefined sets of software, database server, web server, etc.
We’ll choose the Minimal option (Figure 1-13) and install later the different software
packages, as we need them.
9
CHAPTER 1 ■ INSTALLATION
10
CHAPTER 1 ■ INSTALLATION
After a few minutes, the installation will be over (Figure 1-15), and we’ll have to
reboot the system.
11
CHAPTER 1 ■ INSTALLATION
Once the boot process is complete, we have a working CentOS server (Figure 1-16).
12
CHAPTER 1 ■ INSTALLATION
1.2. CentOS 7
As you saw in section “CentOS 6,” there are many types of installations to choose from.
As we did previously when installing CentOS 6, we’ll also install CentOS 7 from the
installation DVD. At the time of writing of this book, this could be downloaded from the
official site.4 After downloading the ISO file, we can burn it onto a DVD. After that, we
are ready to boot a server with the installation DVD inserted, as long as the computer
is configured to boot from a DVD. After a few seconds, we’ll see the screen shown in
Figure 1-17.
4
CentOs, http://www.centos.org/download/, 2016.
13
Another Random Scribd Document
with Unrelated Content
the ribs, producing the same effect as if the bullock had been stuck
through.
Ripping and Leg Breaking.—In this operation care should be
exercised to see that the first cut is made exactly where the sticker
left off, opening the breast and hide in the center the full length of the
animal, in a straight line. Uncover the gam only sufficient to reach
the joint, leaving the hide over balance of shank to protect it. In this
way you get very much better shanks than if skinned too low. Cut
closely to hoofs so all hide possible comes off around the feet, but
that none of the cords are left on the hide.
Splitting Cleavers.
—Care should be exercised to see that these are in the very best
condition to do the work. They should be ground as thin as possible,
yet not so thin that they will shatter. If the splitters do not break a
chopper occasionally, it is evidence that these are not ground as thin
as they should be, and, unless they are, it is impossible to do good
work in splitting. The workmen should, however, have choppers
ground different thicknesses for different boned cattle, and never use
thin-ground choppers on cows or hard-boned steers.
The product sent to tank room was 1,675 pounds green weight,
the average per head being 76.14 pounds.
In figuring the value of the offal in the different tests the materials
sent to the tank room are not taken into consideration. The blood
from the twenty-two cattle was eight pounds per head of dry blood;
total, 176 pounds; value, at the rate of $33.00 per ton, equals $2.90.
The sinews from the twenty-two lot was 1.93 pounds per head;
total weight, 42 pounds; value at the rate of $19.00 per ton, equals
40c.
The fat from the twenty-two native cattle showed the following
yield in oleo stock:
The 1,122 pounds of stock showed the following yield in oleo oil
and stearine:
The total value of the offal of the twenty-two native cattle, including
the tallow, was $182.67, an average per head of $8.30.
Yield from Fifty-Nine Texas Cattle.—The following table shows
the yield in beef, hides and tallow and the value of offal of fifty-nine
fed Texas cattle:
The yield in the tank room of fifty-nine Texas cattle was 4,466
pounds green weight to tanks, the average per head being 75.70
pounds.
The yield in blood of fifty-nine Texas cattle was eight pounds per
head of dry blood; total, 472 pounds; value, at the rate of $33.00 per
ton, equals $7.78.
The yield in sinews of fifty-nine Texas cattle was 1.87 pounds per
head; total weight, 110 pounds; value, at the rate of $19.00 per ton,
equals $1.04.
The fat from the fifty-nine Texas cattle showed the following yield
in oleo stock:
The above 3,169 pounds of stock showed in oleo oil and stearine:
The yield in blood from twenty cattle was 8.35 pounds per head of
dry blood; total, 167 pounds; value at the rate of $33.00 per ton,
equals $2.75.
Yield in sinews of twenty cattle was two pounds per head, total
weight 40 pounds; value at the rate of $19.00 per ton, equals 38c.
The total value of the offal of above twenty cattle, including the
tallow, was $203.61, an average per head of $10.1805.
Yield from Thirty-Four Cattle.—The following table shows the
yield in beef, hides and tallow and the value of offal of thirty-four
cattle:
PERCENTAGE OF YIELD IN BEEF, HIDES AMD TALLOW.
Weight, Weight, Per
Product lbs. Averages lbs. cent
Live weight 42,350 Average 1259 ...
Dressed weight 25,563 Average 751 60.36
Shipping weight 25,067 Shrinkage ... 1.98
Hides weight 3,027 ... 89.00 7.10
Total fat 2,666 Fat per head 78.41 6.30
The total value of the offal of these thirty-four cattle, including the
tallow, was $356.80; an average per head of $10.497.
The foregoing records of tests will show the reader the actual
value of the by-products figured at the time these tests were made.
Owing to changes in the market prices, these figures are not correct
for present conditions, but the percentage of yield and different items
are correct, and the reader can take any one of these tests and by
substituting the market prices of today obtain figures of value.
These tests also give the percentage of the hide and tallow. The
latter, as will be noted, is quite high, as it will be seen that the tests
were made on a fairly fat grade of cattle.
Percentage of Various Cuts of Beef.—Nearly every large city
has its special ways and peculiarities of cutting meats, consequently
the percentage of the different cuts varies largely. The following table
is a record of results from a cutting test and shows the percentage of
“Chicago cut” meat with square cut chucks:
Per
Chicago Cuts— Cent.
Chucks 28.00
Rounds 23.00
Navels 8.00
Flanks 2.00
Flank steaks .50
Kidney .25
Ribs 10.00
Loins 15.00
No. 2 suet .50
No. 1 suet 3.00
Shanks 4.00
Brisket 5.00
Necks .75
100.00
The following table gives the result of tests and shows in detail the
percentages in cutting canner cattle. As will be understood, for
canning purposes, a light grade of animals is always used; cattle that
are too light or too thin are always used for other purposes. In such
cases the meats are always boned-out and the different cuts of the
meat are here enumerated, showing their percentages:
Per
Packing House Cuts— Cent.
Sirloin butts 3.903
Strips 4.204
Tenderloins 2.552
Boneless chucks 13.813
Rolls 2.552
Plates 12.162
Insides 7.957
Outsides 5.555
Knuckles 5.555
Clods 5.105
Rump butts 2.402
Flank steak .600
Hanging tenderloin .450
Front shanks 7.207
Hind shanks 4.650
Soft bones 6.906
Trimmings 8.108
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com