LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2006, 05:29 PM   #1
Slacktastic
LQ Newbie
 
Registered: Feb 2006
Location: Florida, USA
Distribution: Slackware 10.2 Workstation
Posts: 13

Rep: Reputation: 0
Samba & PS2PDF


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
 
  


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
acroread cannot read ps2pdf file peter72 Linux - Software 2 12-11-2005 04:58 PM
Does ps2pdf allow the insertion of bookmarts into pdf files pedrosan Linux - Software 0 04-29-2004 03:18 AM
ps2pdf only outputs Black and white PDF's vmikalinis Linux - Software 2 04-12-2004 04:00 PM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 07:45 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 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