- Add and fix various SGML tags;
- Do not start a sentence with a lower case. Many changes based on PRs: docs/123149 and docs/123150 Submitted by: pgj
This commit is contained in:
parent
6fc85f2885
commit
8b8c4b9c2f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31933
1 changed files with 20 additions and 20 deletions
|
|
@ -1086,7 +1086,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
users print, you might want to protect the spooling
|
||||
directory so it is not publicly accessible. Spooling
|
||||
directories should be owned and be readable, writable, and
|
||||
searchable by user daemon and group daemon, and no one else.
|
||||
searchable by user <username>daemon</username> and group <groupname>daemon</groupname>, and no one else.
|
||||
We will do this for our example printers:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>chown daemon:daemon /var/spool/lpd/rattan</userinput>
|
||||
|
|
@ -1913,8 +1913,8 @@ exit 2</programlisting>
|
|||
|
||||
<programlisting>:if=/usr/local/libexec/ifhp:</programlisting>
|
||||
|
||||
<para>That is it. You can type <command>lpr plain.text</command> and
|
||||
<filename>lpr whatever.ps</filename> and both should print
|
||||
<para>That is it. You can type <command>lpr <replaceable>plain.text</replaceable></command> and
|
||||
<filename>lpr <replaceable>whatever.ps</replaceable></filename> and both should print
|
||||
successfully.</para>
|
||||
</sect3>
|
||||
|
||||
|
|
@ -1940,8 +1940,8 @@ exit 2</programlisting>
|
|||
we convert the DVI file into &postscript;. The command sequence
|
||||
goes like this:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>dvips seaweed-analysis.dvi</userinput>
|
||||
&prompt.user; <userinput>lpr seaweed-analysis.ps</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>dvips <replaceable>seaweed-analysis.dvi</replaceable></userinput>
|
||||
&prompt.user; <userinput>lpr <replaceable>seaweed-analysis.ps</replaceable></userinput></screen>
|
||||
|
||||
<para>By installing a conversion filter for DVI files, we can skip
|
||||
the hand conversion step each time by having
|
||||
|
|
@ -1949,7 +1949,7 @@ exit 2</programlisting>
|
|||
Now, each time we get a DVI file, we are just one step away from
|
||||
printing it:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr -d seaweed-analysis.dvi</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>lpr -d <replaceable>seaweed-analysis.dvi</replaceable></userinput></screen>
|
||||
|
||||
<para>We got <application>LPD</application> to do the DVI file
|
||||
conversion for us by specifying
|
||||
|
|
@ -3076,7 +3076,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
<literal>rattan</literal> and <literal>bamboo</literal>. If, for
|
||||
example, a user on <hostid>orchid</hostid> typed:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr -P bamboo -d sushi-review.dvi</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>lpr -P bamboo -d <replaceable>sushi-review.dvi</replaceable></userinput></screen>
|
||||
|
||||
<para>the <application>LPD</application> system on <hostid>orchid</hostid>
|
||||
would copy the job to the spooling
|
||||
|
|
@ -3248,7 +3248,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
multiple times, or from submitting the same file multiple times in
|
||||
one job like this:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>lpr <replaceable>forsale.sign forsale.sign forsale.sign forsale.sign forsale.sign</replaceable></userinput></screen>
|
||||
|
||||
<para>There are many ways to prevent this abuse (including ignoring
|
||||
it) which you are free to explore.</para>
|
||||
|
|
@ -3279,7 +3279,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
|
||||
<para>For example, we will let anyone access the printer
|
||||
<literal>rattan</literal>, but only those in group
|
||||
<literal>artists</literal> can use <literal>bamboo</literal>. Here
|
||||
<groupname>artists</groupname> can use <literal>bamboo</literal>. Here
|
||||
is the familiar <filename>/etc/printcap</filename> for host
|
||||
<hostid>rose</hostid>:</para>
|
||||
|
||||
|
|
@ -3347,7 +3347,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
|
||||
<para>Let us add limits to our example printers
|
||||
<literal>rattan</literal> and <literal>bamboo</literal>. Since
|
||||
those artists' &postscript; files tend to be large, we will limit them
|
||||
those <groupname>artists</groupname>' &postscript; files tend to be large, we will limit them
|
||||
to five megabytes. We will put no limit on the plain text line
|
||||
printer:</para>
|
||||
|
||||
|
|
@ -3586,7 +3586,7 @@ madrigal.fishbaum.de</programlisting>
|
|||
<para><application>LPD</application> starts <command>lpf</command>
|
||||
with page width and length
|
||||
arguments (from the <literal>pw</literal> and <literal>pl</literal>
|
||||
capabilities). <command>lpf</command> uses these arguments to
|
||||
capabilities). The <command>lpf</command> filter uses these arguments to
|
||||
determine how much paper will be used. After sending the file to
|
||||
the printer, it then writes an accounting entry in the accounting
|
||||
file. The entries look like this:</para>
|
||||
|
|
@ -3608,7 +3608,7 @@ madrigal.fishbaum.de</programlisting>
|
|||
|
||||
<para>When you are ready to charge users for printouts, run the
|
||||
&man.pac.8; program. Just change to the spooling directory for
|
||||
the printer you want to collect on and type <literal>pac</literal>.
|
||||
the printer you want to collect on and type <command>pac</command>.
|
||||
You will get a dollar-centric summary like the following:</para>
|
||||
|
||||
<screen> Login pages/feet runs price
|
||||
|
|
@ -3722,11 +3722,11 @@ total 337.00 154 $ 6.74</screen>
|
|||
can override this value when you run &man.pac.8; with the
|
||||
<option>-p</option> option. The units for the <option>-p</option>
|
||||
option are in dollars, though, not hundredths of cents. For
|
||||
example,
|
||||
example,</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>pac -p1.50</userinput></screen>
|
||||
|
||||
makes each page cost one dollar and fifty cents. You can really
|
||||
<para>makes each page cost one dollar and fifty cents. You can really
|
||||
rake in the profits by using this option.</para>
|
||||
|
||||
<para>Finally, running <command>pac -s</command> will save the summary
|
||||
|
|
@ -4014,7 +4014,7 @@ mary: 3rd [job 011rose]
|
|||
available from other hosts. The following command sequence
|
||||
demonstrates this:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr -P rattan myfile</userinput>
|
||||
<screen>&prompt.user; <userinput>lpr -P rattan <replaceable>myfile</replaceable></userinput>
|
||||
&prompt.user; <userinput>rlogin orchid</userinput>
|
||||
&prompt.user; <userinput>lpq -P rattan</userinput>
|
||||
Rank Owner Job Files Total Size
|
||||
|
|
@ -4048,10 +4048,10 @@ cfA013rose dequeued
|
|||
|
||||
<indexterm><primary>&tex;</primary></indexterm>
|
||||
<para>For example, the following command prints a DVI file (from the
|
||||
&tex; typesetting system) named <filename>fish-report.dvi</filename>
|
||||
&tex; typesetting system) named <filename><replaceable>fish-report.dvi</replaceable></filename>
|
||||
to the printer named <literal>bamboo</literal>:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr -P bamboo -d fish-report.dvi</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>lpr -P bamboo -d <replaceable>fish-report.dvi</replaceable></userinput></screen>
|
||||
|
||||
<para>These options apply to every file in the job, so you cannot mix
|
||||
(say) DVI and ditroff files together in a job. Instead, submit the
|
||||
|
|
@ -4207,10 +4207,10 @@ cfA013rose dequeued
|
|||
Multiple Copies</link>.</para>
|
||||
|
||||
<para>This example prints three copies of
|
||||
<filename>parser.c</filename> followed by three copies of
|
||||
<filename>parser.h</filename> to the default printer:</para>
|
||||
<filename><replaceable>parser.c</replaceable></filename> followed by three copies of
|
||||
<filename><replaceable>parser.h</replaceable></filename> to the default printer:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>lpr -#3 parser.c parser.h</userinput></screen>
|
||||
<screen>&prompt.user; <userinput>lpr -#3 <replaceable>parser.c parser.h</replaceable></userinput></screen>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue