%% $Header: /cvsroot/lcdp/lpic/general-linux-2/slides/gl2.107.3.slides.tex,v 1.4 2003/12/01 12:15:21 waratah Exp $ \input{gl2.slide-header.tex} \usepackage{epsfig} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %============================================================================== %% \begin{slide} %ghr %% \listofslides %% \vfill \end{slide} %------------------------------------------------------------------------------ %----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80-> \begin{slide} %================================================================ \begin{center} \LARGE \textsf{-- General Linux 2 -- \\ Print Files} \\[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 \begin{verbatim} .~. Original presentation by Andrew Eager /V\ geoffrey robertson // \\ geoffrey@zip.com.au @._.@ \end{verbatim} \tiny \begin{verbatim} $Id: gl2.107.3.slides.tex,v 1.4 2003/12/01 12:15:21 waratah Exp $ %$ \end{verbatim} \normalsize \vfill \end{slide} %----------------------------------------------------------- %----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80-> %============================================================================== %============================================================================== \begin{slide} %ghr \slideheading{Print files} \begin{description} \item[1.107.2] Manage printers \& print queues \item[1.107.3] {\bf \underline{ Print files}} \item[1.107.4] Install \& configure local \& remote printers \end{description} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== %============================================================================== \begin{slide} %AE \slideheading{Print Files} \slidesubheading{Objective} Candidates should be able to manage print queues and manipulate print jobs. This objective includes adding and removing jobs from configured printer queues and converting text files to postscript for printing. \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide} %AE \slideheading{Print Files} \slidesubheading{Key files, terms, and utilities} \begin{description} \item[lpq] Display Print queue \item[lpr] Job submission \item[mpage] Print multiple pages per sheet \end{description} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide} %AE \slideheading{} \slidesubheading{Resources of interest} \begin{description} \item Printing-HOWTO \item Printing-Usage-HOWTO \end{description} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== %% \begin{slide}{} %ghr %% \Slidecontents %% \vfill \end{slide} %-------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{LPR - Submit job to Print Queue} \begin{itemize} \item lpr is used to submit a job to the print queue \item lpr can be run from the command line \item lpr assumes text is to be printed by default \item lpr uses \texttt{/etc/printcap} for printer settings \end{itemize} Usage of lpr is: \texttt{lpr [-P\textit{printer}] [-\#\textit{num}] filename ...} \bf {Example:- Print /etc/hosts file to spool lp0} \cmd{lpr -Plp0 /etc/hosts} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{a2ps - Convert ASCII to Postscript} \begin{itemize} \item Most Unix sites use postscript printers \item You can not send an ASCII file directly to a postscript printer \item To convert from ASCII to ps, use \texttt{a2ps} \end{itemize} Usage: \texttt{a2ps [-o \textit{out-file}] in-file} Example: \cmd{a2ps -o myfile.ps myfile.txt} \cmd{cat myfile.ps > /dev/lp0} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{mpage - Print multiple pages per page} \begin{itemize} \item mpage will print multiple pages per physical page \item Input can be either text or postscript \item 1, 2, 4 or 8 pages can be printed per page \item Output can be directed to printer or stdout \end{itemize} Usage: \texttt{mpage [-1248] [options] input-file ...} \bf{Example: Print 4 pages per page on A4} \cmd{mpage -4 -b A4 bigfile.ps | lpr} \vfill \end{slide} %============================================================================== \end{document}