CUPS and 2.2.0alpha1
JON GERDES
GERDESJ at gkn-whl.co.uk
Thu Nov 30 09:37:32 GMT 2000
I am evaluating the printing side of 2.2.x. I have set it up on Mandrake 7.2, which comes with CUPS instead of LPD as the printing system.
To get 2.2.0a1 to compile (the make failed in source/printing somewhere) I had to insert some source code from the CUPS source into samba-2.2.0alpha1/source/cups - I used CUPS-1.1.4, the version that comes with Mandrake.
When I send a print job from an NT or 2000 box, it goes through the system but nothing arrives on the printer. I enabled banners in CUPS and these come out. I can send a job using cat <file> | lpr -P<printername> and it comes out OK, so I assume that CUPS is OK.
I am going to try using bog standard LPD/LPR and switch to 'bsd' printing.
As a final note, being able to do proper Windoze printing with autoload of drivers etc is absolutely great. The lack of a print job (!) is all that is between me and 700 printers finally reaching an understanding ...
Anyone have any ideas ?
Jon Gerdes
More details follow:
Following is an edited version of my smb.conf:
[global]
map to guest = Bad User
log level = 3
log file = /usr/local/samba/var/log/%m.log
max log size = 50000
show add printer wizard = Yes
guest account = default
printing = cups
[print$]
path = /usr/local/samba/var/printers
valid users = default
read list = default
write list = gerdesj,root
guest ok = Yes
[p00127]
path = /usr/local/samba/var/spool
guest ok = Yes
printable = Yes
printing = bsd
[printers]
path = /usr/local/samba/var/spool
printable = Yes
browseable = No
I enabled debug logging in CUPS and noticed this in the error log: "inputfile handling is broken!!" and there are also the Perl warnings which appear to resolve OK.
<aside>
Its a shame that CUPS won't support -'s in the printername
<aside>
I've spent too long staring at the printing readme in alpha1
</aside
</aside>
Excerpt showing part of the CUPS error log:
D [30/Nov/2000:08:54:22 +0000] StartJob() id = 34, file = 1
D [30/Nov/2000:08:54:22 +0000] StartJob() argv = "p00127","34","root","smbprn.24","1","","//var/spool/cups/d00034-002"
D [30/Nov/2000:08:54:22 +0000] StartJob(): envp = "PATH=/bin:/usr/bin","SOFTWARE=CUPS/1.1","USER=root","CHARSET=iso-8859-1","LANG=c","TZ=GMT","PPD=//etc/cups/ppd/p00127.ppd","CUPS_SERVERROOT=//etc/cups","RIP_MAX_CACHE=8m","TMPDIR=//var/spool/cups/tmp","CONTENT_TYPE=application/vnd.cups-postscript","DEVICE_URI=lpd://p-00127/RAW","PRINTER=p00127","CUPS_DATADIR=/usr/share/cups","CUPS_FONTPATH=/usr/share/cups/fonts",""
D [30/Nov/2000:08:54:22 +0000] StartJob() statusfds = 4, 5
D [30/Nov/2000:08:54:22 +0000] StartJob() filterfds[1] = 9, -1
D [30/Nov/2000:08:54:22 +0000] StartJob() filter = "/usr/lib/cups/filter/cupsomatic"
D [30/Nov/2000:08:54:22 +0000] StartJob() filterfds[0] = 10, 11
I [30/Nov/2000:08:54:22 +0000] Started filter /usr/lib/cups/filter/cupsomatic (PID 6032) for job 34.
D [30/Nov/2000:08:54:22 +0000] StartJob() backend = "/usr/lib/cups/backend/lpd"
D [30/Nov/2000:08:54:22 +0000] StartJob() filterfds[1] = -1, 9
I [30/Nov/2000:08:54:22 +0000] Started backend /usr/lib/cups/backend/lpd (PID 6033) for job 34.
D [30/Nov/2000:08:54:23 +0000] erl: warning: Setting locale failed.
D [30/Nov/2000:08:54:23 +0000] perl: warning: Please check that your locale settings:
D [30/Nov/2000:08:54:23 +0000] LANGUAGE = (unset),
D [30/Nov/2000:08:54:23 +0000] LC_ALL = (unset),
D [30/Nov/2000:08:54:23 +0000] LANG = "c"
D [30/Nov/2000:08:54:23 +0000] are supported and installed on your system.
D [30/Nov/2000:08:54:23 +0000] perl: warning: Falling back to the standard locale ("C").
D [30/Nov/2000:08:54:23 +0000] Cupsomatic backend version 0.4h running...
D [30/Nov/2000:08:54:23 +0000] called with arguments: '34','root','smbprn.24','1','','//var/spool/cups/d00034-002'
D [30/Nov/2000:08:54:23 +0000] inputfile handling is broken!!!inputfile handling is broken!!! at /usr/lib/cups/filter/cupsomatic line 88.
D [30/Nov/2000:08:54:23 +0000] ppd=//etc/cups/ppd/p00127.ppd
More information about the samba
mailing list