Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Both sides previous revision Попередня ревізія Наступна ревізія | Попередня ревізія Наступна ревізія Both sides next revision | ||
canon [2012/11/05 02:04] wombat [Сборка пакетов из исходников] |
canon [2015/05/17 22:56] wombat Версия 2.60 |
||
---|---|---|---|
Рядок 1: | Рядок 1: | ||
+ | ====== Установка в Debian ====== | ||
+ | На [[http://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp3010.aspx?type=download&softwaredetailid=tcm:13-1057853&os=&language= | сайте производителя]] имеется версия 2.60 для 32-битных и 64-битных версий Debian GNU/Linux. | ||
+ | |||
+ | Скачиваем оттуда файл [[http://gdlp01.c-wss.com/gds/6/0100004596/03/Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz | Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz]], распаковываем его, переходим в каталог ''Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian'', и выполняем установку драйвера: | ||
+ | |||
+ | sudo dpkg -i cndrvcups-capt_2.60-1_amd64.deb cndrvcups-common_2.60-1_amd64.deb | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Сборка deb-пакетов из исходников ====== | ||
+ | |||
+ | <note warning>Содержимое этого раздела было актуально для драйверов версии до 2.40. После выпуска версии **2.60** (см. выше) необходимые файлы уже содержатся в поставляемом архиве. Поэтому в случае установки по описанному выше сценарию можно сразу переходить к разделу [[canon#настройка_ccpd]]</note> | ||
+ | |||
+ | Скачиваем архив с драйверами с сайта Canon: | ||
+ | |||
+ | http://www.canon.fr/Support/Consumer_Products/products/printers/Laser/i-SENSYS_LBP3010.aspx?DLtcmuri=tcm:79-1000704&page=1&type=download | ||
+ | |||
+ | http://www.canon.fr/Support/Consumer_Products/products/printers/Laser/i-SENSYS_LBP3010.aspx?DLtcmuri=tcm:79-846494&page=1&type=download | ||
+ | |||
+ | Распаковываем архив: | ||
+ | |||
+ | tar xvf Linux_CAPT_PrinterDriver_V240_uk_EN/Src/cndrvcups-common-2.40-1.tar.gz | ||
+ | cd cndrvcups-common-2.40 | ||
+ | |||
+ | Заменяем в файле debian/control строку | ||
+ | |||
+ | Architecture: i386 | ||
+ | |||
+ | на | ||
+ | |||
+ | Architecture: amd64 | ||
+ | |||
+ | Затем запускаем создание пакета: | ||
+ | |||
+ | dpkg-buildpackage -B | ||
+ | |||
+ | Переходим в каталог уровнем выше (по умолчанию пакет создаётся там) и устанавливаем пакет: | ||
+ | |||
+ | cd .. | ||
+ | dpkg -i cndrvcups-common_2.40-1_amd64.deb | ||
+ | |||
+ | |||
+ | Собираем пакет cndrvcups-capt: | ||
+ | |||
+ | tar xvf Linux_CAPT_PrinterDriver_V240_uk_EN/Src/cndrvcups-capt-2.40-1.tar.gz | ||
+ | cd cndrvcups-capt-2.40 | ||
+ | |||
+ | Редактируем файлы в соответствии со следующим diff-файлом: | ||
+ | |||
+ | <file diff cndrvcups-capt-2.40-debian-wheezy.diff>diff -Nuar cndrvcups-capt-2.40.orig/cngplp/configure.in cndrvcups-capt-2.40/cngplp/configure.in | ||
+ | --- cndrvcups-capt-2.40.orig/cngplp/configure.in 2011-05-26 05:21:44.000000000 +0300 | ||
+ | +++ cndrvcups-capt-2.40/cngplp/configure.in 2012-11-05 01:59:00.000000000 +0200 | ||
+ | @@ -35,7 +35,7 @@ | ||
+ | AM_GLIB_GNU_GETTEXT | ||
+ | |||
+ | AM_DISABLE_STATIC | ||
+ | -AC_PROG_LIBTOOL | ||
+ | +AM_PROG_LIBTOOL | ||
+ | |||
+ | AC_OUTPUT([Makefile | ||
+ | cngplpmod/Makefile | ||
+ | diff -Nuar cndrvcups-capt-2.40.orig/debian/control cndrvcups-capt-2.40/debian/control | ||
+ | --- cndrvcups-capt-2.40.orig/debian/control 2011-07-05 10:37:16.000000000 +0300 | ||
+ | +++ cndrvcups-capt-2.40/debian/control 2012-11-05 01:59:00.000000000 +0200 | ||
+ | @@ -6,7 +6,7 @@ | ||
+ | Standards-Version: 3.6.1 | ||
+ | |||
+ | Package: cndrvcups-capt | ||
+ | -Architecture: i386 | ||
+ | +Architecture: i386 amd64 | ||
+ | Depends: ${shlibs:Depends}, ${misc:Depends}, cndrvcups-common (>= 2.40) | ||
+ | Replaces: cndrvcups-lipslx, cndrvcups-ufr2-uk, cndrvcups-ufr2-us | ||
+ | Description: Canon CAPT Printer Driver for Linux | ||
+ | diff -Nuar cndrvcups-capt-2.40.orig/debian/rules cndrvcups-capt-2.40/debian/rules | ||
+ | --- cndrvcups-capt-2.40.orig/debian/rules 2011-08-02 11:04:27.000000000 +0300 | ||
+ | +++ cndrvcups-capt-2.40/debian/rules 2012-11-05 01:59:00.000000000 +0200 | ||
+ | @@ -169,7 +169,7 @@ | ||
+ | # dh_python | ||
+ | # dh_makeshlibs | ||
+ | dh_installdeb | ||
+ | - dh_shlibdeps | ||
+ | + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info | ||
+ | dh_gencontrol | ||
+ | dh_md5sums | ||
+ | dh_builddeb | ||
+ | diff -Nuar cndrvcups-capt-2.40.orig/statusui/src/ppapdata.c cndrvcups-capt-2.40/statusui/src/ppapdata.c | ||
+ | --- cndrvcups-capt-2.40.orig/statusui/src/ppapdata.c 2011-10-27 05:03:50.000000000 +0300 | ||
+ | +++ cndrvcups-capt-2.40/statusui/src/ppapdata.c 2012-11-05 01:59:00.000000000 +0200 | ||
+ | @@ -24,6 +24,7 @@ | ||
+ | #include <string.h> | ||
+ | |||
+ | #include <cups/cups.h> | ||
+ | +#include <cups/ppd.h> | ||
+ | #include "uimain.h" | ||
+ | #include "cnsktmodule.h" | ||
+ | |||
+ | diff -Nuar cndrvcups-capt-2.40.orig/statusui/src/uimain.c cndrvcups-capt-2.40/statusui/src/uimain.c | ||
+ | --- cndrvcups-capt-2.40.orig/statusui/src/uimain.c 2011-10-27 04:57:32.000000000 +0300 | ||
+ | +++ cndrvcups-capt-2.40/statusui/src/uimain.c 2012-11-05 01:59:00.000000000 +0200 | ||
+ | @@ -29,6 +29,7 @@ | ||
+ | #include "interface.h" | ||
+ | #include "data_process.h" | ||
+ | #include <cups/cups.h> | ||
+ | +#include <cups/ppd.h> | ||
+ | #define MAX_WORD_SIZE 512 | ||
+ | |||
+ | #define LOCALE_STRING_JA "ja_JP.UTF-8" | ||
+ | </file> | ||
+ | |||
+ | Выходим из каталога и устанавливаем собранный пакет: | ||
+ | |||
+ | cd .. | ||
+ | dpkg -i cndrvcups-capt_2.40-1_amd64.deb | ||
+ | |||
+ | |||
+ | ====== Настройка CCPD ====== | ||
+ | |||
+ | ccpdadmin -p LBP3010 -o /dev/usb/lp0 | ||
+ | mkdir /var/ccpd | ||
+ | mkfifo /var/ccpd/fifo0 | ||
+ | chown -R lp:lp /var/ccpd | ||
+ | |||
+ | |||
+ | |||
+ | ====== Настройка CUPS ====== | ||
+ | |||
+ | http://localhost:631/admin | ||
+ | |||
+ | или | ||
+ | |||
+ | /usr/sbin/lpadmin -p LBP3010 -m CNCUPSLBP3050CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E | ||
+ | |||
+ | |||
+ | ====== Загрузка модуля usblp ====== | ||
+ | |||
+ | modprobe usblp | ||
+ | ls -l /dev/usb/lp0 | ||
+ | /etc/init.d/ccpd restart | ||
+ | |||
+ | ====== Полезные ссылки ====== | ||
+ | |||
+ | https://help.ubuntu.com/community/CanonCaptDrv190 | ||
+ | |||
+ | https://forums.mageia.org/en/viewtopic.php?f=24&t=630&start=25 | ||
+ | |||
+ | http://forums.fedoraforum.org/showthread.php?t=271457 |