MFen:
handbook: disks/chapter.sgml 1.282 -> 1.283 printing/chapter.sgml 1.112 -> 1.113 Obtained from: The FreeBSD Simplified Chinese Project
This commit is contained in:
parent
90927a7279
commit
7063593ef0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31947
2 changed files with 24 additions and 22 deletions
zh_CN.GB2312/books/handbook
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.282
|
||||
Original Revision: 1.283
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -3015,7 +3015,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
|
|||
|
||||
<para>现在重启 <command>inetd</command>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>kill -HUP `cat /var/run/inetd.pid`</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/inetd restart</userinput></screen>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.112
|
||||
Original Revision: 1.113
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -1016,8 +1016,9 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
<para>如果担心用户任务的保密性,
|
||||
可能会希望保护相应的后台打印队列目录, 使之不能被其他用户访问。
|
||||
后台打印的队列目录的属主应该是 daemon 用户,
|
||||
而 daemon 用户和 daemon 组拥有读写和搜索的权限,
|
||||
但其他用户没有。 接下来用我们的两台打印机作为例子:</para>
|
||||
而 <username>daemon</username> 用户和 <groupname>daemon</groupname>
|
||||
组拥有读写和搜索的权限,但其他用户没有。
|
||||
接下来用我们的两台打印机作为例子:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>chown daemon:daemon /var/spool/lpd/rattan</userinput>
|
||||
&prompt.root; <userinput>chown daemon:daemon /var/spool/lpd/bamboo</userinput>
|
||||
|
@ -1818,8 +1819,9 @@ exit 2</programlisting>
|
|||
|
||||
<programlisting>:if=/usr/local/libexec/ifhp:</programlisting>
|
||||
|
||||
<para>您可以输入 <command>lpr plain.text</command> 和
|
||||
<filename>lpr whatever.ps</filename>, 它们都应该可以成功打印。</para>
|
||||
<para>您可以输入 <command>lpr <replaceable>plain.text</replaceable></command>
|
||||
和 <filename>lpr <replaceable>whatever.ps</replaceable></filename>,
|
||||
它们都应该可以成功打印。</para>
|
||||
</sect3>
|
||||
|
||||
<sect3 id="printing-advanced-convfilters">
|
||||
|
@ -1843,14 +1845,14 @@ exit 2</programlisting>
|
|||
我们都不能直接打印它直到我们将 DVI 文件转换成 &postscript;。
|
||||
转换的命令应该是下面的样子:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>dvips seaweed-analysis.dvi</userinput>
|
||||
<screen>&prompt.user; <userinput>dvips <replaceable>seaweed-analysis.dvi</replaceable></userinput>
|
||||
&prompt.user; <userinput>lpr seaweed-analysis.ps</userinput></screen>
|
||||
|
||||
<para>通过安装 DVI 文件的转换过滤器, 我们可以跳过每次手动转换这一步, 而让
|
||||
<application>LPD</application> 来完成这个步骤。
|
||||
现在, 每次要打印 DVI 文件, 我们只需要一步就可以打印它:</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>我们要 <application>LPD</application> 转换 DVI 文件是通过指定
|
||||
<option>-d</option> 选项完成的。 <link
|
||||
|
@ -2930,7 +2932,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
<literal>rattan</literal> 和 <literal>bamboo</literal> 了。 如果,
|
||||
比如, 一个用户在主机 <hostid>orchid</hostid> 上输入了:</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><application>LPD</application> 系统在主机 <hostid>orchid</hostid>
|
||||
上会复制这个任务到后台打印队列目录
|
||||
|
@ -3092,7 +3094,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
或者多次提交任务中同样的文件,
|
||||
像下面这样:</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>这里有很多种方法可以阻止这种行为 (包括忽略它),
|
||||
并且是免费的。</para>
|
||||
|
@ -3122,7 +3124,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
|
||||
<para>比如, 我们将让任何人都可以访问打印机
|
||||
<literal>rattan</literal>, 但只有在
|
||||
<literal>artists</literal> 组中的人可以使用打印机 <literal>bamboo</literal>。
|
||||
<groupname>artists</groupname> 组中的人可以使用打印机 <literal>bamboo</literal>。
|
||||
这里是类似的主机 <hostid>rose</hostid> 上的
|
||||
<filename>/etc/printcap</filename> 文件:</para>
|
||||
|
||||
|
@ -3187,7 +3189,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
|||
|
||||
<para>让我们来为例子打印机
|
||||
<literal>rattan</literal> 和 <literal>bamboo</literal> 增加限制。
|
||||
由于那些艺术家的 &postscript; 文件可能会很大,
|
||||
由于那些 <groupname>artists</groupname> 的 &postscript; 文件可能会很大,
|
||||
我们将限制大小为 5 兆字节。 我们将不对纯文本行式打印机做限制:</para>
|
||||
|
||||
<programlisting>#
|
||||
|
@ -3433,7 +3435,7 @@ madrigal.fishbaum.de</programlisting>
|
|||
|
||||
<para>当您准备对用户的打印进行收费时, 运行
|
||||
&man.pac.8; 程序。 只要转换到要收集信息的这台打印机的后台打印队列目录,
|
||||
然后输入 <literal>pac</literal>。
|
||||
然后输入 <command>pac</command>。
|
||||
您将会得到一个美元计费的摘要像下面这样:</para>
|
||||
|
||||
<screen> Login pages/feet runs price
|
||||
|
@ -3546,11 +3548,11 @@ total 337.00 154 $ 6.74</screen>
|
|||
您可以覆盖这个值当运行 &man.pac.8; 带着参数
|
||||
<option>-p</option> 的时候。 参数 <option>-p</option>
|
||||
的单位是美元, 而不是百分之一分。
|
||||
例如,
|
||||
例如,</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>pac -p1.50</userinput></screen>
|
||||
|
||||
设定每页的价格是 1 美元 5 美分。
|
||||
<para>设定每页的价格是 1 美元 5 美分。
|
||||
您可以通过这个选项来达到目标利润。</para>
|
||||
|
||||
<para>最终, 运行 <command>pac -s</command> 将存储这些信息在一个记帐文件里,
|
||||
|
@ -3822,7 +3824,7 @@ mary: 3rd [job 011rose]
|
|||
甚至是同一台打印机也可以在其他主机上使用时。
|
||||
下面的命令证明了这个:</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
|
||||
|
@ -3856,10 +3858,10 @@ cfA013rose dequeued
|
|||
|
||||
<indexterm><primary>&tex;</primary></indexterm>
|
||||
<para>例如, 下面的命令打印一个 DVI 文件 (来自
|
||||
&tex; 排版系统) 文件名为 <filename>fish-report.dvi</filename>
|
||||
&tex; 排版系统) 文件名为 <filename><replaceable>fish-report.dvi</replaceable></filename>
|
||||
到打印 <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>这些选项应用到任务中的每个文件, 所以您不能混合
|
||||
(说) DVI 和 ditroff 文件在同一个任务中。 替代的方法是,
|
||||
|
@ -4009,10 +4011,10 @@ cfA013rose dequeued
|
|||
linkend="printing-advanced-restricting-copies">限制多份副本</link>。</para>
|
||||
|
||||
<para>这个例子打印三份副本的文件
|
||||
<filename>parser.c</filename> 跟着三份副本的文件
|
||||
<filename>parser.h</filename> 到默认打印机:</para>
|
||||
<filename><replaceable>parser.c</replaceable></filename> 跟着三份副本的文件
|
||||
<filename><replaceable>parser.h</replaceable></filename> 到默认打印机:</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…
Reference in a new issue