[an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive] (none)
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive] (none)
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive]
Jeg er aldrig blevet særligt gode venner med cups opsætning. Nu sidder
jeg med det igen og i stedet for bare at kopiere de gamle
opsætningsfiler, vil jeg prøve "bare" at sætte det op påny.
Serveren er en frisk installeret debian/lenny.
Jeg har installeret firefox på serveren og har sat printeren på via
http://localhost:631. Jeg har fået oprettet (via web interfacet) en
/etc/cups/printers.conf:
sslug@sslug:/etc/cups# cat printers.conf
# Printer configuration file for CUPS v1.3.8
# Written by cupsd on 2009-03-02 09:29
<DefaultPrinter blp>
Info Brother Laser Printer
Location Stenbukken
DeviceURI usb://Brother/HL-1430%20series
State Idle
StateTime 1235982494
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Min cupsd.conf ser således ud:
sslug@sslug:/etc/cups# cat cupsd.conf
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
# 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...
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...
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>
#
#
Jeg har altså sat LogLevel til "debug" og der en masse i
/var/log/cups/error_log, ved "Print Test Page" (fra webinterfacet) fx:
D [02/Mar/2009:09:54:26 +0100] cupsdSendError: 13 code=304 (Not Modified)
D [02/Mar/2009:09:54:26 +0100] cupsdReadClient: 14 GET
/images/button-show-all.gif HTTP/1.1
D [02/Mar/2009:09:54:26 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:26 +0100] cupsdSendError: 14 code=304 (Not Modified)
D [02/Mar/2009:09:54:26 +0100] cupsdReadClient: 15 GET
/images/button-sort-descending.gif HTTP/1.1
D [02/Mar/2009:09:54:26 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:26 +0100] cupsdSendError: 15 code=304 (Not Modified)
D [02/Mar/2009:09:54:26 +0100] cupsdReadClient: 10 GET
/images/button-restart-job.gif HTTP/1.1
D [02/Mar/2009:09:54:27 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:27 +0100] cupsdSendError: 10 code=304 (Not Modified)
D [02/Mar/2009:09:54:27 +0100] cupsdReadClient: 12 GET
/images/button-cancel-job.gif HTTP/1.1
D [02/Mar/2009:09:54:27 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:27 +0100] cupsdSendError: 12 code=304 (Not Modified)
D [02/Mar/2009:09:54:27 +0100] cupsdReadClient: 9 GET
/images/button-move-job.gif HTTP/1.1
D [02/Mar/2009:09:54:27 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:27 +0100] cupsdSendError: 9 code=304 (Not Modified)
D [02/Mar/2009:09:54:27 +0100] cupsdReadClient: 13 GET
/images/bottom-left.gif HTTP/1.1
D [02/Mar/2009:09:54:27 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:27 +0100] cupsdSendError: 13 code=304 (Not Modified)
D [02/Mar/2009:09:54:27 +0100] cupsdReadClient: 14 GET
/images/bottom-right.gif HTTP/1.1
D [02/Mar/2009:09:54:27 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:27 +0100] cupsdSendError: 14 code=304 (Not Modified)
D [02/Mar/2009:09:54:27 +0100] [Job 4] Unloading...
D [02/Mar/2009:09:54:37 +0100] cupsdReadClient: 15 GET /printers/blp
HTTP/1.1
D [02/Mar/2009:09:54:37 +0100] cupsdAuthorize: Authorized as root using
Basic
D [02/Mar/2009:09:54:37 +0100] [CGI] /usr/lib/cups/cgi-bin/printers.cgi
started - PID = 6321
I [02/Mar/2009:09:54:37 +0100] Started
"/usr/lib/cups/cgi-bin/printers.cgi" (pid=6321)
D [02/Mar/2009:09:54:37 +0100] cupsdSendCommand: 15 file=16
D [02/Mar/2009:09:54:37 +0100] cupsdAcceptClient: 17 from localhost (Domain)
D [02/Mar/2009:09:54:37 +0100] cupsdReadClient: 17 POST / HTTP/1.1
D [02/Mar/2009:09:54:37 +0100] cupsdAuthorize: No authentication data
provided.
D [02/Mar/2009:09:54:37 +0100] CUPS-Get-Default
D [02/Mar/2009:09:54:37 +0100] cupsdProcessIPPRequest: 17 status_code=0
(successful-ok)
D [02/Mar/2009:09:54:37 +0100] [CGI] show_printer(http=0x9500018,
printer="blp")
D [02/Mar/2009:09:54:37 +0100] cupsdReadClient: 17 POST / HTTP/1.1
D [02/Mar/2009:09:54:37 +0100] cupsdAuthorize: No authentication data
provided.
D [02/Mar/2009:09:54:37 +0100] Get-Printer-Attributes
ipp://localhost/printers/blp
D [02/Mar/2009:09:54:37 +0100] cupsdProcessIPPRequest: 17 status_code=0
(successful-ok)
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] cupsdReadClient: 17 POST / HTTP/1.1
D [02/Mar/2009:09:54:37 +0100] cupsdAuthorize: No authentication data
provided.
D [02/Mar/2009:09:54:37 +0100] Get-Jobs ipp://localhost:631/printers/blp
D [02/Mar/2009:09:54:37 +0100] cupsdProcessIPPRequest: 17 status_code=0
(successful-ok)
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [02/Mar/2009:09:54:37 +0100] cupsdCloseClient: 17
D [02/Mar/2009:09:54:37 +0100] PID 6321
(/usr/lib/cups/cgi-bin/printers.cgi) exited with no errors.
Jeg ved ikke rigtig hvad jeg skal kikke efter, så dette er blot et
udplug af hvad jeg tror er relevant.
Første problem er at når jeg trykker "Print Test Page" i web interfacet
lyser data knappen på printeren godtnok men der kommer intet ud.
Dernæst kan jeg ikke "se" printeren fra maskiner på netværket, fx i
ubuntu/gnome:System->administration->printing eller via lpq (jeg printer
nemlig ofte vha "lpr" på kommandolinjen.
Jeg håber der er nogen som har gennemskuet cups bedre end jeg, og som
kan hjælpe mig videre. På forhånd tak for enhver feedback.
Last modified
2009-04-01, 02:01 CEST
[an error occurred while processing this directive] This page is maintained by
[an error occurred while processing this directive]MHonArc
[an error occurred while processing this directive] #
[an error occurred while processing this directive] *