From owner-freebsd-questions@freebsd.org Sat Apr 23 14:18:58 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 E8304B193B0 for ; Sat, 23 Apr 2016 14:18:58 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU004-OMC4S6.hotmail.com (blu004-omc4s6.hotmail.com [65.55.111.145]) (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 B3A411EA0 for ; Sat, 23 Apr 2016 14:18:58 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from BLU436-SMTP41 ([65.55.111.136]) by BLU004-OMC4S6.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 23 Apr 2016 07:17:50 -0700 X-TMN: [hDmYyXI6+AtWXT2CjA+nPpvMZw3OfzI6] 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> <571B8254.7080201@hotmail.com> CC: freebsd-questions@freebsd.org From: Manish Jain Date: Sat, 23 Apr 2016 19:46:39 +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: <571B8254.7080201@hotmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Apr 2016 14:17:47.0413 (UTC) FILETIME=[E925FC50: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:18:59 -0000 Regards, Manish Jain +91-70731-76333 On 04/23/16 19:40, Manish Jain wrote: > > 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... > Purge-Jobs \ > Set-Job-Attributes Create-Job-Subscription Renew-Subscription > Cancel-Subscription \ > Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job > Resume-Job \ > CUPS-Move-Job> > Require user @OWNER @SYSTEM > Order deny,allow > > > # All administration operations require an administrator to > authenticate... > Enable-Printer \ > Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs > Release-Held-New-Jobs \ > Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer > Startup-Printer \ > Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer > CUPS-Add-Class \ > CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> > 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 > Some more diagnostics : This is what I get when I run hp-setup : warning: Fax setup disabled - Python 2.3+ required. Searching... (bus=usb, search=(None), desc=0) error: Failed to run the /usr/local/sbin/lsusb command error: No devices found on bus: usb Regards Manish Jain