%% $Header: /cvsroot/lcdp/lpic/general-linux-2/slides/gl2.108.5.slides.tex,v 1.1 2003/09/10 03:50:07 geoffr Exp $

\input{gl2.slide-header.tex}
%\overlaysfalse

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80->
\begin{slide} %================================================================
\begin{center} \LARGE \textsf{-- General Linux 2 -- \\
 }
\LARGE Notify Users on System Related Issues \textsf{[1] } \\[2mm]
\large  \textsf{(Linux Professional Institute Certification)}\\[1mm]

\normalsize\end{center}

\footnote{Copyright \copyright\ 2002 Geoffrey Robertson. Permission is granted to make and distribute verbatim copies or modified versions of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundation---either version 2 of the License or (at your option) any later version.}
 
\scriptsize
      
\tiny  
\begin{verbatim}
    
\$Id: gl2.108.5.slides.tex,v 1.1 2003/09/10 03:50:07 geoffr Exp $%$   
\end{verbatim}        
\normalsize     
\vfill \end{slide} %-----------------------------------------------------------
%----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80->

%==============================================================================
%==============================================================================
\begin{slide} %ghr
\slideheading{Documentation}
\begin{description}
  \item[2.108.1] Use and Manage Local System Documentation
  \item[2.108.2] Find Linux Documentation on the Internet
  \item[2.108.5] {\bf \underline{Notify Users on System Related Issues []}}
\end{description} 
\vfill \end{slide} %-----------------------------------------------------------
 
%==============================================================================
%==============================================================================
\begin{slide} %ghr
\slideheading{Notify Users on System Related Issues}
\slidesubheading{Objective}
 
Candidates should be able to notify the users about current issues
related to the system. This objective includes automating the
communication process, e.g. through logon messages.  

\vfill \end{slide} %-----------------------------------------------------------
 
%==============================================================================
\begin{slide} %ghr
\Slideheading{Notify Users on System Related Issues}
\slidesubheading{Key files, terms, and utilities}
\begin{alltt}
/etc/issue 
/etc/issue.net 
/etc/motd
\end{alltt}
\vfill \end{slide} %-----------------------------------------------------------
 
%==============================================================================
\begin{slide} %ghr
\Slideheading{Notify Users on System Related Issues}
\slidesubheading{Resources}
\begin{alltt}
  \item[TBA] 
  \begin{alltt}
  
  \end{alltt}
\end{alltt}
\vfill \end{slide} %-----------------------------------------------------------
 

%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{Customize the Local Login screen with \texttt{/etc/issue}}
\begin{itemize}

\reveal
\item The login screen for RH73 looks like this:
\begin{alltt}
Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-3 on an i686
 
login:    
\end{alltt}

\reveal
\item The \texttt{getty} process spawned by \textsf{init} presents the
  contents of the file \texttt{/etc/issue} and provides a
  \texttt{login:} prompt for the user.

\reveal
\item The file \texttt{/etc/issue}
\begin{alltt}
\cmd{cat /etc/issue}
Red Hat Linux release 7.3 (Valhalla)
Kernel \textbackslash{}r on an \textbackslash{}m
\end{alltt}

\end{itemize}
\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
\begin{slide}{}
\slideheading{{man issue}}
{\scriptsize
\begin{alltt}
 ISSUE(5)                Linux Programmer's Manual                ISSUE(5)

 NAME
        issue - pre-login message and identification file

 DESCRIPTION
        The  file  /etc/issue  is  a text file which contains a message or
        system identification to be printed before the login  prompt.   It
        may  contain  various  @char  and \textbackslash{}char sequences, if supported by
        getty(1).

 FILES
        /etc/issue

 SEE ALSO
        getty(1), motd(5) 

 Linux        
1993-07-24                       ISSUE(5)
\end{alltt}
}
\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{{man getty}---embedded in the \texttt{/etc/issue}}
{\scriptsize
\begin{alltt}
        \textbackslash{}d     insert current day (localtime),

        \textbackslash{}l     insert line on which mingetty is running,

        \textbackslash{}m     inserts machine architecture (uname -m),

        \textbackslash{}n     inserts machine's network node hostname (uname -n),

        \textbackslash{}o     inserts domain name,

        \textbackslash{}r     inserts operating system release (uname -r),

        \textbackslash{}t     insert current time (localtime),

        \textbackslash{}s     inserts operating system name,

        \textbackslash{}u     resp. \textbackslash{}U the current number of users which are currently
               logged in.  \textbackslash{}U inserts "n users", where as \textbackslash{}u only inserts "n".

        \textbackslash{}v     inserts operating system version (uname -v). 
\end{alltt}
}
\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{Telnet uses \texttt{/etc/issue.net}}

