% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
%                                                                                       %
%      'Manual para el clustering con openMosix' (miKeL a.k.a.mc2 & Kris Buytaert)      %
%                                                                                       %
%            DOCUMENTACION para la SUPERCOMPUTACION                                     %
%            y particularmente CLUSTERS tipo openMosix                                  %
%                                                                                       %
%      Este documento se encuentra bajo licencia --GNU Free Documentation License--     %
%                                                                                       %
%      Sitio web: http://como.akamc2.net                                                %
%                                                                                       %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
%
\newif\ifpdf
%
\ifx\pdfoutput\undefined
        \pdffalse
\else
        \pdfoutput=1
        \pdftrue
\fi
%
\ifpdf
        \documentclass[11pt,a4paper]{book}
        \usepackage{fullpage}
        \usepackage[pdftex]{graphicx}
        \usepackage{makeidx}
        \pdfcompresslevel=9
\else
        \documentclass[A4]{book}
        \usepackage{fullpage}
        \usepackage{graphicx}
        \DeclareGraphicsRule{.jpg}{eps}{.jpg.xx}{`jpeg2ps -r 600 #1}
        \DeclareGraphicsRule{.png}{eps}{.png.xx}{`convert #1 eps:-}
\fi
%
%-- Paquetes que utilizaremos  -----------------------------------------------------
\usepackage{color}              % podremos poner texto en colores distintos al negro
\usepackage{html}               % podremos elegir el codigo para HTML o para LaTeX
\usepackage[spanish]{babel}     % indicamos que estamos escribiendo en castellano
\usepackage{amsmath,amssymb}    % AMS Math (simbolos, etc...)
\usepackage{fancyhdr}           % Fancy Header and Footer
\usepackage{txfonts}            % Public Times New Roman text & math font
\usepackage{setspace}           % Espaciado simple entre lineas
\singlespacing
%                               Define la geometria de la pagina
\usepackage[body={0in, 9.2in},left=1.2in,right=1.1in]{geometry}
%
\usepackage{calc}               % From LaTeX distribution
\usepackage{graphicx}     
\usepackage{ifthen}       
\usepackage{subfigure}          % From CTAN/macros/latex/contrib/supported/subfigure
\usepackage{pst-all}            % From PSTricks
\usepackage{pst-poly}           % From pstricks/contrib/pst-poly
\usepackage{multido}            % From PSTricks
\input{random.tex}              % From CTAN/macros/generic
%
%-- PSTricks figures --------------------------------------------------------------
\newcommand{\ExampleSubFigure}[2][0.3333]{
  \begin{minipage}[t]{#1\textwidth}
    \parbox[b]{\textwidth}{
      \centering
      \input{figuras/#2.inl}}
  \end{minipage}}
%
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}
%
%-- Fancy Header ------------------------------------------------------------------
% Fancy Header Style Options
\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}                            % Delete current footer settings
\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style
  \markboth{\chaptername\ \thechapter.\ #1}{}} 
\renewcommand{\sectionmark}[1]{         % Lower case Section marker style
  \markright{\thesection.\ #1}}         %
\fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even
                                        % pages and right on odd pages
\fancyhead[RE]{\bfseries\leftmark}      % Chapter in the right on even pages
\fancyhead[LO]{\bfseries\rightmark}     % Section in the left on odd pages
\renewcommand{\headrulewidth}{0.3pt}    % Anchura de la linea del heading
\headsep 25pt                           % Separacion entre la cabecera y el cuerpo
%
%--- Clear Header -----------------------------------------------------------------
% Clear Header Style on the Last Empty Odd pages
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
    \hbox{}%
    \thispagestyle{empty}%              % Empty header styles
    \newpage%
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
%
%----------------------------------------------------------------------------------
%  Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)
\newcommand{\reviewtimetoday}[2]{\special{!userdict begin
/bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray
/Times-Roman findfont 12 scalefont setfont 0 0   moveto (#1) show
0 -12 moveto (#2) show grestore}def end}}
% You can turn on or off this option.
\reviewtimetoday{\today}{Version Beta!}
%
%-- DEFINICION DE COLORES ---------------------------------------------------------
% i)  con paleta CMYK
%    \definecolor{mycolor}{cmyk}{ 0.877, 0.544, 0.211, 0.111 }
% ii) con paleta RGB
     \definecolor{gray}{rgb}{.9, .9, .9}
     \definecolor{blue_omosix}{rgb}{.21, .3, .95}
     \definecolor{brown}{rgb}{.65, .16, .16}
     \definecolor{lightblue}{rgb}{.68, .85, .9}
     \definecolor{palegreen}{rgb}{.6, .98, .6}
     \definecolor{pink}{rgb}{1, .75, .8}
     \definecolor{wheat}{rgb}{.96, .87, .7}
%
%-----------------------------------------------------------------------------------------------------------
\begin{document}%==========================BEGIN DOCUMENT===================================================
%-----------------------------------------------------------------------------------------------------------
%
%================================0.PORTADA, ABSTRACT y INDICES================================
\pagestyle{empty}
\setcounter{page}{1}
\input{./portada.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
\input{./abstract.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
\listoffigures
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
\listoftables
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
\topmargin 0in
\tableofcontents
%----------------------------------------------------------------------------------------------
%
%================================1.PRELIMINARES================================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\setcounter{page}{1}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Presentaci\'on}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./I.Presentacion/preliminares.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./I.Presentacion/organizacion.tex}
%==========================parte 2.TEORIA DE LA COMPUTACI\'ON PARALELA=========================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Teoria de la supercomputaci\'on}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./II.Teoria_supercomputacion/introduccion.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./II.Teoria_supercomputacion/paralelismo.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./II.Teoria_supercomputacion/arquitecturas.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./II.Teoria_supercomputacion/sistemas_distribuidos.tex}
%==========================parte 3.PROBLEMAS IMPLEMENTACION SISTEMAS DISTRIBUIDOS==============
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Implementaci\'on de Sistemas Distribuidos}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./III.Pblms_implementacion_stms_distr/so.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
       \input{./III.Pblms_implementacion_stms_distr/red.tex}
%==========================parte 4.CLUSTERS====================================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Clusters}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./IV.Clusters/nociones_generales.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./IV.Clusters/clustersHA.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./IV.Clusters/clustersHP.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./IV.Clusters/requerimientos_planteamientos.tex}
%==========================parte 5.CLUSTERING CON OPENMOSIX====================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Clustering con openMosix}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/que_es.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/caracteristicas.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/instalacion.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/administracion.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/ajustes.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/openmosixview.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/problemas.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./V.Clustering_openMosix/mas_info.tex}
%==========================parte 6.OPENMOSIX A FONDO===========================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf openMosix a fondo}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/oMinternals.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/modelizacion.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/arch.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/documentation.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/drivers.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/fs.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/hpc.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/include.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/init.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/ipc.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/kernel.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/lib.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/mm.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/net.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VI.oM_a_fondo/api.tex}
%==========================parte 7.CASOS ESPECIALES Y DEMAS TUTORIALES=========================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Tutoriales \'utiles para casos especiales}}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VII.Tutoriales/laptops.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VII.Tutoriales/diskless.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VII.Tutoriales/roms.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VII.Tutoriales/livelinuxcd.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VII.Tutoriales/inst_automaticas.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VII.Tutoriales/grandes_clusters.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VII.Tutoriales/refrig_agua.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VII.Tutoriales/precauciones.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VII.Tutoriales/referencias}
%==========================parte 8.APENDICES===================================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf Ap\'endices}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VIII.Apendices/programas.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VIII.Apendices/compresores.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VIII.Apendices/ficheros_comandos.tex}
%     \begin{latexonly}
%       \cleardoublepage
%     \end{latexonly}
%%        \input{./VIII.Apendices/gnu_linux.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./VIII.Apendices/acronimos.tex}
%==========================parte 9.LICENCIA====================================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\pagestyle{empty}
\topmargin 1in
\chapter{{\bf GNU Free Documentation License}}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
        \input{./IX.GNU-FreeDocLicense/license.tex}
%===================================BIBLIOGRAFIA===============================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\topmargin 0in
\input{bibliografia.tex}
%=======================================FINAL==================================================
\begin{latexonly}
\cleardoublepage
\end{latexonly}
\input{./contraportada.tex}
     \begin{latexonly}
       \cleardoublepage
     \end{latexonly}
%
\pagestyle{empty}
\begin{latexonly}
\vspace*{3.5in}
\end{latexonly}
\begin{center}
{\LARGE ERRANDO DISCITUR}
\end{center}
%-----------------------------
%       \cleardoublepage
%        \input{./temas/montaje/comprobacion.tex}
%       \cleardoublepage
%        \input{./temas/montaje/creacion.tex}
\end{document}
