printer.rst
changeset 1132 5beef92e89f5
child 1334 9bf0d5a1f0cf
equal deleted inserted replaced
1131:6faf5678506a 1132:5beef92e89f5
       
     1 .. -*- coding: utf-8; -*-
       
     2 
       
     3 ===========
       
     4  Printers.
       
     5 ===========
       
     6 
       
     7 CUPS.
       
     8 =====
       
     9 
       
    10 What is CUPS?
       
    11 -------------
       
    12 
       
    13 See:
       
    14 
       
    15  * http://www.cups.org/
       
    16  * http://en.wikipedia.org/wiki/Common_Unix_Printing_System
       
    17 
       
    18 How access to web interface of CUPS?
       
    19 ------------------------------------
       
    20 
       
    21 Visit:
       
    22 
       
    23   http://localhost:631
       
    24 
       
    25 Installing on GNU/Debian.
       
    26 -------------------------
       
    27 ::
       
    28 
       
    29   $ sudo apt-get cupsys
       
    30   $ sudo apt-get cupsys-client
       
    31 
       
    32 List of printers.
       
    33 -----------------
       
    34 ::
       
    35 
       
    36   $ lpstat -v
       
    37   device for HL2070N: lpd://192.168.1.102/binary_p1
       
    38 
       
    39 What printer default?
       
    40 ---------------------
       
    41 ::
       
    42 
       
    43   $ lpstat -d
       
    44   system default destination: HL2070N
       
    45 
       
    46 or more verbose::
       
    47 
       
    48   $ lpstat -s
       
    49   system default destination: HL2070N
       
    50   device for HL2070N: lpd://192.168.1.102/binary_p1
       
    51 
       
    52 HP printers.
       
    53 ============
       
    54 
       
    55 Where find driver for HP printers?
       
    56 ----------------------------------
       
    57 
       
    58 Follow instructions at:
       
    59 
       
    60   http://hplipopensource.com
       
    61 
       
    62 Debian 6.0 contain all necessary packages to Print from LaserJet 1020::
       
    63 
       
    64   $ sudo apt-get install foo2zjs hplip
       
    65 
       
    66 How about LJ 1020?
       
    67 ------------------
       
    68 
       
    69 This printer is supported by the foo2zjs free software printer driver.
       
    70 
       
    71 The printer is faster than the LaserJet 1000 and has a USB connection. It has
       
    72 only 2 MB of RAM and 32 kB of ROM.
       
    73 
       
    74 The firmware of the printer must be uploaded after turning it on. You can use a
       
    75 hotplug/udev script which comes with foo2zjs, or do it manually::
       
    76 
       
    77   cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0
       
    78 
       
    79 Brother printers.
       
    80 =================
       
    81 
       
    82 Работают ли принтеры brother под Linux x86_32/x86_64.
       
    83 -----------------------------------------------------
       
    84 
       
    85 Да.
       
    86 
       
    87 Как настроить принтер.
       
    88 ----------------------
       
    89 
       
    90 Следует:
       
    91 
       
    92  * установить поддержку печати в Unix CUPS
       
    93  * установить, если потребуеться, драйвер принтера
       
    94  * добавить принтер
       
    95 
       
    96 Мануал производителя находиться по адресу:
       
    97 
       
    98   http://solutions.brother.com/linux/en_us/instruction_prn1a.html
       
    99 
       
   100 GNU/Debian x86_32.
       
   101 ~~~~~~~~~~~~~~~~~~
       
   102 
       
   103 Инсталируем 2 пакета, полученых с сайта производителя::
       
   104 
       
   105   $ sudo dpkg -i brhl2070nlpr-2.0.1-1.i386.deb
       
   106   $ sudo dpkg -i cupswrapperHL2070N-2.0.1-2.i386.deb
       
   107 
       
   108 
       
   109 GNU/Debian x86_64.
       
   110 ~~~~~~~~~~~~~~~~~~
       
   111 
       
   112 Инсталируем 2 пакета, полученых с сайта производителя (да, игнорируем что они
       
   113 предназначены для i386)::
       
   114 
       
   115   $ sudo dpkg -i --force-all --force-architecture brhl2070nlpr-2.0.1-1.i386.deb
       
   116   $ sudo dpkg -i --force-all --force-architecture cupswrapperHL2070N-2.0.1-2.i386.deb
       
   117 
       
   118 Добавляем принтер (на примере HL 2070NR) в CUPS.
       
   119 ------------------------------------------------
       
   120 
       
   121 Пакет cupswrapper добавляет принтер, нам осталось его сконфигурировать (при
       
   122 изменении настроек может затребуеться аутентификация, в качестве user/password
       
   123 используем root/<root-pass>):
       
   124 
       
   125  * на странице http://127.0.0.1:631/ выбираем принтер
       
   126  * меню "Modify Printer"
       
   127  * меню "LPD/LPR Host or Printer for Device"
       
   128  * адрес lpd://192.168.1.102/binary_p1
       
   129  * выбрать производителя из списка (Brother)
       
   130  * выбрать модель (HL 2070NR не было, выбрал HL 2060N)
       
   131  * установить этот принтер по умолчанию - "Set As Default"
       
   132  * добавить пользователей, которые имеют право на печать - "Set Allowed User"
       
   133 
       
   134 Пробуем напечатать пробную страницу.
       
   135 
       
   136 Virtual printer.
       
   137 ================
       
   138 
       
   139 PDFCreator.
       
   140 -----------
       
   141 
       
   142 Free/GPL virtual printer for Windows.
       
   143 
       
   144   http://www.pdfforge.org/
       
   145                 Home page.
       
   146   http://ru.wikipedia.org/wiki/PDFCreator
       
   147                 Wikipedia page.
       
   148