From owner-freebsd-stable@FreeBSD.ORG Mon Jun 9 14:19:22 2014 Return-Path: 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 36E68EB7 for ; Mon, 9 Jun 2014 14:19:22 +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 0EB0028E9 for ; Mon, 9 Jun 2014 14:19:19 +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 s59EKELQ011913; Mon, 9 Jun 2014 07:20:20 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id s59EK9GG011909; Mon, 9 Jun 2014 07:20:09 -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; Mon, 9 Jun 2014 07:20:09 -0700 (PDT) Message-ID: In-Reply-To: <20140608154130.GA3621@vpn.offrom.nl> References: <20140608154130.GA3621@vpn.offrom.nl> Date: Mon, 9 Jun 2014 07:20:09 -0700 (PDT) Subject: Re: 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 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-stable@freebsd.org, cups@cups.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 14:19:22 -0000 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: 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 > > -- > Met vriendelijke groeten, > With kind regards, > Mit freundlichen Gruessen, > De jrus wah, > > Wiel > > ************************************* > W.K. Offermans > Home: +31 45 544 49 44 > Mobile: +31 681 15 87 68 > Mobile: +49 1575 414 60 55 > e-mail: Willy@Offermans.Rompen.nl > > Powered by .... > > (__) > \\\'',) > \/ \ ^ > .\._/_) > > www.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" >