LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-20-2006, 05:16 PM   #1
Hans Zilles
LQ Newbie
 
Registered: Oct 2005
Location: Stockton, CA
Distribution: SuSE 9.x
Posts: 16

Rep: Reputation: 0
How can I solve pdf printing priblems in Samba?


I am tring to set up a pdf maker as a samba printer.
So far no success.
The print jobs seem to get to samba but then disappear.
I have tested my script by copying a postscript file to the /var/spool/samba directory and then running the script from a shell. It worked fine.
Windows XP does not complain about its test print to the shared printer.
The log file for samba mentions cups_job_submit. Why is it even calling out to cups? I have commented out all references to printer, print caps and cups.
Is there a doc, help file, or web page with a trouble shooting guide for samba printing, pdf creation and such?

The tail of /var/log/samba/%m.log...
[2006/10/20 14:24:08, 0] printing/print_cups.c:cups_job_submit(765)
Unable to print file to MYpdf - client-error-not-found

my script...
OUTPUTPATH=/srv/smb/mysite
cp $1 $OUTPUTPATH/test1.ps
rm $1
cd $OUTPUTPATH
chmod 770 test1.ps
ps2pdf test1.ps
chmod 770 test1.pdf

and my smb.conf...
[global]
log file = /var/log/samba/%m.log
# load printers = yes
idmap gid = 16777216-33554431
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
interfaces = 192.168.1.1
winbind use default domain = no
template shell = /bin/false
wins support = true
dns proxy = no
# cups options = raw
netbios name = Ame
netbios aliases = Ana
server string = AM File Server
writeable = yes
wide links = no
idmap uid = 16777216-33554431
local master = yes
workgroup = WORKGROUP
os level = 65
security = user
create mode = 770
preferred master = yes
max log size = 50
directory mode = 770

[mysite]
path = /srv/smb/mysite


[MYpdf]
comment = Create pdf files for my site
printable = yes
print command = /srv/automation/MYPrint %s
path = /var/spool/samba
use client driver = yes
 
Old 10-20-2006, 05:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
If you disable cups support you must set printing = sysv and you must manually configure the printing system commands (most important: print command; other commands are lppause command, lpresume command, lpq command, lprm command, queuepause command and queue resume command) as necessary.

I use cups-pdf.
http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/

Since the print command and cups are not compatable here is an alternative method. I have not tried this approach to see if it works.
http://www.lesbell.com.au/Home.nsf/b...1?OpenDocument
 
Old 10-25-2006, 11:14 AM   #3
Hans Zilles
LQ Newbie
 
Registered: Oct 2005
Location: Stockton, CA
Distribution: SuSE 9.x
Posts: 16

Original Poster
Rep: Reputation: 0
printing = LPRNG
as found on http://www.lesbell.com.au/Home.nsf/b...1?OpenDocument
was the thing that made it work.
Thank you.
 
  


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
PDF Printing kkatebian Linux - Software 1 11-08-2005 01:01 PM
Printing pdf Luc484 Linux - Software 3 11-06-2005 05:57 AM
Printing to PDF fedix Fedora 1 10-13-2005 04:48 PM
Printing PDF-like files Micro420 Linux - Software 7 11-01-2003 05:53 PM
Printing into PDF moneyshotz Linux - Software 8 07-27-2003 02:14 PM

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

All times are GMT -5. The time now is 10:21 PM.

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