LinuxForum.Fans
Тема

Установка принтера Canon LBP6000B

Автор: oiler1979 60 сообщений 27519 просмотров
#298931
oiler1979 написал:
Делаю вот по этой ссылке: http://forum.ubuntu.ru/index.php?topic=189049.0

Я просил написать, а не ссылки приводить, плюс полностью выхлоп консоли после каждой вводимой команды.

#298932

Тестировалось на LBP3010.
Теоретически должны работать все принтеры серии LBP начиная с LBP810 и заканчивая LBP9100.
(Нажмите, чтобы показать/скрыть)
1. Включаем принтер

2. Устанавливаем драйвер:
Linux CAPT Printer Driver v2.40
Устанавливаем недостающую библиотеку:
Код: [Выделить]

sudo apt-get install libglade2-0

Распаковываем архив с драйвером и переходим в директорию 32-bit_Driver/Debian
Устанавливаем пакеты в соответствующем порядке:
cndrvcups-common_2.40-1_i386.deb
cndrvcups-capt_2.40-1_i386.deb

3. Регистрируем принтер:
(Нажмите, чтобы показать/скрыть)


Printer Name PPD File Name
LBP9100C CNCUPSLBP9100CCAPTK.ppd
LBP7200C series CNCUPSLBP7200CCAPTK.ppd
LBP7200Cdn (network mode) CNCUPSLBP7200CCAPTK.ppd
LBP6300 CNCUPSLBP6300CAPTK.ppd
LBP6200 CNCUPSLBP6200CAPTK.ppd
LBP6000 LBP6018 CNCUPSLBP6018CAPTK.ppd
LBP5300 CNCUPSLBP5300CAPTK.ppd
LBP5100 CNCUPSLBP5100CAPTK.ppd
LBP5050 series CNCUPSLBP5050CAPTK.ppd
LBP5000 CNCUPSLBP5000CAPTK.ppd
LBP3500 CNCUPSLBP3500CAPTK.ppd
LBP3310 CNCUPSLBP3310CAPTK.ppd
LBP3300 CNCUPSLBP3300CAPTK.ppd
LBP3250 CNCUPSLBP3250CAPTK.ppd
LBP3210 CNCUPSLBP3210CAPTK.ppd
LBP3200 CNCUPSLBP3200CAPTK.ppd
LBP3150 / LBP3108 / LBP3100 CNCUPSLBP3150CAPTK.ppd
LBP3100 / LBP3108 / LBP3150 CNCUPSLBP3150CAPTK.ppd
LBP3010 / LBP3018 / LBP3050 CNCUPSLBP3050CAPTK.ppd
LBP3000 CNCUPSLBP3000CAPTK.ppd
LBP2900 CNCUPSLBP2900CAPTK.ppd
LBP-1210 CNCUPSLBP1210CAPTK.ppd
LBP-1120 CNCUPSLBP1120CAPTK.ppd
LBP-810 CNCUPSLBP1120CAPTK.ppd

Код: [Выделить]

sudo /usr/sbin/lpadmin -p LBP**** -m CNCUPSLBP****CAPTK.ppd -v ccp://localhost:59787 -E

Код: [Выделить]

sudo /usr/sbin/ccpdadmin -p LBP**** -o /dev/usb/lp0

Убираем из блэклиста модуль usblp:
Код: [Выделить]

sudo gedit /etc/modprobe.d/blacklist-cups-usblp.conf

Закомментировать строку blacklist usblp, поставив в начале строки #
Код: [Выделить]

modprobe usblp


4. Перезагружаем ccpd:
Код: [Выделить]

sudo /etc/init.d/ccpd restart


5. Завершаем настройку:
Переподключаем USB принтера;
Заходим в «Параметры системы» → «Печать»;
Жмем правой кнопкой мыши на принтере (на котором стоит зеленая галочка) и снимаем галочку «Включен»;
Жмем правой кнопкой мыши на принтере (на котором нет зеленой галочки) и выбираем «Использовать по умолчанию»;
Принтер должен работать. Пробуем.

