Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[hp8500-ps]
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
[pdf-printer]
path = /tmp
printable = yes
writeable = no
guest ok = yes
print command = /usr/bin/printpdf %s
use client driver = yes
Now, when I print to the HP8500 printer it works (device is not actually there, but it gets queued anyhow). The device "PDF-Printer" is a virtual printer and does not exist outside the realm of samba. What I want it to do is have the printer set up as a HP 8500 PostScript printer, and when Windows sends a print job it sends the postscript code to /usr/bin/printpdf, which actually just runs ps2pdf and gets rid of the temporary file. However, it won't work, no matter what I try. Do you ahve any ideas on how I can fix this?
EDIT: Also, the printer seems tobe opening forever without doing anything else. At least, that's what it's status always is. Error logs read as follows:
Quote:
[2004/04/04 21:26:56, 0] printing/print_cups.c:cups_queue_get(788)
Unable to get jobs for ipp://localhost/printers/pdf-printer - client-error-not-found
[2004/04/04 21:27:10, 0] printing/print_cups.c:cups_queue_get(788)
Unable to get jobs for ipp://localhost/printers/pdf-printer - client-error-not-found
Last edited by linux-addict; 04-04-2004 at 08:31 PM.
Originally posted by AutOPSY What failures are you running into?
Any error messages.?
Considering your Printer is shared through Samba and is configured as such, the error lies within the machine the Printer would be connected to.
Hell, for all you know it does work, you just don't have a printer hooked up.
It isn't hooked up, I can tell you that. I was running this on the server, it is supposed to accept incoming postscript printjobs from clients, and forward them directly to a bash script that pushes it out in PDF format. That's all...
I was merely trying to simulate a printer with SAMBA, so that windows would look at it that way as it does Adobe Distiller. If you have a better way to create a network-shared PDF printer, please let me know. Or if you can see what I did wrong here, any help is appreciated. There is not a great amount of info online about this subject, so right now I'm trying to find my footing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.