LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2004, 08:18 PM   #1
linux-addict
LQ Newbie
 
Registered: Apr 2003
Distribution: Red Hat 9.0
Posts: 23

Rep: Reputation: 15
Samba problem- pdf printer won't work!


I am trying to create a networked PDF printer, but keep running into failure. I was following the howto HERE and here are my config scripts:

Quote:
[global]

workgroup = workgroup
server string = PrintServer
printcap name = cups
printing = cups
log file = /var/log/samba/%m.log
max log size = 0
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = yes
username map = /etc/samba/smbusers
guest ok = yes
dns proxy = no

[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.
 
Old 04-04-2004, 08:26 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
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.
 
Old 04-05-2004, 02:48 PM   #3
linux-addict
LQ Newbie
 
Registered: Apr 2003
Distribution: Red Hat 9.0
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
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.

Thanks in advance
 
Old 04-06-2004, 01:28 AM   #4
linux-addict
LQ Newbie
 
Registered: Apr 2003
Distribution: Red Hat 9.0
Posts: 23

Original Poster
Rep: Reputation: 15
Sometimes I hate being me...

commented out the following 2 lines:
#printcap name = cups
#printing = cups

and now it magically works! So, I have a nifty pdf generator, it will run the print commands now. Hope this will help someone else in the future
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cups Pdf Printer Setup -- Samba treedstang Linux - General 0 07-03-2004 05:46 PM
Samba PDF printer AdamPengelly Linux - Networking 8 01-13-2004 12:26 PM
SAMBA PDF Printer Setting heero82 Linux - Software 0 07-18-2003 04:00 AM
Using Samba Printer to create PDF - Dokuments saavik Linux - Networking 0 04-04-2003 12:59 AM
samba printer share making PDF - Docs out of any print saavik Linux - Software 0 02-27-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration