PERFORCE change 146180 for review

John Birrell jb at FreeBSD.org
Tue Jul 29 06:32:27 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=146180

Change 146180 by jb at freebsd3 on 2008/07/29 06:31:59

	IFC

Affected files ...

.. //depot/projects/dtrace/doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml#17 integrate
.. //depot/projects/dtrace/doc/en_US.ISO8859-1/books/handbook/virtualization/chapter.sgml#5 integrate
.. //depot/projects/dtrace/doc/hu_HU.ISO8859-2/share/sgml/mailing-lists.ent#7 integrate
.. //depot/projects/dtrace/doc/mn_MN.UTF-8/books/handbook/printing/chapter.sgml#11 integrate
.. //depot/projects/dtrace/doc/mn_MN.UTF-8/books/handbook/virtualization/chapter.sgml#5 integrate
.. //depot/projects/dtrace/doc/nl_NL.ISO8859-1/books/handbook/virtualization/chapter.sgml#3 integrate
.. //depot/projects/dtrace/ports/LEGAL#41 integrate
.. //depot/projects/dtrace/ports/Mk/bsd.sites.mk#35 integrate
.. //depot/projects/dtrace/ports/UPDATING#84 integrate
.. //depot/projects/dtrace/src/contrib/cvs/doc/HACKING.DOCS#2 integrate
.. //depot/projects/dtrace/src/contrib/telnet/telnetd/state.c#4 integrate
.. //depot/projects/dtrace/src/contrib/telnet/telnetd/telnetd.c#5 integrate
.. //depot/projects/dtrace/src/etc/mtree/BSD.usr.dist#18 integrate
.. //depot/projects/dtrace/src/lib/libc/gen/posix_spawn.3#2 integrate
.. //depot/projects/dtrace/src/lib/libc/gen/posix_spawn_file_actions_addopen.3#2 integrate
.. //depot/projects/dtrace/src/lib/libc/stdio/mktemp.c#6 integrate
.. //depot/projects/dtrace/src/release/doc/en_US.ISO8859-1/relnotes/article.sgml#26 integrate
.. //depot/projects/dtrace/src/share/colldef/Makefile#7 integrate
.. //depot/projects/dtrace/src/share/colldef/no_NO.ISO8859-1.src#1 branch
.. //depot/projects/dtrace/src/share/colldef/no_NO.ISO8859-15.src#1 branch
.. //depot/projects/dtrace/src/share/timedef/Makefile#6 integrate
.. //depot/projects/dtrace/src/share/timedef/nb_NO.ISO8859-1.src#1 branch
.. //depot/projects/dtrace/src/share/timedef/nb_NO.UTF-8.src#1 branch
.. //depot/projects/dtrace/src/share/timedef/no_NO.ISO8859-1.src#5 delete
.. //depot/projects/dtrace/src/share/timedef/no_NO.UTF-8.src#5 delete
.. //depot/projects/dtrace/src/sys/amd64/amd64/pmap.c#52 integrate
.. //depot/projects/dtrace/src/sys/conf/NOTES#63 integrate
.. //depot/projects/dtrace/src/sys/conf/files#101 integrate
.. //depot/projects/dtrace/src/sys/dev/wi/if_wi.c#15 integrate
.. //depot/projects/dtrace/src/sys/dev/wi/if_wivar.h#7 integrate
.. //depot/projects/dtrace/src/sys/i386/i386/pmap.c#43 integrate
.. //depot/projects/dtrace/src/sys/kern/sched_4bsd.c#39 integrate
.. //depot/projects/dtrace/src/sys/kern/subr_sleepqueue.c#18 integrate
.. //depot/projects/dtrace/src/sys/modules/et/Makefile#2 integrate
.. //depot/projects/dtrace/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c#7 integrate
.. //depot/projects/dtrace/src/sys/netgraph/ng_l2tp.c#9 integrate
.. //depot/projects/dtrace/src/sys/netinet/raw_ip.c#20 integrate
.. //depot/projects/dtrace/src/sys/netinet6/icmp6.c#16 integrate
.. //depot/projects/dtrace/src/sys/netinet6/raw_ip6.c#14 integrate
.. //depot/projects/dtrace/src/tools/build/mk/OptionalObsoleteFiles.inc#16 integrate
.. //depot/projects/dtrace/src/usr.bin/ldd/ldd.c#6 integrate
.. //depot/projects/dtrace/src/usr.bin/procstat/procstat.1#4 integrate
.. //depot/projects/dtrace/src/usr.sbin/config/config.y#8 integrate
.. //depot/projects/dtrace/src/usr.sbin/config/lang.l#5 integrate
.. //depot/projects/dtrace/www/share/sgml/news.xml#57 integrate

Differences ...

==== //depot/projects/dtrace/doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml#17 (text+ko) ====

@@ -1,7 +1,7 @@
 <!--
      The FreeBSD Documentation Project
 
-     $FreeBSD: doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml,v 1.116 2008/07/13 17:58:50 manolis Exp $
+     $FreeBSD: doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml,v 1.118 2008/07/28 15:12:07 manolis Exp $
 -->
 
 <chapter id="printing">
@@ -31,24 +31,24 @@
     <indexterm><primary>LPD spooling system</primary></indexterm>
     <indexterm><primary>printing</primary></indexterm>
 
-    <para>FreeBSD can be used to print with a wide variety of printers, from the
+    <para>&os; can be used to print with a wide variety of printers, from the
       oldest impact printer to the latest laser printers, and everything in
       between, allowing you to produce high-quality printed output from the
       applications you run.</para>
 
