I am trying to get a Samba PDF printer (ps2pdf) to work via Samba so I can print to it with Windows XP computers. I have followed the guide at
http://linuxgazette.net/issue72/bright.html, but I have not had any success with the printing portion.
I have searched Google and these forums, but I have not found a way to fix my problem. I have tried various suggestions that have given me Windows error messages such as "Failed to open, retrying", "Access denied, unable to connect", and one that allowed me to connect, but would silently fail at printing everything.
I am currently using the configuration files as listed in
http://www.linuxquestions.org/questi...d.php?t=128354, under the thread posted by AdamPengelly at 01-19-04, 08:01 AM:
[global]
guest account = nobody
invalid users = root
netbios name = Samba
hosts allow = 192.168.
security=share
workgroup=MARTINHALE
[PDFprint]
path = /pdfshare/pdfs
browseable = yes
writeable = yes
guest ok = yes
force user = nobody
[pdf]
path = /tmp
printable = yes
guest ok = yes
print command = /usr/bin/printpdf %s
lpq command =
lprm command =
and
#!/bin/sh
DATE=`date +%b%d-%H%M%S`
OUTDIR=/pdfshare/pdfs
ps2pdf $1 $OUTDIR/$DATE.temp
mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
rm $1
I should note that I've changed the workgroup to MSHOME and the PDF output directory (in both) to /projects/smb/PDF.
Under /var/log/samba/log.smbd I get:
[2006/05/20 17:33:20, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
This is where I'm lost at. Here's locate cups on my computer:
/etc/cups
/etc/cups/pstoraster.convs
/usr/doc/samba-3.0.20/examples/scripts/printing/cups
/usr/doc/samba-3.0.20/examples/scripts/printing/cups/smbaddprinter.pl
/usr/doc/samba-3.0.20/examples/scripts/printing/cups/smbdelprinter.pl
/usr/lib/cups
/usr/lib/cups/filter
/usr/lib/cups/filter/pstopxl
/usr/lib/cups/filter/pstoraster
/usr/lib/libcupsimage.so.2
/usr/lib/libcups.so.2
/usr/local/webmin/lpadmin/cups-lib.pl
/usr/local/webmin/lpadmin/cups-driver.pl
/usr/share/cups
/usr/share/cups/model
/usr/share/cups/model/pxlmono.ppd
/usr/share/cups/model/pxlcolor.ppd
/usr/share/swat/help/Samba3-HOWTO/images/cups1.png
/usr/share/swat/help/Samba3-HOWTO/images/cups2.png
/projects/webmin-1.270/lpadmin/cups-lib.pl
/projects/webmin-1.270/lpadmin/cups-driver.pl
Do I have to do something with CUPS? I was under the impression that using Windows, it would send a post script file directly to Samba which would then run it against PS2PDF to create the PDF output. Or, am I messing up somewhere else? Any help REALLY appreciated. I've had just no luck with this...
Thanks!
Slacktastic