Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 19:40:28 +0530
From:      Manish Jain <bourne.identity@hotmail.com>
To:        Tijl Coosemans <tijl@coosemans.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Does HP DeskJet 1112 work with lpd on FreeBSD 10.2 amd64 ?
Message-ID:  <BLU436-SMTP74BDFD41A1F8629812233FF6600@phx.gbl>
In-Reply-To: <20160423143300.40d7c478@kalimero.tijl.coosemans.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <bourne.identity@hotmail.com> wrote:
>> On 04/20/16 14:52, Tijl Coosemans wrote:
>>> On Tue, 19 Apr 2016 18:42:01 +0530 Manish Jain <bourne.identity@hotmail.com> 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: <HP DeskJet 1110 series, class 0/0, rev 2.00/1.00, addr 6> 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
<Location />
   Order allow,deny
   #Allow localhost
   Allow 192.168.1.* # change to local LAN settings
</Location>

# Allow access to the admin pages from any machine on the LAN
<Location /admin>
   #Encryption Required
   Order allow,deny
   #Allow localhost
   Allow 192.168.1.* # change to local LAN settings
</Location>

# Allow access to configuration files from any machine on the LAN
<Location /admin/conf>
   AuthType Basic
   Require user @SYSTEM
   Order allow,deny
   #Allow localhost
   Allow 192.168.1.* # change to local LAN settings
</Location>

# Set the default printer/job policies...
<Policy default>
   # Job-related operations must be done by the owner or an administrator...
   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job 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
   </Limit>

   # All administration operations require an administrator to authenticate...
   <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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
   </Limit>

   # Only the owner or an administrator can cancel or authenticate a job...
   <Limit Cancel-Job CUPS-Authenticate-Job>
     Require user @OWNER @SYSTEM
     Order deny,allow
   </Limit>

   <Limit All>
     Order deny,allow
   </Limit>
</Policy>

Regards
Manish Jain




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU436-SMTP74BDFD41A1F8629812233FF6600>