{"id":140,"date":"2014-07-10T23:34:31","date_gmt":"2014-07-10T21:34:31","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=140"},"modified":"2014-11-28T18:51:30","modified_gmt":"2014-11-28T17:51:30","slug":"linux-mint-17-and-canon-c5030i-printing","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/hint\/linux-mint-17-and-canon-c5030i-printing\/","title":{"rendered":"Linux (Mint 17) and Canon C5030i printing"},"content":{"rendered":"<p>In short, the following is necessary:<\/p>\n<ul>\n<li>Download and install CQue for Linux and install the file.<\/li>\n<\/ul>\n<pre class=\"nums:false lang:default decode:true \" >\r\ng13b8en_lindeb64_0206.deb from http:\/\/software.canon-europe.com\/software\/0044581.asp\r\n<\/pre>\n<ul>\n<li>Remove the empty directory \/usr\/share\/ppd\/cel<\/li>\n<\/ul>\n<pre class=\"nums:false lang:default decode:true \" >\r\nrmdir \/usr\/share\/ppd\/cel\r\n<\/pre>\n<ul>\n<li>Create a symbolic link to \/opt\/cel\/ppd<\/li>\n<\/ul>\n<pre class=\"nums:false lang:default decode:true \" >\r\nln -s \/opt\/cel\/ppd\/ \/usr\/share\/ppd\/cel\r\n<\/pre>\n<ul>\n<li>Create a symbolic link to the filter<\/li>\n<\/ul>\n<pre class=\"nums:false lang:default decode:true \" >\r\nln -s \/opt\/cel\/bin\/sicgsfilter \/usr\/lib\/cups\/filter\/\r\n<\/pre>\n<ul>\n<li>Add a printer<\/li>\n<\/ul>\n<pre class=\"nums:false lang:default decode:true \" >\r\nMenu \/ Printers \/ Add \/ Network Printer \/ Canon iR-Adv C5030\/C5035 \/ Forward \/ Forward \/ Apply\r\n<\/pre>\n<hr \/>\n<p>Behold, the long story&#8230;<\/p>\n<p>After reinstalling my OS I needed to install our corporate printer again. Previously on Linux Mint 13 I did not had any difficulty in configuring the printer but on Mint 17 it was really painfull. First I tried to install the Canon drivers from their website based on CQue 2.0.5, downloaded and installed the .DEB file and tried to create a printer. The driver was not recognized so I pointed it to the right PPD file and tried to print. I received the &#8220;Filter error&#8221; message on the print job and nothing happened. While searching the Internet I found several posts about UFRII drivers. I downloaded the &#8220;Linux UFR II 2.0.7&#8221; (01371en_linuxufrII_0207.zip) package (the 2.0.8 Linux version contains a Windows binary \ud83d\ude41 ) and installed the two files:<\/p>\n<p>Downloads\/canon\/uk_eng\/32-bit_Driver\/Debian\/cndrvcups-ufr2-uk_2.70-1_i386.deb<br \/>\nDownloads\/canon\/uk_eng\/32-bit_Driver\/Debian\/cndrvcups-common_2.70-1_i386.deb<\/p>\n<p>Once again I tried to add a printer and everything was recognized automatically. Unfortunately, while trying to print a test page, the only thing printed is:<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\n\r\n%!\r\nuserdict dup(\\004)cvn{}put (\\004\\004)cvn{}put\r\n                                             \u2666\r\n<\/pre>\n<p>Ok. back to the CQue software because Canon recommends its use. I tried to create a printer using the <strong>\/opt\/cel\/bin\/CQue.exe<\/strong> binary but I could not select a printer model. While debugging the <strong>\/opt\/cel\/bin\/CQue.exe<\/strong> with arguments <strong>-v -Z 2<\/strong> to create a printer a message appeared stating that the directory <strong>\/usr\/share\/ppd\/cel<\/strong> is used<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\ngetPPDSearchPath #2 (counter=3)=\/usr\/share\/ppd\/cel\r\nlistPPD(\/usr\/share\/ppd\/cel)\r\nlistPPD(counter=0)\r\n<\/pre>\n<p>for the printer models but the PPD files are actually in <strong>\/opt\/cel\/ppd<\/strong>. So I removed the empty directory <strong>\/usr\/share\/ppd\/cel<\/strong> and created a symbolic link (<strong>ln -s \/opt\/cel\/ppd\/ \/usr\/share\/ppd\/cel<\/strong>) instead. Now I was able to create a printer using the CQue.exe binary since de printer list is utilized.<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\ngetPPDSearchPath #2 (counter=3)=\/usr\/share\/ppd\/cel\r\nlistPPD(\/usr\/share\/ppd\/cel)\r\nlistPPD(counter=156)\r\n<\/pre>\n<p>This brought me back to CUPS which probably could find the PPD also since they became available by creating the symbolic link. And yes, while adding a new printer it was detected automatically. Only the &#8220;Filter error&#8221; message remains&#8230;.<\/p>\n<p>Next thing was to set CUPS in debug mode by setting <strong>LogLevel debug<\/strong> in <strong>\/etc\/cups\/cupsd.conf<\/strong> (and restaring CUPS by service cups restart). By tailing the CUPS logs (<strong>tail -f \/var\/log\/cups\/*_log<\/strong>)\u00a0 I saw that CUPS environment was prepared with a path variable set to: <strong>D [10\/Jul\/2014:10:04:12 +0200] [Job 26] envp[9]=&#8221;PATH=\/usr\/lib\/cups\/filter:\/usr\/bin:\/usr\/sbin:\/bin:\/usr\/bin&#8221;<\/strong><\/p>\n<p>Nice, while debugging I found a filter in <strong>\/opt\/cel\/bin<\/strong>.<\/p>\n<pre class=\"nums:false lang:default decode:true \" >\r\n\r\n# ls \/opt\/cel\/bin\/\r\nCQue.exe\u00a0 MAKEXPP\u00a0 setup\u00a0 sicgsfilter\u00a0 sicnc\r\n\r\n<\/pre>\n<p>Will the symbolic link also work for this part? One way to find out: <strong>ln -s \/opt\/cel\/bin\/sicgsfilter \/usr\/lib\/cups\/filter\/<\/strong><\/p>\n<p>Since this was the error I began with I decided to remove all debugging and software I used in the mean time so:<\/p>\n<ul>\n<li>Deleted all printers<\/li>\n<li>Deinstalled the Downloads\/canon\/uk_eng\/32-bit_Driver\/Debian\/cndrvcups-ufr2-uk_2.70-1_i386.deb and Downloads\/canon\/uk_eng\/32-bit_Driver\/Debian\/cndrvcups-common_2.70-1_i386.deb packages<\/li>\n<li>Set LogLevel back to warn in CUPS (and restarted the service)<\/li>\n<\/ul>\n<p>And finally, I tried to add a printer, it was detected automatically, using the correct driver and PPD and a testpage showed up as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short, the following is necessary: Download and install CQue for Linux and install the file. g13b8en_lindeb64_0206.deb from http:\/\/software.canon-europe.com\/software\/0044581.asp Remove the empty directory \/usr\/share\/ppd\/cel rmdir \/usr\/share\/ppd\/cel Create a symbolic link to \/opt\/cel\/ppd ln -s \/opt\/cel\/ppd\/ \/usr\/share\/ppd\/cel Create a symbolic link to the filter ln -s \/opt\/cel\/bin\/sicgsfilter \/usr\/lib\/cups\/filter\/ Add a printer Menu \/ Printers \/ Add &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/hint\/linux-mint-17-and-canon-c5030i-printing\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[11],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/140"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":14,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}