6. Добавляем принтер в автозагрузку:
Код: [Выделить]

sudo update-rc.d ccpd defaults 20

Код: [Выделить]

sudo gedit /etc/rc.local

перед exit 0 добавляем строки:
Код: [Выделить]

/etc/init.d/ccpd start
/etc/init.d/ccpd restart

Перезагружаем пк и пробуем печать.

#298933
oiler1979 написал:
Тестировалось на LBP3010.
Теоретически должны работать все принтеры серии LBP начиная с LBP810 и заканчивая LBP9100.
(Нажмите, чтобы показать/скрыть)
1. Включаем принтер

2. Устанавливаем драйвер:
Linux CAPT Printer Driver v2.40
Устанавливаем недостающую библиотеку:
Код: [Выделить]

sudo apt-get install libglade2-0

Распаковываем архив с драйвером и переходим в директорию 32-bit_Driver/Debian
Устанавливаем пакеты в соответствующем порядке:
cndrvcups-common_2.40-1_i386.deb
cndrvcups-capt_2.40-1_i386.deb

3. Регистрируем принтер:
(Нажмите, чтобы показать/скрыть)


Printer Name PPD File Name
LBP9100C CNCUPSLBP9100CCAPTK.ppd
LBP7200C series CNCUPSLBP7200CCAPTK.ppd
LBP7200Cdn (network mode) CNCUPSLBP7200CCAPTK.ppd
LBP6300 CNCUPSLBP6300CAPTK.ppd
LBP6200 CNCUPSLBP6200CAPTK.ppd
LBP6000 LBP6018 CNCUPSLBP6018CAPTK.ppd
LBP5300 CNCUPSLBP5300CAPTK.ppd
LBP5100 CNCUPSLBP5100CAPTK.ppd
LBP5050 series CNCUPSLBP5050CAPTK.ppd
LBP5000 CNCUPSLBP5000CAPTK.ppd
LBP3500 CNCUPSLBP3500CAPTK.ppd
LBP3310 CNCUPSLBP3310CAPTK.ppd
LBP3300 CNCUPSLBP3300CAPTK.ppd
LBP3250 CNCUPSLBP3250CAPTK.ppd
LBP3210 CNCUPSLBP3210CAPTK.ppd
LBP3200 CNCUPSLBP3200CAPTK.ppd
LBP3150 / LBP3108 / LBP3100 CNCUPSLBP3150CAPTK.ppd
LBP3100 / LBP3108 / LBP3150 CNCUPSLBP3150CAPTK.ppd
LBP3010 / LBP3018 / LBP3050 CNCUPSLBP3050CAPTK.ppd
LBP3000 CNCUPSLBP3000CAPTK.ppd
LBP2900 CNCUPSLBP2900CAPTK.ppd
LBP-1210 CNCUPSLBP1210CAPTK.ppd
LBP-1120 CNCUPSLBP1120CAPTK.ppd
LBP-810 CNCUPSLBP1120CAPTK.ppd

Код: [Выделить]

sudo /usr/sbin/lpadmin -p LBP**** -m CNCUPSLBP****CAPTK.ppd -v ccp://localhost:59787 -E

Код: [Выделить]

sudo /usr/sbin/ccpdadmin -p LBP**** -o /dev/usb/lp0

Убираем из блэклиста модуль usblp:
Код: [Выделить]

sudo gedit /etc/modprobe.d/blacklist-cups-usblp.conf

Закомментировать строку blacklist usblp, поставив в начале строки #
Код: [Выделить]

modprobe usblp


4. Перезагружаем ccpd:
Код: [Выделить]

sudo /etc/init.d/ccpd restart


5. Завершаем настройку:
Переподключаем USB принтера;
Заходим в «Параметры системы» → «Печать»;
Жмем правой кнопкой мыши на принтере (на котором стоит зеленая галочка) и снимаем галочку «Включен»;
Жмем правой кнопкой мыши на принтере (на котором нет зеленой галочки) и выбираем «Использовать по умолчанию»;
Принтер должен работать. Пробуем.

