doc/ru_RU.KOI8-R/articles/cups/article.xml
Taras Korenko b55bb8ba3f MFen:
+ cups/article.xml                              r43184  --> r46469
+ explaining-bsd/article.xml                    r43184  --> r46457
+ fonts/article.xml                             r43184  --> r46439
+ freebsd-questions/article.xml                 r43184  --> r46431
+ hubs/article.xml                              r43184  --> r46284
+ mailing-list-faq/article.xml                  r43184  --> r46073
+ new-users/article.xml                         r43184  --> r46448
2015-05-12 08:03:23 +00:00

360 lines
16 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="koi8-r"?>
<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook XML V5.0-Based Extension//EN"
"http://www.FreeBSD.org/XML/share/xml/freebsd50.dtd">
<!--
The FreeBSD Russian Documentation Project
$FreeBSD$
Original revision: r46469
-->
<!--
Translation: Taras Korenko,
Alexander Nedotsukov
-->
<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:lang="ru">
<info><title>õÎÉ×ÅÒÓÁÌØÎÁÑ óÉÓÔÅÍÁ ðÅÞÁÔÉ Unix ÎÁ FreeBSD</title>
<authorgroup>
<author><personname><firstname>Chess</firstname><surname>Griffin</surname></personname><affiliation>
<address><email>chess@chessgriffin.com</email></address>
</affiliation></author>
</authorgroup>
<legalnotice xml:id="trademarks" role="trademarks">
&tm-attrib.freebsd;
&tm-attrib.general;
</legalnotice>
<pubdate>$FreeBSD$</pubdate>
<releaseinfo>$FreeBSD$</releaseinfo>
<abstract>
<para>üÔÁ ÓÔÁÔØÑ ÐÏÓ×ÑÝÅÎÁ ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÀ õÎÉ×ÅÒÓÁÌØÎÏÊ óÉÓÔÅÍÙ ðÅÞÁÔÉ
UNIX (CUPS) ÎÁ &os;.</para>
</abstract>
</info>
<sect1 xml:id="printing-cups">
<title>úÎÁËÏÍÉÍÓÑ Ó õÎÉ×ÅÒÓÁÌØÎÏÊ óÉÓÔÅÍÏÊ ðÅÞÁÔÉ UNIX (CUPS)</title>
<indexterm><primary>printing</primary></indexterm>
<indexterm><primary>CUPS</primary></indexterm>
<para>õÎÉ×ÅÒÓÁÌØÎÁÑ óÉÓÔÅÍÁ ðÅÞÁÔÉ UNIX (Common Unix Printing System, ÉÌÉ
ÓÏËÒÁÝÅÎÎÏ <application>CUPS</application>), ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÐÅÒÅÎÏÓÉÍÕÀ
ÓÒÅÄÕ ÐÅÞÁÔÉ ÄÌÑ &unix; É &unix;-ÐÏÄÏÂÎÙÈ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ. ïÎÁ ÂÙÌÁ
ÒÁÚÒÁÂÏÔÁÎÁ ËÏÍÐÁÎÉÅÊ Easy Software Products, ÞÔÏÂÙ ÐÒÅÄÏÓÔÁ×ÉÔØ
ÓÔÁÎÄÁÒÔÎÏÅ ÒÅÛÅÎÉÅ × ÐÅÞÁÔÉ ÄÌÑ ×ÓÅÈ ÒÁÚÒÁÂÏÔÞÉËÏ× É ÐÏÌØÚÏ×ÁÔÅÌÅÊ
&unix;.</para>
<para>õÎÉ×ÅÒÓÁÌØÎÁÑ óÉÓÔÅÍÁ ðÅÞÁÔÉ UNIX ÉÓÐÏÌØÚÕÅÔ ÐÒÏÔÏËÏÌ ÍÅÖÓÅÔÅ×ÏÊ
ÐÅÞÁÔÉ (Internet Printing Protocol, <acronym>IPP</acronym>) ËÁË
ÏÓÎÏ×Õ ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÚÁÄÁÎÉÑÍÉ ÎÁ ÐÅÞÁÔØ É ÏÞÅÒÅÄÑÍÉ. ôÁËÖÅ
ÞÁÓÔÉÞÎÏ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÐÒÏÔÏËÏÌÙ: <acronym>LPD</acronym>,
<acronym>SMB</acronym> É AppSocket (ÔÁËÖÅ ÉÚ×ÅÓÔÎÙÊ ËÁË JetDirect).
<application>CUPS</application> ÄÁÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÏÂÚÏÒÁ ÓÅÔÅ×ÙÈ
ÐÒÉÎÔÅÒÏ× É ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÏÐÃÉÊ, ÂÁÚÉÒÕÀÝÉÈÓÑ ÎÁ ðÏÓÔóËÒÉÐÔ ïÐÉÓÁÎÉÉ
ðÒÉÎÔÅÒÏ× (PostScript Printer Definition, <acronym>PPD</acronym>),
ÞÔÏÂÙ ÐÏÄÄÅÒÖÉ×ÁÔØ × &unix; ÏÂÝÅÐÒÉÎÑÔÙÅ ÔÒÁÄÉÃÉÉ ÐÅÞÁÔÉ. ÷ ÒÅÚÕÌØÔÁÔÅ
<application>CUPS</application> ÉÄÅÁÌØÎÏ ÐÏÄÈÏÄÉÔ ÄÌÑ ÓÏ×ÍÅÓÔÎÏÇÏ
ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÉÎÔÅÒÏ× × ÓÍÅÛÁÎÎÏÊ ÓÒÅÄÅ ÉÚ &os;, &linux;,
&macos;&nbsp;X ÉÌÉ &windows;.</para>
<para>ïÆÉÃÉÁÌØÎÙÊ ÓÁÊÔ õÎÉ×ÅÒÓÁÌØÎÏÊ óÉÓÔÅÍÙ ðÅÞÁÔÉ UNIX &mdash;
<uri xlink:href="http://www.cups.org/">http://www.cups.org/</uri>.</para>
</sect1>
<sect1 xml:id="printing-cups-install">
<title>õÓÔÁÎÏ×ËÁ ÓÅÒ×ÅÒÁ ÐÅÞÁÔÉ CUPS</title>
<para>äÌÑ ÕÓÔÁÎÏ×ËÉ <application>CUPS</application> ÉÓÐÏÌØÚÕÑ ÐÁËÅÔ,
ÚÁÐÕÓÔÉÔÅ ÎÁ ×ÙÐÏÌÎÅÎÉÅ ÔÁËÕÀ ËÏÍÁÎÄÕ:</para>
<screen>&prompt.root; <userinput>pkg install cups</userinput></screen>
<para>äÒÕÇÉÅ ÎÅÏÂÑÚÁÔÅÌØÎÙÅ, ÎÏ ÒÅËÏÍÅÎÄÕÅÍÙÅ Ë ÕÓÔÁÎÏ×ËÅ
ÐÁËÅÔÙ ÜÔÏ <package>print/gutenprint-cups</package>
É <package>print/hplip</package>, ËÁÖÄÙÊ ÉÚ ËÏÔÏÒÙÈ
ÄÏÂÁ×ÌÑÅÔ ÄÒÁÊ×ÅÒÁ É ÕÔÉÌÉÔÙ ÄÌÑ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÐÒÉÎÔÅÒÏ×. ðÏÓÌÅ
ÕÓÔÁÎÏ×ËÉ ÆÁÊÌÙ ËÏÎÆÉÇÕÒÁÃÉÉ <application>CUPS</application> ÍÏÇÕÔ ÂÙÔØ
ÎÁÊÄÅÎÙ × ÄÉÒÅËÔÏÒÉÉ <filename>/usr/local/etc/cups</filename>.</para>
</sect1>
<sect1 xml:id="printing-cups-configuring-server">
<title>îÁÓÔÒÏÊËÁ ÓÅÒ×ÅÒÁ ÐÅÞÁÔÉ CUPS</title>
<para>þÔÏÂÙ ÎÁÓÔÒÏÉÔØ ÓÅÒ×ÅÒ <application>CUPS</application> ÎÅÏÂÈÏÄÉÍÏ
ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÎÅÓËÏÌØËÏ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÈ ÆÁÊÌÏ×. äÌÑ ÎÁÞÁÌÁ ÓÏÚÄÁÊÔÅ
ÉÌÉ ÉÓÐÒÁ×ØÔÅ ÆÁÊÌ <filename>/etc/devfs.rules</filename> É ÄÏÂÁ×ØÔÅ
ÓÌÅÄÕÀÝÕÀ ÉÎÆÏÒÍÁÃÉÀ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÐÒÁ×Á
ÎÁ ×ÓÅ ÐÏÔÅÎÃÉÁÌØÎÙÅ ÆÁÊÌÙ ÕÓÔÒÏÊÓÔ× ÐÒÉÎÔÅÒÏ× É Ó×ÑÚÁÔØ ÐÒÉÎÔÅÒÙ
Ó ÇÒÕÐÐÏÊ ÐÏÌØÚÏ×ÁÔÅÌÅÊ <systemitem class="groupname">cups</systemitem>:</para>
<programlisting>[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'usb/<replaceable>X</replaceable>.<replaceable>Y</replaceable>.<replaceable>Z</replaceable>' mode 0660 group cups</programlisting>
<note>
<para>úÁÍÅÎÉÔÅ <replaceable>X</replaceable>,
<replaceable>Y</replaceable> É <replaceable>Z</replaceable> ÎÏÍÅÒÁÍÉ
ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ ÐÒÉÎÔÅÒÕ ÃÅÌÅ×ÏÇÏ ÕÓÔÒÏÊÓÔ×Á USB, ÏÔÏÂÒÁÖÁÅÍÏÇÏ
× ËÁÔÁÌÏÇÅ <filename>/dev/usb</filename>. þÔÏÂÙ
ÎÁÊÔÉ ÔÒÅÂÕÅÍÙÅ ÚÎÁÞÅÎÉÑ, ÐÒÏÓÍÏÔÒÉÔÅ ×Ù×ÏÄ &man.dmesg.8; É ÎÁÊÄÉÔÅ
Ó×ÑÚÁÎÎÏÅ Ó ×ÁÛÉÍ ÐÒÉÎÔÅÒÏÍ ÉÍÑ ÓÐÅÃÉÁÌØÎÏÇÏ ÕÓÔÒÏÊÓÔ×Á
<filename>ugen<replaceable>X</replaceable>.<replaceable>Y</replaceable></filename>,
ÐÏÓÌÅÄÎÅÅ ÂÕÄÅÔ ÓÉÍ×ÏÌÉÞÅÓËÏÊ ÓÓÙÌËÏÊ ÎÁ ÉÓËÏÍÏÅ ÕÓÔÒÏÊÓÔ×Ï × ËÁÔÁÌÏÇÅ
<filename>/dev/usb</filename>.</para>
</note>
<para>úÁÔÅÍ, ÄÏÂÁ×ØÔÅ ÓÌÅÄÕÀÝÉÅ Ä×Å ÚÁÐÉÓÉ ×
<filename>/etc/rc.conf</filename>:</para>
<programlisting>cupsd_enable="YES"
devfs_system_ruleset="system"</programlisting>
<para>üÔÉ Ä×Å ÚÁÐÉÓÉ ÂÕÄÕÔ ÚÁÐÕÓËÁÔØ ÓÅÒ×ÅÒ ÐÅÞÁÔÉ
<application>CUPS</application> ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÙ É
ÐÒÉÍÅÎÑÔØ ÌÏËÁÌØÎÏÅ ÐÒÁ×ÉÌÏ devfs, ÓÏÚÄÁÎÎÏÅ ×ÙÛÅ.</para>
<para>äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÐÅÞÁÔØ <application>CUPS</application> ÓÔÁÌÁ
ÄÏÓÔÕÐÎÁ ÄÌÑ ÎÅËÏÔÏÒÙÈ &microsoft.windows; ËÌÉÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÏ
ÒÁÓËÏÍÍÅÎÔÉÒÏ×ÁÔØ ÓÌÅÄÕÀÝÕÀ ÚÁÐÉÓØ ×
<filename>/usr/local/etc/cups/mime.types</filename> É
<filename>/usr/local/etc/cups/mime.convs</filename>:</para>
<programlisting>application/octet-stream</programlisting>
<para>ðÏ ÏËÏÎÞÁÎÉÀ ×ÎÅÓÅÎÉÑ ÉÚÍÅÎÅÎÉÊ ÓÌÕÖÂÙ &man.devfs.8; É
<application>CUPS</application> ÎÅÏÂÈÏÄÉÍÏ ÐÅÒÅÚÁÐÕÓÔÉÔØ, ÄÌÑ ÞÅÇÏ
ÐÅÒÅÚÁÇÒÕÚÉÔÅ ÏÐÅÒÁÃÉÏÎÎÕÀ ÓÉÓÔÅÍÕ ÉÌÉ ×ÙÐÏÌÎÉÔÅ ÏÔ ÐÏÌØÚÏ×ÁÔÅÌÑ
<systemitem class="username">root</systemitem> ÓÌÅÄÕÀÝÉÅ Ä×Å ËÏÍÁÎÄÙ:</para>
<screen>&prompt.root; <userinput>/etc/rc.d/devfs restart</userinput>
&prompt.root; <userinput>/usr/local/etc/rc.d/cupsd restart</userinput></screen>
</sect1>
<sect1 xml:id="printing-cups-configuring-printers">
<title>îÁÓÔÒÏÊËÁ ÐÒÉÎÔÅÒÏ× ÎÁ ÓÅÒ×ÅÒÅ ÐÅÞÁÔÉ CUPS</title>
<para>ðÏÓÌÅ ÔÏÇÏ, ËÁË ÓÉÓÔÅÍÁ <application>CUPS</application> ÂÙÌÁ
ÕÓÔÁÎÏ×ÌÅÎÁ É ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎÁ, ÓÉÓÔÅÍÎÙÊ ÁÄÍÉÎÉÓÔÒÁÔÏÒ ÍÏÖÅÔ ÎÁÞÁÔØ
ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ ÌÏËÁÌØÎÙÈ ÐÒÉÎÔÅÒÏ×, ÐÏÄËÌÀÞÅÎÎÙÈ Ë ÓÅÒ×ÅÒÕ ÐÅÞÁÔÉ
<application>CUPS</application>. üÔÁ ÞÁÓÔØ ÐÒÏÃÅÓÓÁ ÏÞÅÎØ ÐÏÈÏÖÁ,
ÅÓÌÉ ÎÅ ÉÄÅÎÔÉÞÎÁ ÎÁÓÔÒÏÊËÅ ÐÒÉÎÔÅÒÏ× <application>CUPS</application>
× ÄÒÕÇÉÈ &unix;-ÐÏÄÏÂÎÙÈ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍÁÈ, ÔÁËÉÈ ËÁË
ÄÉÓÔÒÉÂÕÔÉ×Ù &linux;.</para>
<para>ïÓÎÏ×ÎÙÍ ÓÐÏÓÏÂÏÍ ÕÐÒÁ×ÌÅÎÉÑ É ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ÓÅÒ×ÅÒÁ
<application>CUPS</application> Ñ×ÌÑÅÔÓÑ ×ÅÂ-ÉÎÔÅÒÆÅÊÓ,
ÎÁ ËÏÔÏÒÙÊ ÍÏÖÎÏ ÐÏÐÁÓÔØ ÚÁÐÕÓÔÉ× ×ÅÂ-ÂÒÁÕÚÅÒ É ÎÁÂÒÁ×
<uri xlink:href="http://localhost:631">http://localhost:631</uri> × ÅÇÏ ÁÄÒÅÓÎÏÊ ÓÔÒÏËÅ.
åÓÌÉ ÓÅÒ×ÅÒ <application>CUPS</application> ÎÁÈÏÄÉÔÓÑ ÎÁ ÄÒÕÇÏÊ
ÍÁÛÉÎÅ × ÓÅÔÉ, ÚÁÍÅÎÉÔÅ <systemitem>localhost</systemitem> ÎÁ
<acronym>IP</acronym> ÁÄÒÅÓ ÓÅÒ×ÅÒÁ. ÷ÅÂ-ÉÎÔÅÒÆÅÊÓ
<application>CUPS</application> ÄÏÓÔÁÔÏÞÎÏ ÏÞÅ×ÉÄÅÎ, ÔÁÍ ÅÓÔØ ÒÁÚÄÅÌÙ
ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÐÒÉÎÔÅÒÁÍÉ É ÚÁÄÁÎÉÑÍÉ ÎÁ ÐÅÞÁÔØ, Á×ÔÏÒÉÚÁÃÉÅÊ
ÐÏÌØÚÏ×ÁÔÅÌÅÊ É Ô.Ð. ëÒÏÍÅ ÔÏÇÏ, × ÐÒÁ×ÏÊ ÞÁÓÔÉ ÓÔÒÁÎÉÃÙ
ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ÅÓÔØ ÎÅÓËÏÌØËÏ ÆÌÁÖËÏ× (check-box), ÄÁÀÝÉÈ
ÕÄÏÂÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÏ ÍÅÎÑÅÍÙÍ ÕÓÔÁÎÏ×ËÁÍ, ÔÁËÉÍ ËÁË ÒÁÚÒÅÛÅÎÉÅ
ÐÕÂÌÉÞÎÏÇÏ ÄÏÓÔÕÐÁ Ë ÐÏÄËÌÀÞÅÎÎÙÍ Ë ÓÉÓÔÅÍÅ ÐÒÉÎÔÅÒÁÍ, ÐÒÅÄÏÓÔÁ×ÌÅÎÉÅ
ÕÄÁÌÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÒ×ÅÒÏÍ <application>CUPS</application>,
ÉÚÍÅÎÅÎÉÅ ÕÒÏ×ÎÑ ÄÏÓÔÕÐÁ ÐÏÌØÚÏ×ÁÔÅÌÅÊ Ë ÐÒÉÎÔÅÒÁÍ É ÉÈ ÚÁÄÁÎÉÑÍ
ÎÁ ÐÅÞÁÔØ.</para>
<para>äÏÂÁ×ÌÅÎÉÅ ÐÒÉÎÔÅÒÁ × ÏÂÝÅÍ ÔÁËÏÅ ÖÅ ÐÒÏÓÔÏÅ, ËÁË ÎÁÖÁÔÉÅ
<quote>Add Printer</quote> ÎÁ ÓÔÒÁÎÉÃÅ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ
×ÅÂ-ÉÎÔÅÒÆÅÊÓÁ ÓÅÒ×ÅÒÁ <application>CUPS</application> ÉÌÉ ËÁË ÎÁÖÁÔÉÅ
ÏÄÎÏÊ ÉÚ ËÎÏÐÏË <quote>New Printers Found</quote> ÎÁ ÔÏÊ ÖÅ
ÓÔÒÁÎÉÃÅ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ. ëÏÇÄÁ ÐÅÒÅÄ ×ÁÍÉ ÐÒÅÄÓÔÁÎÅÔ ×ÙÐÁÄÁÀÝÉÊ
ÓÐÉÓÏË <quote>Device</quote>, ÐÒÏÓÔÏ ×ÙÂÅÒÉÔÅ ÔÒÅÂÕÅÍÙÊ ÌÏËÁÌØÎÏ
ÐÏÄËÌÀÞÅÎÎÙÊ ÐÒÉÎÔÅÒ, Á ÄÁÌØÛÅ ÓÌÅÄÕÊÔÅ ÐÏÄÓËÁÚËÁÍ ÉÎÔÅÒÆÅÊÓÁ.
÷ ÓÌÕÞÁÅ ÅÓÌÉ ÂÙÌÉ ÕÓÔÁÎÏ×ÌÅÎÙ ÐÏÒÔÙ ÉÌÉ ÐÁËÅÔÙ
<package>print/gutenprint-cups</package> ÉÌÉ
<package>print/hplip</package>, ËÁË ÕËÁÚÙ×ÁÌÏÓØ ×ÙÛÅ,
ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ÄÒÁÊ×ÅÒÁ ÐÅÞÁÔÉ ÂÕÄÕÔ ÄÏÓÔÕÐÎÙ ÎÁ ÐÏÓÌÅÄÕÀÝÉÈ
ÓÔÒÁÎÉÃÁÈ, ÞÔÏ ÍÏÖÅÔ ÏÂÅÓÐÅÞÉÔØ ÂÏÌØÛÕÀ ÎÁÄÅÖÎÏÓÔØ É ÒÁÓÛÉÒÅÎÎÙÅ
×ÏÚÍÏÖÎÏÓÔÉ.</para>
</sect1>
<sect1 xml:id="printing-cups-clients">
<title>ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ ËÌÉÅÎÔÏ× CUPS</title>
<para>ðÏÓÌÅ ÔÏÇÏ, ËÁË ÓÅÒ×ÅÒ <application>CUPS</application> ÂÙÌ ÎÁÓÔÒÏÅÎ,
ÐÒÉÎÔÅÒÙ ÄÏÂÁ×ÌÅÎÙ É ÓÄÅÌÁÎÙ ÄÏÓÔÕÐÎÙÍÉ × ÓÅÔÉ, ÓÌÅÄÕÀÝÉÊ ÛÁÇ &mdash;
ÜÔÏ ÎÁÓÔÒÏÊËÁ ËÌÉÅÎÔÏ× ÉÌÉ ÍÁÛÉÎ, ËÏÔÏÒÙÅ ÂÕÄÕÔ ÉÍÅÔØ ÄÏÓÔÕÐ Ë ÓÅÒ×ÅÒÕ
<application>CUPS</application>. åÓÌÉ Õ ×ÁÓ ÅÄÉÎÓÔ×ÅÎÎÙÊ ÎÁÓÔÏÌØÎÙÊ
ËÏÍÐØÀÔÅÒ, ËÏÔÏÒÙÊ ÒÁÂÏÔÁÅÔ ÏÄÎÏ×ÒÅÍÅÎÎÏ É ÓÅÒ×ÅÒÏÍ É ËÌÉÅÎÔÏÍ,
ÔÏ × ÂÏÌØÛÉÎÓÔ×Å ÜÔÏÊ ÉÎÆÏÒÍÁÃÉÉ ×Ù ÎÅ ÎÕÖÄÁÅÔÅÓØ.</para>
<sect2 xml:id="printing-cups-clients-unix">
<title>&unix; ËÌÉÅÎÔÙ</title>
<para>îÁ &unix; ËÌÉÅÎÔÁÈ ÔÁËÖÅ ÐÏÔÒÅÂÕÅÔÓÑ ÕÓÔÁÎÏ×ÉÔØ
<application>CUPS</application>. ðÏÓÌÅ ÕÓÔÁÎÏ×ËÉ ÓÉÓÔÅÍÙ
ÐÅÞÁÔÉ ÎÁ ËÌÉÅÎÔÅ, <application>CUPS</application>-ÐÒÉÎÔÅÒÙ,
ÐÒÉÓÕÔÓÔ×ÕÀÝÉÅ × ÓÅÔÉ, ÞÁÝÅ ×ÓÅÇÏ Á×ÔÏÍÁÔÉÞÅÓËÉ ÎÁÈÏÄÑÔÓÑ
ÍÅÎÅÄÖÅÒÁÍÉ ÐÒÉÎÔÅÒÏ× ÒÁÚÎÙÈ ÇÒÁÆÉÞÅÓËÉÈ ÏÂÏÌÏÞÅË, ÔÁËÉÈ ËÁË
<application>GNOME</application> ÉÌÉ <application>KDE</application>.
÷ ËÁÞÅÓÔ×Å ÁÌØÔÅÒÎÁÔÉ×Ù, ×Ù ÍÏÖÅÔÅ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ×ÅÂ-ÉÎÔÅÒÆÅÊÓÏÍ
<application>CUPS</application> ÎÁ ËÌÉÅÎÔÓËÏÊ ÍÁÛÉÎÅ ÐÏ ÁÄÒÅÓÕ
<uri xlink:href="http://localhost:631">http://localhost:631</uri> É ÎÁ ÓÔÒÁÎÉÃÅ
ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ×ÙÂÒÁÔØ <quote>Add Printer</quote>. ëÏÇÄÁ
ÐÅÒÅÄ ×ÁÍÉ ÐÒÅÄÓÔÁÎÅÔ ×ÙÐÁÄÁÀÝÉÊ ÓÐÉÓÏË <quote>Device</quote>,
ÐÒÏÓÔÏ ×ÙÂÅÒÉÔÅ ÓÅÔÅ×ÏÊ <application>CUPS</application> ÐÒÉÎÔÅÒ, ÅÓÌÉ
ÏÎ ÂÙÌ ÏÂÎÁÒÕÖÅÎ Á×ÔÏÍÁÔÉÞÅÓËÉ, ÉÌÉ ×ÙÂÅÒÉÔÅ <literal>ipp</literal>
ÉÌÉ <literal>http</literal> É ××ÅÄÉÔÅ <acronym>IPP</acronym> ÉÌÉ
<acronym>HTTP</acronym> ÁÄÒÅÓ (<acronym>URI</acronym>) ÓÅÔÅ×ÏÇÏ
<application>CUPS</application> ÐÒÉÎÔÅÒÁ:</para>
<programlisting>ipp://<replaceable>server-name-or-ip</replaceable>/printers/<replaceable>printername</replaceable></programlisting>
<programlisting>http://<replaceable>server-name-or-ip</replaceable>:631/printers/<replaceable>printername</replaceable></programlisting>
<para>åÓÌÉ <application>CUPS</application> ËÌÉÅÎÔ ÎÅ ÎÁÈÏÄÉÔ × ÓÅÔÉ
ÐÒÉÎÔÅÒÙ, ÄÏÓÔÕÐÎÙÅ ÞÅÒÅÚ ÓÅÒ×ÅÒ <application>CUPS</application>,
ÔÏ ÉÎÏÇÄÁ ÐÏÍÏÇÁÅÔ ÓÏÚÄÁÎÉÅ ÉÌÉ ÉÚÍÅÎÅÎÉÅ ÆÁÊÌÁ
<filename>/usr/local/etc/cups/client.conf</filename> Ó ÄÏÂÁ×ÌÅÎÉÅÍ
ÅÄÉÎÓÔ×ÅÎÎÏÊ ÚÁÐÉÓÉ, ÐÏÄÏÂÎÏÊ ÓÌÅÄÕÀÝÅÊ:</para>
<programlisting>ServerName <replaceable>server-ip</replaceable></programlisting>
<para>÷ ÜÔÏÍ ÓÌÕÞÁÅ <replaceable>server-ip</replaceable> ÎÅÏÂÈÏÄÉÍÏ
ÚÁÍÅÎÉÔØ ÎÁ <acronym>IP</acronym> ÁÄÒÅÓ ÓÅÒ×ÅÒÁ
<application>CUPS</application> × ÓÅÔÉ.</para>
</sect2>
<sect2 xml:id="printing-cups-clients-windows">
<title>&windows;-ËÌÉÅÎÔÙ</title>
<para>÷ÅÒÓÉÉ &windows;, ÐÒÅÄÛÅÓÔ×ÕÀÝÉÅ XP, ÎÅ ÉÍÅÌÉ ×ÓÔÒÏÅÎÎÏÊ
ÐÏÄÄÅÒÖËÉ ÐÒÏÔÏËÏÌÁ <acronym>IPP</acronym>. ïÄÎÁËÏ &windowsxp;
É ÂÏÌÅÅ ÐÏÚÄÎÉÅ ×ÅÒÓÉÉ ÕÖÅ ÏÂÌÁÄÁÀÔ ÔÁËÏÊ ×ÏÚÍÏÖÎÏÓÔØÀ. óÌÅÄÏ×ÁÔÅÌØÎÏ,
ÄÏÂÁ×ÉÔØ <application>CUPS</application> ÐÒÉÎÔÅÒ × ÜÔÉÈ ×ÅÒÓÉÑÈ
&windows; ÄÏ×ÏÌØÎÏ ÐÒÏÓÔÏ. ÷ ÂÏÌØÛÉÎÓÔ×Å ÓÌÕÞÁÅ×, ÁÄÍÉÎÉÓÔÒÁÔÏÒÕ
&windows; ÐÏÔÒÅÂÕÅÔÓÑ ÚÁÐÕÓÔÉÔØ ÍÁÓÔÅÒÁ ÕÓÔÁÎÏ×ËÉ ÐÒÉÎÔÅÒÁ
(<literal>Add Printer</literal>) ×ÙÂÒÁÔØ ÓÅÔÅ×ÏÊ ÐÒÉÎÔÅÒ
(<literal>Network Printer</literal>), Á ÚÁÔÅÍ ××ÅÓÔÉ
<acronym>URI</acronym> ÓÌÅÄÕÀÝÅÇÏ ÆÏÒÍÁÔÁ:</para>
<programlisting>http://<replaceable>server-name-or-ip</replaceable>:631/printers/<replaceable>printername</replaceable></programlisting>
<para>åÓÌÉ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÅÒÓÉÑ &windows; ÂÅÚ ÐÏÄÄÅÒÖËÉ ÐÒÏÔÏËÏÌÁ
<acronym>IPP</acronym>, ÔÏ ÏÂÝÉÍ ÓÌÕÞÁÅÍ ÐÏÄËÌÀÞÅÎÉÑ Ë
<application>CUPS</application>-ÐÒÉÎÔÅÒÕ ÂÕÄÅÔ ÓÏ×ÍÅÓÔÎÏÅ
ÉÓÐÏÌØÚÏ×ÁÎÉÅ <application>CUPS</application> É
<package>net/samba3</package>. ïÐÉÓÁÎÉÅ ÜÔÏÊ
×ÏÚÍÏÖÎÏÓÔÉ ×ÙÈÏÄÉÔ ÚÁ ÒÁÍËÉ ÄÁÎÎÏÊ ÓÔÁÔØÉ.</para>
</sect2>
</sect1>
<sect1 xml:id="printing-cups-troubleshooting">
<title>õÓÔÒÁÎÅÎÉÅ ÎÅÐÏÌÁÄÏË Ó CUPS</title>
<para>ðÒÏÂÌÅÍÙ c <application>CUPS</application> ÞÁÓÔÏ ×ÏÚÎÉËÁÀÔ
ÉÚ-ÚÁ ÎÅ×ÅÒÎÙÈ ÐÒÁ× ÄÏÓÔÕÐÁ. óÎÁÞÁÌÁ Ä×ÁÖÄÙ ÐÒÏ×ÅÒØÔÅ ÐÒÁ×Á ÄÏÓÔÕÐÁ
× &man.devfs.8; (Ó×ÅÒØÔÅÓØ Ó ÕÖÅ ÏÐÉÓÁÎÎÙÍÉ ×ÙÛÅ). úÁÔÅÍ, ÐÒÏ×ÅÒØÔÅ
ÒÅÁÌØÎÙÅ ÐÒÁ×Á ÕÓÔÒÏÊÓÔ×, ÓÏÚÄÁÎÎÙÈ × ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ. ôÁËÖÅ ÂÙ×ÁÅÔ
ÐÏÌÅÚÎÙÍ ÕÄÏÓÔÏ×ÅÒÉÔØÓÑ, ÞÔÏ ×ÁÛ ÐÏÌØÚÏ×ÁÔÅÌØ ×ÈÏÄÉÔ × ÇÒÕÐÐÕ
<systemitem class="groupname">cups</systemitem>. åÓÌÉ Õ ×ÁÓ ÓËÌÁÄÙ×ÁÅÔÓÑ ×ÐÅÞÁÔÌÅÎÉÅ,
ÞÔÏ ÆÌÁÖËÉ ÐÒÁ× ÄÏÓÔÕÐÁ ÎÁ ÓÔÒÁÎÉÃÅ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ×ÅÂ-ÉÎÔÅÒÆÅÊÓÁ
<application>CUPS</application> ÎÅ ÒÁÂÏÔÁÀÔ, ÔÏ ÉÎÙÍ ÒÅÛÅÎÉÅÍ
ÍÏÖÅÔ ÂÙÔØ ÒÅÚÅÒ×ÎÏÅ ËÏÐÉÒÏ×ÁÎÉÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÇÏ ÆÁÊÌÁ
<filename>/usr/local/etc/cups/cupsd.conf</filename> É ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ
ÒÁÚÎÙÈ ÏÐÃÉÊ ËÏÎÆÉÇÕÒÁÃÉÉ Ó ÐÏÄÂÏÒÏÍ ÉÈ ËÏÍÂÉÎÁÃÉÊ.
îÉÖÅ ÐÒÉ×ÅÄÅÎÏ ÓÏÄÅÒÖÉÍÏÅ ÔÅÓÔÏ×ÏÇÏ ÆÁÊÌÁ ËÏÎÆÉÇÕÒÁÃÉÉ
<filename>/usr/local/etc/cups/cupsd.conf</filename>.
ðÏÖÁÌÕÊÓÔÁ, ÏÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ÂÅÚÏÐÁÓÎÏÓÔØ × ÜÔÏÍ ÐÒÉÍÅÒÅ
<filename>cupsd.conf</filename> ÂÙÌÁ ÐÏÖÅÒÔ×Ï×ÁÎÁ × ÕÇÏÄÕ ÐÒÏÓÔÏÔÅ
ÎÁÓÔÒÏÊËÉ; ËÁË ÔÏÌØËÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒ ÕÓÐÅÛÎÏ ÐÏÄÓÏÅÄÉÎÉÔÓÑ Ë ÓÅÒ×ÅÒÕ
<application>CUPS</application> É ÓËÏÎÆÉÇÕÒÉÒÕÅÔ ËÌÉÅÎÔÏ×,
ÒÅËÏÍÅÎÄÕÅÔÓÑ ÐÅÒÅÓÍÏÔÒÅÔØ ÄÁÎÎÕÀ ËÏÎÆÉÇÕÒÁÃÉÀ É ÄÏÂÁ×ÉÔØ ÒÁÚÇÒÁÎÉÞÅÎÉÅ
ÄÏÓÔÕÐÁ.</para>
<programlisting># Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
# Administrator user group...
SystemGroup wheel
# Listen for connections on Port 631.
Port 631
#Listen localhost:631
Listen /var/run/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
#BrowseAllow @LOCAL
BrowseAllow 192.168.1.* # change to local LAN settings
BrowseAddress 192.168.1.* # change to local LAN settings
# Default authentication type, when authentication is required...
DefaultAuthType Basic
DefaultEncryption Never # comment this line to allow encryption
# Allow access to the server from any machine on the LAN
&lt;Location /&gt;
Order allow,deny
#Allow localhost
Allow 192.168.1.* # change to local LAN settings
&lt;/Location&gt;
# Allow access to the admin pages from any machine on the LAN
&lt;Location /admin&gt;
#Encryption Required
Order allow,deny
#Allow localhost
Allow 192.168.1.* # change to local LAN settings
&lt;/Location&gt;
# Allow access to configuration files from any machine on the LAN
&lt;Location /admin/conf&gt;
AuthType Basic
Require user @SYSTEM
Order allow,deny
#Allow localhost
Allow 192.168.1.* # change to local LAN settings
&lt;/Location&gt;
# Set the default printer/job policies...
&lt;Policy default&gt;
# Job-related operations must be done by the owner or an adminstrator...
&lt;Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs \
Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription \
Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job \
CUPS-Move-Job&gt;
Require user @OWNER @SYSTEM
Order deny,allow
&lt;/Limit&gt;
# All administration operations require an adminstrator to authenticate...
&lt;Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer \
Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs \
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer \
Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class \
CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default&gt;
AuthType Basic
Require user @SYSTEM
Order deny,allow
&lt;/Limit&gt;
# Only the owner or an administrator can cancel or authenticate a job...
&lt;Limit Cancel-Job CUPS-Authenticate-Job&gt;
Require user @OWNER @SYSTEM
Order deny,allow
&lt;/Limit&gt;
&lt;Limit All&gt;
Order deny,allow
&lt;/Limit&gt;
&lt;/Policy&gt;</programlisting>
</sect1>
<index/>
</article>