-    <para>FreeBSD can also be configured to act as a print server on a
-      network; in this capacity FreeBSD can receive print jobs from a variety
-      of other computers, including other FreeBSD computers, &windows; and &macos;
-      hosts.  FreeBSD will ensure that one job at a time is printed, and can
-      keep statistics on which users and machines are doing the most printing,
-      produce <quote>banner</quote> pages showing who's printout is who's, and
-      more.</para>
+    <para>&os; can also be configured to act as a print server on a
+      network; in this capacity &os; can receive print jobs from a variety
+      of other computers, including other &os; computers, &windows; and
+      &macos; hosts.  &os; will ensure that one job at a time is printed, and
+      can keep statistics on which users and machines are doing the most
+      printing, produce <quote>banner</quote> pages showing who's printout is
+      who's, and more.</para>
 
     <para>After reading this chapter, you will know:</para>
 
     <itemizedlist>
       <listitem>
-	<para>How to configure the FreeBSD print spooler.</para>
+	<para>How to configure the &os; print spooler.</para>
       </listitem>
 
       <listitem>
@@ -89,7 +89,7 @@
 
     <itemizedlist>
       <listitem>
-	<para>Know how to configure and install a new kernel 
+	<para>Know how to configure and install a new kernel
 	  (<xref linkend="kernelconfig">).</para>
       </listitem>
     </itemizedlist>
@@ -98,20 +98,20 @@
   <sect1 id="printing-intro-spooler">
     <title>Introduction</title>
 
-    <para>In order to use printers with FreeBSD, you may set
+    <para>In order to use printers with &os; you may set
       them up to work with the Berkeley line printer spooling system,
       also known as the <application>LPD</application> spooling system,
       or just <application>LPD</application>.
-      It is the standard printer control system in FreeBSD.  This
+      It is the standard printer control system in &os;.  This
       chapter introduces <application>LPD</application> and
       will guide you through its configuration.</para>
 
-    <para>If you are already familiar with 
+    <para>If you are already familiar with
       <application>LPD</application> or another printer spooling
       system, you may wish to skip to section <link
-      linkend="printing-intro-setup">Basic Setup</link>.</para>
+	linkend="printing-intro-setup">Basic Setup</link>.</para>
 
-    <para><application>LPD</application> controls everything about a 
+    <para><application>LPD</application> controls everything about a
       host's printers.  It is responsible for a number of things:</para>
 
     <itemizedlist>
@@ -145,7 +145,7 @@
       </listitem>
 
       <listitem>
-	<para>It can send jobs over the network to a 
+	<para>It can send jobs over the network to a
 	  <application>LPD</application> spooler on another host.</para>
       </listitem>
 
@@ -162,14 +162,14 @@
     <para>Through a configuration file
       (<filename>/etc/printcap</filename>), and by providing the special
       filter programs, you can enable the <application>LPD</application>
-      system to do all or some
-      subset of the above for a great variety of printer hardware.</para>
+      system to do all or some subset of the above for a great variety of
+      printer hardware.</para>
 
     <sect2 id="printing-intro-why">
       <title>Why You Should Use the Spooler</title>
 
       <para>If you are the sole user of your system, you may be wondering
-        why you should bother with the spooler when you do not need access
+	why you should bother with the spooler when you do not need access
 	control, header pages, or printer accounting.  While it is
 	possible to enable direct access to a printer, you should use the
 	spooler anyway since:</para>
@@ -177,17 +177,16 @@
       <itemizedlist>
 	<listitem>
 	  <para><application>LPD</application> prints jobs in the background;
-	    you do not have to wait
-	    for data to be copied to the printer.</para>
+	    you do not have to wait for data to be copied to the
+	    printer.</para>
 	</listitem>
 
 	<indexterm><primary>&tex;</primary></indexterm>
 	<listitem>
-	  <para><application>LPD</application> can conveniently run a job 
-	    to be printed through
-	    filters to add date/time headers or convert a special file
-	    format (such as a &tex; DVI file) into a format the printer will
-	    understand.  You will not have to do these steps
+	  <para><application>LPD</application> can conveniently run a job
+	    to be printed through filters to add date/time headers or convert
+	    a special file format (such as a &tex; DVI file) into a format
+	    the printer will understand.  You will not have to do these steps
 	    manually.</para>
 	</listitem>
 
@@ -206,26 +205,23 @@
     <title>Basic Setup</title>
 
     <para>To use printers with the <application>LPD</application> spooling
-      system, you will need to
-      set up both your printer hardware and the 
-      <application>LPD</application> software.  This
-      document describes two levels of setup:</para>
+      system, you will need to set up both your printer hardware and the
+      <application>LPD</application> software.  This document describes two
+      levels of setup:</para>
 
     <itemizedlist>
       <listitem>
 	<para>See section <link linkend="printing-simple">Simple Printer
-	  Setup</link> to learn how to connect a printer, tell 
-	  <application>LPD</application> how to
-	  communicate with it, and print plain text files to the
-	  printer.</para>
+	  Setup</link> to learn how to connect a printer, tell
+	  <application>LPD</application> how to communicate with it, and
+	  print plain text files to the printer.</para>
       </listitem>
 
       <listitem>
-	<para>See section <link linkend="printing-advanced">Advanced
-	  Printer Setup</link> to learn how to print a variety of
-	  special file formats, to print header pages, to print across a
-	  network, to control access to printers, and to do printer
-	  accounting.</para>
+	<para>See section <link linkend="printing-advanced">Advanced Printer
+	  Setup</link> to learn how to print a variety of special file
+	  formats, to print header pages, to print across a network, to
+	  control access to printers, and to do printer accounting.</para>
       </listitem>
     </itemizedlist>
 
