\documentclass{cmlab} \RCS $Revision: 1.4 $ \usepackage{alltt,key,moreverb} % \usepackage[leftnum,lineno5,noindent]{lgrind} % \LGnuminterval=1 % \def\LGfsize{\footnotesize} % \def\LGsize{\tiny} \def\listinglabel#1{% \llap{\scriptsize\rmfamily\the#1}\hskip\listingoffset\relax% } \ifx\pdftexversion\undefined \else \usepackage[pdfpagemode=None,pdfauthor={Nick Urbanik}]{hyperref} \fi \newcommand*{\labTitle}{Setting up printing in the laboratory A306 (temporary IP address---will change IP address in a few days)} \begin{document} \section{Aim} \label{sec:aim} After completing this exercise, you will: \begin{itemize} \item be able to print from Linux to the printer in the laboratory, and \item understand how to configure Linux to print to an HP JetDirect box. \end{itemize} \section{Procedure} \label{sec:procedure} \subsection{Running \texttt{printtool}} \label{sec:printtool} \begin{enumerate} \item Start the \texttt{printtool} program: \begin{verbatim} $ sudo printtool \end{verbatim}%$ \item Click on the \key{Add} button \item Select the radio button ``\textsf{Remote Unix (lpd) Queue}'' \item You will see something like figure~\vref{fig:edit-remote}. \begin{figure}[htb] \centering% % \includegraphics[clip]{edit-remote} \includegraphics{edit-remote} \caption{The "\textsf{Edit Remote Unix (lpd) Queue Entry}" dialog box.} \label{fig:edit-remote} \end{figure} \begin{enumerate} \item Leave the \textsf{Names}, \textsf{Spool Directory}, \textsf{File Limit in Kb} entries with their default values (don't change them) \item For \textsf{Remote Host}, put the IP address of the JetDIrect printer box. Currently it is \texttt{192.168.128.48}, but expect that to change in a week or two. \item Hewlett-Packard JetDirect printer server boxes have a printer queue name \texttt{raw}. Enter ``\texttt{raw}'' for \textsf{Printer Queue}. \item For \textsf{Input Filter}, click on the \key{Select} button. A larger dialog box will appear. \end{enumerate} \item In the \textsf{Configure Filter} dialog box, \begin{enumerate} \item Select \textsf{HP LaserJet 4/5/6 series, non-Postscript} (we are printing to an old HP LaserJet 1100) \item Select \textsf{600x600} under \textsf{Resolution} \item Select \textsf{a4} under \textsf{Paper size}. \item Click the \key{OK} button. \end{enumerate} \item In the \textsf{Edit Remote Unix (lpd) Queue Entry} box again, click the \key{OK} button. \item From the \textsf{lpd} main menu item, select \textsf{Restart lpd}. \item From the \textsf{File} main menu item, select \textsf{Quit}. \end{enumerate} \subsection{Printing part of a text file (such as the part of \texttt{rc.custom.gz} that you wrote)} \label{sec:emacs-printing} \begin{enumerate} \item From the main \url{http://CSAlinux.tycm.vtc.edu.hk/} web page, click on ``Nick's script to make emacs be nice is here.'', and follow instructions. This will enable (among many other nice things), automatic decompression of your compressed files, and recompression when you save them. \item Open the file. Suppose it is \texttt{rc.custom.gz}. \item Select the part that you wrote using the mouse. \item From the \textsf{Tools} menu, select \textsf{Print} $\to$ \textsf{Postscript Print Region}. The section that you highlighted will be printed on the old HP 1100. \end{enumerate} \end{document}