Click to See Complete Forum and Search --> : Samba PDF print server setup
beakerman
07-15-2005, 01:25 PM
Okay I have got to be missing something. I setup gentoo emerged samba and ghostscript. Setup my smb.conf file. Joined the box to my W2K domain and have been trying to get a pdf file. The funny thing is I can see my Linux box, I can setup the printer with a postscript driver, I can open a document and print. But I never see the pdf appear. I used some instructions off of http://www.linuxgazette.com/issue72/bright.html unfortunately it doesn't seem to work for me I am sure it is something I am just overlooking. Also I tried removing the rm $1 command to see if the temp file was even there and it was not
:(
ph34r
07-15-2005, 02:58 PM
You can write your own in bash script. Just make the print command a pointer to the full path of your script - %s will be the stream sent. Save the stream as a ps file, use ps2pdf and then delete the original. %u will eb the username of the person who "mapped" the printer.
beakerman
07-15-2005, 03:32 PM
my pdf printer is setup as :
[pdf printer]
path = /tmp
printable = yes
guest ok = yes
print command = /usr/bin/printpdf %s
lpq command =
lprm command =
my printpdf script is
DATE=`date +%B%D-%H%M%S`
OUTDIR=/shr/pdfdropbox
ps2pdf $1 $OUTDIR/$DATE.temp
mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
rm $1
beakerman
07-15-2005, 04:02 PM
okay I put logging on for my samba and am getting a Unable to coneect to CUPS server localhost - connection refused
okay let me update I have fixed the previous issues and now I would like to allow my windows clients to use there password usernames utilize my pdf server so that I can add that into the filename any links you have would be greatly appreciated :)
beakerman
07-15-2005, 05:35 PM
okay i resolved the issue except for one thing the random filename generation anybody got an idea on that. I noticed when you do it b y the previously mentioned script it throws errors about not being able to find the file because the date has slashes