You are not logged in.

#1 2011-06-07 00:37:11

Pacopag
Member
Registered: 2011-05-29
Posts: 287

[SOLVED] Can't get printer to work

Hi.  I followed the wiki on how to set up cups and add a printer.  But it's not working.  Here is the result of

[paco@archnme ~]$ tail -n 100 -f /var/log/cups/error_log 
E [06/Jun/2011:19:56:35 -0400] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [06/Jun/2011:19:58:53 -0400] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [06/Jun/2011:19:58:53 -0400] [cups-deviced] PID 9453 (dnssd) stopped with status 1!
E [06/Jun/2011:20:03:29 -0400] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [06/Jun/2011:20:03:29 -0400] [cups-deviced] PID 9492 (dnssd) stopped with status 1!
E [06/Jun/2011:20:06:38 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:06:38 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:06:38 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:11:33 -0400] [Job 1] Stopping unresponsive job!
E [06/Jun/2011:20:14:13 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:14:13 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:14:13 -0400] Request from "localhost" using invalid Host: field "archnme:631"
E [06/Jun/2011:20:15:07 -0400] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [06/Jun/2011:20:15:07 -0400] [cups-deviced] PID 9656 (dnssd) stopped with status 1!
E [06/Jun/2011:20:31:10 -0400] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

and here is my /etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    localhost.localdomain    localhost archnme
::1        localhost.localdomain    localhost archnme

# End of file

Here is /etc/cups/cupsd.conf

#
# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen localhost:631
#Listen archnme:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <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 CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <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>

  # 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>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <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 CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <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>

  # All printer operations require a printer operator to authenticate...
  <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>

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

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

#
# End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
#

Last edited by Pacopag (2011-06-07 14:35:48)

Offline

#2 2011-06-07 05:03:43

tenlegger
Member
From: West Yorkshire, England
Registered: 2009-12-18
Posts: 39

Re: [SOLVED] Can't get printer to work

It would help if we knew the make and model of your printer smile

.\\artin


Arch Linux x86_64 | KDE SC 4.7.2
AMD Athlon 64 X2 5000+ CPU | 4Gb RAM
nVidia 8500GT GPU

Offline

#3 2011-06-07 11:44:44

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get printer to work

It is a Canon MultiPass MP730.  The driver I installed is for the PIXMA 730.  This is the driver that Ubuntu installs, and it works fine there.

Tried printing again today.  The error log reads only

E [07/Jun/2011:08:29:16 -0400] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

Last edited by Pacopag (2011-06-07 12:36:16)

Offline

#4 2011-06-07 13:49:07

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get printer to work

Ok.  I don't know why I didn't think of this sooner, but I looked at the configuration in CUPS on my Ubuntu laptop (same printer).  The difference is that It has the option for "Connection" to be "usb".  On my Arch box in cups, I only get options for "Local Printers", which are "CUPS-PDF", "SCSI Printer", "Serial Port #1", "HP Printer", "HP Fax".

This is a usb printer.  How can I get CUPS to give me the usb option?

Offline

#5 2011-06-07 14:34:45

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get printer to work

It works now.  I'm not 100% sure what fixed it, but my guess is that it was blacklisting usblp

Here are the steps.

delete the printer using cups if it is already installed (this is what I didn't do at first, and what caused me to waste a couple hours screwing with other config files).

open /etc/modprobe.d/modprobe.conf and add this line to it: blacklist usblp

reboot.

add the printer using CUPS  (this time "Local Printers" showed my Canon MP730 as an option)

Cheers,

Offline

Board footer

Powered by FluxBB