what is cups looking for ppd for raw samba printer
Anonymous
anonymous at easysw.com
Wed Mar 1 12:57:56 PST 2006
I posted this over at linuxprinting.org before I stumbled on this forum.
OS: Fedora Core 4
I thought I would set up a linux based file and print server on a home network
for the existing windows machines. The file share stuff is working fine - at
least what i have tested so far.
I am now trying to set up a printer. I create a local printer definition and
that works find from the linux box itself. I have set up a separate raw
printer definition for samba to use and all the config files look OK (attached
below). But nothing prints. I turned on detailed error logging and I see an
error being generated (below) when cups cannot locate a PPD. Why would it be
looking for a ppd file? Am I not understanding this correctly?
I included the cups error_log. I haven't included the samba detailed log since
it (at least so far) doesn't seem to be the root problem.
I have backup copies of all the config files so I can get back to where I
started and I have tried a number of combinations of settings that seem
relavant.
Actually looking through the config files below - I may be missing one
somewhere since I don't see the "RAW" setting.
Thanks for any asist you might have.
Walt North
-- snippet of cups error_log.
D [01/Mar/2006:11:04:43 -0800] ProcessIPPRequest: 8 status_code=0
d [01/Mar/2006:11:04:43 -0800] ProcessIPPRequest: Adding fd 8 to OutputSet...
d [01/Mar/2006:11:04:43 -0800] WriteClient: Removing fd 8 from OutputSet...
d [01/Mar/2006:11:04:43 -0800] ReadClient: 8, used=0, file=-1
D [01/Mar/2006:11:04:43 -0800] ReadClient: 8 GET /printers/WindowsPrinter.ppd
HTTP/1.1
d [01/Mar/2006:11:04:43 -0800] decode_auth(0xb7c07008): Authorization string =
""
d [01/Mar/2006:11:04:43 -0800] decode_auth: 8 username=""
d [01/Mar/2006:11:04:43 -0800] IsAuthorized: con->uri =
"/printers/WindowsPrinter.ppd"
d [01/Mar/2006:11:04:43 -0800] FindBest: uri = "/printers/WindowsPrinter"...
d [01/Mar/2006:11:04:43 -0800] FindBest: Location / Limit 7f
d [01/Mar/2006:11:04:43 -0800] FindBest: Location /admin Limit 7f
d [01/Mar/2006:11:04:43 -0800] FindBest: Location /printers/LocalPrinter Limit
7f
d [01/Mar/2006:11:04:43 -0800] FindBest: Location /printers/WindowsPrinter
Limit 7f
d [01/Mar/2006:11:04:43 -0800] FindBest: Location CUPS_INTERNAL_BROWSE_ACL
Limit 0
d [01/Mar/2006:11:04:43 -0800] FindBest: best = "/printers/WindowsPrinter"
d [01/Mar/2006:11:04:43 -0800] IsAuthorized: auth = 0, satisfy=0...
d [01/Mar/2006:11:04:43 -0800] get_file: 8
filename=/etc/cups/ppd/WindowsPrinter.ppd size=-1
D [01/Mar/2006:11:04:43 -0800] SendError: 8 code=404 (Not Found)
D [01/Mar/2006:11:04:43 -0800] CloseClient: 8
d [01/Mar/2006:11:04:43 -0800] CloseClient: Removing fd 8 from InputSet and
OutputSet...
--- end snippet.
Here are config files (comments removed to save email space).
---- Cupsd.conf
ServerName NorthServer
Classification none
DefaultCharset UTF-8
DefaultLanguage en
Printcap /etc/printcap
PrintcapFormat BSD
RemoteRoot remroot
SystemGroup sys
ServerCertificate /etc/cups/ssl/server.crt
ServerKey /etc/cups/ssl/server.key
<Location />
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From None
Allow From All
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From None
Allow From All
</Location>
<Location /printers/LocalPrinter>
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From 127.0.0.1
Allow from All
</Location>
<Location /printers/WindowsPrinter>
Encryption IfRequested
Satisfy All
Order deny,allow
Allow From 127.0.0.1
Allow from All
</Location>
HostnameLookups On
KeepAlive On
KeepAliveTimeout 60
MaxClients 100
MaxRequestSize 0m
Timeout 300
Listen *:631
AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
PageLog /var/log/cups/page_log
MaxLogSize 9999m
LogLevel debug2
PreserveJobHistory On
PreserveJobFiles Off
AutoPurgeJobs No
MaxJobs 0
MaxJobsPerPrinter 0
MaxJobsPerUser 0
User lp
Group sys
RIPCache 8m
FilterLimit 0
DataDir /usr/share/cups
DocumentRoot /usr/share/cups/doc
RequestRoot /var/spool/cups
ServerBin /usr/lib/cups
ServerRoot /etc/cups
TempDir /var/spool/cups/tmp
Browsing On
BrowseProtocols CUPS
BrowsePort 631
BrowseInterval 30
BrowseTimeout 300
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
BrowseOrder deny,allow
ImplicitClasses On
ImplicitAnyClasses Off
HideImplicitMembers Yes
BrowseShortNames Yes
logfileperm 0600
--- printcap
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
LocalPrinter|:rm=NorthServer:rp=LocalPrinter:
WindowsPrinter|WindowsPrinter:rm=NorthServer:rp=WindowsPrinter:
--- printers.conf
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Wed 01 Mar 2006 10:18:10 AM PST
<DefaultPrinter LocalPrinter>
DeviceURI parallel:/dev/lp0
Location
Info
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer WindowsPrinter>
DeviceURI parallel:/dev/lp0
Location
Info
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
--- mime.convs
application/pdf application/postscript 33 pdftops
application/postscript application/vnd.cups-postscript 66 pstops
application/vnd.hp-HPGL application/postscript 66 hpgltops
application/x-cshell application/postscript 33 texttops
application/x-perl application/postscript 33 texttops
application/x-shell application/postscript 33 texttops
text/plain application/postscript 33 texttops
text/html application/postscript 33 texttops
image/gif application/vnd.cups-postscript 66 imagetops
image/png application/vnd.cups-postscript 66 imagetops
image/jpeg application/vnd.cups-postscript 66 imagetops
image/tiff application/vnd.cups-postscript 66 imagetops
image/x-bitmap application/vnd.cups-postscript 66 imagetops
image/x-photocd application/vnd.cups-postscript 66 imagetops
image/x-portable-anymap application/vnd.cups-postscript 66 imagetops
image/x-portable-bitmap application/vnd.cups-postscript 66 imagetops
image/x-portable-graymap application/vnd.cups-postscript 66 imagetops
image/x-portable-pixmap application/vnd.cups-postscript 66 imagetops
image/x-sgi-rgb application/vnd.cups-postscript 66 imagetops
image/x-xbitmap application/vnd.cups-postscript 66 imagetops
image/x-xpixmap application/vnd.cups-postscript 66 imagetops
#image/x-xwindowdump application/vnd.cups-postscript 66 imagetops
image/x-sun-raster application/vnd.cups-postscript 66 imagetops
image/gif application/vnd.cups-raster 100 imagetoraster
image/png application/vnd.cups-raster 100 imagetoraster
image/jpeg application/vnd.cups-raster 100 imagetoraster
image/tiff application/vnd.cups-raster 100 imagetoraster
image/x-bitmap application/vnd.cups-raster 100 imagetoraster
image/x-photocd application/vnd.cups-raster 100 imagetoraster
image/x-portable-anymap application/vnd.cups-raster 100 imagetoraster
image/x-portable-bitmap application/vnd.cups-raster 100 imagetoraster
image/x-portable-graymap application/vnd.cups-raster 100 imagetoraster
image/x-portable-pixmap application/vnd.cups-raster 100 imagetoraster
image/x-sgi-rgb application/vnd.cups-raster 100 imagetoraster
image/x-xbitmap application/vnd.cups-raster 100 imagetoraster
image/x-xpixmap application/vnd.cups-raster 100 imagetoraster
#image/x-xwindowdump application/vnd.cups-raster 100 imagetoraster
image/x-sun-raster application/vnd.cups-raster 100 imagetoraster
application/octet-stream application/vnd.cups-raw 0 -
--- mime.types
#application/msword doc string(0,<D0CF11E0A1B11AE1>)
application/pdf pdf string(0,%PDF)
application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
contains(0,128,<1B>%-12345X) + \
(contains(0,1024,"LANGUAGE=POSTSCRIPT") \
contains(0,1024,"LANGUAGE = Postscript") \
contains(0,1024,"LANGUAGE = PostScript") \
contains(0,1024,"LANGUAGE = POSTSCRIPT"))
application/vnd.hp-HPGL hpgl string(0,<1B>&)\
string(0,<1B>E<1B>%0B) \
string(0,<1B>%-1B) string(0,<201B>)\
string(0,BP;) string(0,IN;) string(0,DF;) \
string(0,BPINPS;) \
(contains(0,128,<1B>%-12345X) + \
(contains(0,1024,"LANGUAGE=HPGL") \
contains(0,1024,"LANGUAGE = HPGL")))
image/gif gif string(0,GIF87a) string(0,GIF89a)
image/png png string(0,<89>PNG)
image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
(char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
image/tiff tiff tif string(0,MM) string(0,II)
image/x-photocd pcd string(2048,PCD_IPI)
image/x-portable-anymap pnm
image/x-portable-bitmap pbm string(0,P1) string(0,P4)
image/x-portable-graymap pgm string(0,P2) string(0,P5)
image/x-portable-pixmap ppm string(0,P3) string(0,P6)
image/x-sgi-rgb rgb sgi bw icon short(0,474)
image/x-xbitmap xbm
image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
#image/x-xwindowdump xwd string(4,<00000007>)
image/x-sun-raster ras string(0,<59a66a95>)
#image/fpx fpx
image/x-alias pix short(8,8) short(8,24)
image/x-bitmap bmp string(0,BM) && !printable(2,14)
text/html html htm printable(0,1024) +\
(istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
application/x-cshell csh printable(0,1024) + string(0,#!) +\
(contains(2,80,/csh) contains(2,80,/tcsh))
application/x-perl pl printable(0,1024) + string(0,#!) +\
contains(2,80,/perl)
application/x-shell sh printable(0,1024) + string(0,#!) +\
(contains(2,80,/bash) contains(2,80,/ksh)\
contains(2,80,/sh) contains(2,80,/zsh))
text/plain txt printable(0,1024)
application/vnd.cups-command string(0,'#CUPS-COMMAND')
application/vnd.cups-form string(0,"<CUPSFORM>")
application/vnd.cups-postscript
application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
string(0,<1B>@) \
(contains(0,128,<1B>%-12345X) + \
(contains(0,1024,"LANGUAGE=PCL") \
contains(0,1024,"LANGUAGE = PCL")))
application/octet-stream
--- smb.conf
[global]
workgroup = NORTHFAMILY
server string = NorthServer
printcap name = /etc/printcap
printing = cups
cups options = raw
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 500
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
restrict anonymous = no
domain master = no
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto
username level = 1
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *new*password* %n\n *new*password* %n\n *success*
log level = 3
map to guest = Bad User
[CommonArea]
admin users = @parents
case sensitive = no
guest ok = yes
msdfs proxy = no
read only = no
comment = Place everyone can access
path = /var/Samba/CommonArea
write list = @kids
[Jodi]
write list = jodi
admin users = @parents
case sensitive = no
guest ok = yes
msdfs proxy = no
read only = no
path = /var/Samba/Jodi
[Nicky]
admin users = @parents
case sensitive = no
guest ok = yes
msdfs proxy = no
read only = no
path = /var/Samba/Nicky
[ReadOnly]
read list = pcguest
case sensitive = no
guest ok = yes
msdfs proxy = no
path = /var/Samba/ReadOnly
comment = Read only files and documents
[Tyler]
case sensitive = no
guest ok = yes
msdfs proxy = no
read only = no
path = /var/Samba/Tyler
write list = tyler
admin users = @parents
[Walt]
admin users = @parents
case sensitive = no
guest ok = yes
msdfs proxy = no
read only = no
path = /var/Samba/Walt
[NorthPrinter]
printable = yes
printer name = WindowsPrinter
path = /var/spool/samba
admin users = @northfamily
guest ok = yes
use client driver = yes
printer admin = @northfamily
guest account = root
More information about the cups
mailing list