Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2009 15:14:09 -0300
From:      Mario Lobo <mlobo@digiart.art.br>
To:        freebsd@shineracoustics.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cups-pdf does not print
Message-ID:  <200902251514.09931.mlobo@digiart.art.br>
In-Reply-To: <49A56256.60100@shineracoustics.com>
References:  <49A4798A.10009@shineracoustics.com> <200902242203.30436.mlobo@digiart.art.br> <49A56256.60100@shineracoustics.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 25 February 2009 12:23:02 Cam wrote:
> Mario Lobo wrote:
> > On Tuesday 24 February 2009 19:49:46 Cam wrote:
> >> Hello,
> >>
> >> I need a whole lot of help with cups-pdf.  I've been wrestling with this
> >> for about a week without success.  There are no error messages when test
> >> page printed from CUPS web admin but no output either; there are no
> >> error messages from Windows, which is how I plan to use the PDF
> >> printer.  CUPS works fine with other printers.
> >>
> >> thanks
> >> Cam
> >>
> >> This is how I set up the cups-pdf printer in the web admin page:
> >> device: CUPS-PDF (virtual PDF printer)
> >> make: Generic.  There is no 'Postscript' option per the Readme file
> >> (http://cups-pdf.de)
> >> model: Generic-CUPS-PDF printer.  There is no 'color Postscript' option.
> >>
> >> cups-pdf.conf is all default values, except these lines, which are now
> >> commented:
> >> Out /usr/home/Shiner/PDFs
> >> AnonDirName /usr/home/Shiner/PDFs
> >>
> >>
> >> I use these /etc/devfs.rules:
> >> [system=10]
> >> add path 'unlpt*' mode 0660 group cups
> >> add path 'ulpt*' mode 0660 group cups
> >> add path 'lpt*' mode 0660 group cups
> >>
> >> Error log from setting up the printer 'server_PDF' - what is the
> >> significance of the inability to write to /var/cache/cups/ppds.dat ?
> >>
> >> I [24/Feb/2009:16:32:21 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44236) I
> >> [24/Feb/2009:16:36:02 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=44266) I
> >> [24/Feb/2009:16:36:06 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44268) I
> >> [24/Feb/2009:16:36:08 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44269) I
> >> [24/Feb/2009:16:36:08 -0600] Started
> >> "/usr/local/libexec/cups/daemon/cups-deviced" (pid=44270) I
> >> [24/Feb/2009:16:36:47 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44285) I
> >> [24/Feb/2009:16:36:47 -0600] Started
> >> "/usr/local/libexec/cups/daemon/cups-driverd" (pid=44286) E
> >> [24/Feb/2009:16:37:09 -0600] [cups-driverd] Unable to write
> >> "/var/cache/cups/ppds.dat" - Permission denied I [24/Feb/2009:16:38:26
> >> -0600] Started "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44293) I
> >> [24/Feb/2009:16:38:26 -0600] Started
> >> "/usr/local/libexec/cups/daemon/cups-driverd" (pid=44294) E
> >> [24/Feb/2009:16:38:34 -0600] [cups-driverd] Unable to write
> >> "/var/cache/cups/ppds.dat" - Permission denied I [24/Feb/2009:16:39:56
> >> -0600] Started "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=44301) I
> >> [24/Feb/2009:16:39:56 -0600] Setting server_PDF device-uri to
> >> "cups-pdf:/" (was "cups-pdf:/".) I [24/Feb/2009:16:39:56 -0600] Setting
> >> server_PDF printer-is-accepting-jobs to 1 (was 1.) I
> >> [24/Feb/2009:16:39:56 -0600] Setting server_PDF printer-state to 3 (was
> >> 3.) I [24/Feb/2009:16:39:56 -0600] Saving printers.conf...
> >> I [24/Feb/2009:16:39:56 -0600] Printer "server_PDF" modified by "root".
> >> I [24/Feb/2009:16:39:59 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=44303) I
> >> [24/Feb/2009:16:40:14 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=44307) I
> >> [24/Feb/2009:16:40:14 -0600] [Job 49] Adding start banner page "none". I
> >> [24/Feb/2009:16:40:14 -0600] [Job 49] Adding end banner page "none". I
> >> [24/Feb/2009:16:40:14 -0600] [Job 49] File of type
> >> application/postscript queued by "root". I [24/Feb/2009:16:40:14 -0600]
> >> [Job 49] Queued on "server_PDF" by "root". I [24/Feb/2009:16:40:14
> >> -0600] [Job 49] Started filter /usr/local/libexec/cups/filter/pstops
> >> (PID 44308) I
> >> [24/Feb/2009:16:40:14 -0600] [Job 49] Started backend
> >> /usr/local/libexec/cups/backend/cups-pdf (PID 44309) I
> >> [24/Feb/2009:16:40:14 -0600] [Job 49] Completed successfully.
> >>
> >>
> >>
> >> Error log from CUPS restart and printing a test page to PDF printer:
> >>
> >> I [24/Feb/2009:15:14:25 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/admin.cgi" (pid=43763) I
> >> [24/Feb/2009:15:15:32 -0600] Scheduler shutting down normally.
> >> I [24/Feb/2009:15:15:32 -0600] Saving job cache file
> >> "/var/cache/cups/job.cache"... I [24/Feb/2009:15:15:32 -0600] Listening
> >> to
> >>
> >> :::631 (IPv6)
> >>
> >> I [24/Feb/2009:15:15:32 -0600] Listening to 0.0.0.0:631 (IPv4)
> >> I [24/Feb/2009:15:15:32 -0600] Listening to /var/run/cups.sock (Domain)
> >> I [24/Feb/2009:15:15:32 -0600] Loaded configuration file
> >> "/usr/local/etc/cups/cupsd.conf" I [24/Feb/2009:15:15:32 -0600] Using
> >> default TempDir of /var/spool/cups/tmp... I [24/Feb/2009:15:15:32 -0600]
> >> Configured for up to 100 clients.
> >> I [24/Feb/2009:15:15:32 -0600] Allowing up to 100 client connections per
> >> host. I [24/Feb/2009:15:15:32 -0600] Using policy "default" as the
> >> default! I [24/Feb/2009:15:15:32 -0600] Full reload is required.
> >> I [24/Feb/2009:15:15:33 -0600] Loaded MIME database from
> >> '/usr/local/etc/cups': 35 types, 38 filters... I [24/Feb/2009:15:15:33
> >> -0600] Loading job cache file "/var/cache/cups/job.cache"... I
> >> [24/Feb/2009:15:15:33 -0600] Full reload complete.
> >> I [24/Feb/2009:15:15:33 -0600] Cleaning out old temporary files in
> >> "/var/spool/cups/tmp"... I [24/Feb/2009:15:15:33 -0600] Listening to
> >> :::631 on fd 3...
> >> I [24/Feb/2009:15:15:33 -0600] Listening to 0.0.0.0:631 on fd 4...
> >> I [24/Feb/2009:15:15:33 -0600] Listening to /var/run/cups.sock on fd
> >> 5... I [24/Feb/2009:15:15:33 -0600] Resuming new connection
> >> processing... I [24/Feb/2009:15:16:37 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=43795) I
> >> [24/Feb/2009:15:16:46 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=43796) I
> >> [24/Feb/2009:15:16:46 -0600] [Job 46] Adding start banner page "none". I
> >> [24/Feb/2009:15:16:46 -0600] [Job 46] Adding end banner page "none". I
> >> [24/Feb/2009:15:16:46 -0600] [Job 46] File of type
> >> application/postscript queued by "root". I [24/Feb/2009:15:16:46 -0600]
> >> [Job 46] Queued on "server_PDF" by "root". I [24/Feb/2009:15:16:46
> >> -0600] [Job 46] Started filter /usr/local/libexec/cups/filter/pstops
> >> (PID 43797) I
> >> [24/Feb/2009:15:16:46 -0600] [Job 46] Started backend
> >> /usr/local/libexec/cups/backend/cups-pdf (PID 43798) I
> >> [24/Feb/2009:15:16:46 -0600] [Job 46] Completed successfully.
> >> I [24/Feb/2009:15:16:48 -0600] Started
> >> "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=43802)
> >>
> >>
> >> printers.conf:
> >>
> >> # Printer configuration file for CUPS v1.3.9
> >> # Written by cupsd on 2009-02-23 17:01
> >> <Printer HP_5p>
> >> Info HP 5p (right)
> >> DeviceURI http://192.168.0.187:9101/ipp/port1
> >> State Idle
> >> StateTime 1235057964
> >> Accepting Yes
> >> Shared Yes
> >> JobSheets none none
> >> QuotaPeriod 0
> >> PageLimit 0
> >> KLimit 0
> >> OpPolicy default
> >> ErrorPolicy stop-printer
> >> </Printer>
> >> <Printer HP_Color_LaserJet>
> >> Info HP Color LaserJet CM1017
> >> Location Local Printer
> >> DeviceURI socket://192.168.0.191
> >> State Idle
> >> StateTime 1234991318
> >> Accepting Yes
> >> Shared Yes
> >> JobSheets none none
> >> QuotaPeriod 0
> >> PageLimit 0
> >> KLimit 0
> >> OpPolicy default
> >> ErrorPolicy stop-printer
> >> </Printer>
> >> <Printer km_2550>
> >> Info Kyocera km-2550
> >> DeviceURI socket://192.168.0.189
> >> State Idle
> >> StateTime 1235426616
> >> Accepting Yes
> >> Shared Yes
> >> JobSheets none none
> >> QuotaPeriod 0
> >> PageLimit 0
> >> KLimit 0
> >> OpPolicy default
> >> ErrorPolicy stop-printer
> >> </Printer>
> >> <Printer server_PDF>
> >> Info server's PDF printer
> >> Location
> >> DeviceURI cups-pdf:/
> >> State Idle
> >> StateTime 1235430082
> >> Accepting Yes
> >> Shared Yes
> >> JobSheets none none
> >> QuotaPeriod 0
> >> PageLimit 0
> >> KLimit 0
> >> OpPolicy default
> >> ErrorPolicy stop-printer
> >> </Printer>
> >>
> >>
> >>
> >> cupsd.conf:
> >>
> >> # Show general information in error_log.
> >> LogLevel info
> >> SystemGroup wheel
> >>
> >> # Allow remote access
> >> Port 631
> >> Listen /var/run/cups.sock
> >>
> >> # Enable printer sharing and shared printers.
> >> Browsing On
> >> BrowseOrder allow,deny
> >> BrowseAllow all
> >> BrowseAddress @LOCAL
> >> DefaultAuthType Basic
> >>
> >> <Location />
> >>   # Allow shared printing and remote administration...
> >>   Order allow,deny
> >>   Allow @LOCAL
> >> </Location>
> >>
> >> <Location /admin>
> >>   Encryption Required
> >>   Require user @SYSTEM
> >>   # Allow remote administration...
> >>   Order allow,deny
> >>   Allow @LOCAL
> >> </Location>
> >>
> >> <Location /admin/conf>
> >>   AuthType Default
> >>   Require user @SYSTEM
> >>   # Allow remote access to the configuration files...
> >>   Order allow,deny
> >>   Allow @LOCAL
> >> </Location>
> >>
> >> <Policy default>
> >>
> >>   <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
> >> Purge-Jobs Set-
> >>     Require user @OWNER @SYSTEM
> >>     Order deny,allow
> >>   </Limit>
> >>
> >>   <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
> >> CUPS-Add-Modify-Class CUPS-
> >>     AuthType Default
> >>     Require user @SYSTEM
> >>     Order deny,allow
> >>   </Limit>
> >>
> >>   <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
> >> Pause-Print
> >>     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>
> >>
> >> _______________________________________________
> >> freebsd-questions@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to
> >> "freebsd-questions-unsubscribe@freebsd.org"
> >
> > Did you check /var/spool/cups-pdf/root to see if your printout is there?
>
> Thanks for your answer Mario.
>
> Nothing in:
> /var/spool/cups-pdf/root      [root, wheel, 700]
> /var/spool/cups-pdf/ANONYMOUS [nobody,nobody,777]
> /var/spool/cups-pdf/SPOOL     [root,daemon,751]
>
>
> However, no CUPS error messages:
>
> 192.168.0.119 - - [25/Feb/2009:08:28:47 -0600] "POST
> /printers/server_PDF HTTP/1.1" 200 135 Get-Printer-Attributes successful-ok
> 192.168.0.119 - - [25/Feb/2009:08:28:47 -0600] "POST
> /printers/server_PDF HTTP/1.1" 200 353278 Print-Job successful-ok
> 192.168.0.119 - - [25/Feb/2009:08:28:48 -0600] "POST
> /printers/server_PDF HTTP/1.1" 200 135 Get-Printer-Attributes successful-ok
>
>
> I [25/Feb/2009:08:28:47 -0600] [Job ???] Request file type is
> application/postscript.
> I [25/Feb/2009:08:28:47 -0600] [Job 52] Adding start banner page "none".
> I [25/Feb/2009:08:28:47 -0600] [Job 52] Adding end banner page "none".
> I [25/Feb/2009:08:28:47 -0600] [Job 52] File of type
> application/postscript queued by "Cameron".
> I [25/Feb/2009:08:28:47 -0600] [Job 52] Queued on "server_PDF" by
> "Cameron". I [25/Feb/2009:08:28:47 -0600] [Job 52] Started filter
> /usr/local/libexec/cups/filter/pstops (PID 49445)
> I [25/Feb/2009:08:28:47 -0600] [Job 52] Started backend
> /usr/local/libexec/cups/backend/cups-pdf (PID 49446)
> I [25/Feb/2009:08:28:47 -0600] [Job 52] Completed successfully.
>
> One question: how and where does CUPS store its user names?  I notice
> that the job was submitted by "Cameron".  I used lpadmin to allow all
> users: lpadmin -p server_PDF -u allow:all
> lpadmin -p server_PDF -u deny:none
>
> but no luck.

You're welcome !

I believe it stores everything in cupsd.conf.

Why don't give a shot configuring CUPS at its web interface 
(http://localhost:631)? From there you could set up everything 
(printers,users,test printers,etc..) and, as far a I'm concerned, it does a 
better job than myself at manipulating cupsd.conf.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE)



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