@@ -233,7 +229,7 @@
       <title>Simple Printer Setup</title>
 
       <para>This section tells how to configure printer hardware and the
-	<application>LPD</application> software to use the printer.  
+	<application>LPD</application> software to use the printer.
 	It teaches the basics:</para>
 
       <itemizedlist>
@@ -245,7 +241,7 @@
 
 	<listitem>
 	  <para>Section <link linkend="printing-software">Software
-	    Setup</link> shows how to set up the 
+	    Setup</link> shows how to set up the
 	    <application>LPD</application> spooler configuration
 	    file (<filename>/etc/printcap</filename>).</para>
 	</listitem>
@@ -259,9 +255,9 @@
       <para>Although this section is called <quote>Simple Printer
 	Setup</quote>, it is actually fairly complex.  Getting the printer
 	to work with your computer and the <application>LPD</application>
-	spooler is the hardest
-	part.  The advanced options like header pages and accounting are
-	fairly easy once you get the printer working.</para>
+	spooler is the hardest part.  The advanced options like header pages
+	and accounting are fairly easy once you get the printer
+	working.</para>
 
       <sect3 id="printing-hardware">
 	<title>Hardware Setup</title>
@@ -269,12 +265,12 @@
 	<para>This section tells about the various ways you can connect a
 	  printer to your PC.  It talks about the kinds of ports and
 	  cables, and also the kernel configuration you may need to enable
-	  FreeBSD to speak to the printer.</para>
+	  &os; to speak to the printer.</para>
 
 	<para>If you have already connected your printer and have
 	  successfully printed with it under another operating system, you
 	  can probably skip to section <link
-	  linkend="printing-software">Software Setup</link>.</para>
+	    linkend="printing-software">Software Setup</link>.</para>
 
 	<sect4 id="printing-ports">
 	  <title>Ports and Cables</title>
@@ -284,9 +280,9 @@
 
 	  <itemizedlist>
 	    <indexterm>
-        <primary>printers</primary>
-        <secondary>serial</secondary>
-      </indexterm>
+	      <primary>printers</primary>
+	      <secondary>serial</secondary>
+	    </indexterm>
 	    <listitem>
 	      <para><emphasis>Serial</emphasis> interfaces, also known
 		as RS-232 or COM ports, use a serial port
@@ -296,14 +292,14 @@
 		interfaces sometimes need special cables and might require
 		you to configure somewhat complex communications
 		options.  Most PC serial ports have a maximum
-	        transmission rate of 115200&nbsp;bps, which makes printing
-	        large graphic print jobs with them impractical.</para>
+		transmission rate of 115200&nbsp;bps, which makes printing
+		large graphic print jobs with them impractical.</para>
 	    </listitem>
 
 	    <indexterm>
-        <primary>printers</primary>
-        <secondary>parallel</secondary>
-      </indexterm>
+	      <primary>printers</primary>
+	      <secondary>parallel</secondary>
+	    </indexterm>
 	    <listitem>
 	      <para><emphasis>Parallel</emphasis> interfaces use a
 		parallel port on your computer to send data to the
@@ -315,7 +311,7 @@
 		configuration exceedingly simple.</para>
 
 	      <indexterm>
-	        <primary>centronics</primary>
+		<primary>centronics</primary>
 		<see>parallel printers</see>
 	      </indexterm>
 	      <para>Parallel interfaces are sometimes known as
@@ -324,54 +320,52 @@
 	    </listitem>
 
 	    <indexterm>
-        <primary>printers</primary>
-        <secondary>USB</secondary>
-	</indexterm>
+	      <primary>printers</primary>
+	      <secondary>USB</secondary>
+	    </indexterm>
 	    <listitem>
 	      <para>USB interfaces, named for the Universal Serial
-	        Bus, can run at even faster speeds than parallel or
-	        RS-232 serial interfaces.  Cables are simple and cheap.
-	        USB is superior to RS-232 Serial and to Parallel for
-	        printing, but it is not as well supported under &unix;
-	        systems.  A way to avoid this problem is to purchase a
-	        printer that has both a USB interface and a Parallel
-	        interface, as many printers do.</para>
+		Bus, can run at even faster speeds than parallel or
+		RS-232 serial interfaces.  Cables are simple and cheap.
+		USB is superior to RS-232 Serial and to Parallel for
+		printing, but it is not as well supported under &unix;
+		systems.  A way to avoid this problem is to purchase a
+		printer that has both a USB interface and a Parallel
+		interface, as many printers do.</para>
 	    </listitem>
 	  </itemizedlist>
 
 	  <para>In general, Parallel interfaces usually offer just
 	    one-way communication (computer to printer) while serial
-	    and USB gives you two-way. Newer parallel ports (EPP and
-	    ECP) and printers
-	    can communicate in both directions under FreeBSD when a
-	    IEEE-1284-compliant cable is used.</para>
+	    and USB gives you two-way.  Newer parallel ports (EPP and
+	    ECP) and printers can communicate in both directions under &os;
+	    when a IEEE-1284-compliant cable is used.</para>
 
 	  <indexterm><primary>PostScript</primary></indexterm>
 
 	  <para>Two-way communication to the printer over a parallel
 	    port is generally done in one of two ways.  The first method
-	    uses a custom-built printer driver for FreeBSD that speaks
+	    uses a custom-built printer driver for &os; that speaks
 	    the proprietary language used by the printer.  This is
 	    common with inkjet printers and can be used for reporting
 	    ink levels and other status information.  The second
 	    method is used when the printer supports
 	    &postscript;.</para>
 
