Date: Sun, 24 Apr 2016 19:50:59 +0200 From: Polytropon <freebsd@edvax.de> To: Manish Jain <bourne.identity@hotmail.com> 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: <BLU436-SMTP1696355C40791D8BB0167C3F6610@phx.gbl> References: <mailman.103.1461067202.17825.freebsd-questions@freebsd.org> <BLU436-SMTP56E943BBDF81CC87548C5FF66C0@phx.gbl> <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <BLU437-SMTP97DF5EAC3CE8DB4DEC9E37F6600@phx.gbl> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> <BLU436-SMTP74BDFD41A1F8629812233FF6600@phx.gbl> <20160423190136.e92c98e3.freebsd@edvax.de> <BLU436-SMTP1696355C40791D8BB0167C3F6610@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160424195059.05115996.freebsd>