Your message dated Mon, 29 Dec 2008 11:43:48 +0100
with message-id <[email protected]>
and subject line Closing this bug due to our (unwritten) policy wrt defaults in
smb.conf
has caused the Debian Bug report #156531,
regarding [[email protected]: Re: [discuss] PDF creation blues]
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
156531: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156531
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: samba-common
Version: 2.999+3.0cvs20020723-1
Priority: wishlist
Please look at the scripts below and see if you want to include it
(commented out) in /etc/samba/smb.conf. It looks very useful to
samba<->Windows users.
Simon
----- Forwarded message from Buchan Milne <[email protected]> -----
Date: Mon, 12 Aug 2002 19:22:23 +0200
From: Buchan Milne <[email protected]>
To: [email protected]
Subject: Re: [discuss] PDF creation blues
Reply-To: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gary Frederick wrote:
| Woo Hoo.
|
| I would like to have a pdf 'printer' on Windows so I can select that
| 'printer' and get pdf. I installed various parts to print pdf on XP and
| ran out of time. It's easier to print to pdf in a WebDAV location with
| Linux and then get it on Windows (usually :-))
|
| and...
Using a linux box is cheating, and in the case you have one, there are
easier ways. For example, use the attached script via samba using the
configuration below in your smb.conf to create a virtual printer. It
will send you a windows popup when your PDF is done. Of course, choose a
postscript printer driver in windows. If you are going to be setting
this up for multiple machines, upload a print driver to the server, so
users just have to double click (no "next" buttons to click even) to set
it up.
<plug>This will be available in the default setup of samba in Mandrake
9.0</plug>
Buchan
# From smb.conf
# Watch line breaks, there should only be 7 lines from here to end
[pdf-generator]
~ path = /var/tmp
~ guest ok = No
~ printable = Yes
~ comment = PDF Generator (only valid users)
~ #print command = /usr/share/samba/scripts/print-pdf file path win_path
recipient IP &
~ print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u
%m %I &
#end of smb.conf section
#!/bin/bash
# samba-print-pdf
# This is a script which allows you to set up a virtual printer on samba
# which will take the file (generated by a postscript filter on windows)
# and turn it into a PDF, informing the user of where it is when it
# is done
#
# Buchan Milne <[email protected]> 20020723
#
# Arguments:
# $1 = file (usually passed with %s from samba)
# $2 = unix prefix to where to place the file (~%u should work)
# $3 = windows prefix to the same location (\\%L\%u should work)
# $4 = user/computer to send a notification to (%u or %m)
# $5 = IP address of client (%I)
PS2PDF=ps2pdf13
OPTIONS="-dAutoFilterColorImages=false -sColorImageFilter=FlateEncode"
INPUT=$1
KEEP_PS=1
PERMS=640
INFILE=$(basename $INPUT)
BASEFILE=pdf-service
#make a temp file to use for the output of the PDF
OUTPUT=`mktemp -q $2/$BASEFILE-XXXXXX`
if [ $? -ne 0 ]; then
echo "$0: Can't create temp file $2/$BASEFILE-XXXXXX, exiting..."
exit 1
fi
WIN_OUTPUT="$3\\`basename $OUTPUT`"
# create the PDF:
$PS2PDF $OPTOINS $INPUT $OUTPUT.pdf >/dev/null 2>&1
# Generate a message to send to the user, and deal with the original file:
MESSAGE=$(echo "Your PDF file has been created as $WIN_OUTPUT.pdf\n")
if [ $KEEP_PS ];then
mv $INPUT $OUTPUT.ps
MESSAGE=$(echo "$MESSAGE and your postscript file as $WIN_OUTPUT.ps")
# Fix permissions on the generated files
chmod $PERMS $OUTPUT.ps
else
rm -f $INPUT
chmod $PERMS $OUTPUT.ps $OUTPUT.pdf
# Fix permissions on the generated files
fi
chmod $PERMS $OUTPUT.ps $OUTPUT.pdf
#Remove empty file from mktemp:
rm -f $OUTPUT
# Send notification to user
echo -e $MESSAGE|smbclient -M $4 -I $5 -U "PDF Generator" >/dev/null 2>&1
- --
|----------------Registered Linux User #182071-----------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9V+7OrJK6UGDSBKcRAhvXAKC9VpNlke//DBaOznKZo/2sL81vJgCgg5Yl
uLXZSqKFxLqhza5eAvCLDwY=
=a3ar
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
----- End forwarded message -----
--- End Message ---
--- Begin Message ---
I'm hereby closing this bug which was already marked wontfix for ages.
After exchanges with upstream, we have established a (n unwritten) policy to
stick
with upstream's defaults as much as possible for settings we provide
in our default smb.conf file.
We also avoid to include hundreds of various suggestions in our
default smb.conf file that should remain simple enough. Samba is a
very complcated pieve of software and we cannot document it in its
configuration file.
The suggested change fails in that category.
As I'm not fond of "wontfix" bugs that are kept forever, particularly
for very minor things, I prefer closing the bug report.
--
signature.asc
Description: Digital signature
--- End Message ---