diff --git a/ru_RU.KOI8-R/articles/Makefile b/ru_RU.KOI8-R/articles/Makefile index b260f28c1a..c1e17f417a 100644 --- a/ru_RU.KOI8-R/articles/Makefile +++ b/ru_RU.KOI8-R/articles/Makefile @@ -14,6 +14,7 @@ SUBDIR+= committers-guide SUBDIR+= console-server SUBDIR+= contributing #SUBDIR+= contributors +SUBDIR+= cups SUBDIR+= custom-gcc SUBDIR+= cvs-freebsd SUBDIR+= cvsup-advanced diff --git a/ru_RU.KOI8-R/articles/cups/Makefile b/ru_RU.KOI8-R/articles/cups/Makefile new file mode 100644 index 0000000000..7559f3e821 --- /dev/null +++ b/ru_RU.KOI8-R/articles/cups/Makefile @@ -0,0 +1,21 @@ +# +# The FreeBSD Russian Documentation Project +# +# $FreeBSD$ +# +# Article: CUPS on FreeBSD +# +# Original revision: 1.2 +# + +DOC?= article + +FORMATS?= html + +INSTALL_COMPRESSED?=gz +INSTALL_ONLY_COMPRESSED?= + +SRCS= article.sgml + +DOC_PREFIX?= ${.CURDIR}/../../.. +.include "${DOC_PREFIX}/share/mk/doc.project.mk" diff --git a/ru_RU.KOI8-R/articles/cups/article.sgml b/ru_RU.KOI8-R/articles/cups/article.sgml new file mode 100644 index 0000000000..c5cd372078 --- /dev/null +++ b/ru_RU.KOI8-R/articles/cups/article.sgml @@ -0,0 +1,383 @@ +<!-- + The FreeBSD Russian Documentation Project + + $FreeBSD$ + + Original revision: 1.3 +--> + +<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [ +<!ENTITY % articles.ent PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Articles Entity Set//EN"> +%articles.ent; +<!ENTITY % not.published "IGNORE"> +]> +<!-- +Translation: Taras Korenko, + Alexander Nedotsukov + --> + +<article lang="ru"> + <articleinfo> + <title>������������� ������� ������ Unix �� FreeBSD</title> + <pubdate>$FreeBSD$</pubdate> + <authorgroup> + <author> + <firstname>Chess</firstname> + <surname>Griffin</surname> + <affiliation> + <address><email>chess@chessgriffin.com</email></address> + </affiliation> + </author> + </authorgroup> + + <legalnotice id="trademarks" role="trademarks"> + &tm-attrib.freebsd; + &tm-attrib.general; + </legalnotice> + + <abstract> + <para>��� ������ ��������� ���������������� ������������� ������� ������ + UNIX (CUPS) �� &os;.</para> + </abstract> + </articleinfo> + + <sect1 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; X ��� &windows;.</para> + + <para>����������� ���� ������������� ������� ������ UNIX — + <ulink url="http://www.cups.org/"></ulink>.</para> + </sect1> + + <sect1 id="printing-cups-install"> + <title>��������� ������� ������ CUPS</title> + + <para><application>CUPS</application> ����� ���� ����������� + �� ������ ��� ��� ��������� �������. ����� ���������� + <application>CUPS</application> �� ��������� ������, ��������� + � ������������ ������������ <username>root</username> ��������� + �������:</para> + + <screen>&prompt.root; <userinput>cd /usr/ports/print/cups && make install clean</userinput></screen> + + <para>��� ��������� <application>CUPS</application> ��������� �����, + ��������� �� ���������� ����� �������:</para> + + <screen>&prompt.root; <userinput>pkg_add -r cups</userinput></screen> + + <para>������ ��������������, �� ������������� � ��������� ����� ��� + ������ ��� <filename role="package">print/gutenprint-cups</filename> + � <filename role="package">print/hplip</filename>, ������ �� ������� + ��������� �������� � ������� ��� ������������� ���������. ����� + ��������� ����� ������������ <application>CUPS</application> ����� ���� + ������� � ���������� <filename>/usr/local/etc/cups</filename>.</para> + </sect1> + + <sect1 id="printing-cups-configuring-server"> + <title>��������� ������� ������ CUPS</title> + + <para>����� ��������� ������ <application>CUPS</application> ���������� + ���������������� ��������� ���������������� ������. ��� ������ �������� + ��� ��������� ���� <filename>/etc/devfs.rules</filename> � �������� + ��������� ���������� ��� ����, ����� ���������� ��������������� ����� + �� ��� ������������� ����� ��������� ��������� � ������� �������� + � ������� ������������� <groupname>cups</groupname>:</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</programlisting> + + <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> ����� + �������� ��� ��������� µsoft.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> ���������� �������������, ��� ���� + ������������� ������������ ������� ��� ��������� �� ������������ + <username>root</username> ��������� ��� �������:</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 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> �������� ���-���������, + �� ������� ����� ������� �������� ���-������� � ������ + <ulink url="http://localhost:631"></ulink> � ��� �������� ������. + ���� ������ <application>CUPS</application> ��������� �� ������ + ������ � ����, �������� <hostid>localhost</hostid> �� + <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>, ������ �������� ��������� �������� + ������������ �������, � ������ �������� ���������� ����������. + � ������ ���� ���� ����������� ����� ��� ������ + <filename role="package">print/gutenprint-cups</filename> ��� + <filename role="package">print/hplip</filename>, ��� ����������� ����, + �������������� �������� ������ ����� �������� �� ����������� + ���������, ��� ����� ���������� ������� ���������� � ����������� + �����������.</para> + </sect1> + + <sect1 id="printing-cups-clients"> + <title>���������������� �������� CUPS</title> + + <para>����� ����, ��� ������ <application>CUPS</application> ��� ��������, + �������� ��������� � ������� ���������� � ����, ��������� ��� — + ��� ��������� �������� ��� �����, ������� ����� ����� ������ � ������� + <application>CUPS</application>. ���� � ��� ������������ ���������� + ���������, ������� �������� ������������ � �������� � ��������, + �� � ����������� ���� ���������� �� �� ����������.</para> + + <sect2 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> �� ���������� ������ �� ������ + <ulink url="http://localhost:631"></ulink> � �� �������� + ����������������� ������� <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 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> � + <filename role="package">net/samba3</filename>. �������� ���� + ����������� ������� �� ����� ������ ������.</para> + </sect2> + </sect1> + + <sect1 id="printing-cups-troubleshooting"> + <title>���������� ��������� � CUPS</title> + + <para>�������� c <application>CUPS</application> ����� ��������� + ��-�� �������� ���� �������. ������� ������ ��������� ����� ������� + � &man.devfs.8; (��������� � ��� ���������� ����). �����, ��������� + �������� ����� ���������, ��������� � �������� �������. ����� ������ + �������� ��������������, ��� ��� ������������ ������ � ������ + <groupname>cups</groupname>. ���� � ��� ������������ �����������, + ��� ������ ���� ������� �� �������� ����������������� ��� ���������� + <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 +<Location /> + Order allow,deny + #Allow localhost + Allow 192.168.1.* # change to local LAN settings +</Location> + +# Allow access to the admin pages from any machine on the LAN +<Location /admin> + #Encryption Required + Order allow,deny + #Allow localhost + Allow 192.168.1.* # change to local LAN settings +</Location> + +# Allow access to configuration files from any machine on the LAN +<Location /admin/conf> + AuthType Basic + Require user @SYSTEM + Order allow,deny + #Allow localhost + Allow 192.168.1.* # change to local LAN settings +</Location> + +# Set the default printer/job policies... +<Policy default> + # Job-related operations must be done by the owner or an adminstrator... + <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> + Require user @OWNER @SYSTEM + Order deny,allow + </Limit> + + # All administration operations require an adminstrator to authenticate... + <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> + AuthType Basic + Require user @SYSTEM + Order deny,allow + </Limit> + + # Only the owner or an administrator can cancel or authenticate a job... + <Limit Cancel-Job CUPS-Authenticate-Job> + Require user @OWNER @SYSTEM + Order deny,allow + </Limit> + + <Limit All> + Order deny,allow + </Limit> +</Policy></programlisting> + </sect1> + + <sect1 id="printing-cups-ports-knobs"> + <title>��������� ������ ������������ CUPS</title> + + <para>���� <application>CUPS</application> ����� ������� � �������� + �������� ������� ������, �� ����� �� ������� �������� ��������� + ������� � <filename>/etc/make.conf</filename>, ������� ������� + <application>CUPS</application> ����� ������ ������. ��� ��������� + �� ���:</para> + + <programlisting>WITH_CUPS=YES +CUPS_OVERWRITE_BASE=YES +WITHOUT_LPR=YES</programlisting> + + <para>������ ����������, <makevar>WITH_CUPS</makevar>, ��������� ��������� + <application>CUPS</application> � ������, � ������� ������������� ����� + �����������. ������ ������, <makevar>CUPS_OVERWRITE_BASE</makevar>, + �������� ��������� ������������� ������ � ����, ������� ����� + ���������-�� � ������� ������ &os; �� ��������� — + <application>LPR</application>. ����� ��� ������������ ����� + ���� ��������� �� ����� ���������� ���������� ������� ����������� + <maketarget>buildworld</maketarget>. ������ ����������, + <makevar>WITHOUT_LPR</makevar>, ������������ ��������� ��������� + <application>LPR</application> � ������, ������������ �� + ������������.</para> + </sect1> +</article>