Comment 17 for bug 43303

Revision history for this message
grendel970 (dn) wrote : Re: [Bug 43303] Re: cupsys can no longer share a printer to windows

Per hva, try reverting back to 1.1.99.rc2-0ubuntu1, I haven't tried this
on my box yet, but it looks like there's a bug with cups on this.

On Fri, 2006-05-12 at 16:50 +0000, Mark wrote:
> I have tried Ubuntu Dapper again: Installed 40 minutes ago on 5/12/06.
> Got all updates.
>
> I still cant print from windows machines.
>
> Here are the various configs:
>
> (cupsd.conf)#
> # Log general information in error_log - change "info" to "debug" for
> # troubleshooting...
> LogLevel warning
>
> # Administrator user group...
> SystemGroup lpadmin
>
> # Only listen for connections from the local machine.
> # These settings are configured in /etc/cups/cups.d/ports.conf so that
> # changing them does not require to change this file.
> # Listen localhost:631
> # Listen /var/run/cups/cups.sock
>
> # Show shared printers on the local network.
> # The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
> # so that changing it does not require to change this file.
> # Browsing Off
> BrowseOrder allow,deny
> BrowseAllow @LOCAL
> BrowseAddress @LOCAL
>
> # Default authentication type, when authentication is required...
> DefaultAuthType Basic
>
> # Restrict access to the server...
> <Location />
> Order allow,deny
> Allow localhost
> Allow @LOCAL
> </Location>
>
> <Location /printers>
> Order allow,deny
> Allow localhost
> Allow @LOCAL
> </Location>
>
> # Restrict access to the admin pages...
> <Location /admin>
> Order allow,deny
> Allow localhost
> </Location>
>
> # Restrict access to configuration files...
> <Location /admin/conf>
> AuthType Basic
> Require user @SYSTEM
> Order allow,deny
> Allow localhost
> </Location>
>
> # Set the default printer/job policies...
> <Policy default>
> # Job-related operations must be done by the owner or an adminstrator...
> <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 adminstrator 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>
>
> # Include files in /etc/cups/conf.d
> Include /etc/cups/cups.d/ports.conf
> Include /etc/cups/cups.d/browse.conf
>
> (ports.conf)
> Listen *:631
> Listen /var/run/cups/cups.sock
>
> (mime.types)
> ########################################################################
> #
> # Raw print file support...
> #
> # Comment the following type to prevent raw file printing.
> #
>
> application/octet-stream
>
> (mime.convs)
> ########################################################################
> #
> # Raw filter...
> #
> # Uncomment the following filter to allow printing of arbitrary files
> # without the -oraw option.
> #
>
> application/octet-stream application/vnd.cups-raw 0
> -
>
> This is the errors i see in access_log:
> 192.168.1.106 - - [12/May/2006:12:27:20 -0400] "POST /printers/DeskJet-970C HTTP/1.1" 200 179 Get-Jobs successful-ok
> 192.168.1.106 - - [12/May/2006:12:27:32 -0400] "POST /printers/DeskJet-970C HTTP/1.1" 200 179 Get-Jobs successful-ok
> 192.168.1.106 - - [12/May/2006:12:27:33 -0400] "POST /printers/DeskJet-970C HTTP/1.1" 200 22717 Print-Job client-error-document-format-not-supported
>
>
> Here is the error_log:
> E [12/May/2006:11:39:40 -0400] Creating missing directory "/var/run/cups/certs"
> E [12/May/2006:11:59:33 -0400] Creating missing directory "/var/run/cups/certs"
> E [12/May/2006:12:02:39 -0400] CUPS-Add-Modify-Printer: Unauthorized
> E [12/May/2006:12:02:47 -0400] [Job 1] No %%BoundingBox: comment in header!
> E [12/May/2006:12:21:40 -0400] Missing printer-uri or job-uri attribute!
>
> I am using: http://UBUNTU:631/printers/Deskjet-970C on the windows side
> to add the printer. It sees the printer and allows me to load the
> driver. When i print i simply get an error and nothing prints.
>
> I would really appreciate some help with this.
>
> nix4me
>