Scanning and printing on a Canon MP800R on Gentoo LinuxThis howto, written 29 September 2007, describes getting a multifunction Canon Pixma MP800R working on Gentoo Linux over USB. It is based on a Gentoo forum post, Printing and Scanning with Canon Pixma/Pixus Series, two gentoo wiki entries, HOWTO Install a USB scanner and Canon Pixma Series, and about six hours of bu66ering around!Installing SANE and CUPSAs root:# emerge sane-backends sane-frontends xsane net-print/cups
At this point sane-find-scanner can find the scanner: $ sane-find-scanner -q
But sane will not support it: $ scanimage -L
After starting CUPS: # /etc/init.d/cupsd start
The printer will appear on the Adminstration tab after browsing to the CUPS server: http://127.0.0.1:631/ ...but after adding it I could not print a test page. So.... Installing the unofficial ebuildsThe ebuilds needed are not in the standard gentoo portage tree, you need to get them manually.# cd /usr/local/portage
Get version 0.13.1 of the sane-pixma ebuild from http://bugs.gentoo.org/show_bug.cgi?id=138238: # mkdir -p media-gfx/sane-pixma/
# wget http://bugs.gentoo.org/attachment.cgi?id=130449 -O media-gfx/sane-pixma/sane-pixma-0.13.1.ebuild
Get the latest CUPS filter for Canon inkjets from http://bugs.gentoo.org/show_bug.cgi?id=177970: # mkdir -p net-print/cnijfilter/
# wget http://bugs.gentoo.org/attachment.cgi?id=118804 -O net-print/cnijfilter/cnijfilter-2.70.ebuild
For amd64 systems, you should also get the 32bit emulation wrapper from http://bugs.gentoo.org/show_bug.cgi?id=129352: # mkdir -p app-emulation/emul-linux-x86-bjdeps/files
# wget http://bugs.gentoo.org/attachment.cgi?id=108555 -O app-emulation/emul-linux-x86-bjdeps/emul-linux-x86-bjdeps-0.1-r1.ebuild
# wget http://bugs.gentoo.org/attachment.cgi?id=84280 -O app-emulation/emul-linux-x86-bjdeps/files/popt-1.7-missing-tests.patch
# wget http://bugs.gentoo.org/attachment.cgi?id=84281 -O app-emulation/emul-linux-x86-bjdeps/files/popt-1.7-nls.patch
Now create the digests for these ebuilds: # ebuild /usr/local/portage/media-gfx/sane-pixma/sane-pixma-0.13.1.ebuild digest
# ebuild /usr/local/portage/net-print/cnijfilter/cnijfilter-2.70.ebuild digest
# ebuild /usr/local/portage/app-emulation/emul-linux-x86-bjdeps/emul-linux-x86-bjdeps-0.1-r1.ebuild digest
...then the packages can be emerged: # emerge sane-pixma emul-linux-x86-bjdeps cnijfilter
Modify the hotplug config file to recognize the scanner: # nano /etc/hotplug/usb/libsane.usermap
Search for the MP800 config and add the following lines below it: # Canon PIXMA MP800R
libusbscanner 0x0003 0x04a9 0x170e 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
Start hotplug: # /etc/init.d/hotplug restart
Trying it out!Now scanimage should find the scanner:$ scanimage -L
You should now be able to scan using xscan. In CUPS (at http://127.0.0.1:613) delete any existing setup for the MP800R and on the Administration tab: Add This Printer Canon MP800R (Canon MP800R USB #1)
Select model: Canon MP600 Ver.2.70 (en)
On the printers tab you should find a new printer, Canon_MP800R_USB_1, in state: Printer State: idle, accepting jobs, published
Try printing a test page to confirm all is well. Installing as a network printerFirst locate the IP address of the printer. You can print the LAN settings from the printer itself, in copy mode click the Menu button then select Maintenance/Settings->Device Settings->LAN settings->Print LAN details.The MP800R has a web-server you can use to administer the network settings. I specified a fixed IP address and created an entry in /etc/hosts to save typing the IP address in the rest of the configuration steps: 192.168.1.200 pixma
Running a port scan on the printer yields:
Back on the CUPS Administration tab, simply add the printer as device: AppSocket/HP JetDirect
with URI: socket://pixma:9100
selecting make Canon and model Canon MP600 Ver.2.70 (en)
To do...Get network scanning working. I'm hoping I can scan to a shared Samba folder. |
Linux home bavister.org home |