Difference between revisions of "Canon LBP-810"

From ArchWiki
Jump to: navigation, search
m (The new pkg name)
m (Requirements)
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
This manual describes how to get Canon LBP-810/LBP-1120 printer to work under Arch Linux.
 
This manual describes how to get Canon LBP-810/LBP-1120 printer to work under Arch Linux.
{{Note | '''"You must use an USB cable to connect your printer. If it only has a parallel port, I'm sorry but my driver won't work".'''[http://www.boichat.ch/nicolas/capt/]}}
+
{{Note | You must use an USB cable to connect your printer. If it only has a parallel port, I'm sorry but my driver won't work. [http://www.boichat.ch/nicolas/capt/]}}
  
 
=Requirements=
 
=Requirements=
Line 9: Line 9:
 
Install the following packages with [[pacman]]:
 
Install the following packages with [[pacman]]:
  
*cups
+
*cups foomatic-db foomatic-filters;
*foomatic-db foomatic-filters
+
*[https://aur.archlinux.org/packages.php?ID=42293 capt-lbp]. Package is available in the [[AUR]].
*[https://aur.archlinux.org/packages.php?ID=42293 capt-lbp]
+
  
 
  # pacman -S cups foomatic-db foomatic-filters
 
  # pacman -S cups foomatic-db foomatic-filters
 +
# pacman -U capt-lbp-0.4-2-i686.pkg.tar.xz
  
 
=Configuration=
 
=Configuration=
  
'''Before going any further see the [[cups]] page and check if the user you are currently logged as (not root) is in the group "lp"'''
+
{{Note |Before going any further see the [[cups]] page and check if the user you are currently logged as (not root) is in the group {{ic|lp}} }}
  
See if the printer is connected to the computer by checking '''dmesg''' and '''lsusb''' command output it should tell you something like this:
+
Verify group:
 +
 
 +
# grep lp /etc/group
 +
 
 +
See if the printer is connected to the computer by checking {{ic|dmesg}} and {{ic|lsusb}} command output it should tell you something like this:
  
 
  # Bus 005 Device 002: ID 04a9:260a Canon, Inc. CAPT Printer
 
  # Bus 005 Device 002: ID 04a9:260a Canon, Inc. CAPT Printer
  
After that start the cups daemon:
+
After that start the CUPS daemon:
  
 
  # /etc/rc.d/cupsd start
 
  # /etc/rc.d/cupsd start
  
Add the printer using "lpadmin", it should be located at "/dev/usb/lpX" where X is the corresponding number for printer. check if the "usblp" kernel module is loaded again by using the '''dmesg''' command
+
Add the printer using {{ic|lpadmin}}, it should be located at {{ic|/dev/usb/lpX}} where X is the corresponding number for printer. check if the {{ic|usblp}} kernel module is loaded again by using the {{ic|dmesg}} command
 +
 
 +
# lpadmin -p <printer name> -v <device URI> -P /usr/share/cups/model/Canon-LBP-810-capt.ppd -E
 +
 
 +
Device URI like {{ic|/dev/usb/lpX}}.
 +
 
 +
If you recieve:
  
  # lpadmin -p <printer name> -v <device URI> -m /usr/share/cups/model/Canon-LBP-810-capt.ppd -E
+
  lpadmin: File device URIs have been disabled! To enable, see the FileDevice directive in "/etc/cups/cupsd.conf".
  
If you recieve '''"lpadmin: File device URIs have been disabled! To enable, see the FileDevice directive in "/etc/cups/cupsd.conf"."''' Add the following to '''/etc/cups/cupsd.conf''':
+
Add the following to {{ic|/etc/cups/cupsd.conf}}:
  
 
  ...
 
  ...
Line 40: Line 50:
 
If you have done the previous steps then the printer should be visible from the web based CUPS configruation tool http://localhost:631
 
If you have done the previous steps then the printer should be visible from the web based CUPS configruation tool http://localhost:631
  
Change the '''DeviceURI''' section in '''/etc/cups/printers.conf''' to
+
Change the '''DeviceURI''' section in {{ic|/etc/cups/printers.conf}} to
  
 
  ...
 
  ...
Line 46: Line 56:
 
  ...
 
  ...
  
and '''/etc/capt.conf''' to match the corresponding device e.g "/dev/usb/lpX".
+
and {{ic|/etc/capt.conf}} to match the corresponding device e.g {{ic|/dev/usb/lpX}}. If the file {{ic|/etc/capt.conf}} is only available on record, then change the permissions: {{ic|chmod o+w /etc/capt.conf}}.
  
 
And finally restart CUPS:
 
And finally restart CUPS:
  
 
  # /etc/rc.d/cupsd restart
 
  # /etc/rc.d/cupsd restart

Revision as of 17:38, 8 August 2012

Introduction

This manual describes how to get Canon LBP-810/LBP-1120 printer to work under Arch Linux.

Note: You must use an USB cable to connect your printer. If it only has a parallel port, I'm sorry but my driver won't work. [1]

Requirements

Install the following packages with pacman:

  • cups foomatic-db foomatic-filters;
  • capt-lbp. Package is available in the AUR.
# pacman -S cups foomatic-db foomatic-filters
# pacman -U capt-lbp-0.4-2-i686.pkg.tar.xz

Configuration

Note: Before going any further see the cups page and check if the user you are currently logged as (not root) is in the group lp

Verify group:

# grep lp /etc/group

See if the printer is connected to the computer by checking dmesg and lsusb command output it should tell you something like this:

# Bus 005 Device 002: ID 04a9:260a Canon, Inc. CAPT Printer

After that start the CUPS daemon:

# /etc/rc.d/cupsd start

Add the printer using lpadmin, it should be located at /dev/usb/lpX where X is the corresponding number for printer. check if the usblp kernel module is loaded again by using the dmesg command

# lpadmin -p <printer name> -v <device URI> -P /usr/share/cups/model/Canon-LBP-810-capt.ppd -E

Device URI like /dev/usb/lpX.

If you recieve:

lpadmin: File device URIs have been disabled! To enable, see the FileDevice directive in "/etc/cups/cupsd.conf".

Add the following to /etc/cups/cupsd.conf:

...
# Allow new printers to be added using device URIs "file:/filename"
FileDevice Yes
...

If you have done the previous steps then the printer should be visible from the web based CUPS configruation tool http://localhost:631

Change the DeviceURI section in /etc/cups/printers.conf to

...
DeviceURI file:///dev/null
...

and /etc/capt.conf to match the corresponding device e.g /dev/usb/lpX. If the file /etc/capt.conf is only available on record, then change the permissions: chmod o+w /etc/capt.conf.

And finally restart CUPS:

# /etc/rc.d/cupsd restart