From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 12:20:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3AA31065687 for ; Thu, 9 Oct 2008 12:20:18 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id C060E8FC18 for ; Thu, 9 Oct 2008 12:20:18 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (l205089.dynamic.ppp.asahi-net.or.jp [218.219.205.89]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 125234131B; Thu, 9 Oct 2008 21:20:17 +0900 (JST) Date: Thu, 09 Oct 2008 21:20:16 +0900 From: WATANABE Kazuhiro To: freebsd-questions In-Reply-To: <200810081538.32584.jmc-freebsd2@milibyte.co.uk> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> <200810081538.32584.jmc-freebsd2@milibyte.co.uk> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20081009122017.125234131B@mail.asahi-net.or.jp> Cc: Mike Clarke Subject: Re: Canon Pixma iP4500 - problem with colours X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 12:20:19 -0000 At Wed, 8 Oct 2008 15:38:32 +0100, Mike Clarke wrote: > On Sunday 05 October 2008, WATANABE Kazuhiro wrote: > > > So you will be able to use Canon iP4500 (and MP610/MP520/iP3500) with > > the procedure below. > > Thanks for the detailed installation instructions for the Pixma iP4500 > linux drivers from Canon. > > I followed the instructions and everything went very smoothly apart from > one minor problem. Using rpm2cpio and cpio to extract the files from > cnijfilter-ip4500series-2.80-1.i386.rpm resulted in all the directories > being created with mode 700. This resulted in "permission denied" > errors when piping an ascii test file through a2ps and gs to cifip4500. Ouch... I tested the instructions on 8-current which had been introduced bsdcpio. FreeBSD 7.x and the former bundles GNU cpio. 2.7 and the former versions of GNU cpio has a bug. If the original cpio archive has no information about directories (such as the output of rpm2cpio), the old GNU cpio sets those permission to 700 unconditionally. The latest version of GNU cpio, and bsdcpio reflects the value of umask in such a case. http://www.gnu.org/software/cpio/#releases > After setting the directory permissions to 755 everything was fine and > I now have a functional printer. So currently the users other than 8-current should do the following procedure: $ mkdir ip4500 # working directory $ cd ip4500 $ rpm2cpio /PATH/TO/cnijfilter-ip4500series-2.80-1.i386.rpm | cpio -ivd $ find ./usr -type d | xargs chmod 755 # fix directory permission $ su Password: # cp -Ri ./usr /compat/linux/ # /compat/linux/sbin/ldconfig -r /compat/linux > The output quality is much better than I could get with the gutenprint > driver but the output is limited to 600 dpi so it's nothing like as > good as the windows driver in high quality mode. But it is certainly > good enough for normal day to day use and I don't mind switching to > Windows for the occasional high quality photo print. > > -- > Mike Clarke --- WATANABE Kazuhiro (CQG00620@nifty.ne.jp)