From owner-freebsd-ports@FreeBSD.ORG Thu Jun 12 04:10:36 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 678B2F05; Thu, 12 Jun 2014 04:10:36 +0000 (UTC) Received: from mail.CSUA.Berkeley.EDU (mail.CSUA.Berkeley.EDU [128.32.112.223]) by mx1.freebsd.org (Postfix) with ESMTP id 3165B2B84; Thu, 12 Jun 2014 04:10:36 +0000 (UTC) Received: by mail.CSUA.Berkeley.EDU (Postfix, from userid 500) id 20420424EE; Wed, 11 Jun 2014 21:06:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) by mail.CSUA.Berkeley.EDU (Postfix) with ESMTP id E00F64250E for ; Wed, 11 Jun 2014 21:04:41 -0700 (PDT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx2.freebsd.org (Postfix) with ESMTPS id 761EF2289; Tue, 10 Jun 2014 16:21:20 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) by hub.freebsd.org (Postfix) with ESMTP id 70DFC409; Tue, 10 Jun 2014 16:21:20 +0000 (UTC) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15F4F3FE; Tue, 10 Jun 2014 16:21:16 +0000 (UTC) Received: from udns.ultimateDNS.NET (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F9EC27AA; Tue, 10 Jun 2014 16:21:14 +0000 (UTC) Received: from udns.ultimateDNS.NET (localhost [127.0.0.1]) by udns.ultimateDNS.NET (8.14.5/8.14.5) with ESMTP id s5AGMH8S002058; Tue, 10 Jun 2014 09:22:23 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id s5AGMADe002052; Tue, 10 Jun 2014 09:22:10 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net ([209.180.214.225]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Tue, 10 Jun 2014 09:22:10 -0700 (PDT) Message-ID: In-Reply-To: <20140610093705.GC3793@vpn.offrom.nl> References: <20140609173800.GC30045@vpn.offrom.nl> <201406091818.s59IHuSw074103@gw.catspoiler.org> <20140610093705.GC3793@vpn.offrom.nl> Date: Tue, 10 Jun 2014 09:22:10 -0700 (PDT) Subject: Re: [cups] Setup cups and Brother HL-4150CDN on FreeBSD 10 From: "Chris H" To: Willy@Offermans.Rompen.nl User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: owner-freebsd-stable@freebsd.org Sender: owner-freebsd-stable@freebsd.org Cc: Don Lewis , freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, cups@cups.org X-BeenThere: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2014 04:10:36 -0000 More informational, than anything else. But perhaps it will help... > Hello Don, cups and freebsd friends, > > On Mon, Jun 09, 2014 at 11:17:56AM -0700, Don Lewis wrote: >> On 9 Jun, Willy Offermans wrote: >> > Hello Chris and cups, and freebsd friends, >> > >> > On Mon, Jun 09, 2014 at 07:20:09AM -0700, Chris H wrote: >> >> Greetings... >> >> > Dear cups and freebsd friends, >> >> > >> >> > I'm trying to setup CUPS on FreeBSD 10. I managed to install the software >> >> > and I managed to make the printer available to the OS via /dev/ulpt0: >> >> > >> >> > from messages: >> >> > >> >> > ... >> >> > Jun 8 17:16:13 donald kernel: ugen1.2: at usbus1 >> >> > Jun 8 17:16:13 donald kernel: ulpt0: > 2.00/1.00, >> >> > addr 1> on usbus1 >> >> > Jun 8 17:16:13 donald kernel: ulpt0: using bi-directional mode >> >> > Jun 8 17:16:13 donald kernel: ulpt0: offline >> >> > ... >> >> > >> >> > >> >> > from ll /dev/ulpt0 >> >> > >> >> > crw-rw---- 1 root cups - 0x65 Jun 8 17:16 /dev/ulpt0 >> >> > >> >> > If I executed the following command: >> >> > >> >> > echo 'true' > /dev/ulpt0 >> >> > >> >> > then the printer reacts and shows that data is transferred to the printer. >> >> > >> >> > However, if I try to add the printer to CUPS via the web-interface, then >> >> > the printer is not detectable. I would expect the printer to be found after >> >> > searching. I can find an error message in error_log: >> >> > >> >> > >> >> > ... >> >> > E [08/Jun/2014:17:37:53 +0200] [Client 15] Invalid peer credentials for "root" - got >> 8, >> >> > expected 0! >> >> > ... >> >> > >> >> > >> >> > I'm not sure if this is related to the fact that the printer cannot be >> >> > detected. >> >> > >> >> > If I add the printer manually to the printer.conf file: >> >> > >> >> > >> >> > >> >> > UUID urn:uuid:de11cfc5-3cbd-361e-5750-8b0e3f0ff4ad >> >> > AuthInfoRequired none >> >> > Info Brother HL-4150CDN series >> >> > Location attic >> >> > MakeModel Brother HL-4150CDN series CUPS >> >> > DeviceURI usb:/dev/ulpt0 >> >> > State Idle >> >> > StateTime 1402241099 >> >> > Type 8392780 >> >> > Accepting Yes >> >> > Shared No >> >> > JobSheets none none >> >> > QuotaPeriod 0 >> >> > PageLimit 0 >> >> > KLimit 0 >> >> > OpPolicy default >> >> > ErrorPolicy stop-printer >> >> > >> >> > >> >> > then I still cannot print to the printer. >> >> > >> >> > Does anyone has a clue what is going on? Or how can I debug this problem? >> >> > >> >> It appears that the user under which you are attempting all this, >> >> doesn't have permission to manage, or otherwise manipulate/view the >> >> printer facilities. My suggestion would be to (if available) go to >> >> http://localhost:631/admin in your browser, and login with the root >> >> password, and then GRANT permission(s) to the user you want to give >> >> access to. >> >> >> >> Also insure that the cups user/group were added correctly. >> >> >> >> Best wishes. >> >> >> >> --Chris >> >> > >> >> > -- >> > >> > I did as you told. I logged in with root account, but there were no >> > printers available. Also the /dev/ulpt0 device cannot be detected, although >> > the local printer is connected to this device. under >> > administration is not successful. No printer will appear. >> >> cups doesn't use the /dev/ulpt* device. For USB printers, it uses a the >> device node under /dev/usb. This device needs to be accessable to the >> cups user. See the last devfs rule here: >> >> > > I already added these rules. The following shows my /etc/devfs.rules > > > [system=10] > add path 'unlpt*' mode 0660 group cups > add path 'ulpt*' mode 0660 group cups > add path 'lpt*' mode 0660 group cups > add path 'da[1,2,3,4,5,6,7,8,9]*' mode 0660 group users > add path 'usb/*' mode 0660 group users > add path 'usb/1.2.0' mode 0660 group cups > > > The last line ensures the following in /dev/usb: > > crw-rw---- 1 root cups - 0x5f Jun 9 12:19 1.2.0 > > 1.2.0 is where ugen1.2 is pointing at: > > /dev/ugen1.2 -> usb/1.2.0 > > All the above settings were done before I started to search for new > printers or to add new printers with the web interface of cups. So no > success so far. > > Are there any other options? My personal guess is that cups has some > problems to use root peer credentials. The following error appears in the > log file of cups (error_log): > > E [10/Jun/2014:11:35:14 +0200] [Client 14] Invalid peer credentials for "root" - got 8, > expected 0! On my system; while I was successful in installing my printer (HP Laser && JetDirect). It doesn't work correctly (only prints 1 page). All the information I found, regarding the error, blames ghostscript, and [possible] version incompatibilities. Yet, they make no effort to reconcile such issuers during install. Even after some 6yrs. I digress... Here's the output from my install, with a [somewhat] working cups(d) install -- in that the Printer && JetDirect were detected, and the cups(d) runs: # ps waux | grep cupsd root 87930 0.0 0.1 19988 4364 ?? Is 10:34AM 0:00.77 /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf # cat /etc/passwd | grep cups cups:*:193:193:CUPS Owner:/nonexistent:/usr/sbin/nologin # cat /etc/group | grep cups cups:*:193: I only mention passwd(1), and group(5), because I want to address the possibility that the database may NOT have been updated, given the error that you mention above. In hopes it helps you. --Chris > > > -- > Met vriendelijke groeten, > With kind regards, > Mit freundlichen Gruessen, > De jrus wah, > > Wiel > > ************************************* > W.K. Offermans > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"