User Tools

Site Tools


canon_lbp3010

If you want to send us your comments, please do so. Thanks
More on comments


Canon LBP3010

Useful commands

task can be one of status start stop restart enable (start at boot) is-enabled disable is-active reload is-failed . There maybe more tasks. Maybe not all tasks work for a given command
These commands should work, must work to have a functional printer setup

CommandRemark
lsusb
ls /dev/usb/No output: no printer connected to the PC
lsmod grep usblpCheck if the usblp kernel module is present
ccpdadmin [task]
ccpdadmin [-p Printer-name -o Printer-dev-path]Register the printer in the ccpd daemon setup file
ccpdadmin [-x Remove-Printer-name]Remove the printer from the ccpd daemon setup file
service ccpd [task]
service cups [task]
systemctl [task] cups
systemctl [task] ccpd
captstatusui -P Canon_LBP3050GUI
cupsdisable <PRINTER>Disable the print queue for the given printer
cupsenable Canon_LBP3050Disable the print queue for the Canon_LBP3050
ls -l /var/spool/cupsList the content of the CUPS spool directory
lp -H immediate hello.txtPrint the contents of plain text document hello.txt immediately
lpinfo --product LBP3050 -m
lpinfo --make-and-model Canon
lpinfo --make-and-model LBP3050
lpstat -dShow current default destination
lpstat -oShows the queued print jobs
lpstat -pShows the printers and whether they are enabled for printing
lpstat -rShows is the scheduler is running
lpstat -a -c -d -e -o -p -r -vShows all status information
lpstat -vShows the printers and what device they are attached to
cancelCancel a printjob (the last one by default)
for i in {29595..29999}; do kill -9 $i; done or use killall ccpd not tested by usIf ccpd gets out of hand you can kill all its processes. First check in which range the process ID's are. Avoid killing unwanted processes. Afterwards do systemctl status ccpd to check. Then systemctl restart ccpd and check again systemctl status ccpd. Now there should be no excess of processes

Useful files

  • /etc/ccpd.conf Make sure your file has the same settings

Remarks

  • The portnumber might be 59787 (not 59687)
  • ppd: Postscript Printer Driver
  • We presume the printer is installed on a system with systemd. Thus Debian 8 and newer. You can check the Debian version with cat /etc/debian_version

Installing

  • Do NOT connect the printer
  • Open a terminal window
  • Check if CUPS is be installed and started. Do ps -e | grep cups and systemctl status cups. If not install it
  • Check if Ghostscript is installed with which ghostscript and if not install it
  • Do mkdir /tmp/canon
  • Become root, stay root and do
    • if ! [[ -d /var/ccpd ]]; then mkdir /var/ccpd; fi
    • if ! [[ -p /var/ccpd/fifo0 ]]; then mkdir /var/ccpd/fifo0; fi
    • chown -R lp:lp /var/ccpd
    • aptitude install libatk1.0-0 libcairo2 libgtk2.0-0 libpango1.0-0 libstdc++6 libxml2 libpopt0
  • Check if apparmor is installed with dpkg --status apparmor. If it is installed then
    • Do aptitude install apparmor-notify
    • Do aptitude install apparmor-utils
  • Download the drivers from the Canon website on Canon UK CAPT Printer Driver for Linux V2.71 Verion 2.71 and save them to /home/user/Downloads
  • cp /home/user/Downloads/linux-capt-drv-v271-uken.tar.gz /tmp/canon
  • cd /tmp/canon/
  • tar xf linux-capt-drv-v271-uken.tar.gz
  • cd linux-capt-drv-v271-uken
  • tar xf Doc/guide-capt-2.7xUK.tar.gz
  • Check if the computer has a 32 or 64 bit Debian version with uname -a
  • We will presume it is a 64 bit computer
  • Start a webbrowser and read the installation instructions in: file:///tmp/canon/linux-capt-drv-v271-uken/Doc/guide-capt-2.7xUK/contents/main_02_01.html#main_02_01
  • With aptitude check if libglade2-0 is installed and if not install it
  • Do cd /tmp/canon/linux-capt-drv-v271-uken/64-bit_Driver/Debian
  • Do dpkg -i cndrvcups-common_3.21-1_amd64.deb
  • Do dpkg -i cndrvcups-capt_2.71-1_amd64.deb
  • Restart cups:systemctl restart cups or systemctl stop cups; systemctl start cups
  • Start ccpd: systemctl start ccpd
  • Do find / -name CNCUPSLBP3050CAPTK.ppd to check if it exists
  • Do /usr/sbin/lpadmin -p Canon_LBP3050 -m CNCUPSLBP3050CAPTK.ppd -v ccp:localhost:59787 -E
  • /usr/sbin/ccpdadmin -p Canon_LBP3050 -o /dev/usb/lp0
  • Connect the printer to the USB port (one direct on the mohterboard is preferred) and power
  • Turn the power of the printer on
  • Put paper in the printer
  • Wait until Debian has found and installed the printer. Check in CUPS
    • Open a webbrowser
    • Goto localhost:631
    • Click on Administratoin
    • Click on the Manage printer button
    • Now the printer should be in the list
    • Click on the Canon_LBP3050 link
    • Click on the Maintenance button
    • Click on Print Self Test Page

