On Sat, Dec 20, 2008 at 5:41 AM, Peter Humphrey
<pe...@humphrey.ukfsn.org> wrote:
> On Saturday 20 December 2008 11:37:32 Peter Humphrey wrote:
>
>> These are the USE flags I installed CUPS with:
>>
>> [ebuild   R   ] net-print/cups-1.3.9-r1  USE="acl dbus jpeg pam perl png
>> python ssl tiff
>> -X -avahi -gnutls -java -kerberos -ldap -php -ppds -samba -slp -static
>> -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he -id -it -ja -pl -sv
>> -zh_TW"
>
> Since writing that I reasoned that cups might want the ppds USE flag, so I
> remerged it with that flag, after restoring the squeaky-clean system to a
> new file-system. Three foomatic packages were pulled in:
>
> $ grep completed /var/log/emerge.log | tail -n 4
> 1229776693:  ::: completed emerge (1 of 4)
> net-print/foomatic-db-ppds-3.0.20060720 to /
> 1229776708:  ::: completed emerge (2 of 4)
> net-print/foomatic-filters-3.0.20080507 to /
> 1229776740:  ::: completed emerge (3 of 4)
> net-print/foomatic-filters-ppds-20070501 to /
> 1229776821:  ::: completed emerge (4 of 4) net-print/cups-1.3.9-r1 to /
>
> Then I let cups detect the printer for itself, and gave it a PPD file I got
> from linuxprinting.org, and when I asked for a test page I
> got "/usr/libexec/cups/filter/foomatic-rip failed" and the job list showed
> it as Unknown Stopped.
>
> So I deleted the printer, let it redetect it, and this time gave it the PPD
> file it offered me: a DJ200 file, which I wouldn't have thought to use.
> This time on trying a test page I got "Printer is now on-line." but still
> nothing appeared on the printer.
>
> I did have this printer working some months ago, both locally and over the
> network, together with a Kyocera laser printer, but something has changed
> and I haven't yet worked out what.
>
> --
> Rgds
> Peter

Hi Peter,
   So far I haven't used PPD files (at least by name) on any of the
printers I've set up. All of our printers now are HP and I'm using
hplip for them so possibly part of my luck is just that difference.

   My cups server here at the house has very little in the config file
and the printer definition is very short so I'm copying them at the
end.

   Upon review it does look like I have samba running and although I
don't think it's being used it might be. It got turned on when I first
started working on this last week and I forgot about it so it's still
turned on. I've not done any configuration of samba so I don't see how
it could be participating but maybe. It's possible...

Sector9 cups # emerge -pv cups

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-print/cups-1.3.9-r1  USE="X acl dbus jpeg ldap pam
perl png ppds python samba ssl tiff -avahi -gnutls -java -kerberos
-php -slp -static -xinetd -zeroconf" LINGUAS="en -de -es -et -fr -he
-id -it -ja -pl -sv -zh_TW" 0 kB

Sector9 cups # rc-update show | grep samba
               samba |      default
Sector9 cups #

   I did uncomment lines in /etc/cups/mime.convs and mime.types as per
the numerous wikis around on configuring cups. If you need the
specific lines let me know but all the wikis say to do it.

   I can't think of what else to suggest at this point but if there's
something you want me to look at I'll be happy to do so. Let me know.

Cheers,
Mark


Sector9 cups # cat /etc/cups/cupsd.conf
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  # Restrict access to the admin pages...
  Order allow,deny
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
</Location>
<Policy default>
  <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>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs
CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
Sector9 cups #




Sector9 cups # cat printers.conf
# Printer configuration file for CUPS v1.3.9
# Written by cupsd on 2008-12-16 15:14
<Printer HP1600>
Info HP PSC 1600 series
Location Local Printer
DeviceURI hp:/usb/PSC_1600_series?serial=MY583F32PDL0
State Idle
StateTime 1229469245
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Sector9 cups #

Reply via email to