6. Добавляем принтер в автозагрузку:
Код: [Выделить]

sudo update-rc.d ccpd defaults 20

Код: [Выделить]

sudo gedit /etc/rc.local

перед exit 0 добавляем строки:
Код: [Выделить]

/etc/init.d/ccpd start
/etc/init.d/ccpd restart

Перезагружаем пк и пробуем печать.

Еще раз говорю, мне тут копи-паст на фиг не уперся, пиши то, что делал сам, команды консольные, их выхлоп и тд.
Да и хватит уже sudo юзать в Debian, есть человеческий рут и команда su -

#298934

Точно так все и делал, только без sudo)

#298935
oiler1979 написал:
Точно так все и делал, только без sudo)

А мне что с этого? По твоему я телепат и ошибки, если они после ввода команд были сам должен узнать?
ы. Если перед командой стоит знак решетка # - значит выполнение от рута, если доллар $ то от юзера.

#298936

Да нет, извини, ничего ты не должен

#298938
oiler1979 написал:
Да нет, извини, ничего ты не должен

Ну тогда заново давай.
И да момент :

text
# /usr/sbin/lpadmin -p LBP6000 -P /usr/share/cups/model/CNCUPSLBP6018CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

И твой вариант:

text
# /usr/sbin/lpadmin -p LBP6000 -m CNCUPSLBP6000CAPTK.ppd -v ccp://localhost:59787 -E

Разницу видишь?
Еще -

text
# modprobe usblp

Выполняется без ошибок?
Модуль usblp не должен быть в блэклисте.
Вот это хау-то вроде получше, ... http://soronorus.com/canon-lbp6000-v-ubuntu-11-10/
Будет время на днях Debian поставлю и мануал подробный напишу...

#298943

Да без ошибок, спасибо за помощь, продвинулся немного, завтра начну заново, у меня уже 2 принтера видно в системе LBP6000 и LBP 6000B и ни один не печатает, отсылаю на печать - тишина. Один скриптом установлен, второй - драйверами.

#298944
Lupo Alberto написал:
А не проще ли, добавив при необходимости пользователя в группу lpadmin, с помощью web-интерфейса cups настроить принтер?

Да, сделал попытку, в http://localhost:631 нет поддержки этого принтера, я во всяком случае не нашел .

#299075

Начал все сначала:

1. Удалил установленые ранее драйвера:

Показать
text
root@debian:/home/andriy# dpkg -P cndrvcups-capt 
(Reading database ... 102093 files and directories currently installed.) 
Removing cndrvcups-capt ... 
Purging configuration files for cndrvcups-capt ... 

root@debian:/home/andriy# dpkg -P cndrvcups-common (Reading database ... 101889 files and directories currently installed.) Removing cndrvcups-common ... Purging configuration files for cndrvcups-common ...

2. Перегрузил компютер.
3. Скачал наново скрипт raducotescu-CanonCAPTdriver-release-2.4-0-gc8ea9f9.tar.gz
4. Перешел в папку где находится скачаный скрипт:
text
root@debian:/home/andriy# cd /home/andriy/Canon 

5. Распаковал скрипт в ту же папку:

Показать
text
root@debian:/home/andriy/Canon# tar xfvz raducotescu-CanonCAPTdriver-release-2.4-0-gc8ea9f9.tar.gz 
raducotescu-CanonCAPTdriver-c8ea9f9/ 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/ 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/amd64/ 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/amd64/cndrvcups-capt_2.20-1_amd64.deb 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/amd64/cndrvcups-common_2.20-1_amd64.deb 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/ccpd 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/i386/ 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/i386/cndrvcups-capt_2.20-1_i386.deb 
raducotescu-CanonCAPTdriver-c8ea9f9/DEBS/i386/cndrvcups-common_2.20-1_i386.deb 
raducotescu-CanonCAPTdriver-c8ea9f9/LICENSE 
raducotescu-CanonCAPTdriver-c8ea9f9/README 
raducotescu-CanonCAPTdriver-c8ea9f9/canonLBP_install.sh 
raducotescu-CanonCAPTdriver-c8ea9f9/canonLBP_uninstall.sh 
raducotescu-CanonCAPTdriver-c8ea9f9/changelog 

