Administración avanzada de GNU-Linux: Software libre
2004
Abstract
Los sistemas GNU/Linux han llegado a un grado de madurez importante, que los hacen válidos para integrarlos en cualquier ambiente de trabajo, ya sea desde el escritorio del PC personal, hasta el servidor de una gran empresa. El objetivo principal de este curso es introducirnos en el mundo de la administración de los sistemas GNU/Linux. Aprenderemos cómo proporcionar desde GNU/Linux los servicios necesarios a diferentes ambientes de usuarios y máquinas. El campo de la administración de sistemas es enorme, hay muchas ...
References (162)
- primero cómo ha arrancado nuestro sistema la última vez: Este comando nos da el tiempo que lleva el sistema "levantado" des- de que se arrancó la última vez, 13 minutos, en nuestro caso tene- mos 3 usuarios. Éstos no tienen por qué ser tres usuarios diferentes, sino que normalmente serán las sesiones de usuario abiertas (por ejemplo, mediante un terminal). , las líneas que se iban gene- rando en la carga del sistema (se han suprimido diferentes líneas por claridad): Estas primeras líneas ya nos indican varios datos interesantes: la ver- sión del kernel Linux es la 2.4.20-3-k7, una versión 2.4 revisión 20 # uptime 19:03:52 up 13 min, 3 users, load average: 0.08, 0.19, 0.16 # dmesg | more Linux version 2.4.20-3-k7 (herbert@gondolin) (gcc version 3.3 (Debian))
- 0MB HIGHMEM available.
- 6.2. Squid como proxy-caching De esta manera se habilita el squid para que controle el acceso a Internet, cuándo accederán y a qué accederán. En este caso, el ar- chivo de configuración deberá incluir la siguientes modificaciones/ agregados en /etc/squid.conf: acl localnet src 192.168.1.0/255.255.255.0 acl localhost src 127.0.0.1/255.255.255.255 , donde, en este caso, se permitirá a los clientes de la clase C 192.168.1.0 acceder al PS, también el localhost IP y otros puertos que podrá n acceder a Internet 80 = http, 443 = https, 210 = wais, 70 = gopher, and 21 = ftp, además, se niega el método connect para evitar que desde fuera se puedan conectar al PS y luego se niegan todos los IP y puertos sobre el PS. [Mou01]
- 7. OpenLdap (Ldap) LDAP significa Lightweight Directory Access Protocol y es un protocolo para acceder a datos basados en un servicio X.500. Éste se ejecuta sobre TCP/IP y el direc- torio es similar a una base de datos que contiene informa-
- Linux nteum 2.4.18 #1 SMP Sat Sep 13 19:49:55 CEST 2003 i686 09/23/2003 22:26:20 cpu %usr %sys %nice %idle pswch/s runq nrproc lavg1 lavg5 avg15 _cpu_ 22:26:24 all 0 0 0 100 83 1 69 0.00 0.06 0.06 22:26:28 all 0 0 0 100 83 1 69 0.00 0.06 0.06 22:26:32 all 0 0 0 100 84 1 69 0.00 0.06 0.06 22:26:36 all 0 0 0 100 84 1 69 0.00 0.06 0.06 22:26:40 all 0 0 0 100 85 1 69 0.00 0.06 0.06 atsar -I 4 5
- Linux nteum 2.4.18 #1 SMP Sat Sep 13 19:49:55 CEST 2003 i686 09/23/2003 23:09:04 cpu iq00 iq01 iq10 iq12 iq14 iq15 _intr/s_ 23:09:08 all 98 6 10 34 1 0 23:09:12 all 100 9 7 20 0 2 23:09:16 all 100 2 4 10 0 3 Ejecución Mpich: mpirun.mpich -np N.º_procesos srtest (solicitará la contraseña [N.º procesos -1] veces si no se tiene el acceso directo por ssh).
- Ejecución LAM: mpirun np N.º_procesos srtest (debe
- MPI_Init(&argc,&argv);
- /* Debe ponerse antes de otras llamadas MPI, siempre */ MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
- MPI_Comm_rank(MPI_COMM_WORLD,&myid);
- /*Integra el proceso en un grupo de comunicaciones*/ MPI_Get_processor_name(processor_name,&namelen);
- /*Obtiene el nombre del procesador*/ fprintf(stderr,"Proceso %d sobre %s\n", myid, processor_name);
- strcpy(buffer,"Hola Pueblo");
- if (myid ==numprocs1) next = 0; else next = myid+1; if (myid ==0) { /*Si es el inicial, envía string de buffer*/.
- printf("%d Envío '%s' \n",myid,buffer);
- MPI_Send(buffer, strlen(buffer)+1, MPI_CHAR, next, 99, MPI_COMM_WORLD);
- /*Blocking Send, 1 o :buffer, 2 o :size, 3 o :tipo, 4 o :destino, 5 o :tag, 6 o :contexto*/ /*MPI_Send(buffer, strlen(buffer)+1, MPI_CHAR, MPI_PROC_NULL, 299,MPI_COMM_WORLD);
- */ printf("%d recibiendo \n",myid);
- /* Blocking Recv, 1 o :buffer, 2 o :size, 3 o :tipo, 4 o :fuente, 5 o :tag, 6 o :contexto, 7 o :status*/ MPI_Recv(buffer, BUFLEN, MPI_CHAR, MPI_ANY_SOURCE, 99, MPI_COMM_WORLD,&status); printf("%d recibió '%s' \n",myid,buffer) } else { printf("%d recibiendo \n",myid);
- MPI_Recv(buffer, BUFLEN, MPI_CHAR, MPI_ANY_SOURCE, 99, MPI_COMM_WORLD,status);
- /*MPI_Recv(buffer, BUFLEN, MPI_CHAR, MPI_PROC_NULL, 299,MPI_COMM_WORLD,&status);
- */ printf("%d recibió '%s' \n",myid,buffer);
- MPI_Send(buffer, strlen(buffer)+1, MPI_CHAR, next, 99, MPI_COMM_WORLD); printf("%d envió '%s' \n",myid,buffer);
- MPI_Barrier(MPI_COMM_WORLD);
- /
- Tigran Aivazian. "Linux Kernel 2.4 Internals". The Linux Documenta- tion Project (guías), 2002.
- Anónimo. Maximum Linux Security: A Hacker's Guide to Protecting Your Linux Server and Network. Sams, 1999.
- Jonathan Corbet Alessandro Rubini. Linux Device Drivers 2nd Editon. O'Reilly, 2001.
- Arachne. "Interfaz Gcvs para CVS", 2003. http://www.arachne.org/software/gcvs
- Roberto Arcomano. "KernelAnalysis-HOWTO". The Linux Docu- mentation Project, 2003. [Aus03] CERT Australia. "Australian CERT", 2003. http://www.auscert.org.au/
- Maurice J. Bach. The Design of the UNIX Operating System. Prentice Hall, 1986.
- Edward C. Bailey. RedHat Maximum RPM, 2003. http://www.redhat.com/docs/books/max-rpm/index.html
- Tobby Banerjee. "Linux Installation Strategies HOWTO". The Linux Documentation Project, 2001.
- Barrapunto. barrapunto site, 2003. http://barrapunto.com [Beo03] Beowulf.org. Beowulf Web Site, 2003. http://www.beowulf.org
- Matthew Borowski. "FTP". The Linux Documentation Project, 2000.
- Scott Bronson. "VPN PPP-SSH". The Linux Documentation Project, 2001. Bibliografía [Bul03a] Bulma. "Bulma Linux User Group", 2003. http://bulmalug.net [Bul03b] Bulma. "Lista revistas Linux", 2003. http://bulmalug.net/body.phtml?nIdNoticia = 1435
- Hal Burgiss. "Security QuickStart HOWTO for Linux". The Linux Documentation Project, 2002.
- Cederqvist. "Version Management with CVS", 1997. http://www.cvshome.org
- CERT. "CERT site", 2003. http://www.cert.org [CER03b] CERT. "CERT vulnerabilidades", 2003. http://www.cert.org/nav/index red.html [Cer03c] Cervisia. "Interfaz Cervisia para CVS", 2003. http://cervisia.sourceforge.net [Cis00] Cisco. "TCP/IP White Paper", 2000. http://www.cisco.com
- Douglas Comer. TCP/IP Principios básicos, protocolos y arqui- tectura. Prentice Hall, 2001.
- Mendel Cooper. "Advanced bashScripting Guide". The Linux Do- cumentation Project (guías), 2003. [CVS03] CVShome.org. "CVS Home", 2003. http://www.cvshome.org
- Marco Cesati Daniel Bovet. Understanding the Linux Kernel 2nd edition. O'Reilly, 2003. [Deb] Debian. "Sitio Seguridad de Debian". http://www.debian.org/security/ [Deb02] Debian. "APT-HOWTO", 2002. http://www.debian.org/doc/manuals/apt-howto/index.en.html [Deb03a] Debian. "Software Libre vs Software Abierto", 2003. http://www.debian.org/intro/free.es.html
- Comunidad Debian. "Distribución Debian", 2003. http://www.debian.org
- Debian.org. "Debian Home", 2003. http://www.debian.org
- Hank Dietz. "Linux Parallel Processing". The Linux Documentation Project, 1998.
- Hank Dietz. "Linux Parallel Processing" , 2002. http://yara.ecn.purdue.edu/pplinux/PPHOWTO/pphowto.html
- Distrowatch. "Distribuciones Linux disponibles", 2003. http://www.distrowatch.com
- Joshua Drake. "Linux Networking". The Linux Documentation Project, 1999.
- Kris Buytaert y otros. "The OpenMosix". The Linux Documentation Project, 2002.
- ExtremeLinux.org. "Extreme Linux Web Site", 2003. http://www.extremelinux.org
- FBI. "Brigada del FBI para cibercrimen", 2003 http://www.emergency.com/fbinccs.htm
- Kevin Fenzi. "Linux security HOWTO". The Linux Documentation Project, 2002.
- Ian Foster; Carl Kesselmany. "Globus: A Metacomputing Infrastruc- ture Toolkit", 2003 http://www.globus.org
- Freshmeat. "Freshmeat site", 2003 http://freshmeat.org
- AEleen Frisch. Essential System Administration. O'Reilly, 2002.
- FSF. "Free Software Foundation y Proyecto GNU", 2003 http://www.gnu.org
- Mike G. "BASH Programming -Introduction HOWTO". The Linux Documentation Project, 2000. [Gar98] Bdale Garbee. TCP/IP Tutorial. N3EUA Inc., 1998.
- Globus. GT3 " " Admin Guide Installation" y "Admin Guide Con- figuration", 2003 http://www.globus.org
- Globus. "User's Guide Core Framework Globus Toolkit 3.0", 2003 http://www.globus.org
- Gnupg.org. GnuPG Web Site, 2003. http://www.gnupg.org/
- Guido Gonzato. "From DOS/Windows to Linux HOWTO". The Linux Documentation Project, 2000.
- Paul Gortmaker. "The Linux BootPrompt HOWTO". The Linux Documentation Project, 2003.
- Mark Grennan. "Firewall and Proxy Server HOWTO". The Linux Documentation Project, 2000.
- Dirk Allaert Grant Taylor. "The Linux Printing HOWTO". The Linux Documentation Project, 2003.
- Brian Hatch. Hacking Linux Exposed. McGraw-Hill, 2001.
- Red Hat. "Configuring Firewall", 2003. http://www.redhat.com/support/resources/networking/firewall.html
- Red Hat. "Red Hat 9 Security Guide", 2003. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/
- Red Hat. "Sitio Seguridad de Red Hat", 2003. http://www.redhat.com/solutions/security/
- Red Hat. Utilización firmas GPG en Red Hat, 2003. http://www.redhat.com/solutions/security/news/publickey.html
- Bryan Henderson. "Linux Loadable Kernel Module HOWTO". The Linux Documentation Project, 2003.
- la información. Destino, 2001.
- Martin Hinner. "Filesystems HOWTO". The Linux Documentation Project, 2000.
- HispaLinux. "Comunidad Hispana de Linux", 2003. http://www.hispalinux.org
- Iana. "Lista de puertos TCP/IP", 2003. http://www.iana.org/assignments/port-numbers
- Ibiblio.org. "Linux Documentation Center", 2003. http://www.ibiblio.org/pub/Linux/docs/HOWTO/
- IETF. "Repositorio de Request For Comment desarrollados por Inter- net Engineering Task Force (IETF) en el Network Information Center (NIC)", 2003. http://www.cis.ohio-state.edu/rfc/
- Red Hat Inc. "Distribución Red Hat", 2003. http://www.redhat.com
- Incidents.org. "vulnerabilidades Incidents", 2003. http://isc.incidents.org
- Insecure.org. "Vulnerabilidades y exploits", 1998. http://www.insecure.org/sploits.html
- Insecure.org. "Insecure.org site", 2003. http://www.insecure.org
- Insecure.org. "Nmap", 2003. http://www.insecure.org/nmap/index.html
- Michael K. Johnson. "Linux Information Sheet". The Linux Docu- mentation Project, 1998.
- Linux Journal. Linux Journal [Revista Linux] , 2003. http://www.linuxjournal.com
- Ivan Kanis. "Multiboot with GRUB Mini-HOWTO". The Linux Do- cumentation Project, 2001.
- Jonathan Katz. "Linux + Windows HOWTO". The Linux Documentation Project, 2001.
- Olaf Kirch; Terry Dawson. Linux Network Administrator's Guide. O'Rei- lly Associates. Y como e-book (free) en Free Software Foundation, Inc., 2000: http://www.tldp.org
- Kernelhacking.org. "Kernel Hacking Doc Project", 2002. http://www.kernelhacking.org [Ker03a] Kernelnewbies.org. "Kernel Newbies", 2003. http://www.kernelnewbies.org [Ker03b] Kernel.org. "Linux Kernel Archives", 2003. http://www.kernel.org
- Robert Kiesling. "The RCS (Revision Control System)". The Linux Documentation Project, 1997.
- Kristian Koehntopp. "Linux Partition HOWTO". The Linux Documenta- tion Project, 2001.
- Thorsten Kukuk. "The Linux NIS(YP)/NYS/NIS+". The Linux Docu- mentation Project, 2003.
- LamMPI.org. "LAM (Local Area Multicomputer)", 2003. http://www.lam-mpi.org
- David Lawyer. "Linux Módem". The Linux Documentation Project, 2003. [Lev02] Bozidar Levi. UNIX administration. CRC Press, 2002. [Lev03] Eric Levenez. "UNIX History", 2003. http://www.levenez.com/UNIX [Lin03a] Gazeta Linux. Gazeta, Revista Linux Online, 2003. http://www.gazetalinux.com [Lin03b] Linuxbase.org. FHS Standard, 2003. http://www.pathname.com/fhs [Lin03c] Linuxbase.org. Linux Standards Base project, 2003. http://www.linuxbase.org [Lin03d] LinuxISO. Images CD de distribuciones Linux, 2003. http://www.linuxiso.com
- Linuxsecurity.com. Linux Security Reference Card, 2003. http://www.linuxsecurity.com/docs/QuickRefCard.pdf [lkm03] lkml. Linux Kernel Mailing List, 2003. http://www.tux.org/lkml
- Ignacio Martín Llorente. Estado de la Tecnología Grid y la Inicia- tiva IrisGrid, 2003. http://www.rediris.es/irisgrid
- Nicolai Langfeldt; Jamie Norrish. "DNS". The Linux Documentation Project, 2001.
- Logcheck. "Logckeck Web Site" , 2003. http://www.psionic.com/abacus/logcheck/
- LPD. The Linux Documentation Project, 2003. http://www.tldp.org
- LPD. The Linux Documentation Project, 2003. http://www.tldp.org
- LPD. Linux Documentation Project en español, 2003. http://www.es.tldp.org
- Lucas. "Comunidad Linux de México", 2003. http://lucas.linux.org.mx
- Linux Magazine. Linux Magazine [Revista Linux], 2003. http://www.linuxmagazine.com
- Amir Majidimehr. Optimizing UNIX for Performance. Prentice Hall, 1996.
- Fred Mallett. TCP/IP Tutorial. FAME Computer Education, 1996.
- Luiz Ernesto Pinheiro Malère. "Ldap". The Linux Documentation Project, 2003.
- Miquel, S. "NIS Debian". Sobre Debian Woody, /usr/doc/nis/ nis.debian.howto, 2001.
- Daniel Morill. Configuración de sistemas Linux. Anaya Multimedia, 2003.
- Gerhard Mourani. Securing and Optimizing Linux: The Ultimate Solution. Open Network Architecture, Inc., 2001.
- Gerhard Mourani. "Securing and Optimizing Linux: The Ultimate Solution". The Linux Documentation Project (guías), 2002. [Mur02] Gary Lawrence Murphy. Kernel Book Project, 2002. http://kernelbook.sourceforge.net
- Mysql. "Reference Manual Version 4.1.1-alpha", 2003. http://www.mysql.com/ [Nes03] Nessus.org. "Nessus", 2003. http://www.nessus.org [Net03] Netfilter.org. Proyecto Netfilter/IPtables, 2003. www.netfilter.org [Neu00] Christopher Neufeld. "Setting Up Your New Domain Mini- HOWTO". The Linux Documentation Project, 2000.
- Newsforge. "Newsforge site", 2003. http://newsforge.org [NSA03a] NSA. "NIST site (NSA)", 2003. http://csrc.nist.gov/ [NSA03b] NSA. "Security Enhanced Linux", 2003. http://www.nsa.gov/selinux/index.html [O'K00] Greg O'Keefe. "From Power Up To bash Prompt HOWTO". The Li- nux Documentation Project, 2000.
- OSDL. "Open Source Developement Laboratories", 2003. http://www.osdl.org [OSD03b]OSDN. "Open Source Development Network", 2003. http://osdn.com [OSI03a] OSI. "Listado de licencias Open Source", 2003. http://www.opensource.org/licenses/index.html [OSI03b] OSI. "Open Source Definition", 2003. http://www.opensource.org/docs/definition.php
- OSI. "Open Source Iniciative", 2003. http://www.opensource.org
- Javier Fernández-Sanguino Peña. "Securing Debian Manual", 2003. http://www.Debian.org/doc/manuals/securingDebianhowto/index.en.html [Pla03] Plataform. "LSF", 2003. http://www.platform.com
- PostgreSQL.org. "PostgreSQL Administrator's Guide 7.3", 2003. http://www.postgresql.org/docs/7.3/
- PostgreSQL.org. "PostgreSQL Programmer's Guide 7.3", 2003. http://www.postgresql.org/docs/7.3/
- PostgreSQL.org. "PostgreSQL Reference Manual 7.3", 2003. http://www.postgresql.org/docs/7.3/
- PostgreSQL.org. "PostgreSQL User's Guide 7.3", 2003. http://www.postgresql.org/docs/7.3/
- PostgreSQL.org. "PostgreSQL Web Site", 2003. http://www.postgresql.org
- Linux PPP. "Corwin Williams, Joshua Drake and Robert Hart". The Linux Documentation Project, 2000.
- Joseh Pranevich. "The Wonderful World of Linux 2.6", 2003. http://www.kniggit.net/wwol26.html
- Steven Pritchard. "Linux Hardware HOWTO". The Linux Documentation Project, 2002.
- GNU Project. "Grub Manual", 2002. http://www.gnu.org/manual/grub/index.html
- Bastille Project. "Bastille", 2003. http://bastille-linux.sourceforge.net/
- Mpich Project. "MPI", 2003. http://www.mcs.anl.gov:80/mpi/ [Pro03c] Mpich Project. "Mpich MPI Freeware", 2003. http://www.mcs.anl.gov/mpi/mpich [Pro03d] OpenMosix Project. "OpenMosix", 2003. http://openMosix.sourceforge.net [Pro03e] PVM Project. "PVM Web Site", 2003. http://www.epm.ornl.gov/pvm/pvm home.html
- Ellie Quigley. Linux shells by Example. Prentice Hall, 2001. [Rad03] Jacek Radajewski. "Beowulf Links", 2003. http://www.sci.usq.edu.au/staff/jacek/beowulf
- David Ranch. "Linux IP Másquerade". The Linux Documentation Project, 2003.
- Eric Raymond. "La catedral y el bazar", 1997. http://es.tldp.org/Otros/catedralbazar/cathedral-es-paper00.html [Ray02a] Eric Raymond. "UNIX and Internet Fundamentals". The Linux Documentation Project, 2002.
- Eric Steven Raymond. "The Linux Installation HOWTO". The Linux Documentation Project, 2002.
- Jacek Radajewski; Douglas Eadline. "Beowulf". The Linux Docu- mentation Project, 1998.
- Jacek Radajewski; Douglas Eadline. "Beowulf: Installation and Administration". http://www.sci.usq.edu.au/staff/jacek/beowulf, 2002.
- Daniel Lopez Ridruejo. "The Linux Networking Overview". The Linux Documentation Project, 2000.
- Rusty Russell. "Linux IPCHAINS". The Linux Documentation Project, 2000.
- Michael Schwartz y otros. Multitool Linux -Practical Uses for Open Source Software. Addison Wesley, 2002.
- Peter H. Salus. "25 aniversario de UNIX". Byte España (n.º 1, noviem- bre), 1994.
- Sans. "Top20 de vulnerabilidades", 2003. http://www.sans.org/top20/
- Andrés Seco. "Diald". The Linux Documentation Project, 2000.
- Kurt Seifried. "Securing Linux, Step by Step", 2002. http://seifried.org/security/os/linux/20020324-securing-linux-step-by- step.html
- Miroslav Skoric. "LILO mini-HOWTO". The Linux Documentation Project, 2003.
- Miroslav Skoric. "Linux+WindowsNT mini-HOWTO". The Linux Documentation Project, 2003.
- Slashdot. "Slashdot site", 2003. http://slashdot.org
- Rod Smith. Advanced Linux Networking Advanced Linux Networking. Addison Wesley, 2002.
- Snort.org. Snort, 2003. http://www.snort.org
- Sourceforge. "Sourceforge site", 2003. http://sourceforge.org
- Richard Stallman. "Discusión por Richard Stallman sobre la relación de GNU y Linux", 2002. http://www.gnu.org/gnu/linux-and-gnu.html
- Michael Stutz. "The Linux Cookbook: Tips and Techniques for Everyday Use". The Linux Documentation Project (guías), 2001.
- Rahul Sundaram. "The dosemu HOWTO". The Linux Documenta- tion Project, 2002.
- Sun. "Sun Grid Engine". http://www.sun.com/gridware, 2003.
- Andrew Tanenbaum. Sistemas operativos: Diseño e Implementa- ción. Prentice Hall, 1987.
- Tkcvs. "Interfaz Tkcvs para CVS", 2003. http://www.tkcvs.org [Tri03] Tripwire.com. Tripwire Web Site, 2003. http://www.tripwire.com/
- Enkh Tumenbayar. "Linux SMP HOWTO". The Linux Documenta- tion Project, 2002.
- Wisconsin University. Condor Web Site. http://www.cs.wisc.edu/ condor, 2003.
- Dep Justicia USA. "Division del Departamento de justicia de USA para el cibercrimen", 2003. http://www.usdoj.gov/criminal/cybercrime/
- Uresh Vahalia. UNIX Internals: The New Frontiers. Prentice Hall, 1996.
- Alavoor Vasudevan. "Modem-Dialup-NT". The Linux Documenta- tion Project, 2000.
- Alavoor Vasudevan. "CVS-RCS (Source Code Control System)". The Linux Documentation Project, 2003.
- Alavoor Vasudevan. "The Linux Kernel HOWTO". The Linux Do- cumentation Project, 2003.
- Matt Welsh y otros. Running Linux 4th edition. O'Reilly, 2002.
- Ian Ward. "Debian and Windows Shared Printing mini-HOWTO". The Linux Documentation Project, 2003.
- Matthew D. Wilson. "VPN". The Linux Documentation Project, 2002.
- David Wood. "SMB HOWTO". The Linux Documentation Project, 2000.
- Xinetd.org. "Xinetd Web Site", 2003. http://www.xinetd.org/
- Renzo Zanelli. Win95 + WinNT + Linux multiboot using LILO mini-HOWTO. The Linux Documentation Project, 2001.
Josep Jorba