-	  <para>&postscript; jobs are
-	    actually programs sent to the printer; they need not produce
-	    paper at all and may return results directly to the computer.
-	    &postscript; also uses two-way communication to tell the
-	    computer about problems, such as errors in the &postscript;
-	    program or paper jams.  Your users may be appreciative of such
-	    information.  Furthermore, the best way to do effective
-	    accounting with a &postscript; printer requires two-way
-	    communication: you ask the printer for its page count (how
+	  <para>&postscript; jobs are actually programs sent to the printer;
+	    they need not produce paper at all and may return results
+	    directly to the computer.  &postscript; also uses two-way
+	    communication to tell the computer about problems, such as errors
+	    in the &postscript; program or paper jams.  Your users may be
+	    appreciative of such information.  Furthermore, the best way to
+	    do effective accounting with a &postscript; printer requires
+	    two-way communication: you ask the printer for its page count (how
 	    many pages it has printed in its lifetime), then send the
 	    user's job, then ask again for its page count.  Subtract the
 	    two values and you know how much paper to charge to the
 	    user.</para>
 	</sect4>
-	  
+
 	<sect4 id="printing-parallel">
 	  <title>Parallel Ports</title>
 
@@ -381,11 +375,12 @@
 	    both should give you complete guidance.</para>
 
 	  <para>Remember which parallel port you used on the computer.
-	    The first parallel port is <filename>ppc0</filename> to
-	    FreeBSD; the second is <filename>ppc1</filename>, and so
-	    on.  The printer device name uses the same scheme:
-	    <filename>/dev/lpt0</filename> for the printer on the first
-	    parallel ports etc.</para>
+	    The first parallel port is
+	    <filename class="devicefile">ppc0</filename> to &os;; the second
+	    is <filename class="devicefile">ppc1</filename>, and so on.  The
+	    printer device name uses the same scheme:
+	    <filename class="devicefile">/dev/lpt0</filename> for the printer
+	    on the first parallel ports etc.</para>
 	</sect4>
 
 	<sect4 id="printing-serial">
@@ -436,7 +431,7 @@
 	    <emphasis>baud rate</emphasis>) that both your computer
 	    and the printer can support.  Choose 7 or 8 data bits; none,
 	    even, or odd parity; and 1 or 2 stop bits.  Also choose a flow
