From owner-freebsd-questions@FreeBSD.ORG Wed Feb 25 15:23:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73BDD106566C for ; Wed, 25 Feb 2009 15:23:00 +0000 (UTC) (envelope-from freebsd@shineracoustics.com) Received: from outbound-mail-152.bluehost.com (outbound-mail-152.bluehost.com [67.222.39.32]) by mx1.freebsd.org (Postfix) with SMTP id 4AA908FC12 for ; Wed, 25 Feb 2009 15:23:00 +0000 (UTC) (envelope-from freebsd@shineracoustics.com) Received: (qmail 13726 invoked by uid 0); 25 Feb 2009 15:20:21 -0000 Received: from unknown (HELO host68.hostmonster.com) (74.220.207.68) by outboundproxy5.bluehost.com with SMTP; 25 Feb 2009 15:20:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=shineracoustics.com; h=Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=OPAta0vuj5xPORLnWEHB48x+wgKrPKpLZb4N2kh968HY3H1QAMkNkS6jo1kNsLKau5HYmS8RMopCezGxrYxYHeOejByqU1KQI7OuWxuHXq2Ais9hQhkMt+BtAILGTzx4; Received: from [67.103.3.90] (helo=[192.168.0.119]) by host68.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LcLb6-0007VQ-7D; Wed, 25 Feb 2009 08:22:56 -0700 Message-ID: <49A56256.60100@shineracoustics.com> Date: Wed, 25 Feb 2009 09:23:02 -0600 From: Cam User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <49A4798A.10009@shineracoustics.com> <200902242203.30436.mlobo@digiart.art.br> In-Reply-To: <200902242203.30436.mlobo@digiart.art.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1047:host68.hostmonster.com:shinerac:shineracoustics.com} {sentby:smtp auth 67.103.3.90 authed with cbaillie@shineracoustics.com} Cc: Mario Lobo Subject: Re: cups-pdf does not print X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@shineracoustics.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 15:23:00 -0000 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 >> >> 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 >> >> >> 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 >> >> >> 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 >> >> >> 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 >> >> >> >> >> 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 >> >> >> # Allow shared printing and remote administration... >> Order allow,deny >> Allow @LOCAL >> >> >> >> Encryption Required >> Require user @SYSTEM >> # Allow remote administration... >> Order allow,deny >> Allow @LOCAL >> >> >> >> AuthType Default >> Require user @SYSTEM >> # Allow remote access to the configuration files... >> Order allow,deny >> Allow @LOCAL >> >> >> >> >> > Purge-Jobs Set- >> Require user @OWNER @SYSTEM >> Order deny,allow >> >> >> > CUPS-Add-Modify-Class CUPS- >> AuthType Default >> Require user @SYSTEM >> Order deny,allow >> >> >> > Pause-Print >> AuthType Default >> Require user @SYSTEM >> Order deny,allow >> >> >> >> Require user @OWNER @SYSTEM >> Order deny,allow >> >> >> >> Order deny,allow >> >> >> >> >> _______________________________________________ >> 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.