6. Перешел в папку с распакованым скриптом:

text
root@debian:/home/andriy/Canon# cd /home/andriy/Canon/raducotescu-CanonCAPTdriver-c8ea9f9

7. Установил скрипт:

Показать
text
root@debian:/home/andriy/Canon/raducotescu-CanonCAPTdriver-c8ea9f9# ./canonLBP_install.sh LBP6000 
Installing driver for model: LBP6000 
using file: CNCUPSLBP6018CAPTK.ppd 
Installing packages... 
You do have the libstdc++6 package... 
Selecting previously deselected package cndrvcups-common. 
(Reading database ... 101839 files and directories currently installed.) 
Unpacking cndrvcups-common (from .../cndrvcups-common_2.20-1_i386.deb) ... 
Setting up cndrvcups-common (2.20-1) ... 
Selecting previously deselected package cndrvcups-capt. 
(Reading database ... 101889 files and directories currently installed.) 
Unpacking cndrvcups-capt (from .../cndrvcups-capt_2.20-1_i386.deb) ... 
Setting up cndrvcups-capt (2.20-1) ... 
Modifying the default /etc/init.d/ccpd file... 
Restarting CUPS... 
Restarting Common Unix Printing System: cupsd. 
Setting the printer for CUPS... 
Setting the printer for CAPT... 

CUPS_ConfigPath = /etc/cups/ LOG Path = None UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status ---------------------------------------------------------------------------- [0] : LBP6000 : ccp : //localhost:59687 : /dev/usb/lp0 : New!!

Setting CAPT to boot with the system... update-rc.d: using dependency based boot sequencing update-rc.d: warning: ccpd stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1) Starting ccpd... Starting Canon Printer Daemon for CUPS: ccpd. Checking status: Canon Printer Daemon for CUPS: ccpd: 3023 3016

Power on your printer! :) Go to System - Administration - Printing and do the following: 1. disable LBP6000-2 but do not delete it since Ubuntu will recreate it automatically; 2. set LBP6000 as your default printer; 3. reboot your machine and print a test page. Script author: Radu Cotescu http://radu.cotescu.com

Все, принтер включен, готов к работе, печатаю — тишина, ничего не происходит.

Пожалуйста, пользуйтесь BBCode. yars
Кнопку "Сообщить модератору" не надо использовать для привлечения внимания к теме. verg

#300057

Радость была не долгой - после перегрузки принтер не печатает. Я так понял принтеры Canon и ОС Debian несовместимы... Это же надо..

#300060

У меня только с Gentoo проблемы были, на Debian отлично работает.

#300062

На squzee работает?

#300064

О, давно не пользуюсь стабильными ветками на десктопах, только unstable (Aptosid).
Попробуй рестарт cups и ccpd после загрузки сделай, ошибки есть?

#300066

Нет ошибок как-будто:

text
root@debian:/home/andriy# /etc/init.d/cups restartRestarting Common Unix Printing System: cupsd.
root@debian:/home/andriy# /etc/init.d/ccpd restart
Shutting down /usr/sbin/ccpd: .
Starting /usr/sbin/ccpd: .
#300075

Там же для зависов http://www.sakryukin.ru/index.php?module=articles&c=articles&b=8&a=4 попробуй.
А, вспомнил почему у меня проблемы были - на amd64 была ошибка - lpadmin: Bad device-uri scheme "ccp"
Помогли вот такие линки (правда не помню версию драйвера)

text
ln -s /usr/lib64/cups/backend/ccp /usr/lib/cups/backend/ccp
ln -s /usr/lib64/cups/filter/pstocapt /usr/lib/cups/filter/pstocapt
ln -s /usr/lib64/cups/filter/pstocapt2 /usr/lib/cups/filter/pstocapt2
ln -s /usr/lib64/cups/filter/pstocapt3 /usr/lib/cups/filter/pstocapt3

На 32-бит затруднений не было.