-	    control protocol:  either none, or XON/XOFF (also known as
+	    control protocol: either none, or XON/XOFF (also known as
 	    <quote>in-band</quote> or <quote>software</quote>) flow control.
 	    Remember these settings for the software configuration that
 	    follows.</para>
@@ -447,7 +442,7 @@
 	<title>Software Setup</title>
 
 	<para>This section describes the software setup necessary to print
-	  with the <application>LPD</application> spooling system in FreeBSD.
+	  with the <application>LPD</application> spooling system in &os;.
 	</para>
 
 	<para>Here is an outline of the steps involved:</para>
@@ -456,15 +451,15 @@
 	  <step>
 	    <para>Configure your kernel, if necessary, for the port you
 	      are using for the printer; section <link
-	      linkend="printing-kernel">Kernel Configuration</link> tells
+		linkend="printing-kernel">Kernel Configuration</link> tells
 	      you what you need to do.</para>
 	  </step>
 
 	  <step>
 	    <para>Set the communications mode for the parallel port, if
 	      you are using a parallel port; section <link
-	      linkend="printing-parallel-port-mode">Setting the
-	      Communication Mode for the Parallel Port</link> gives
+		linkend="printing-parallel-port-mode">Setting the
+		Communication Mode for the Parallel Port</link> gives
 	      details.</para>
 	  </step>
 
@@ -476,10 +471,9 @@
 	  </step>
 
 	  <step>
-	    <para>Set up <application>LPD</application> for the printer by 
-	      modifying the file
-	      <filename>/etc/printcap</filename>.  You will find out how
-	      to do this later in this chapter.</para>
+	    <para>Set up <application>LPD</application> for the printer by
+	      modifying the file <filename>/etc/printcap</filename>.  You
+	      will find out how to do this later in this chapter.</para>
 	  </step>
 	</procedure>
 
@@ -495,7 +489,7 @@
 	  <para>To find out if the kernel you are currently using supports
 	    a serial interface, type:</para>
 
-	  <screen>&prompt.root; <userinput>grep sio<replaceable>N</replaceable> /var/run/dmesg.boot</userinput></screen>
+	  <screen>&prompt.root; <userinput><command>grep sio<replaceable>N</replaceable> <filename>/var/run/dmesg.boot</filename></command></userinput></screen>
 
 	  <para>Where <replaceable>N</replaceable> is the number of the
 	    serial port, starting from zero.  If you see output similar to
@@ -509,17 +503,17 @@
 	  <para>To find out if the kernel supports a parallel interface,
 	    type:</para>
 
-	  <screen>&prompt.root; <userinput>grep ppc<replaceable>N</replaceable> /var/run/dmesg.boot</userinput></screen>
+	  <screen>&prompt.root; <userinput><command>grep ppc<replaceable>N</replaceable> /var/run/dmesg.boot</command></userinput></screen>
 
 	  <para>Where <replaceable>N</replaceable> is the number of the
 	    parallel port, starting from zero.  If you see output similar
 	    to the following:</para>
-	    
-	    <screen>ppc0: &lt;Parallel port&gt; at port 0x378-0x37f irq 7 on isa0
+
+	  <screen>ppc0: &lt;Parallel port&gt; at port 0x378-0x37f irq 7 on isa0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/8 bytes threshold</screen>
-	    
-	    <para>then the kernel supports the port.</para>
+
+	  <para>then the kernel supports the port.</para>
 
 	  <para>You might have to reconfigure your kernel in order for the
 	    operating system to recognize and use the parallel or serial
@@ -531,328 +525,327 @@
 	    follows.</para>
 	</sect4>
       </sect3>
-	<sect3 id="printing-parallel-port-mode">
-	  <title>Setting the Communication Mode for the Parallel
-	    Port</title>
 
-	  <para>When you are using the parallel interface, you can choose
-	    whether FreeBSD should use interrupt-driven or polled
-	    communication with the printer.  The generic printer
-	    device driver (&man.lpt.4;) on FreeBSD
-	    uses the &man.ppbus.4; system, which controls the port
-	    chipset with the &man.ppc.4; driver.</para>
+      <sect3 id="printing-parallel-port-mode">
+	<title>Setting the Communication Mode for the Parallel
+	  Port</title>
 
-	  <itemizedlist>
-	    <listitem>
-	      <para>The <emphasis>interrupt-driven</emphasis> method is
-		the default with the GENERIC kernel.  With this method,
-		the operating system uses an IRQ line to determine when
-		the printer is ready for data.</para>
-	    </listitem>
+	<para>When you are using the parallel interface, you can choose
+	  whether &os; should use interrupt-driven or polled
+	  communication with the printer.  The generic printer
+	  device driver (&man.lpt.4;) on &os;
+	  uses the &man.ppbus.4; system, which controls the port
+	  chipset with the &man.ppc.4; driver.</para>
 
-	    <listitem>
-	      <para>The <emphasis>polled</emphasis> method directs the
-		operating system to repeatedly ask the printer if it is
-		ready for more data.  When it responds ready, the kernel
-		sends more data.</para>
-	    </listitem>
-	  </itemizedlist>
+	<itemizedlist>
+	  <listitem>
+	    <para>The <emphasis>interrupt-driven</emphasis> method is
+	      the default with the GENERIC kernel.  With this method,
+	      the operating system uses an IRQ line to determine when
+	      the printer is ready for data.</para>
+	  </listitem>
 
-	  <para>The interrupt-driven method is usually somewhat faster
-	    but uses up a precious IRQ line.  Some newer HP printers
-	    are claimed not to work correctly in interrupt mode,
-	    apparently due to some (not yet exactly understood) timing
-	    problem.  These printers need polled mode.  You should use
-	    whichever one works.  Some printers will work in both
-	    modes, but are painfully slow in interrupt mode.</para>
+	  <listitem>
+	    <para>The <emphasis>polled</emphasis> method directs the
+	      operating system to repeatedly ask the printer if it is
+	      ready for more data.  When it responds ready, the kernel
+	      sends more data.</para>
+	  </listitem>
+	</itemizedlist>
 
-	  <para>You can set the communications mode in two ways: by
-	    configuring the kernel or by using the &man.lptcontrol.8;
-	    program.</para>
+	<para>The interrupt-driven method is usually somewhat faster
+	  but uses up a precious IRQ line.  Some newer HP printers
+	  are claimed not to work correctly in interrupt mode,
+	  apparently due to some (not yet exactly understood) timing
+	  problem.  These printers need polled mode.  You should use
+	  whichever one works.  Some printers will work in both
+	  modes, but are painfully slow in interrupt mode.</para>
 
-	  <para><emphasis>To set the communications mode by configuring
-	    the kernel:</emphasis></para>
+	<para>You can set the communications mode in two ways: by
+	  configuring the kernel or by using the &man.lptcontrol.8;
+	  program.</para>
 
-	  <procedure>
-	    <step>
-	      <para>Edit your kernel configuration file.  Look for
-		an <literal>ppc0</literal> entry.  If you are setting up
-		the second parallel port, use <literal>ppc1</literal>
-		instead.  Use <literal>ppc2</literal> for the third port,
-		and so on.</para>
+	<para><emphasis>To set the communications mode by configuring
+	  the kernel:</emphasis></para>
 
-	      <itemizedlist>
-		<listitem>
-		  <para>If you want interrupt-driven mode, edit the following line:</para>
+	<procedure>
+	  <step>
+	    <para>Edit your kernel configuration file.  Look for
+	      an <literal>ppc0</literal> entry.  If you are setting up
+	      the second parallel port, use <literal>ppc1</literal>
+	      instead.  Use <literal>ppc2</literal> for the third port,
+	      and so on.</para>
 
-		  <programlisting>hint.ppc.0.irq="<replaceable>N</replaceable>"</programlisting>
+	    <itemizedlist>
+	      <listitem>
+		<para>If you want interrupt-driven mode, edit the following
+		  line:</para>
 
-		  <para>in the <filename>/boot/device.hints</filename> file
-		    and replace <replaceable>N</replaceable> with the right
-		    IRQ number.  The kernel configuration file must
-		    also contain the &man.ppc.4; driver:</para>
+		<programlisting>hint.ppc.0.irq="<replaceable>N</replaceable>"</programlisting>
 
-		  <screen>device ppc</screen>
+		<para>in the <filename>/boot/device.hints</filename> file
+		  and replace <replaceable>N</replaceable> with the right
+		  IRQ number.  The kernel configuration file must
+		  also contain the &man.ppc.4; driver:</para>
 
-		</listitem>
+		<screen>device ppc</screen>
+	      </listitem>
 
-		<listitem>
-		  <para>If you want polled mode, remove in your
-		    <filename>/boot/device.hints</filename> file, the
-		    following line:</para>
+	      <listitem>
+		<para>If you want polled mode, remove in your
+		  <filename>/boot/device.hints</filename> file, the
+		  following line:</para>
 
-		  <programlisting>hint.ppc.0.irq="<replaceable>N</replaceable>"</programlisting>
+		<programlisting>hint.ppc.0.irq="<replaceable>N</replaceable>"</programlisting>
 
-		  <para>In some cases, this is not enough to put the
-		    port in polled mode under FreeBSD.  Most of
-		    time it comes from &man.acpi.4; driver, this latter
-		    is able to probe and attach devices, and therefore,
-		    control the access mode to the printer port.  You
-		    should check your &man.acpi.4; configuration to
-		    correct this problem.</para>
-		</listitem>
-	      </itemizedlist>
-	    </step>
+		<para>In some cases, this is not enough to put the
+		  port in polled mode under &os;.  Most of
+		  time it comes from &man.acpi.4; driver, this latter
+		  is able to probe and attach devices, and therefore,
+		  control the access mode to the printer port.  You
+		  should check your &man.acpi.4; configuration to
+		  correct this problem.</para>
+	      </listitem>
+	    </itemizedlist>
+	  </step>
 
-	    <step>
-	      <para>Save the file.  Then configure, build, and install the
-		kernel, then reboot.  See <link
-		linkend="kernelconfig">kernel configuration</link> for
-		more details.</para>
-	    </step>
-	  </procedure>
+	  <step>
+	    <para>Save the file.  Then configure, build, and install the
+	      kernel, then reboot.  See <link linkend="kernelconfig">kernel
+	      configuration</link> for more details.</para>
+	  </step>
+	</procedure>
 
-	  <para><emphasis>To set the communications mode with</emphasis>
-	    &man.lptcontrol.8;:</para>
+	<para><emphasis>To set the communications mode with</emphasis>
+	  &man.lptcontrol.8;:</para>
 
-	  <procedure>
-	    <step>
-	      <para>Type:</para>
+	<procedure>
+	  <step>
+	    <para>Type:</para>
 
-	      <screen>&prompt.root; <userinput>lptcontrol -i -d /dev/lpt<replaceable>N</replaceable></userinput></screen>
+	    <screen>&prompt.root; <userinput><command>lptcontrol <option>-i</option> <option>-d</option> <filename class="devicefile">/dev/lpt<replaceable>N</replaceable></filename></command></userinput></screen>
 
-	      <para>to set interrupt-driven mode for
-		<literal>lpt<replaceable>N</replaceable></literal>.</para>
-	    </step>
+	    <para>to set interrupt-driven mode for
+	      <literal>lpt<replaceable>N</replaceable></literal>.</para>
+	  </step>
 
-	    <step>
-	      <para>Type:</para>
+	  <step>
+	    <para>Type:</para>
 
-	      <screen>&prompt.root; <userinput>lptcontrol -p -d /dev/lpt<replaceable>N</replaceable></userinput></screen>
+	    <screen>&prompt.root; <userinput><command>lptcontrol <option>-p</option> <option>-d</option> <filename class="devicefile">/dev/lpt<replaceable>N</replaceable></filename></command></userinput></screen>
 
-	      <para>to set polled-mode for
+	    <para>to set polled-mode for
 		<literal>lpt<replaceable>N</replaceable></literal>.</para>
-	    </step>
-	  </procedure>
+	  </step>
+	</procedure>
 
-	  <para>You could put these commands in your
-	    <filename>/etc/rc.local</filename> file to set the mode each
-	    time your system boots.  See &man.lptcontrol.8; for more
-	    information.</para>
-	</sect3>
+	<para>You could put these commands in your
+	  <filename>/etc/rc.local</filename> file to set the mode each
+	  time your system boots.  See &man.lptcontrol.8; for more
+	  information.</para>
+      </sect3>
 
-	<sect3 id="printing-testing">
-	  <title>Checking Printer Communications</title>
+      <sect3 id="printing-testing">
+	<title>Checking Printer Communications</title>
 
-	  <para>Before proceeding to configure the spooling system, you
-	    should make sure the operating system can successfully send
-	    data to your printer.  It is a lot easier to debug printer
-	    communication and the spooling system separately.</para>
+	<para>Before proceeding to configure the spooling system, you
+	  should make sure the operating system can successfully send
+	  data to your printer.  It is a lot easier to debug printer
+	  communication and the spooling system separately.</para>
 
-	  <para>To test the printer, we will send some text to it.  For
-	    printers that can immediately print characters sent to them,
-	    the program  &man.lptest.1; is perfect: it generates all 96
-	    printable ASCII characters in 96 lines.</para>
+	<para>To test the printer, we will send some text to it.  For
+	  printers that can immediately print characters sent to them,
+	  the program &man.lptest.1; is perfect: it generates all 96
+	  printable ASCII characters in 96 lines.</para>
 
-	  <indexterm><primary>PostScript</primary></indexterm>
-	  <para>For a &postscript; (or other language-based) printer, we
-	    will need a more sophisticated test.  A small &postscript;
-	    program, such as the following, will suffice:</para>
+	<indexterm><primary>PostScript</primary></indexterm>
+	<para>For a &postscript; (or other language-based) printer, we
+	  will need a more sophisticated test.  A small &postscript;
+	  program, such as the following, will suffice:</para>
 
-	  <programlisting>%!PS
+	<programlisting>%!PS
 100 100 moveto 300 300 lineto stroke
 310 310 moveto /Helvetica findfont 12 scalefont setfont
 (Is this thing working?) show
 showpage</programlisting>
 
-	  <para>The above &postscript; code can be placed into a file and
-	    used as shown in the examples appearing in the following
-	    sections.</para>
+	<para>The above &postscript; code can be placed into a file and
+	  used as shown in the examples appearing in the following
+	  sections.</para>
 
-	  <indexterm><primary>PCL</primary></indexterm>
-	  <note>
-	    <para>When this document refers to a printer language, it is
-	      assuming a language like &postscript;, and not Hewlett
-	      Packard's PCL.  Although PCL has great functionality, you
-	      can intermingle plain text with its escape sequences.
-	      &postscript; cannot directly print plain text, and that is the
-	      kind of printer language for which we must make special
-	      accommodations.</para>
-	  </note>
+	<indexterm><primary>PCL</primary></indexterm>
+	<note>
+	  <para>When this document refers to a printer language, it is
+	    assuming a language like &postscript;, and not Hewlett
+	    Packard's PCL.  Although PCL has great functionality, you
+	    can intermingle plain text with its escape sequences.
+	    &postscript; cannot directly print plain text, and that is the
+	    kind of printer language for which we must make special
+	    accommodations.</para>
+	</note>
 
-	  <sect4 id="printing-checking-parallel">
-	    <title>Checking a Parallel Printer</title>
+	<sect4 id="printing-checking-parallel">
+	  <title>Checking a Parallel Printer</title>
 
-	    <indexterm>
-        <primary>printers</primary>
-        <secondary>parallel</secondary>
-      </indexterm>
-	    <para>This section tells you how to check if FreeBSD can
-	      communicate with a printer connected to a parallel
-	      port.</para>
+	  <indexterm>
+	    <primary>printers</primary>
+	    <secondary>parallel</secondary>
+	  </indexterm>
+	  <para>This section tells you how to check if &os; can
+	    communicate with a printer connected to a parallel
+	    port.</para>
 
-	    <para><emphasis>To test a printer on a parallel
-	      port:</emphasis></para>
+	  <para><emphasis>To test a printer on a parallel
+	    port:</emphasis></para>
 
-	    <procedure>
-	      <step>
-		<para>Become <username>root</username> with  &man.su.1;.</para>
-	      </step>
+	  <procedure>
+	    <step>
+	      <para>Become <username>root</username> with &man.su.1;.</para>
+	    </step>
 
-	      <step>
-		<para>Send data to the printer.</para>
+	    <step>
+	      <para>Send data to the printer.</para>
 
-		<itemizedlist>
-		  <listitem>
-		    <para>If the printer can print plain text, then use
-		      &man.lptest.1;.  Type:</para>
+	      <itemizedlist>
+		<listitem>
+		  <para>If the printer can print plain text, then use
+		    &man.lptest.1;.  Type:</para>
 
-		    <screen>&prompt.root; <userinput>lptest &gt; /dev/lpt<replaceable>N</replaceable></userinput></screen>
+		  <screen>&prompt.root; <userinput><command>lptest &gt; <filename class="devicefile">/dev/lpt<replaceable>N</replaceable></filename></command></userinput></screen>
 
-		    <para>Where <replaceable>N</replaceable> is the number
-		      of the parallel port, starting from zero.</para>
-		  </listitem>
+		  <para>Where <replaceable>N</replaceable> is the number
+		    of the parallel port, starting from zero.</para>
+		</listitem>
 
-		  <listitem>
-		    <para>If the printer understands &postscript; or other
-		      printer language, then send a small program to the
-		      printer.  Type:</para>
+		<listitem>
+		  <para>If the printer understands &postscript; or other
+		    printer language, then send a small program to the
+		    printer.  Type:</para>
 
-		    <screen>&prompt.root; <userinput>cat &gt; /dev/lpt<replaceable>N</replaceable></userinput></screen>
+		  <screen>&prompt.root; <userinput><command>cat &gt; <filename class="devicefile">/dev/lpt<replaceable>N</replaceable></filename></command></userinput></screen>
 
-		    <para>Then, line by line, type the program
-		      <emphasis>carefully</emphasis> as you cannot edit a
-		      line once you have pressed <literal>RETURN</literal>
-		      or <literal>ENTER</literal>.  When you have finished
-		      entering the program, press
-		      <literal>CONTROL+D</literal>, or whatever your end
-		      of file key is.</para>
+		  <para>Then, line by line, type the program
+		    <emphasis>carefully</emphasis> as you cannot edit a
+		    line once you have pressed <literal>RETURN</literal>
+		    or <literal>ENTER</literal>.  When you have finished
+		    entering the program, press
+		    <literal>CONTROL+D</literal>, or whatever your end
+		    of file key is.</para>
 
-		    <para>Alternatively, you can put the program in a file
-		      and type:</para>
+		  <para>Alternatively, you can put the program in a file
+		    and type:</para>
 
-		    <screen>&prompt.root; <userinput>cat <replaceable>file</replaceable> &gt; /dev/lpt<replaceable>N</replaceable></userinput></screen>
+		  <screen>&prompt.root; <userinput><command>cat <replaceable>file</replaceable> &gt; <filename class="devicefile">/dev/lpt<replaceable>N</replaceable></filename></command></userinput></screen>
 
-		    <para>Where <replaceable>file</replaceable> is the
-		      name of the file containing the program you want to
-		      send to the printer.</para>
-		  </listitem>
-		</itemizedlist>
-	      </step>
-	    </procedure>
+		  <para>Where <replaceable>file</replaceable> is the
+		    name of the file containing the program you want to
+		    send to the printer.</para>
+		</listitem>
+	      </itemizedlist>
+	    </step>
+	  </procedure>
 
-	    <para>You should see something print.  Do not worry if the
-	      text does not look right; we will fix such things
-	      later.</para>
-	  </sect4>
+	  <para>You should see something print.  Do not worry if the
+	    text does not look right; we will fix such things
+	    later.</para>
+	</sect4>
 
-	  <sect4 id="printing-checking-serial">
-	    <title>Checking a Serial Printer</title>
+	<sect4 id="printing-checking-serial">
+	  <title>Checking a Serial Printer</title>
 
-	    <indexterm>
-        <primary>printers</primary>
-        <secondary>serial</secondary>
-      </indexterm>
-	    <para>This section tells you how to check if FreeBSD can
-	      communicate with a printer on a serial port.</para>
+	  <indexterm>
+	    <primary>printers</primary>
+	    <secondary>serial</secondary>
+	  </indexterm>
+	  <para>This section tells you how to check if &os; can
+	    communicate with a printer on a serial port.</para>
 
-	    <para><emphasis>To test a printer on a serial
-	      port:</emphasis></para>
+	  <para><emphasis>To test a printer on a serial
+	    port:</emphasis></para>
 
-	    <procedure>
-	      <step>
-		<para>Become <username>root</username> with &man.su.1;.</para>
-	      </step>
+	  <procedure>
+	    <step>
+	      <para>Become <username>root</username> with &man.su.1;.</para>
+	    </step>
 
-	      <step>
-		<para>Edit the file <filename>/etc/remote</filename>.  Add
-		  the following entry:</para>
+	    <step>
+	      <para>Edit the file <filename>/etc/remote</filename>.  Add
+		the following entry:</para>
 
-		<programlisting>printer:dv=/dev/<replaceable>port</replaceable>:br#<replaceable>bps-rate</replaceable>:pa=<replaceable>parity</replaceable></programlisting>
+	      <programlisting>printer:dv=<filename class="devicefile">/dev/<replaceable>port</replaceable></filename>:br#<replaceable>bps-rate</replaceable>:pa=<replaceable>parity</replaceable></programlisting>
 
-		<indexterm><primary>bits-per-second</primary></indexterm>
-		<indexterm><primary>serial port</primary></indexterm>
-		<indexterm><primary>parity</primary></indexterm>
-		<para>Where <replaceable>port</replaceable> is the device
-		  entry for the serial port (<literal>ttyd0</literal>,
-		  <literal>ttyd1</literal>, etc.),
-		  <replaceable>bps-rate</replaceable> is the
-		  bits-per-second rate at which the printer communicates,
-		  and <replaceable>parity</replaceable> is the parity
-		  required by the printer (either <literal>even</literal>,
-		  <literal>odd</literal>, <literal>none</literal>, or
-		  <literal>zero</literal>).</para>
+	      <indexterm><primary>bits-per-second</primary></indexterm>
+	      <indexterm><primary>serial port</primary></indexterm>
+	      <indexterm><primary>parity</primary></indexterm>
+	      <para>Where <replaceable>port</replaceable> is the device
+		entry for the serial port (<literal>ttyd0</literal>,
+		<literal>ttyd1</literal>, etc.),
+		<replaceable>bps-rate</replaceable> is the
+		bits-per-second rate at which the printer communicates,
+		and <replaceable>parity</replaceable> is the parity
+		required by the printer (either <literal>even</literal>,
+		<literal>odd</literal>, <literal>none</literal>, or
+		<literal>zero</literal>).</para>
 
-		<para>Here is a sample entry for a printer connected via
-		  a serial line to the third serial port at 19200&nbsp;bps with
-		  no parity:</para>
+	      <para>Here is a sample entry for a printer connected via
+		a serial line to the third serial port at 19200&nbsp;bps
+		with no parity:</para>
 
-		<programlisting>printer:dv=/dev/ttyd2:br#19200:pa=none</programlisting>
-	      </step>
+	      <programlisting>printer:dv=<filename class="devicefile">/dev/ttyd2</filename>:br#19200:pa=none</programlisting>
+	    </step>
 
-	      <step>
-		<para>Connect to the printer with &man.tip.1;.
-		  Type:</para>
+	    <step>
+	      <para>Connect to the printer with &man.tip.1;.
+		Type:</para>
 
-		<screen>&prompt.root; <userinput>tip printer</userinput></screen>
+	      <screen>&prompt.root; <userinput><command>tip</command> printer</userinput></screen>
 
-		<para>If this step does not work, edit the file
-		  <filename>/etc/remote</filename> again and try using
-		  <filename>/dev/cuaa<replaceable>N</replaceable></filename>
-		  instead of
-		  <filename>/dev/ttyd<replaceable>N</replaceable></filename>.</para>
-	      </step>
+	      <para>If this step does not work, edit the file
+		<filename>/etc/remote</filename> again and try using
+		<filename class="devicefile">/dev/cuaa<replaceable>N</replaceable></filename> instead of
+		<filename class="devicefile">/dev/ttyd<replaceable>N</replaceable></filename>.</para>
+	    </step>
 
-	      <step>
-		<para>Send data to the printer.</para>
+	    <step>
+	      <para>Send data to the printer.</para>
 
-		<itemizedlist>
-		  <listitem>
-		    <para>If the printer can print plain text, then use

>>> TRUNCATED FOR MAIL (1000 lines) <<<


More information about the p4-projects mailing list