What after reboot

  • Make sure ccpd is started after reboot. If not add systemctl start ccpd to /etc/bashc.bashrc

Issues

  • The printjob does not arrive in the print queue so lpstat -o yields no output
    • Solution: run
      • systemctl restart ccpd; systemctl restart cups; systemctl status ccpd; systemctl status cups
      • /usr/sbin/lpadmin -p Canon_LBP3050 -m CNCUPSLBP3050CAPTK.ppd -v ccp:localhost:59687 -E
  • The printer does not print the Print Self Test Page page
    • ccp recv_packet error, exit“ You can see this message when you print the testpage and then cancel because it does not get printed. Then go to Printers | Canon_LBP3050 and click on the Show All Jobs button and look in the State column
      • Possible solution is to disable apparmor for cups (not for us so far): Do aa-complain /usr/sbin/cupsd
  • lpinfo --product LBP3050 -m results in lpinfo: client-error-not-found
  • captstatusui -P Canon_LBP3050 yields *** captstatusui Socket Error ***
  • captstatusui -P Canon_LBP3010 yields *** captstatusui Error: No Specified Printer ***
  • ccpdadmin -p Canon_LBP3010 -o /dev/usb/lp0 yields Canon_LBP3010 can't find in CUPS Spooler Entry!!
  • WARNING: gnome-keyring:: couldn't connect to: /home/user/.cache/keyring-hash/pkcs11: No such file or directory
  • After doing mkdir -p /home/user/.cache/keyring-o6zkvJ/pkcs11 We got: WARNING: gnome-keyring:: couldn't connect to: /home/user/.cache/keyring-hash/pkcs11: Connection refused
  • After a system reboot it might be needed to run systemctl start ccpd; systemctl start cups. Check if all went well with systemctl status ccpd; systemctl status cups
  • Error: ccp send_data error, exit. Maybe you need to install libpango1.0-0
  • CUPS error after doing Print Self Test Page: You are not allowed to print
  • There seems to be something wrong with captfilter from the cups-filters package
      # ls -l /usr/bin/captfilter
      -rwxr-xr-x 1 root root 56944 Apr  7  2017 /usr/bin/captfilter
      # /usr/bin/captfilter
      bash: /usr/bin/captfilter: No such file or directory
      # /usr/bin/captfilter -h
      bash: /usr/bin/captfilter: No such file or directory
      # /usr/bin/captfilter --help
      bash: /usr/bin/captfilter: No such file or directory
     

    Compared with the file in the cndrvcups-capt_2.71-1_amd64.deb file: They are the same

  • tbd

What might be needed

  • dpkg --add-architecture i386
  • aptitude install ia32-libs (ia32-libs is not available on Debian 10 Buster)
  • mkdir /var/ccpd
  • mkfifo /var/ccpd/fifo0
  • chown -R lp:lp /var/ccpd

Conclusion

So far we did not get the printer to work


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
canon_lbp3010.txt · Last modified: 29-12-2018 19:40 by wim