#300077

Gentoo 64 бит.

text
$uname -a
Linux CROSS 3.7.3-gentoo #1 SMP PREEMPT Mon Jan 21 19:21:52 MSK 2013 x86_64 AMD FX(tm)-4100 Quad-Core Processor AuthenticAMD GNU/Linux
text
#/usr/sbin/ccpdadmin
Usage: 
  ccpdadmin [-p Printer-name -o Printer-dev-path]
  ccpdadmin [-x Remove-Printer-name]

CUPS_ConfigPath = /etc/cups/ LOG Path = None UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status ---------------------------------------------------------------------------- [0] : LBP6000 : ccp : /var/ccpd/fifo0 : /dev/usb/lp0 :

Драйвер 2.20
Монитор запускать так:

text
#captstatusui -P LBP6000


Ну вот как-то так у меня.
Хотя способ установки в Gentoo вообще через ****. По другому не вышло, бился долго, в итоге на собранный драйвер сверху положил бинарники из deb пакета... жуть, но работает.

#300121

Сборка из исходников версии 2.40 для amd64

Hi, some days ago I decided to upgrade my Ubuntu 10.04 to the newer Ubuntu 12.04. Everything went very well, and after some configuration I felt satisfied. Only a thing created some head scratching: my Canon printer LBP3010 could not print!
After some unsuccessfully attempts to make the driver functioning I decided to make some researches in Google. I tried all possible drivers, deb packages and following strictly all posts that I fount in the Internet, but... nothing, my printer seems to be dead!
My last chance was to recompile from source. First with unsuccessful results, due to many error that occurred during the compilation procedure. Again, after some head scratching and a few sleepless nights analyzing the source code, I get the right solution and now I have my LBP3010 fully functioning.

Note that the following procedure is valid for a 64 bit machine.

uname -a gives
Linux toni-laptop 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

In the following I will show the procedure that I followed in order to get the printer working.
First I downloaded the last driver package I found at the Canon web page:

Linux_CAPT_PrinterDriver_V240_uk_EN.tar.gz.

Now the procedure to compile.

First step
1) extract the tar.gz package to a folder of Your choice;
2) cd Linux_CAPT_PrinterDriver_V240_uk_EN/Src/
3) untar cndrvcups-capt-2.40-1.tar.gz and cndrvcups-common-2.40-1.tar.gz
4) cd cndrvcups-common-2.40/
5) gedit debian/control and change "i386" with "amd64" al line 9, save and close file
6) dpkg-buildpackage.

At the end of operation 6) You will find cndrvcups-common_2.40-1_amd64.deb package in Src directory.

7) install it (required for the next compilation steps) with the common
sudo dpkg -i cndrvcups-common_2.40-1_amd64.deb

Second step
1) cd cndrvcups-capt-2.40/
2) gedit debian/control and change "i386" with "amd64" al line 9, save and close file
3) gedit debian/rules and uncomment line 172 which will results, then, in
# dh_shlibdeps
Save and close
4) gedit statusui/src/ppapdata.c and add the header (this is to define variable ppd_size_t)
#include <cups/ppd.h>
save and close file.
5) gedit cngplp/configure.in and add "AC_CONFIG_MACRO_DIR([m4])" at line 9, save and close
6) gedit cngplp/Makefile.am and add "ACLOCAL_AMFLAGS=-I m4" at line 5, save and close
7) run the following commands in the cngplp directory:
libtoolize
aclocal
automake
8) cd ..
9) dpkg-buildpackage

At the end of operation 9) You will find cndrvcups-capt_2.40-1_amd64.deb package in Src directory.

10) install it with
sudo dpkg -i cndrvcups-capt_2.40-1_amd64.deb

End of procedure.
From this point You should follow the printer configuration steps as stated in the previous posts.

I hope this will help the Ubuntu Community.
Kind regards

Нашёл тут http://ubuntuforums.org/showthread.php?t=2013437
http://ubuntuforums.org/showthread.php?t=2076037&highlight=canon

Войдите или зарегистрируйтесь, чтобы ответить.