{\scriptsize
\begin{alltt}
      The following sequences are supported by telnetd:

            %l     - show the current tty
            %h, %n
                   - show the system node name (FQDN)
            %D, %o
                   - show the name of the NIS domain
            %d, %t
                   - show the current time and date
            %s     - show the name of the operating system
            %m     - show the machine (hardware) type
            %r     - show the operating system release
            %v     - show the operating system version
            %%     - display a single '%' character
\end{alltt}
}
\vfill \end{slide} %-----------------------------------------------------------


%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{Message of the Day---\texttt{motd}}
\slidesubheading{Login Sequence}
\begin{itemize}
\reveal
\item Contents of \texttt{/etc/issue} is displayed.
\reveal
\item \texttt{getty} displays the login prompt.
\reveal
\item \texttt{/bin/login} handles the login process.
  \begin{itemize}
\reveal
  \item User is authorized.
\reveal
  \item Contents of \texttt{/etc/motd} is displayed.
\reveal
  \item The login shell is executed.
  \end{itemize}
\end{itemize}

\vfill \end{slide} %-----------------------------------------------------------



%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{Manpage for \texttt{motd}}

{\scriptsize
\begin{alltt}
MOTD(5)                 Linux Programmer's Manual                 MOTD(5)

NAME
         motd - message of the day

DESCRIPTION
         The  contents  of /etc/motd are displayed by login(1) after a suc�
         cessful login but just before it executes the login shell.

         The abbreviation "motd" stands for "message of the day", and  this
         file  has  been  traditionally  used for exactly that (it requires
         much less disk space than mail to all users).

FILES
         /etc/motd

SEE ALSO
         login(1), issue(5)

Linux                           1992-12-29                        MOTD(5)
\end{alltt}
}
\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{\texttt{motd}}

\overlay{1}
\begin{alltt}
\cmd{cat /etc/motd}
Have a nice day :-)
\$^D

\end{alltt} 
\hrule

\overlay{2}
\begin{alltt} 

Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-8 on an i686

marsbar login: geoffrey
Password:
Last login: Wed Sep 10 22:23:15 on tty2
Have a nice day :-)
You have new mail.
\$
\end{alltt}

\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{Notify Users of System Related Issues}

\begin{description}
\item[Login Screen] \texttt{/etc/issue}
\overlay{1}
\item[Telnet Login Screen] \texttt{/etc/issue.net}
\overlay{2}
\item[Login message] \texttt{/etc/motd}
\overlay{3}
\item[wall] Message to all terminals
\overlay{4}
\item[talk] Split screen message
\overlay{5}
\item[Email] Users list
\overlay{6}
\item[Phone] They have a phone
\overlay{7}
\item[Visit] They have an office 
\end{description}

\vfill \end{slide} %-----------------------------------------------------------

%==============================================================================
\begin{slide}{} %ghr
\heading{The End}
 \Slidecontents
\vfill \end{slide} %-----------------------------------------------------------


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%==============================================================================
%==============================================================================
\begin{slide}{}
\slideheading{}


\vfill \end{slide} %-----------------------------------------------------------

=============================================================================
\begin{slide}{}

\end{slide} %------------------------------------------------------------------


%==============================================================================
\begin{slide}{} %ghr
\Slidecontents
\vfill \end{slide} %-----------------------------------------------------------

