From owner-freebsd-questions@freebsd.org Sat Apr 23 15:00:19 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A68B8B1A6E6 for ; Sat, 23 Apr 2016 15:00:19 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay110.isp.belgacom.be (mailrelay110.isp.belgacom.be [195.238.20.137]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF7101A28 for ; Sat, 23 Apr 2016 15:00:18 +0000 (UTC) (envelope-from tijl@coosemans.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BOCQCVjBtX/4pJsVtEEQmDOFN9qSWFA4tdAQ2BdSKFbAKBHDkUAQEBAQEBAWUnQQEBAQEBAQEHAgKDbwEBBDocIxALDgoJJQ8qHgYTiBUDFgosvnkBAQEBAQEBAwEBAQEBAQEVBIIgiEyCQYFVEYVuBYd+hweIWTGMH4Frb44rh1CHXx4BAUKDbTowAQEBgSSDGRCCIIILAQEB Received: from 138.73-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.73.138]) by relay.skynet.be with ESMTP; 23 Apr 2016 16:59:04 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id u3NEx330003579; Sat, 23 Apr 2016 16:59:03 +0200 (CEST) (envelope-from tijl@coosemans.org) Date: Sat, 23 Apr 2016 16:59:02 +0200 From: Tijl Coosemans To: Manish Jain Cc: freebsd-questions@freebsd.org Subject: Re: Does HP DeskJet 1112 work with lpd on FreeBSD 10.2 amd64 ? Message-ID: <20160423165902.29d9950c@kalimero.tijl.coosemans.org> In-Reply-To: References: <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 15:00:19 -0000 On Sat, 23 Apr 2016 19:40:28 +0530 Manish Jain wrote: > On 04/23/16 18:03, Tijl Coosemans wrote: >> On Sat, 23 Apr 2016 17:47:33 +0530 Manish Jain wrote: >>> On 04/20/16 14:52, Tijl Coosemans wrote: >>>> On Tue, 19 Apr 2016 18:42:01 +0530 Manish Jain wrote: >>>>>> CUPS works nice for many years on my FreeBSD systems, actually CURRENT. >>>>>> Why you can't get it to do anything on your system? matthias >>>>> Thanks for responding. So my question becomes "Has anyne got HP DeskJet >>>>> 1112 to work with CUPS on a FreeBSD 10.2 amd64 box ?" >>>> You need to install print/hplip. Then you can either use the graphical >>>> setup tool HP Device Manager, or the CUPS web interface at >>>> http://localhost:631/. If you use the CUPS interface you need to select >>>> the printer model at some point. Your printer will be listed as >>>> "HP Deskjet 1110 Series, hpcups 3.16.2". >>> This is what I get when I try to open up the cups web interface in my >>> browser even after installing apache24 : >>> >>>> Chromium's connection attempt to*localhost*was rejected > >> What could I be missing here ? hplip package was installed, along with >>> all its dependencies. >>> >>> This is what I get in dmesg : >>> >>> ulpt0: on usbus2 >>> ulpt0: using bi-directional mode >>> >>> So the printer is being detected, just as you stated. A little bit more >>> help, and I could fire up my printout page. Perhaps something to do with >>> httpd.conf ? Or perhaps /usr/local/etc/cups/cupsd.conf ? >> Is the CUPS daemon actually running? Add cupsd_enable="YES" to /etc/rc.conf >> and run 'service cupsd start'. Also, CUPS uses its own http server so you >> don't need Apache. > > Thanks for replying. > > My /etc/rc.conf does have : > > cupsd_enable="YES" > > So I presume cupsd is getting started at boot time. > > This is what I have in /usr/local/etc/cups/cupsd.conf : I suspect this is for an older version of CUPS. Try renaming this file for now and copy cupsd.conf.sample (in the same directory) to cupsd.conf. Then restart cupsd using 'service cupsd restart'. If that works you can enable printer sharing as documented here: https://www.cups.org/documentation.php/doc-2.1/sharing.html