Help - Search - Members - Calendar
Full Version: Debian: Canon iP1700 (ip2200 driver): CUPS authent
MandrivaUsers.org > Advanced Topics > Other Linux and Unix Distributions
theYinYeti
I just installed a Canon PIXMA iP1700 to my newly-lended laptop (Packard Bell EasyNote) for my son.
The problem is in the title.

Here are the steps I followed (after initial failures):

- Uninstall every installed packages appearing in Synaptic for a "cups" search, except the two lib... the uninstall of which would uninstall most of gnome and major apps with it.
- Reinstall cups:
CODE
ecole44:/etc/cups# dpkg -l | awk '{print $2}' | grep -i 'cups\|print\|matic'
cups-pdf
cupsys
cupsys-client
cupsys-common
cupsys-driver-gutenprint
foomatic-db
foomatic-db-engine
foomatic-filters
foomatic-gui
gimp-print
gnome-cups-manager
gutenprint-locales
libcupsimage2
libcupsys2
libgnomecups1.0-1
libgnomecupsui1.0-1c2a
libgnomeprint2.2-0
libgnomeprint2.2-data
libgnomeprintui2.2-0
libgnomeprintui2.2-common
libgutenprint2
libgutenprintui2-1
libwine-print
python-foomatic

- Download ip2200 driver from Canon web site, alien --to-deb --scripts all rpm files, and install some of them:
CODE
ecole44:/etc/cups# dpkg -l | awk '{print $2}' | grep -i cnij
cnijfilter-common
cnijfilter-ip2200
cnijfilter-ip2200-lprng

- This driver places PPD files in /usr/share/cups/model, which is not Debian cups PPD dir. Hence the link I created:
CODE
ecole44:/etc/cups# ls -l /usr/share/ppd/model
lrwxrwxrwx 1 root root 21 2007-07-14 15:10 /usr/share/ppd/model -> /usr/share/cups/model

- Restart cupsys (/etc/init.d/cupsys restart).
- Go to http://localhost:631/
- [Add Printer], name=iP1700, description=Canon PIXMA iP1700, [Continue], ->"Canon iP1700 USB #1 (Canon iP1700)", [Continue], ->"Canon iP2200 Ver.2.60 (en)", [Add Printer], General: [Set Printer Options] (default values).

Now I don't even have to try and print anything! A simple tail -f /var/log/cups/error_log prints this twice every 5 seconds:
CODE
E [14/Jul/2007:19:06:46 +0200] cupsdAuthorize: Local authentication certificate not found!

And if I try and print the test page in the Cups web interface, here's the log output specific to the test page:
CODE
==> access_log <==
localhost - - [14/Jul/2007:19:09:42 +0200] "GET /printers/iP1700?op=print-test-page HTTP/1.1" 200 0 - -
localhost - - [14/Jul/2007:19:09:42 +0200] "POST /printers/iP1700 HTTP/1.1" 200 18600 Print-Job successful-ok
localhost - - [14/Jul/2007:19:09:42 +0200] "GET /printers/iP1700?op=print-test-page HTTP/1.1" 200 3446 - -

==> error_log <==
I [14/Jul/2007:19:09:42 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=11015)
I [14/Jul/2007:19:09:42 +0200] Adding start banner page "none" to job 14.
I [14/Jul/2007:19:09:42 +0200] Adding end banner page "none" to job 14.
I [14/Jul/2007:19:09:42 +0200] Job 14 queued on "iP1700" by "guest".
I [14/Jul/2007:19:09:42 +0200] Started filter /usr/lib/cups/filter/pstops (PID 11016) for job 14.
I [14/Jul/2007:19:09:42 +0200] Started filter /usr/lib/cups/filter/pstocanonij (PID 11017) for job 14.
I [14/Jul/2007:19:09:42 +0200] Started backend /usr/lib/cups/backend/usb (PID 11018) for job 14.

==> access_log <==
localhost - - [14/Jul/2007:19:09:44 +0200] "GET /printers/iP1700 HTTP/1.1" 200 0 - -
localhost - - [14/Jul/2007:19:09:44 +0200] "POST / HTTP/1.1" 200 454 Get-Jobs successful-ok
localhost - - [14/Jul/2007:19:09:44 +0200] "GET /printers/iP1700 HTTP/1.1" 200 6148 - -

==> error_log <==
I [14/Jul/2007:19:09:44 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=11025)

Nothing happens, if a job is created it disappears just as soon, and CUPS page for my printer still shows the same:
CODE
iP1700
Description: Canon PIXMA iP1700
Location:
Make and Model: Canon iP2200 Ver.2.60
Printer State: idle, accepting jobs, published.
Device URI: usb://Canon/iP1700


Note: my user is a member of the lp and lpadmin groups. Here are the rights for the usb printer:
CODE
ecole44:/var/log/cups# ls -la /dev/usb
total 0
drwxr-xr-x  2 root root     60 2007-07-14 19:36 .
drwxr-xr-x 15 root root   4180 2007-07-14 17:37 ..
crw-rw----  1 root lp   180, 0 2007-07-14 19:36 lp0


Thank you for you help...

Yves.
theYinYeti
Update: despite what the error log says, it has nothing to do with encryption.
I simplified the cupsd.conf file to the strict minimum, thereby disabling all security measures.
It still did not work...
So I searched again (I already did that the whole day) and I found a tip: the canon ip2200 driver needs libtiff3, which is not available on Debian.

I linked libtiff.so.4 to libtiff.so.3 and it still did not work; debug mode then told me it now wanted libpng3, so I installed it.
It still did not work: cannot write device because it does not exist!!
I changed the device from cnij_usb:/dev/usb/lp0 to usb://Canon/iP1700 and...
NOW it worlks smile.gif smile.gif smile.gif

BUT only for root... for now :(
EDIT: It works! Except gnome-cups-manager's test page does not ohmy.gif But printing from Iceweasel (firefox) with a normal user works so... solved smile.gif

Yves.
theYinYeti
For the record in case other people stumble upon this issue, here is another page I just discovered on this topic (in French):
http://forum.ubuntu-fr.org/viewtopic.php?id=61554

Yves.
iphitus
for reference, googling found me this:
http://mambo.kuhp.kyoto-u.ac.jp/~takushi/#canon

an apt repo which has the drivers packaged up and configured correctly for debian.

James
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.