From owner-freebsd-questions@FreeBSD.ORG Sat Feb 25 21:26:30 2012 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 596CD1065672 for ; Sat, 25 Feb 2012 21:26:30 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 187E08FC0C for ; Sat, 25 Feb 2012 21:26:29 +0000 (UTC) Received: by iaeo4 with SMTP id o4so5949842iae.13 for ; Sat, 25 Feb 2012 13:26:29 -0800 (PST) Received-SPF: pass (google.com: domain of olivares14031@gmail.com designates 10.50.87.201 as permitted sender) client-ip=10.50.87.201; Authentication-Results: mr.google.com; spf=pass (google.com: domain of olivares14031@gmail.com designates 10.50.87.201 as permitted sender) smtp.mail=olivares14031@gmail.com; dkim=pass header.i=olivares14031@gmail.com Received: from mr.google.com ([10.50.87.201]) by 10.50.87.201 with SMTP id ba9mr10175455igb.30.1330205189465 (num_hops = 1); Sat, 25 Feb 2012 13:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=R/I/c+NkMeQ9QUEzlbtbDXF9pfmZagw8zgnMajAZXFQ=; b=lOlgI72qyerlcZzNRK10lc+v9UfSPeDOkUj/k6zr9MWQIyA34cQCBkOXxj24eEcRsv AkQ2iUel2vFHTmc7lza4v6S8/hF2oKldXlFXMXdEBWoSpX9kxj/5Z40xkgmg2Sd0JpNz rQHNreIKU7o/BLxy2XFGOYqMj3GHj4/hzqpvI= MIME-Version: 1.0 Received: by 10.50.87.201 with SMTP id ba9mr8129556igb.30.1330205189399; Sat, 25 Feb 2012 13:26:29 -0800 (PST) Received: by 10.50.187.137 with HTTP; Sat, 25 Feb 2012 13:26:29 -0800 (PST) In-Reply-To: <20120225221433.cba3d0dd.freebsd@edvax.de> References: <20120225221433.cba3d0dd.freebsd@edvax.de> Date: Sat, 25 Feb 2012 15:26:29 -0600 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS 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: Sat, 25 Feb 2012 21:26:30 -0000 On Sat, Feb 25, 2012 at 3:14 PM, Polytropon wrote: > I have a problem installing a Samsung CLX-2160 color > laser printer using CUPS. In the http://localhost:631 > web-based configuration, none of the methods that are > supposed to be used for installing a printer works. > > The "Add Printer" button leads to this: > > > > Add Printer > ----------- > =A0 =A0 =A0 =A0 =A0 =A0 Local Printers: > Discovered Network Printers: > =A0 =A0 Other Network Printers: o Internet Printing Protocol (http) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 o Internet Printi= ng Protocol (ipp) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 o LPD/LPR Host or= Printer > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 o AppSocket/HP Je= tDirect > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [ Continue ] > > No local printers can be selected (even though the > printer is connected, switched on and woken up). > > > > And "Find New Printers" shows this: > > > > Available Printers > ------------------ > No printers found. > > > > Excellent auto detection. :-) > > > > The corresponding device for the printer is this: > > ulpt0: =A0 =A0 =A0 =A0class 0/0, rev 2.00/1.00, addr 2> on usbus4 > ulpt0: using bi-directional mode > > ugen4.2: > =A0 =A0 =A0 =A0at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON > > crw-rw---- =A01 root =A0cups =A0 =A00, 142 Feb 25 21:42 /dev/ulpt0 > > I have installed all packages I can imagine: > > =A0 =A0 =A0 =A0cups-1.4.6 > =A0 =A0 =A0 =A0cups-base-1.4.6_6 > =A0 =A0 =A0 =A0cups-client-1.4.6 > =A0 =A0 =A0 =A0cups-image-1.4.6 > =A0 =A0 =A0 =A0cups-pstoraster-8.15.4_6 > =A0 =A0 =A0 =A0gutenprint-cups-5.2.4_2 > =A0 =A0 =A0 =A0foo2zjs-20110609 > =A0 =A0 =A0 =A0foomatic-db-20090530_2 > =A0 =A0 =A0 =A0foomatic-db-engine-4.0.7,2 > =A0 =A0 =A0 =A0gutenprint-foomatic-5.2.4_2 > =A0 =A0 =A0 =A0foo2zjs-20110609 > > I also have the CLX-216xsplc.ppd PPD file available > which I think I'd like to hand over to CUPS somewhere. > > ALTERNATIVE: If someone could explain how it's easier > to make a lpr filter (for the system's printer service), > I'd also appreciate this. > > I've already tried this: > > =A0 =A0 =A0 =A0# foo2xqx-wrapper cupstest.ps > cupstest.xqx > =A0 =A0 =A0 =A0# cat cupstest.xqx > /dev/ulpt0 > > It causes the LED of the printer to blink, but nothing is > printed, even though the printer startes to make sounds > (involving the print mechanism, but not the sheet feeder). > > If I use > > =A0 =A0 =A0 =A0# foo2qpdl-wrapper cupstest.ps > cupstest.xqx > =A0 =A0 =A0 =A0# cat cupstest.xqx > /dev/ulpt0 > > the CUPS test page is printed, but not in color (only b/w). > After looking into the manpage, > > =A0 =A0 =A0 =A0# foo2qpdl-wrapper -p 2 -c cupstest.ps > cupstest.xqx > =A0 =A0 =A0 =A0# cat cupstest.xqx > /dev/ulpt0 > > makes the printer print properly. > > Okay, it works. > > How am I supposed to use a PPD file with CUPS when no > local printer is shown? > > I "need" CUPS (or at least my programs seem to think > that), how should it be done? > > Okay, I could make a simple printer filter. I could then > integrate that with /etc/printcap (as I do with my PCL > HP Laserjet 4000d). I think it should be possible to code > that similar to a parallel printer (with ulpt instead > of lpt device specification for the lp=3D parameter... > > What am I doing wrong? :-) > > > > > -- Polytropon Hope this can help: http://forums.freebsd.org/showthread.php?t=3D27666 There are many things that could be interfering? - Create /etc/devfs.rules with the following, which sets the permissions and associates print devices with the cups group: [system=3D10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups - Add root and other users to cups group in /etc/group - Enable CUPS and the above rules at startup by adding these lines to /etc/rc.conf: cupsd_enable=3D"YES" devfs_system_ruleset=3D"system" Then hopefully the printer shows up in cups http://localhost:631 :) If none of this works, you may try adding the apsfilter port and use it to configure the printer? But see if the above helps. Regards, Antonio