From owner-freebsd-questions@freebsd.org Sun Apr 24 17:57:43 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 AC7A9B1B914 for ; Sun, 24 Apr 2016 17:57:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (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 7512B1EC9 for ; Sun, 24 Apr 2016 17:57:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-216-66.dynamic.qsc.de [92.195.216.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id C17CB3CCFE; Sun, 24 Apr 2016 19:50:59 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u3OHoxvb002041; Sun, 24 Apr 2016 19:50:59 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 24 Apr 2016 19:50:59 +0200 From: Polytropon To: Manish Jain Cc: freebsd-questions@freebsd.org Subject: Re: Does HP DeskJet 1112 work with lpd on FreeBSD 10.2 amd64 ? Message-Id: <20160424195059.05115996.freebsd@edvax.de> In-Reply-To: References: <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> <20160423190136.e92c98e3.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) 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: Sun, 24 Apr 2016 17:57:43 -0000 On Sun, 24 Apr 2016 11:02:38 +0530, Manish Jain wrote: > On Sat, 23 Apr 2016 19:40:28 +0530, Manish Jain wrote: > >> My /etc/rc.conf does have : > >> > >> cupsd_enable="YES" > >> > >> So I presume cupsd is getting started at boot time. > > Don't presume. Verify. :-) > > > > > > > >> This is what I have in /usr/local/etc/cups/cupsd.conf : > >> > >> LogLevel info > >> > >> # Administrator user group... > >> SystemGroup wheel > >> > >> # Listen for connections on Port 631. > >> Port 631 > >> #Listen localhost:631 > >> Listen /var/run/cups.sock > > > > Those lines should probably be the following: > > > > Listen localhost:631 > > Listen /var/run/cups.sock > > > > That's probably the reason why you cannot access the CUPS web interface. > > Keep in mind there are also CLI tools: lpadmin, cupsenable, cupsaccept > > and so on. > > > > I got a HP Deskjet F380 all-in-one working with CUPS few years ago, and > > all components (even the scanner) work. Make sure CUPS is actually really > > running. There's also a /var/log/cups directory with log files where you > > can check the events. > > > > > > > > Hi Polytropon, > > Thanks for replying. > > You are right. cupsd is not starting. At boot time, I get a message like : > > /etc/rc : Failed to start cupsd > Warning : failed to read /usr/local/etc/cups/cupsd.conf This is to be expected when the configuration file is damaged. > I will try and fix this on my own, but may need some more help from you > if my efforts alone are not enough. You could start by renaming the damaged file and have CUPS generate a new one which you then can start editing, or you could check if there's a backup file /usr/local/etc/cups/cupsd.conf.0 which you can use instead (or for comparison). There should also be a template file /usr/local/etc/cups/cupsd.conf.default which can be used. This is the first step in getting CUPS running. If you have solved that problem, accessing the web GUI should work (localhost:631), and you can make any new changes from there. As you already have cups_enable="YES" in /etc/rc.conf, it's easy to check if CUPS is happy: # service cupsd start And then you'll see the start message. As I mentioned, there are also log files in /var/log/cups which are valuable sources for further debugging. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...