Administración de Sistemas GNU/Linux
Administración de Sistemas GNU/Linux
de sistemas
GNU/Linux
Josep Jorba Esteve
Remo Suppi Boldrito
PID_00157330
GNUFDL • PID_00157330 Administración de sistemas GNU/Linux
© 2010, FUOC. Se garantiza permiso para copiar, distribuir y modificar este documento según los términos de la GNU Free
Documentation License, Version 1.2 o cualquiera posterior publicada por la Free Software Foundation, sin secciones invariantes ni
textos de cubierta delantera o trasera. Se dispone de una copia de la licencia en el apartado "GNU Free Documentation License" de
este documento.
GNUFDL • PID_00157330 Administración de sistemas GNU/Linux
Introducción
Las distribuciones escogidas han sido las ultimas disponibles de: Debian (o
compatibles como las variantes de Ubuntu), y Fedora (o compatibles como
diferentes versiones comerciales de Red Hat, o de comunidad como CentOS),
siendo estas (Debian y Fedora) las más utilizadas en el momento de confeccio-
nar estos materiales. La distribución Debian es un paradigma dentro del mo-
vimiento Open Source, por no pertenecer a ninguna empresa y estar confec-
cionada básicamente por las aportaciones de los voluntarios distribuidos por
todo el mundo. Debian, además, integra casi exclusivamente software libre
GNUFDL • PID_00157330 6 Administración de sistemas GNU/Linux
Nota
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Red Hat, por otra parte, es una de las empresas más solventes en el panorama
comercial, y por eso sea quizás la que otorgue más soporte a nivel empresa-
rial (mediante servicios de pago), mediante sus distribuciones comerciales de
Red Hat Enterprise Linux (tambien existen variantes libres alternativas como
CentOS). Por otra parte, su entrada como patrocinador ha permitido ampliar
los resultados del proyecto Fedora (y la consecuente distribución GNU/Linux),
como conjunto de test para sus distribuciones posteriores, y un desarrollo de
una amplia comunidad que ha crecido a su alrededor. Este caso forma una
interesante experiencia combinada de comunidad y empresa en el desarrollo
de la distribución (como después se ha visto con la ampliación a otros casos
como Novell, con su versión comercial SUSE Linux y su proyecto de comuni-
dad OpenSUSE). Por el contrario, en Debian el soporte depende de los volun-
tarios y del conocimiento compartido de los usuarios, centrándose en su co-
munidad, aunque en los últimos tiempos también ha recibido el soporte (no
sin ciertos problemas en el proceso) de Canonical, desarrollador de Ubuntu.
Contenidos
Módulo didáctico 1
Introducción al sistema operativo GNU/Linux
Josep Jorba Esteve
1. Software Libre y Open Source
2. UNIX. Un poco de historia
3. Sistemas GNU/Linux
4. El perfil del administrador de sistemas
5. Tareas del administrador
6. Distribuciones de GNU/Linux
7. Qué veremos...
Módulo didáctico 2
Nivel usuario
Remo Suppi Boldrito
1. Introducción al sistema GNU/Linux
2. Conceptos y órdenes básicas
3. Instalación y arranque de GNU/Linux (conceptos básicos)
4. Configuraciones básicas
5. El entorno gráfico
Módulo didáctico 3
Programación de comandos combinados (shell scripts)
Remo Suppi Boldrito
1. Introducción: el shell
2. Elementos básicos de un shell script
Módulo didáctico 4
Migración y coexistencia con sistemas no Linux
Josep Jorba Esteve
1. Sistemas informáticos: ambientes
2. Servicios en GNU/Linux
3. Tipologías de uso
4. Migrar o coexistir
5. Taller de migración: análisis de casos de estudio
Módulo didáctico 5
Administración local
Josep Jorba Esteve
1. Herramientas básicas para el administrador
2. Distribuciones: particularidades
3. Niveles de arranque y servicios
4. Observar el estado del sistema
5. Sistema de ficheros
GNUFDL • PID_00157330 8 Administración de sistemas GNU/Linux
6. Usuarios y grupos
7. Servidores de impresión
8. Discos y gestión filesystems
9. Software: actualización
10. Trabajos no interactivos
11. Taller: prácticas combinadas de los apartados
Módulo didáctico 6
Administración de red
Remo Suppi Boldrito
1. Introducción a TCP/IP (TCP/IP suite)
2. Conceptos en TCP/IP
3. ¿Cómo se asigna una dirección Internet?
4. ¿Cómo se debe configurar la red?
5. Configuración del DHCP
6. IP Aliasing
7. IP Masquerade
8. NAT con el kernel 2.2 o superiores
9. ¿Cómo configurar una conexión DialUP y PPP?
10. Configuración de la red mediante hotplug
11. Virtual private network (VPN)
12. Configuraciones avanzadas y herramientas
GNUFDL • PID_00157330 9 Administración de sistemas GNU/Linux
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
<[Link]
0.�PREAMBLE
This License is a kind of "copyleft", which means that derivative works of the
document must themselves be free in the same sense. It complements the
GNU General Public License, which is a copyleft license designed for free soft-
ware.
We have designed this License in order to use it for manuals for free software,
because free software needs free documentation: a free program should come
with manuals providing the same freedoms that the software does. But this
License is not limited to software manuals; it can be used for any textual work,
regardless of subject matter or whether it is published as a printed book. We
recommend this License principally for works whose purpose is instruction
or reference.
1.�APPLICABILITY�AND�DEFINITIONS
This License applies to any manual or other work, in any medium, that con-
tains a notice placed by the copyright holder saying it can be distributed under
the terms of this License. Such a notice grants a world-wide, royalty-free licen-
se, unlimited in duration, to use that work under the conditions stated herein.
The "Document", below, refers to any such manual or work. Any member of
the public is a licensee, and is addressed as "you". You accept the license if
you copy, modify or distribute the work in a way requiring permission under
copyright law.
GNUFDL • PID_00157330 10 Administración de sistemas GNU/Linux
A "Modified Version" of the Document means any work containing the Docu-
ment or a portion of it, either copied verbatim, or with modifications and/or
translated into another language.
The "Invariant Sections" are certain Secondary Sections whose titles are desig-
nated, as being those of Invariant Sections, in the notice that says that the
Document is released under this License. If a section does not fit the above
definition of Secondary then it is not allowed to be designated as Invariant.
The Document may contain zero Invariant Sections. If the Document does
not identify any Invariant Sections then there are none.
The "Cover Texts" are certain short passages of text that are listed, as Front-
Cover Texts or Back-Cover Texts, in the notice that says that the Document is
released under this License. A Front-Cover Text may be at most 5 words, and
a Back-Cover Text may be at most 25 words.
Examples of suitable formats for Transparent copies include plain ASCII wit-
hout markup, Texinfo input format, LaTeX input format, SGML or XML using
a publicly available DTD, and standard-conforming simple HTML, PostScript
or PDF designed for human modification. Examples of transparent image for-
mats include PNG, XCF and JPG. Opaque formats include proprietary formats
that can be read and edited only by proprietary word processors, SGML or
XML for which the DTD and/or processing tools are not generally available,
and the machine-generated HTML, PostScript or PDF produced by some word
processors for output purposes only.
GNUFDL • PID_00157330 11 Administración de sistemas GNU/Linux
The "Title Page" means, for a printed book, the title page itself, plus such fo-
llowing pages as are needed to hold, legibly, the material this License requires
to appear in the title page. For works in formats which do not have any title
page as such, "Title Page" means the text near the most prominent appearance
of the work's title, preceding the beginning of the body of the text.
The "publisher" means any person or entity that distributes copies of the Do-
cument to the public.
A section "Entitled XYZ" means a named subunit of the Document whose tit-
le either is precisely XYZ or contains XYZ in parentheses following text that
translates XYZ in another language. (Here XYZ stands for a specific section
name mentioned below, such as "Acknowledgements", "Dedications", "Endor-
sements", or "History".) To "Preserve the Title" of such a section when you mo-
dify the Document means that it remains a section "Entitled XYZ" according
to this definition.
The Document may include Warranty Disclaimers next to the notice which
states that this License applies to the Document. These Warranty Disclaimers
are considered to be included by reference in this License, but only as regards
disclaiming warranties: any other implication that these Warranty Disclaimers
may have is void and has no effect on the meaning of this License.
2.�VERBATIM�COPYING
You may copy and distribute the Document in any medium, either commer-
cially or noncommercially, provided that this License, the copyright notices,
and the license notice saying this License applies to the Document are repro-
duced in all copies, and that you add no other conditions whatsoever to tho-
se of this License. You may not use technical measures to obstruct or control
the reading or further copying of the copies you make or distribute. However,
you may accept compensation in exchange for copies. If you distribute a large
enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you
may publicly display copies.
3.�COPYING�IN�QUANTITY
If you publish printed copies (or copies in media that commonly have printed
covers) of the Document, numbering more than 100, and the Document's
license notice requires Cover Texts, you must enclose the copies in covers that
carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front
cover, and Back-Cover Texts on the back cover. Both covers must also clearly
and legibly identify you as the publisher of these copies. The front cover must
present the full title with all words of the title equally prominent and visible.
GNUFDL • PID_00157330 12 Administración de sistemas GNU/Linux
You may add other material on the covers in addition. Copying with changes
limited to the covers, as long as they preserve the title of the Document and
satisfy these conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you
should put the first ones listed (as many as fit reasonably) on the actual cover,
and continue the rest onto adjacent pages.
It is requested, but not required, that you contact the authors of the Document
well before redistributing any large number of copies, to give them a chance
to provide you with an updated version of the Document.
4.�MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the
conditions of sections 2 and 3 above, provided that you release the Modified
Version under precisely this License, with the Modified Version filling the role
of the Document, thus licensing distribution and modification of the Modi-
fied Version to whoever possesses a copy of it. In addition, you must do these
things in the Modified Version:
• A. Use in the Title Page (and on the covers, if any) a title distinct from that
of the Document, and from those of previous versions (which should, if
there were any, be listed in the History section of the Document). You may
use the same title as a previous version if the original publisher of that
version gives permission.
• B. List on the Title Page, as authors, one or more persons or entities res-
ponsible for authorship of the modifications in the Modified Version, to-
gether with at least five of the principal authors of the Document (all of its
principal authors, if it has fewer than five), unless they release you from
this requirement.
GNUFDL • PID_00157330 13 Administración de sistemas GNU/Linux
• C. State on the Title page the name of the publisher of the Modified Ver-
sion, as the publisher.
• G. Preserve in that license notice the full lists of Invariant Sections and
required Cover Texts given in the Document's license notice.
• I. Preserve the section Entitled "History", Preserve its Title, and add to it
an item stating at least the title, year, new authors, and publisher of the
Modified Version as given on the Title Page. If there is no section Entitled
"History" in the Document, create one stating the title, year, authors, and
publisher of the Document as given on its Title Page, then add an item
describing the Modified Version as stated in the previous sentence.
• J. Preserve the network location, if any, given in the Document for public
access to a Transparent copy of the Document, and likewise the network
locations given in the Document for previous versions it was based on.
These may be placed in the "History" section. You may omit a network
location for a work that was published at least four years before the Do-
cument itself, or if the original publisher of the version it refers to gives
permission.
You may add a passage of up to five words as a Front-Cover Text, and a passage
of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts
in the Modified Version. Only one passage of Front-Cover Text and one of
Back-Cover Text may be added by (or through arrangements made by) any
one entity. If the Document already includes a cover text for the same cover,
previously added by you or by arrangement made by the same entity you are
acting on behalf of, you may not add another; but you may replace the old
one, on explicit permission from the previous publisher that added the old
one.
The author(s) and publisher(s) of the Document do not by this License give
permission to use their names for publicity for or to assert or imply endorse-
ment of any Modified Version.
5.�COMBINING�DOCUMENTS
You may combine the Document with other documents released under this
License, under the terms defined in section 4 above for modified versions,
provided that you include in the combination all of the Invariant Sections
of all of the original documents, unmodified, and list them all as Invariant
Sections of your combined work in its license notice, and that you preserve
all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple
identical Invariant Sections may be replaced with a single copy. If there are
multiple Invariant Sections with the same name but different contents, make
the title of each such section unique by adding at the end of it, in parentheses,
the name of the original author or publisher of that section if known, or else
a unique number. Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.
GNUFDL • PID_00157330 15 Administración de sistemas GNU/Linux
In the combination, you must combine any sections Entitled "History" in the
various original documents, forming one section Entitled "History"; likewise
combine any sections Entitled "Acknowledgements", and any sections Entitled
"Dedications". You must delete all sections Entitled "Endorsements".
6.�COLLECTIONS�OF�DOCUMENTS
You may make a collection consisting of the Document and other documents
released under this License, and replace the individual copies of this License
in the various documents with a single copy that is included in the collection,
provided that you follow the rules of this License for verbatim copying of each
of the documents in all other respects.
You may extract a single document from such a collection, and distribute it
individually under this License, provided you insert a copy of this License into
the extracted document, and follow this License in all other respects regarding
verbatim copying of that document.
7.�AGGREGATION�WITH�INDEPENDENT�WORKS
A compilation of the Document or its derivatives with other separate and in-
dependent documents or works, in or on a volume of a storage or distribution
medium, is called an "aggregate" if the copyright resulting from the compila-
tion is not used to limit the legal rights of the compilation's users beyond what
the individual works permit. When the Document is included in an aggregate,
this License does not apply to the other works in the aggregate which are not
themselves derivative works of the Document.
8.�TRANSLATION
version of this License and the original versions of those notices and disclai-
mers. In case of a disagreement between the translation and the original ver-
sion of this License or a notice or disclaimer, the original version will prevail.
9.�TERMINATION
You may not copy, modify, sublicense, or distribute the Document except as
expressly provided under this License. Any attempt otherwise to copy, modify,
sublicense, or distribute it is void, and will automatically terminate your rights
under this License.
However, if you cease all violation of this License, then your license from
a particular copyright holder is reinstated (a) provisionally, unless and until
the copyright holder explicitly and finally terminates your license, and (b)
permanently, if the copyright holder fails to notify you of the violation by
some reasonable means prior to 60 days after the cessation.
Termination of your rights under this section does not terminate the licenses
of parties who have received copies or rights from you under this License. If
your rights have been terminated and not permanently reinstated, receipt of a
copy of some or all of the same material does not give you any rights to use it.
10.�FUTURE�REVISIONS�OF�THIS�LICENSE
The Free Software Foundation may publish new, revised versions of the GNU
Free Documentation License from time to time. Such new versions will be
similar in spirit to the present version, but may differ in detail to address new
problems or concerns. See [Link]
Document specifies that a proxy can decide which future versions of this Li-
cense can be used, that proxy's public statement of acceptance of a version
permanently authorizes you to choose that version for the Document.
11.�RELICENSING
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any World
Wide Web server that publishes copyrightable works and also provides promi-
nent facilities for anybody to edit those works. A public wiki that anybody
can edit is an example of such a server. A "Massive Multiauthor Collaboration"
(or "MMC") contained in the site means any set of copyrightable works thus
published on the MMC site.
The operator of an MMC Site may republish an MMC contained in the site
under CC-BY-SA on the same site at any time before August 1, 2009, provided
the MMC is eligible for relicensing.
ADDENDUM:�How�to�use�this�License�for�your�documents
To use this License in a document you have written, include a copy of the
License in the document and put the following copyright and license notices
just after the title page:
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, repla-
ce the "with ... Texts." line with this:
If you have Invariant Sections without Cover Texts, or some other combina-
tion of the three, merge those two alternatives to suit the situation.
Bibliografía
Ofrece una amplia visión de los sistemas de paquetes de software de las distri-
buciones Debian y Fedora/Red Hat.
[Coo] Cooper, M. (2006). "Advanced bash Scripting Guide". The Linux Docu-
mentation Project (guías). [Link]
Ofrece una amplia visión de los sistemas de paquetes de software de las distri-
buciones Debian y Fedora/Red Hat.
GNUFDL • PID_00157330 20 Administración de sistemas GNU/Linux
[Gt] Taylor, G.; Allaert, D. "The Linux Printing HOWTO". The Linux Docu-
mentation Project.
[Mou01] Gerhard Mourani (2001). Securing and Optimizing Linux: The Ulti-
mate Solution. Open Network Architecture, Inc.
[PPP00] Linux PPP (2000). "Corwin Williams, Joshua Drake and Robert Hart".
The Linux Documentation Project.
[Samb] Samba Guide (Chapter Adding Domain member Servers and Clients).
[Link]
[SM02] Schwartz, M. y otros (2002). Multitool Linux - Practical Uses for Open
Source Software. Addison Wesley.
[Sob10] Sobell, M. G. (2010). A Practical Guide to Fedora and Red Hat Enterprise
Linux. Prentice Hall.
Es una buena guía de administración local para distribuciones Red Hat y Fe-
dora.
GNUFDL • PID_00157330 24 Administración de sistemas GNU/Linux
[Stu] Stutz, M. "The Linux Cookbook: Tips and Techniques for Everyday
Use". The Linux Documentation Project (guías).
[Sun 02] Sundaram, R. (2002). "The dosemu HOWTO". The Linux Docu-
mentation Project.