From owner-freebsd-questions@freebsd.org Sat Apr 23 14:13:06 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 5295DB191F0 for ; Sat, 23 Apr 2016 14:13:06 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU004-OMC4S37.hotmail.com (blu004-omc4s37.hotmail.com [65.55.111.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D0AD1C6A for ; Sat, 23 Apr 2016 14:13:05 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU436-SMTP74 ([65.55.111.135]) by BLU004-OMC4S37.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 23 Apr 2016 07:11:58 -0700 X-TMN: [wOlmZoMe4hqnjF6JKrETlhzFmnp39ojg] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: Subject: Re: Does HP DeskJet 1112 work with lpd on FreeBSD 10.2 amd64 ? To: Tijl Coosemans References: <20160420112203.3244f4ea@kalimero.tijl.coosemans.org> <20160423143300.40d7c478@kalimero.tijl.coosemans.org> From: Manish Jain CC: freebsd-questions@freebsd.org Date: Sat, 23 Apr 2016 19:40:28 +0530 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20160423143300.40d7c478@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Apr 2016 14:11:35.0335 (UTC) FILETIME=[0B5F6370:01D19D6A] 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 14:13:06 -0000 Regards, Manish Jain +91-70731-76333 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. > > Hi Tijl, 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 : LogLevel info # Administrator user group... SystemGroup wheel # Listen for connections on Port 631. Port 631 #Listen localhost:631 Listen /var/run/cups.sock # Show shared printers on the local network. Browsing On BrowseOrder allow,deny #BrowseAllow @LOCAL BrowseAllow 192.168.1.* # change to local LAN settings BrowseAddress 192.168.1.* # change to local LAN settings # Default authentication type, when authentication is required... DefaultAuthType Basic DefaultEncryption Never # comment this line to allow encryption # Allow access to the server from any machine on the LAN Order allow,deny #Allow localhost Allow 192.168.1.* # change to local LAN settings # Allow access to the admin pages from any machine on the LAN #Encryption Required Order allow,deny #Allow localhost Allow 192.168.1.* # change to local LAN settings # Allow access to configuration files from any machine on the LAN AuthType Basic Require user @SYSTEM Order allow,deny #Allow localhost Allow 192.168.1.* # change to local LAN settings # Set the default printer/job policies... # Job-related operations must be done by the owner or an administrator... Require user @OWNER @SYSTEM Order deny,allow # All administration operations require an administrator to authenticate... AuthType Basic Require user @SYSTEM Order deny,allow # Only the owner or an administrator can cancel or authenticate a job... Require user @OWNER @SYSTEM Order deny,allow Order deny,allow Regards Manish Jain