233 lines
3.4 KiB
HTML
233 lines
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Exercises</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Introduction to Linux"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Printers and printing"
|
|
HREF="chap_08.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Summary"
|
|
HREF="sect_08_05.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Fundamental Backup Techniques"
|
|
HREF="chap_09.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Introduction to Linux: </TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="sect_08_05.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 8. Printers and printing</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="chap_09.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="sect_08_06"
|
|
></A
|
|
>8.5. Exercises</H1
|
|
><P
|
|
>Configuring and testing printers involves being in the possession of one, and having access to the <EM
|
|
>root</EM
|
|
> account. If so, you may try:</P
|
|
><P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>Installing the printer using the GUI on your system.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Printing a test page using the GUI.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Printing a test page using the <B
|
|
CLASS="command"
|
|
>lp</B
|
|
> command.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Print from within an application, for example Mozilla or OpenOffice, by choosing <SPAN
|
|
CLASS="guimenu"
|
|
>File</SPAN
|
|
>-><SPAN
|
|
CLASS="guimenuitem"
|
|
>Print</SPAN
|
|
> from the menu.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Disconnect the printer from the network or the local machine/print-server. What happens when you try to print something?</P
|
|
></LI
|
|
></UL
|
|
><P
|
|
>The following exercises can be done without printer or root access.</P
|
|
><P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>Try to make PostScript files from different source files, (e.g. HTML, PDF, man pages). Test the results with the <B
|
|
CLASS="command"
|
|
>gv</B
|
|
> viewer.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Check that the print daemon is running.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Print the files anyway. What happens?</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Make a PostScript file using Mozilla. Test it with <B
|
|
CLASS="command"
|
|
>gv</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Convert it to PDF format. Test with <B
|
|
CLASS="command"
|
|
>xpdf</B
|
|
>.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>How would you go about printing a GIF file from the command line?</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Use <B
|
|
CLASS="command"
|
|
>a2ps</B
|
|
> to print the <TT
|
|
CLASS="filename"
|
|
>/etc/profile</TT
|
|
> file to an output file. Test again with <B
|
|
CLASS="command"
|
|
>gv</B
|
|
>. What happens if you don't specify an output file?</P
|
|
></LI
|
|
></UL
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="sect_08_05.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="chap_09.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Summary</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="chap_08.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Fundamental Backup Techniques</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |