Jump to content

Debian: Canon iP1700 (ip2200 driver): CUPS authent


Recommended Posts

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:

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:

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:

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:

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:

==> 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:

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:

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.

Edited by theYinYeti
Link to comment
Share on other sites

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 :) :) :)

 

BUT only for root... for now :(

EDIT: It works! Except gnome-cups-manager's test page does not :o But printing from Iceweasel (firefox) with a normal user works so... solved :)

 

Yves.

Edited by theYinYeti
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...